From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Multiple Author affiliations in Org mode with more than 2 institute affiliations
Date: Thu, 18 Feb 2016 16:31:15 +0100 [thread overview]
Message-ID: <87wpq29gsc.fsf@gmx.us> (raw)
In-Reply-To: CAKBBs5q6+Ybg3ZYZzXRjQiSEK+gyOB+_bcG9ibE-4SkYtxmeMg@mail.gmail.com
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!
next prev parent reply other threads:[~2016-02-18 15:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-02-18 15:44 ` Eric S Fraga
2016-02-18 16:06 ` Prakash Nayak
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=87wpq29gsc.fsf@gmx.us \
--to=rasmus@gmx.us \
--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.