emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Could inline footnotes be made to work with latex commands that have arguments?
@ 2010-06-08 23:13 Scot Becker
  2010-06-13 14:16 ` David Maus
  0 siblings, 1 reply; 3+ messages in thread
From: Scot Becker @ 2010-06-08 23:13 UTC (permalink / raw)
  To: Org-mode ml


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

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{}?

Scot

[-- Attachment #1.2: Type: text/html, Size: 923 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Could inline footnotes be made to work with latex commands that have arguments?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: David Maus @ 2010-06-13 14:16 UTC (permalink / raw)
  To: Scot Becker; +Cc: Org-mode ml


[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Could inline footnotes be made to work with latex commands that have arguments?
  2010-06-13 14:16 ` David Maus
@ 2010-06-13 22:23   ` Scot Becker
  0 siblings, 0 replies; 3+ messages in thread
From: Scot Becker @ 2010-06-13 22:23 UTC (permalink / raw)
  To: David Maus; +Cc: Org-mode ml


[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-13 22:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).