Re: [patch] Increase precision of TexRow in captions

2016-10-20 Thread Jean-Marc Lasgouttes
Le 18/10/2016 à 12:06, Guenter Milde a écrit : Whitespace after a macro (\begin) is ignored, after "\begin{something}" not. Even if it will not necessarily change something in the output, it is safer to escape it with %. Fair enough. JMarc

Re: [patch] Increase precision of TexRow in captions

2016-10-19 Thread Enrico Forestieri
On Wed, Oct 19, 2016 at 10:31:50PM +0200, Guillaume Munch wrote: > > Test-wise, is there anything to adapt? Are there tests specific to the > non-nice export? I don't know, but I don't think so. -- Enrico

Re: [patch] Increase precision of TexRow in captions

2016-10-19 Thread Kornel Benko
Am Mittwoch, 19. Oktober 2016 um 22:31:50, schrieb Guillaume Munch > Le 19/10/2016 à 01:23, Enrico Forestieri a écrit : > > > > As always. But I don't understand. Given your goal, this is something > > only useful for the non-nice export. So, why introducing a gratuitous > >

Re: [patch] Increase precision of TexRow in captions

2016-10-19 Thread Guillaume Munch
Le 19/10/2016 à 01:23, Enrico Forestieri a écrit : As always. But I don't understand. Given your goal, this is something only useful for the non-nice export. So, why introducing a gratuitous change? Note that readability is subjective. I find that this change would reduce readability. You

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Pavel Sanda
Guillaume Munch wrote: > What do you think? I do not really have opinion about such change. P

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Enrico Forestieri
On Tue, Oct 18, 2016 at 11:40:19PM +0200, Guillaume Munch wrote: > Le 18/10/2016 à 22:05, Enrico Forestieri a écrit : > >On Tue, Oct 18, 2016 at 09:47:28PM +0200, Guillaume Munch wrote: > >> > >>Yes, this can be limited to the non-nice export. How strongly do you > >>feel about it? Given the other

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Guillaume Munch
Le 18/10/2016 à 22:05, Enrico Forestieri a écrit : On Tue, Oct 18, 2016 at 09:47:28PM +0200, Guillaume Munch wrote: Yes, this can be limited to the non-nice export. How strongly do you feel about it? Given the other replies I am tempted to push my patch as is. I have no strong opinion on

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Enrico Forestieri
On Tue, Oct 18, 2016 at 09:47:28PM +0200, Guillaume Munch wrote: > > Yes, this can be limited to the non-nice export. How strongly do you > feel about it? Given the other replies I am tempted to push my patch as is. I have no strong opinion on this. However, sometimes I use sed or awk for

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Guillaume Munch
Le 18/10/2016 à 09:20, Enrico Forestieri a écrit : Maybe this can be limited to the non "nice" export? This is the format that is exported only for previewing and not for generating latex code meant for later editing. Specifically, this is the .tex file you get in the temp dir, where you could

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Guenter Milde
On 2016-10-18, Jean-Marc Lasgouttes wrote: > Le 18/10/2016 à 01:10, Guillaume Munch a écrit : >> captions in listings appear as: >> \begin{lstlisting}% >> [caption={Caption}] >> \end{lstlisting} > In this case and in the sub-caption case, I do not think that LaTeX > needs the "%".

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Jean-Marc Lasgouttes
Le 18/10/2016 à 01:10, Guillaume Munch a écrit : captions in listings appear as: \begin{lstlisting}% [caption={Caption}] \end{lstlisting} In this case and in the sub-caption case, I do not think that LaTeX needs the "%". JMarc

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Enrico Forestieri
On Tue, Oct 18, 2016 at 01:10:36AM +0200, Guillaume Munch wrote: > Le 17/10/2016 à 04:12, Pavel Sanda a écrit : > > Guillaume Munch wrote: > > > Dear list, > > > > > > The attached patches add safe line breaks ("%\n") to the output, to > > > crucially increase the precision of

Re: [patch] Increase precision of TexRow in captions

2016-10-18 Thread Guenter Milde
On 2016-10-17, Guillaume Munch wrote: > Le 17/10/2016 à 04:12, Pavel Sanda a écrit : >> Guillaume Munch wrote: >>> Dear list, >>> The attached patches add safe line breaks ("%\n") to the output, to >>> crucially increase the precision of forward/reverse-search and error >>> reporting of captions.

Re: [patch] Increase precision of TexRow in captions

2016-10-17 Thread Guillaume Munch
Le 17/10/2016 à 04:12, Pavel Sanda a écrit : Guillaume Munch wrote: Dear list, The attached patches add safe line breaks ("%\n") to the output, to crucially increase the precision of forward/reverse-search and error reporting of captions. This is especially useful as these captions introduce a

Re: [patch] Increase precision of TexRow in captions

2016-10-16 Thread Pavel Sanda
Guillaume Munch wrote: > Dear list, > > The attached patches add safe line breaks ("%\n") to the output, to > crucially increase the precision of forward/reverse-search and error > reporting of captions. This is especially useful as these captions > introduce a discontinuity in the TexRow. The

[patch] Increase precision of TexRow in captions

2016-10-16 Thread Guillaume Munch
Dear list, The attached patches add safe line breaks ("%\n") to the output, to crucially increase the precision of forward/reverse-search and error reporting of captions. This is especially useful as these captions introduce a discontinuity in the TexRow. The change is trivial but since this