From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Multiple Author affiliations in Org mode with more than 2 institute affiliations Date: Thu, 18 Feb 2016 16:31:15 +0100 Message-ID: <87wpq29gsc.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWQYB-00018T-VK for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 10:31:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWQY8-0005O1-Od for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 10:31:27 -0500 Received: from plane.gmane.org ([80.91.229.3]:40263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWQY8-0005N6-HI for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 10:31:24 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aWQY7-0005tJ-6u for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 16:31:23 +0100 Received: from 62.80.108.11 ([62.80.108.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Feb 2016 16:31:23 +0100 Received: from rasmus by 62.80.108.11 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Feb 2016 16:31:23 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Prakash Nayak 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!