|
From: | Jacob Gerlach |
Subject: | Re: [O] [BUG] Macro Argument Truncation |
Date: | Sun, 21 Sep 2014 21:50:52 -0400 |
Aloha Jacob,
Jacob Gerlach <address@hidden> writes:
> I am making heavy use of latex strikeout for a report I'm preparing in org
> mode. I defined a macro for the necessary latex snippet, but the argument
> gets truncated on export.
>
> MWE:
> ----
> * Section
> {{{stk(The argument for this macro is several lines long. It seems
> that after a certain length, the macro argument gets truncated, as the
> tex output from exporting this org buffer contains a properly
> terminated strikeout block with only part of this text.)}}}
> #+MACRO: stk @@latex:\sout{$1}@@
>
> ----
> C-c C-e l L produces:
> ----
> ....
> \sout{The argument for this macro is several lines long. It seems
> that after a certain length}
> % Emacs 24.3.1 (Org mode 8.2.7c)
> ----
>
> I see no mention of any reason for this in the macro node of the manual or
> on list archives. Am I doing something wrong or is it a bug?
Arguments to the macro are separated by commas. Your text gets
truncated at the first comma.
>From the manual:
/============================================================\
| You can define text snippets with |
| |
| #+MACRO: name replacement text $1, $2 are arguments |
| |
| which can be referenced {{{name(arg1, arg2)}}}. |
\============================================================/
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
[Prev in Thread] | Current Thread | [Next in Thread] |