Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Taco wrote: > > Right in front of my nose (I was looking in the source files for a > > line that needed a % at the end). Is it because tex is still in > > horizontal mode thanks to the \dontleavehmode, and also because spaces > > after } are not ignored automatically? > > The answer is yes (the new release has a patch for this by adding > \ignorespaces at the end of the \section command). In my plain-TeX days I used \ignorespaces all over in definitions of \section and \subsection for that purpose. Eventually that and other formatting code got too messy (the worst was after I hacked up a \url macro). So rather than reinvent many wheels badly, I switched to ConTeXt. So thanks for the rapid fixes, to that one and to the overfull hbox from the indented \strut. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Sanjoy Mahajan wrote: >>The space is created from the linefeed at the end of the line >> \section{First} >>but I do not quite see why it is not ignored. > > > Right in front of my nose (I was looking in the source files for a > line that needed a % at the end). Is it because tex is still in > horizontal mode thanks to the \dontleavehmode, and also because spaces > after } are not ignored automatically? The answer is yes (the new release has a patch for this by adding \ignorespaces at the end of the \section command). Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
> The space is created from the linefeed at the end of the line > \section{First} > but I do not quite see why it is not ignored. Right in front of my nose (I was looking in the source files for a line that needed a % at the end). Is it because tex is still in horizontal mode thanks to the \dontleavehmode, and also because spaces after } are not ignored automatically? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Sanjoy Mahajan wrote: > I couldn't find the extra space in the source, but here's the minimal > test file in the hope that your eyes and understanding are sharper. The space is created from the linefeed at the end of the line \section{First} but I do not quite see why it is not ignored. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)
Hans wrote: > > Is that better than using \noindentation (suggested by the other > > Mahajan)? The one problem with it that I found is an extra space in > > indentation for the first paragraph. I guess it's because there's a > > space in horizontal mode somewhere that isn't being ignored (as it > > would have been in vertical mode)? > > > hm, try to nail that space down and let me know I couldn't find the extra space in the source, but here's the minimal test file in the hope that your eyes and understanding are sharper. The "I" from Indented? is indented a tiny bit relative to the section number (context 2006.08.02): \setuphead[section][after={\dontleavehmode}] \starttext \section{First} Indented? \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context