From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Could inline footnotes be made to work with latex commands that have arguments? Date: Sun, 13 Jun 2010 16:16:55 +0200 Message-ID: <87eigbrp9k.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============0601343432==" Return-path: Received: from [140.186.70.92] (port=50990 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONoId-0007AZ-17 for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 10:36:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONoIb-0005KG-IU for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 10:36:34 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:45719) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONoIb-0005Jt-6p for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 10:36:33 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Scot Becker Cc: Org-mode ml --===============0601343432== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Jun_13_16:16:55_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Jun_13_16:16:55_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Scot Becker wrote: >If I put a LaTeX citation command inside one of org's inline >footnotes, no problem, thus: >Lorem ipsum dolor sit amet,\footnote{\cite{rowe_acts_2007} } >consectetur adipisicing elit, >But if I need an optional argument, no dice.=C2=A0 This: >=C2=A0ex ea commodo consequat.[fn:: \cite[56]{fitzmyer_one_2007}] Duis aut= e irure dolor >exports to LaTeX like this: >ex ea commodo consequat.[fn:: \cite[56]{fitzmyer_one_2007}] Duis aute irur= e dolor >(i.e. there is no \footnote{} macro created) >For consistency in my markup, I would rather use org's inline >footnotes for citations like this (which sometimes number several >inside a footnote).=C2=A0=C2=A0 If I can't, I'd just go ahead and use LaTeX >\footnote{} macros right in my org files. >Is the present behaviour likely to be fixable?=C2=A0 Or should I just >write my footnotes as LaTeX \footnotes{}? This does not look like easy to fix: It are the square brackets of the \cite command that prevent Org mode from recognizing the inline footnote. =20 You could try to work with a LaTeX hack, something along: ,---- | \newcommand{\mycite}[2]{\cite[#1]{#2}} `---- This would provide the macro \mycite with two arguments given in curly brackets that is expanded to the \cite sequence. HTH -- David --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Jun_13_16:16:55_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkwU6FcACgkQma24O1pEeOYpqQD/fo2qX5/5U92XY/T478bghrRL fD5PoE7xJR7kCVON93oBAIkFH0ARPb1lywWoQq7OTgcSnsu/CuEO70mW1ndzmsl2 =okXa -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Jun_13_16:16:55_2010-1-- --===============0601343432== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0601343432==--