emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Scot Becker <scot.becker@gmail.com>
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 16:16:55 +0200	[thread overview]
Message-ID: <87eigbrp9k.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <AANLkTikX2aOVL4ReMLVlswb3qmUv9q9FvkiIDOTvgR9b@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1399 bytes --]


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: application/pgp-signature, Size: 230 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

  reply	other threads:[~2010-06-13 14:36 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 [this message]
2010-06-13 22:23   ` Scot Becker

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eigbrp9k.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=scot.becker@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).