Re: backslashes in macro arguments

2010-06-18 Thread Ralf Wildenhues
Hi Karl, * Karl Berry wrote on Thu, Jun 17, 2010 at 11:04:41PM CEST: > Other characters that need to be quoted in macro arguments are > curly braces and backslash. > > I committed a new http://ftp.gnu.org/gnu/texinfo/texinfo.tex (and in > gnulib, etc., etc.) which purports to handle \\

Re: backslashes in macro arguments

2010-06-17 Thread Karl Berry
Other characters that need to be quoted in macro arguments are curly braces and backslash. I committed a new http://ftp.gnu.org/gnu/texinfo/texinfo.tex (and in gnulib, etc., etc.) which purports to handle \\ \{ \} in arguments to macro calls. However, \, can't be handled by the method I

Re: backslashes in macro arguments

2010-06-15 Thread Karl Berry
Hi All, Changing \t to \\t ... results in a doubled-up \\ in pdf output. I'll see if I can fix that. It is twisty TeX. Trying to use @backslash{}t failed, because there is no @backslash command (should there be?). Conceivably, but it wouldn't really help you now if we added it, sin

Re: backslashes in macro arguments

2010-06-15 Thread Eric Blake
On 06/14/2010 09:27 PM, Ralf Wildenhues wrote: > * Eric Blake wrote on Mon, Jun 14, 2010 at 11:30:46PM CEST: >> Any other ideas for a workaround that works for both info and pdf? > > Not using macros here? Rather obvious, now that you mention it. > > -...@defmac m4_split (@var{string}, @dvar{r

Re: backslashes in macro arguments

2010-06-14 Thread Patrice Dumas
On Mon, Jun 14, 2010 at 09:35:33PM +, Karl Berry wrote: > Hi Ralf, > > Thanks for the report, as always. > > need to double backslashes in the macro definition, but is silent > about macro arguments. > I think it is makeinfo that is doing the wrong thing here. I don't think so, be

Re: backslashes in macro arguments

2010-06-14 Thread Ralf Wildenhues
* Eric Blake wrote on Mon, Jun 14, 2010 at 11:30:46PM CEST: > Any other ideas for a workaround that works for both info and pdf? Not using macros here? Cheers, Ralf Avoid texinfo bug with backslashes in macro arguments. * doc/autoconf.texi (Text processing Macros) (Common Sh

Re: backslashes in macro arguments

2010-06-14 Thread Karl Berry
Hi Ralf, Thanks for the report, as always. need to double backslashes in the macro definition, but is silent about macro arguments. I seem to recall that it is silent precisely because I noted the discrepancy and was too discouraged to do anything about it. I think it is makeinfo that i

Re: backslashes in macro arguments

2010-06-14 Thread Eric Blake
On 06/14/2010 03:24 PM, Ralf Wildenhues wrote: > Hello bug-texinfo readers, > > with makeinfo 4.13, the following texinfo code snippet from Autoconf: > > @macro dvar{varname, default} > @r...@var{\varname\} = @samp{\defaul...@r{]}@c > @end macro > > @defmac m4_split (@var{string}, @dvar{

backslashes in macro arguments

2010-06-14 Thread Ralf Wildenhues
Hello bug-texinfo readers, with makeinfo 4.13, the following texinfo code snippet from Autoconf: @macro dvar{varname, default} @r...@var{\varname\} = @samp{\defaul...@r{]}@c @end macro @defmac m4_split (@var{string}, @dvar{regexp, [\t ]+}) ... @end defmac is missing the backslash be