PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

Poor<console> displays in Author's Guide #680

Closed sklarjk closed 7 years ago

sklarjk commented 7 years ago

In the PDF version of the "Processing" section of the "A Careful, Quick Minimal Example" chapter, three element displays run off the page. I wasn't sure how to appropriately fix this issue (?).

rbeezer commented 7 years ago

Put a "cd" in mid-paragraph, then put the content in a "cline" within the "cd".

It is a "code = 'c'" analog of "md/mrow" for mid-paragraph math. Sample article should have examples where "verbatim" stuff gets explained.

A PR with a fix would be great. Thanks.

On 08/13/2017 02:56 PM, Jessica K. Sklar wrote:

In the PDF version of the "Processing" section of the "A Careful, Quick Minimal Example" chapter, three element displays run off the page. I wasn't sure how to appropriately fix this issue (?).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/680, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cse_Wj2w0CJiw2aF5k3QeTSzlTp1ks5sX3D3gaJpZM4O1z0u.

ghost commented 7 years ago

Using this code,

  <p>Let us walk through an example of using <c>gdb</c> to explore the

concepts covered in this book. I will use the program in <xref ref="ls-intAndFloat">Listing. I recommend that you get on your Raspberry Pi and follow along as you read this. I will describe the purpose of the commands as we walk through this terminal interaction. The addresses you see on your Raspberry Pi will probably be different than those in this example.

pi@rpi3:~/chp02 $ gcc -g -Wall -o intAndFloat intAndFloat.c
  <p>The <q><c>-g</c></q> option is required to tell the compiler to

include debugger information in the executable program.

  <console>
     <prompt>pi@rpi3:~/chp02 $ </prompt>
     <input>gdb ./intAndFloat</input>
     <output>
     GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1
     Copyright (C) 2014 Free Software Foundation, Inc.

13 printf("The integer is %d and the float is %f\n", anInt, aFloat); 14 15 return 0; 16 } 17 18 ]]>

The li command lists ten lines of source code. Control returns to the gdb program as shown by the (gdb) prompt. Simply pushing the return key will repeat the previous command, and li is smart enough to display the next (up to) ten lines.

  <console>
     <prompt>(gdb)</prompt>
     <input>br 13</input>
     <output>

Breakpoint 1 at 0x1043c: file intAndFloat.c, line 13.

the HTML output is fine, but the PDF is messed up. See attached screen shot and PDF pages.

--Bob

On Sun, Aug 13, 2017 at 3:11 PM, Rob Beezer notifications@github.com wrote:

Put a "cd" in mid-paragraph, then put the content in a "cline" within the "cd".

It is a "code = 'c'" analog of "md/mrow" for mid-paragraph math. Sample article should have examples where "verbatim" stuff gets explained.

A PR with a fix would be great. Thanks.

On 08/13/2017 02:56 PM, Jessica K. Sklar wrote:

In the PDF version of the "Processing" section of the "A Careful, Quick Minimal Example" chapter, three element displays run off the page. I wasn't sure how to appropriately fix this issue (?).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/680, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cse_ Wj2w0CJiw2aF5k3QeTSzlTp1ks5sX3D3gaJpZM4O1z0u.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/680#issuecomment-322070780, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHATXv5yO2IIh06vaC_T91lQzM99GIfks5sX3SWgaJpZM4O1z0u .

sklarjk commented 7 years ago

Hi Rob,

Btw, I started doing trying this out and noticed that the s created a number of what appeared to be overfull \hboxes in the PDF. If you'd still like these changes made, let me know.

On Sun, Aug 13, 2017 at 3:11 PM, Rob Beezer notifications@github.com wrote:

Put a "cd" in mid-paragraph, then put the content in a "cline" within the "cd".

It is a "code = 'c'" analog of "md/mrow" for mid-paragraph math. Sample article should have examples where "verbatim" stuff gets explained.

A PR with a fix would be great. Thanks.

On 08/13/2017 02:56 PM, Jessica K. Sklar wrote:

In the PDF version of the "Processing" section of the "A Careful, Quick Minimal Example" chapter, three element displays run off the page. I wasn't sure how to appropriately fix this issue (?).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/680, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cse_ Wj2w0CJiw2aF5k3QeTSzlTp1ks5sX3D3gaJpZM4O1z0u.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/680#issuecomment-322070780, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbPzcUSPeUNbjdRpEOZsnX1fBJAZ9ks5sX3SWgaJpZM4O1z0u .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

rbeezer commented 7 years ago

Fixed. At 3ab72135.

Generally I'm not concerened about spurious underfull or overfull boxes. There were some consistent boxes we could fix with simple changes (not to source).