From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Latex export: How to handle multiple authors, emails, institutes Date: Fri, 04 Dec 2015 06:41:02 -0500 Message-ID: References: <5657248C.3030101@gmail.com> <87io4evb2r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4ojc-0003hV-E0 for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 06:41:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4ojZ-0002jp-7l for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 06:41:08 -0500 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:34376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4ojZ-0002jY-3W for emacs-orgmode@gnu.org; Fri, 04 Dec 2015 06:41:05 -0500 Received: by qkfo3 with SMTP id o3so42337576qkf.1 for ; Fri, 04 Dec 2015 03:41:04 -0800 (PST) In-reply-to: <87io4evb2r.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: Fatma =?utf-8?Q?Ba=C5=9Fak?= Aydemir , emacs-orgmode@gnu.org I have also done something like this for different journals here: https://github.com/jkitchin/jmax/blob/master/ox-manuscript.el#L64 Eric S Fraga writes: > On Thursday, 26 Nov 2015 at 16:26, Fatma Başak Aydemir wrote: >> Hi all, >> >> I'm trying to write a conference paper which has multiple authors from >> multiple institues. I tried to insert author infor by adding the >> 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} > ,#+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. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu