From: Scot Becker <scot.becker@gmail.com>
To: David Maus <dmaus@ictsoc.de>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Could inline footnotes be made to work with latex commands that have arguments?
Date: Sun, 13 Jun 2010 23:23:20 +0100 [thread overview]
Message-ID: <AANLkTilHRV9PMU6t2RBFvpksb07KHgsb6i4xUQ5VEVpE@mail.gmail.com> (raw)
In-Reply-To: <87eigbrp9k.wl%dmaus@ictsoc.de>
[-- Attachment #1.1: Type: text/plain, Size: 1717 bytes --]
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 <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. 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
>
[-- Attachment #1.2: Type: text/html, Size: 2385 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
prev parent reply other threads:[~2010-06-13 22:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 23:13 Could inline footnotes be made to work with latex commands that have arguments? Scot Becker
2010-06-13 14:16 ` David Maus
2010-06-13 22:23 ` Scot Becker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTilHRV9PMU6t2RBFvpksb07KHgsb6i4xUQ5VEVpE@mail.gmail.com \
--to=scot.becker@gmail.com \
--cc=dmaus@ictsoc.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.