Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROD: captions with code in them are broken #44

Open
AllenDowney opened this issue May 30, 2018 · 4 comments
Open

PROD: captions with code in them are broken #44

AllenDowney opened this issue May 30, 2018 · 4 comments

Comments

@AllenDowney
Copy link
Owner

AllenDowney commented May 30, 2018

It looks like when I have a code snippet in a caption, the typesetting of the caption gets messed up. There's an example on page 119.

Same issue comes up in the footnote on page 124.

Is the DocBook I am generating correct, and getting rendered wrong, or is there something wrong with it?

@kristenORM
Copy link

kristenORM commented Jun 7, 2018

It looks like the tags don't enclose the text they are supposed to (though I'm not sure why your DocBook is doing this). Take this example from Figure 2-4:

<literal` remap="verb" moreinfo="none">n=10 and <literal remap="verb" moreinfo="none"/></literal>p=0.3

I'm getting the copyedit file ready this morning, and will correct these as follows:
<literal remap="verb" moreinfo="none">n=10</literal> and <literal remap="verb" moreinfo="none">p=0.3</literal>

@AllenDowney
Copy link
Owner Author

AllenDowney commented Jun 7, 2018 via email

@kristenORM
Copy link

Yeah, I have already fixed the figure captions by hand in Atlas (we've split the book file into individual chapter XML docs). Going to make a pass through the PDF to see if there are any others like the footnote you mentioned, but if I miss them, we can certainly fix by hand later.

@AllenDowney
Copy link
Owner Author

AllenDowney commented Jun 7, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants