From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Re: [BUG] Macro Argument Truncation Date: Sun, 21 Sep 2014 21:50:52 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134787a4d612705039dae49 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVsmK-0004Bo-PB for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 21:51:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVsmJ-0000AH-G8 for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 21:51:00 -0400 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:36256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVsmJ-00009y-2r for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 21:50:59 -0400 Received: by mail-lb0-f169.google.com with SMTP id b12so5920685lbj.28 for ; Sun, 21 Sep 2014 18:50:52 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org --001a1134787a4d612705039dae49 Content-Type: text/plain; charset=UTF-8 Ah, of course. Right under my nose, but since I "knew" I only had one argument, I didn't even think about it. Thanks for the quick reply. On Sun, Sep 21, 2014 at 9:40 PM, Thomas S. Dye wrote: > Aloha Jacob, > > Jacob Gerlach 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 > --001a1134787a4d612705039dae49 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Ah, of course. Right under my nose, but since I "knew= " I only had one argument, I didn't even think about it.

<= /div>
Thanks for the quick reply.

On Sun, Sep 21, 2014 at 9:40 PM, Thomas S. = Dye <tsd@tsdye.com> wrote:
Alo= ha Jacob,

Jacob Gerlach <jacobgerlach@gm= ail.com> writes:

> I am making heavy use of latex strikeout for a report I'm preparin= g in org
> mode. I defined a macro for the necessary latex snippet, but the argum= ent
> 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 manua= l or
> on list archives. Am I doing something wrong or is it a bug?

Arguments to the macro are separated by commas.=C2=A0 Your text gets=
truncated at the first comma.

>From the manual:

/=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\
| You can define text snippets with=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
|=C2=A0 =C2=A0 =C2=A0 #+MACRO: name=C2=A0 =C2=A0replacement text $1, $2 are= arguments |
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
| which can be referenced {{{name(arg1, arg2)}}}.=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |
\=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D/

hth,
Tom

--
Thomas S. Dye
http://www.tsdye.com=

--001a1134787a4d612705039dae49--