Prakash Nayak <nayakprak...@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!