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

 
 

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

Submitter:  None
Submitted:  Wed 08 Jan 2014 05:09:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2014-01-08 None Attached File- Added elyxer-bug-single-letter-math-macro-args.lyx, #30225

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code