Closed geo909 closed 7 years ago
So, my guess is that:
would not cause this.
A few threads are discussing issues like this one, that come down to having extra spaces and carriage returns in source for the sake of readability that cause issues in output formats. David Farmer is brewing the solution to this. And would recommend you leave your source the way you had it and one day (soon) it will no longer be a problem.
On Fri, Jan 20, 2017 at 10:28 AM, geo909 notifications@github.com wrote:
Hi,
In a situation like the following, the phrase "and, therefore," will appear indented in the pdf file produced by mathbook-tex. I believe that since it is in the same
, that should not be the case.
and, therefore, ...
- blah,
- blah,
This is in accord with how latex works, I think. So, in latex, with the code
\begin{enumerate} \item blah, \item blah, \end{enumerate} and, therefore, ...
the phrase "and, therefore, " will not be indented, but adding a line break before it will indent it.
— 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/512, or mute the thread https://github.com/notifications/unsubscribe-auth/AEg3AK1hEWHRraAjGAve-g_UDjBsom0vks5rUPzSgaJpZM4LpmsV .
-- Alex Jordan Mathematics Instructor Portland Community College
Yes! Don't compromise your source just because of a temporary shortcoming in the tools.
On Fri, 20 Jan 2017, Alex Jordan wrote:
So, my guess is that:
and, therefore, ...
- blah,
- blah,
would not cause this.
A few threads are discussing issues like this one, that come down to having extra spaces and carriage returns in source for the sake of readability that cause issues in output formats. David Farmer is brewing the solution to this. And would recommend you leave your source the way you had it and one day (soon) it will no longer be a problem.
On Fri, Jan 20, 2017 at 10:28 AM, geo909 notifications@github.com wrote:
Hi,
In a situation like the following, the phrase "and, therefore," will appear indented in the pdf file produced by mathbook-tex. I believe that since it is in the same
, that should not be the case.
and, therefore, ...
- blah,
- blah,
This is in accord with how latex works, I think. So, in latex, with the code
\begin{enumerate} \item blah, \item blah, \end{enumerate} and, therefore, ...
the phrase "and, therefore, " will not be indented, but adding a line break before it will indent it.
— 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/512, or mute the thread https://github.com/notifications/unsubscribe-auth/AEg3AK1hEWHRraAjGAve-g_UDjBsom0vks5rUPzSgaJpZM4L pmsV .
-- Alex Jordan Mathematics Instructor Portland Community College
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LHZaoE76brxlctI9w6NoOObz0Tvpks5rUP6igaJpZM4LpmsV.gif]
Thanks, I'm cc'ing the list on this one, since all of this will be of interest to many people.
Exactly. You have introduced a newline in your source right after the closing "ol" and consequently a few spaces after it, which are making the indentation. XML/XSL is rather binary about whitespace: all is significant or none is. You would want to retain the spaces in "blah, blah, blah", no? ;-)
On Wednesday I would have said "tough - put the trailing 'and' tight to the closing 'ol' (same line, no space)", which is how I author. HOWEVER, literally late last night, I was sanitizing paragraphs authored like yours and "fixing" exactly this sort of unwanted indentation with a new approach.
I'm going to release that code very soon (this weekend?) and slowly. I'll make its use a conscious decision via a switch, before later making it the default.
Hang on. And I'll even suggest you continue to author as you have, and we will catch up to you.
I hope you'll be willing to test when the call goes out!
Thanks for the report, Rob
On 01/20/2017 10:28 AM, geo909 wrote:
Hi,
In a situation like the following, the phrase "and, therefore," will appear indented in the pdf file produced by mathbook-tex. I believe that since it is in the same |
|, that should not be the case.
|
and, therefore, ... |
- blah,
- blah,
This is in accord with how latex works, I think. So, in latex, with the code
|\begin{enumerate} \item blah, \item blah, \end{enumerate} and, therefore, ... |
the phrase "and, therefore, " will not be indented, but adding a line break before it will indent it.
— 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/512, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cn4q2WbnNWqnkloT0v1adif67ZURks5rUPzSgaJpZM4LpmsV.
Thanks a lot for the quick response, I'm glad to see how active this project is.
@Alex-Jordan's suggestion never crossed my mind but indeed it works, so that solves it for me, thanks a lot. Not really a big deal to change the code until you do the fix.
I'll also be happy to test it.
Ok, but now David will be angry with me for planting that idea :) Sorry!
On Fri, Jan 20, 2017 at 11:16 AM, geo909 notifications@github.com wrote:
Thanks a lot for the quick response, I'm glad to see how active this project is.
@Alex-Jordan https://github.com/Alex-Jordan's suggestion never crossed my mind but indeed it works, so that solves it for me, thanks a lot. Not really a big deal to change the code until you do the fix.
I'll also be happy to test it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/512#issuecomment-274155498, or mute the thread https://github.com/notifications/unsubscribe-auth/AEg3AASLoqan84KqAtDSDSE5gi-EhQ9-ks5rUQgfgaJpZM4LpmsV .
-- Alex Jordan Mathematics Instructor Portland Community College
Haha, sorry to cause a fight!
If you use -stringparam whitespace flexible
this sort of thing should behave properly. Soon, that option will become default behavior. You may see a couple of extra space characters right before the "and" of your example in the LaTeX file, which should not affect PDF output, and I have a plan to get rid of them too.
Feel free to reopen this if there are still unsolved problems. Thanks for bringing this one up.
Thanks again for the quick fix.
Hi,
In a situation like the following, the phrase "and, therefore," will appear indented in the pdf file produced by mathbook-tex. I believe that since it is in the same
<p>
, that should not be the case.This is in accord with how latex works, I think. So, in latex, with the code
the phrase "and, therefore, " will not be indented, but adding a line break before it will indent it.