From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Latex export: How to handle multiple authors, emails, institutes Date: Fri, 4 Dec 2015 09:04:44 +0000 Message-ID: <87io4evb2r.fsf@ucl.ac.uk> References: <5657248C.3030101@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4mIO-000386-K3 for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 04:04:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4mIL-0002uA-Cb for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 04:04:52 -0500 Received: from mail-db3on0125.outbound.protection.outlook.com ([157.55.234.125]:58368 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4mIL-0002u3-0l for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 04:04:49 -0500 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: Fatma =?utf-8?Q?Ba=C5=9Fak?= Aydemir Cc: emacs-orgmode@gnu.org On Thursday, 26 Nov 2015 at 16:26, Fatma Ba=C5=9Fak Aydemir wrote: > Hi all, > > I'm trying to write a conference paper which has multiple authors from=20 > multiple institues. I tried to insert author infor by adding the=20 > following block > > #+BEGIN_LaTeX > \author{First Author\inst{1}, Second Author\inst{1}, Third Author\inst{2}} > \authorrunning{Author et al.} > \institute{University of X, Country\\ > \email{\{f.author, s.author\}@uX.edu} > \and > University of Y, CountryY\\ > \email{\{t.author\}@uY.edu}} > #+END_LATEX This does not work because LaTeX blocks are inserted *after* the \begin{document} line. You need to put this all in the preamble which you can achieve using Tom's suggestion (define a new LaTeX class for org) and/or using #+latex_header: lines. I have a combination of these for articles for Springer books/journals. I define the following org LaTeX class, based on the author.tex example I got from the Springer templates: #+begin_src emacs-lisp (add-to-list 'org-latex-classes '("springer" "\\documentclass[graybox]{svmult} % choose options for [] as required from the list % in the Reference Guide \\usepackage{mathptmx} % selects Times Roman as basic font \\usepackage{helvet} % selects Helvetica as sans-serif font \\usepackage{courier} % selects Courier as typewriter font \\usepackage{type1cm} % activate if the above 3 fonts are % not available on your system % \\usepackage{makeidx} % allows index generation \\usepackage{graphicx} % standard LaTeX graphics tool % when including figure files \\usepackage{multicol} % used for the two-column index \\usepackage[bottom]{footmisc}% places footnotes at page bottom % see the list of further useful packages % in the Reference Guide \\makeindex % used for the subject index % please use the style svind.ist with % your makeindex program " ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) #+end_src and then use this in my org file for the publication as follows: #+begin_src org ,#+latex_class: springer # Article/chapter specific information: title, authors, institution ,#+title: The full title of the chapter ,#+author: The authors ,#+latex_header: \titlerunning{The running title for long titles}=20 ,#+latex_header: \institute{The institute information} # I also include article/chapter specific requirements here # beyond those required by the Springer class ,#+latex_header: \usepackage{algorithm} ,* The paper starts here #+end_src I hope this helps. --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6