From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [BUG] Macro Argument Truncation Date: Sun, 21 Sep 2014 15:40:51 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVscu-0001ek-U8 for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 21:41:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVscn-0006Wu-T0 for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 21:41:16 -0400 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:41094) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XVscn-0006Vk-Li for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 21:41:09 -0400 In-Reply-To: (Jacob Gerlach's message of "Sun, 21 Sep 2014 21:12:30 -0400") 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: Jacob Gerlach Cc: emacs-orgmode@gnu.org 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