From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Re: Could inline footnotes be made to work with latex commands that have arguments? Date: Sun, 13 Jun 2010 23:23:20 +0100 Message-ID: References: <87eigbrp9k.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2099352506==" Return-path: Received: from [140.186.70.92] (port=35466 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONvag-0006vq-G3 for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 18:23:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONvaf-0007fS-Gl for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 18:23:42 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:48562) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONvaf-0007fN-Bd for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 18:23:41 -0400 Received: by vws5 with SMTP id 5so605906vws.0 for ; Sun, 13 Jun 2010 15:23:40 -0700 (PDT) In-Reply-To: <87eigbrp9k.wl%dmaus@ictsoc.de> 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: David Maus Cc: Org-mode ml --===============2099352506== Content-Type: multipart/alternative; boundary=e0cb4e887b3ffd19e20488f0d2da --e0cb4e887b3ffd19e20488f0d2da Content-Type: text/plain; charset=ISO-8859-1 Thanks, David, for your response. I suspected it might not be that easy to fix. I hadn't thought of making a custom command which only used mandatory arguments. I'll try it out and see if I like it. Thanks, Scot On Sun, Jun 13, 2010 at 3:16 PM, David Maus wrote: > > 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. This: > > > ex ea commodo consequat.[fn:: \cite[56]{fitzmyer_one_2007}] Duis aute > irure dolor > > >exports to LaTeX like this: > > >ex ea commodo consequat.[fn:: \cite[56]{fitzmyer_one_2007}] Duis aute > irure 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). 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? 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. > > 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 > > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > --e0cb4e887b3ffd19e20488f0d2da Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, David, for your response.=A0 I suspected it might not be that easy = to fix.=A0

I hadn't thought of making a custom command which on= ly used mandatory arguments.=A0 I'll try it out and see if I like it.
Thanks,

Scot


On Sun, Jun 13, 2= 010 at 3:16 PM, David Maus <dmaus@ictsoc.de> wrote:

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.=A0 This:

>=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 i= rure 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).=A0=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?=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.

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
=A0-- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

--e0cb4e887b3ffd19e20488f0d2da-- --===============2099352506== 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 --===============2099352506==--