bugeLyXer - Bugs: bug #41150, Single-letter arguments to math...

 
 

bug #41150: Single-letter arguments to math macro are parsed wrongly

Submitted by:  None
Submitted on:  Wed 08 Jan 2014 05:09:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 08 Jan 2014 05:09:31 PM UTC, original submission:

Adjacent single-letter arguments to a math macro are not parsed correctly in eLyXer 1.2.5 generating HTML output.

This math macro usage, as found in the attached file 'elyxer-bug-single-letter-math-macro-args.lyx':

\global\long\def\mymacro#1#2{(#1,#2)}

$\mymacro BC$

$\mymacro A{\mymacro BC}$

produces HTML output that looks like this:

(BC, #2)
(A, \mymacroBC)

whereas the expected output is:

(B, C)
(A, (B, C))

One work-around is to define the macro using optional arguments: then single-letter arguments are enclosed in brackets, avoiding the parsing problem.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #30225:  elyxer-bug-single-letter-math-macro-args.lyx added by None (2kB - application/x-lyx)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Wed 08 Jan 2014 05:09:31 PM UTCNoneAttached File-=>Added elyxer-bug-single-letter-math-macro-args.lyx, #30225

Back to the top


Powered by Savane 3.1-cleanup