* Multiple Author affiliations in Org mode with more than 2 institute affiliations
@ 2016-02-18 15:05 Prakash Nayak
2016-02-18 15:31 ` Rasmus
2016-02-18 15:44 ` Eric S Fraga
0 siblings, 2 replies; 4+ messages in thread
From: Prakash Nayak @ 2016-02-18 15:05 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
I have this setup in my Orgmode doc and it doesn't export the author
affiliations to latex or pdf. Instead I get a heuristic 'immediate' in
place of authors I have added Latex to Org -babel-Load languages in .emacs
What must be done to allow babel to evaluate Latex code blocks? Is there a
hyperef setup that I must change? Is there an easier way to do it without a
latex code block?
#+Title: Multiple Author affiliations in OrgMode Latex export #+date:
11 Feb 2016#+latex_class: article#+latex_class_options:
[a4paper]#+OPTIONS: toc:nil#+OPTIONS: author:nil#+latex_header:
\usepackage{float}#+latex_header: \usepackage{graphicx}#+latex_header:
\usepackage{authblk}
#+BEGIN_LATEX
\author[1]{Author One}
\author[1]{Author TwoTwo}
\author[1]{Author TwoTwoo}
\author[1,2]{Author TwoTwooo}
\author[1]{Author Three}
\author[1]{Author TwoTw}
\author[1]{Author Four}
\author[1]{Author Fourrr}
\author[2]{Author Fourrrr}
\author[2]{Author Twenty}
\affil[1]{Guided Therapeutics Centre}
\affil[2]{Division of theatre}
#+END_LATEX
*Prakash Nayak*
[-- Attachment #2: Type: text/html, Size: 13569 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Multiple Author affiliations in Org mode with more than 2 institute affiliations
2016-02-18 15:05 Multiple Author affiliations in Org mode with more than 2 institute affiliations Prakash Nayak
@ 2016-02-18 15:31 ` Rasmus
2016-02-18 15:44 ` Eric S Fraga
1 sibling, 0 replies; 4+ messages in thread
From: Rasmus @ 2016-02-18 15:31 UTC (permalink / raw)
To: emacs-orgmode
Prakash Nayak <nayakprakash@gmail.com> writes:
> I have this setup in my Orgmode doc and it doesn't export the author
> affiliations to latex or pdf. Instead I get a heuristic 'immediate' in
> place of authors I have added Latex to Org -babel-Load languages in .emacs
> What must be done to allow babel to evaluate Latex code blocks? Is there a
> hyperef setup that I must change? Is there an easier way to do it without a
> latex code block?
I'm not very satisfied with authblk. Couldn't you use the standard
input method? E.g. you could get
\author{Name1\\Affil1 \and Name2 \and Name3\\Affil2}
As:
#+Macro: aa $1@@latex:\\@@$2
#+Macro: and @@latex:\and@@
#+Author: {{{aa(name1, affil1)}}} {{{and()}}} {{{aa(name2, affil2)}}} {{{and()}}} {{{aa(name3, affil3)}}}
You could probably eliminate the need for {{{and()}}} by having aa look
ahead and check if another call to aa() will come, and if so insert \and.
> #+Title: Multiple Author affiliations in OrgMode Latex export #+date:
> 11 Feb 2016#+latex_class: article#+latex_class_options:
>
> [a4paper]#+OPTIONS: toc:nil#+OPTIONS: author:nil#+latex_header:
> \usepackage{float}#+latex_header: \usepackage{graphicx}#+latex_header:
> \usepackage{authblk}
>
> #+BEGIN_LATEX
> \author[1]{Author One}
> \author[1]{Author TwoTwo}
> \author[1]{Author TwoTwoo}
> \author[1,2]{Author TwoTwooo}
> \author[1]{Author Three}
> \author[1]{Author TwoTw}
> \author[1]{Author Four}
> \author[1]{Author Fourrr}
> \author[2]{Author Fourrrr}
> \author[2]{Author Twenty}
> \affil[1]{Guided Therapeutics Centre}
> \affil[2]{Division of theatre}
> #+END_LATEX
If you insist on this you could use a filter.
Hope it helps,
Rasmus
--
When in doubt, do it!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Multiple Author affiliations in Org mode with more than 2 institute affiliations
2016-02-18 15:05 Multiple Author affiliations in Org mode with more than 2 institute affiliations Prakash Nayak
2016-02-18 15:31 ` Rasmus
@ 2016-02-18 15:44 ` Eric S Fraga
2016-02-18 16:06 ` Prakash Nayak
1 sibling, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2016-02-18 15:44 UTC (permalink / raw)
To: Prakash Nayak; +Cc: emacs-orgmode
On Thursday, 18 Feb 2016 at 10:05, Prakash Nayak wrote:
> I have this setup in my Orgmode doc and it doesn't export the author
> affiliations to latex or pdf.
I've never used authblk but I would imagine that you are expected to
define the authors *before* the \begin{document} line in the generated
LaTeX. Using a latex block (and, by the way, depending on the version
of org you are using, the syntax for these has changed), you will be
generating LaTeX which will appear *after* the beginning of the
document.
I think you want to put each of the \author and \affil lines in the
header:
#+latex_header: \author[1]{Author One}
#+latex_header: \affil[1]{Guided Therapeutics Centre}
etc.
Give this a try.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-619-gca1fb8
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Multiple Author affiliations in Org mode with more than 2 institute affiliations
2016-02-18 15:44 ` Eric S Fraga
@ 2016-02-18 16:06 ` Prakash Nayak
0 siblings, 0 replies; 4+ messages in thread
From: Prakash Nayak @ 2016-02-18 16:06 UTC (permalink / raw)
To: Prakash Nayak, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
Thank you so much, it worked!
*Prakash Nayak*
On Thu, Feb 18, 2016 at 10:44 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Thursday, 18 Feb 2016 at 10:05, Prakash Nayak wrote:
> > I have this setup in my Orgmode doc and it doesn't export the author
> > affiliations to latex or pdf.
>
> I've never used authblk but I would imagine that you are expected to
> define the authors *before* the \begin{document} line in the generated
> LaTeX. Using a latex block (and, by the way, depending on the version
> of org you are using, the syntax for these has changed), you will be
> generating LaTeX which will appear *after* the beginning of the
> document.
>
> I think you want to put each of the \author and \affil lines in the
> header:
>
> #+latex_header: \author[1]{Author One}
> #+latex_header: \affil[1]{Guided Therapeutics Centre}
>
> etc.
>
> Give this a try.
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-619-gca1fb8
>
[-- Attachment #2: Type: text/html, Size: 2415 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-18 16:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 15:05 Multiple Author affiliations in Org mode with more than 2 institute affiliations Prakash Nayak
2016-02-18 15:31 ` Rasmus
2016-02-18 15:44 ` Eric S Fraga
2016-02-18 16:06 ` Prakash Nayak
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).