-
Notifications
You must be signed in to change notification settings - Fork 0
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
Code running off paragraphs (i.e., the \hbox is too wide problem) #36
Comments
Hmmm, I tried modifying the definition of
but I don't see a decrease in \hbox too wide messages |
Darn, this issue is tricky. I've tried a couple other things to fix this but with no luck. Hopefully the copy-editor will have some suggestions, otherwise we may have to manually put paragraphs in |
This question has been asked and answered on tex stack exchange I'm not yet sure which solution to use. |
I've tried basically all of these and they don't offer a global fix that is text text text thiscode<-thatcode would show up as text text text thiscode<- But I'm not sure that's a good solution for R code, and it doesn't I haven't tried microtype with the book yet, but when I tried it with the That leaves sloppypar, which I would try out, but I can't actually get the On Wed, Apr 15, 2015 at 9:33 PM, Michael Friendly notifications@github.com
|
Scratch that last part about
|
If you haven't sorted this out already, pls fetch the latest version from github, get rid of non-essential |
Commenting out the
|
These were problems in my inputs/indsee.tex file that I fixed. Sorry for the inconvenience. |
Nesting problematic chunks in |
I'll close this now that #56 is open and much cleaner. |
Seems one of the easiest ways to avoid this occurring globally is to modify how
\code{}
is defined by adding a\sloppy
command beforehand. This will stretch the original line with the in-line code to meet the paragraph length, and move the unbreakable code portion to a new line.Here's a minimal example:
There are other approaches that try to define what are called 'discretionary' rules to allow break at symbols like
<
when applicable, but I find these less aesthetically pleasing and don't always work well.The text was updated successfully, but these errors were encountered: