emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Latex export: How to handle multiple authors, emails, institutes
@ 2015-11-26 15:26 Fatma Başak Aydemir
  2015-11-26 15:33 ` Rainer M Krug
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fatma Başak Aydemir @ 2015-11-26 15:26 UTC (permalink / raw)
  To: emacs-orgmode

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

I failed (the title says no institute given, does not show emails) since 
the latex block is inserted after \maketitle command. How can insert 
author & institue information in the header?

If related, I'm using Springer LNCS style, org v 20151123.

Best,

-- 
--------------------------------
Fatma Başak Aydemir
PhD Student at ICT International Doctoral School
Department of Information Engineering and Computer Science
University of Trento
Skype: fatmabasak.aydemir
E-mail: aydemir@disi.unitn.it

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Latex export: How to handle multiple authors, emails, institutes
  2015-11-26 15:26 Latex export: How to handle multiple authors, emails, institutes Fatma Başak Aydemir
@ 2015-11-26 15:33 ` Rainer M Krug
  2015-11-26 15:59 ` Thomas S. Dye
  2015-12-04  9:04 ` Eric S Fraga
  2 siblings, 0 replies; 6+ messages in thread
From: Rainer M Krug @ 2015-11-26 15:33 UTC (permalink / raw)
  To: Fatma Başak Aydemir; +Cc: emacs-orgmode



Envoyé de mon iPhone

> Le 26 nov. 2015 à 16:26, Fatma Başak Aydemir <aydemirfb@gmail.com> a écrit :
> 
> 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
> 
> I failed (the title says no institute given, does not show emails) since the latex block is inserted after \maketitle command. How can insert author & institue information in the header?
> 

Check the

#+Latx_header:

Directive - it is added line by line to the preamble. 

Cheers, 

Rainer 

> If related, I'm using Springer LNCS style, org v 20151123.
> 
> Best,
> 
> -- 
> --------------------------------
> Fatma Başak Aydemir
> PhD Student at ICT International Doctoral School
> Department of Information Engineering and Computer Science
> University of Trento
> Skype: fatmabasak.aydemir
> E-mail: aydemir@disi.unitn.it
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Latex export: How to handle multiple authors, emails, institutes
  2015-11-26 15:26 Latex export: How to handle multiple authors, emails, institutes Fatma Başak Aydemir
  2015-11-26 15:33 ` Rainer M Krug
@ 2015-11-26 15:59 ` Thomas S. Dye
  2015-11-26 16:37   ` Fatma Başak Aydemir
  2015-12-04  9:04 ` Eric S Fraga
  2 siblings, 1 reply; 6+ messages in thread
From: Thomas S. Dye @ 2015-11-26 15:59 UTC (permalink / raw)
  To: Fatma Başak Aydemir; +Cc: emacs-orgmode

Aloha Fatma Başak Aydemir,

Fatma Başak Aydemir <aydemirfb@gmail.com> writes:

> 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
>
> I failed (the title says no institute given, does not show emails) since 
> the latex block is inserted after \maketitle command. How can insert 
> author & institue information in the header?
>
> If related, I'm using Springer LNCS style, org v 20151123.

One way is to define a "my-Springer-LNCS" class and add it to
org-latex-classes.

Here is an example that meets the preamble format required by the
journal PLOS One.  In the PLOS One requirement, author edits to the
preamble are restricted to the space between the ** EDIT HERE **
comments.  So, for this style, you'd just add your LaTeX code between
the ** EDIT HERE ** comments.

    (add-to-list 'org-latex-classes
                 '("plos-devel"
                   "\\documentclass[10pt]{article}
    [NO-DEFAULT-PACKAGES]
    [PACKAGES]
    [EXTRA]
    \\doublespacing
    % Text layout
    \\topmargin 0.0cm
    \\oddsidemargin 0.5cm
    \\evensidemargin 0.5cm
    \\textwidth 16cm 
    \\textheight 21cm
    \\bibliographystyle{plos2009}
    \\makeatletter
    \\renewcommand{\\@biblabel}[1]{\\quad#1.}
    \\makeatother
    \\pagestyle{myheadings}
    %% ** EDIT HERE **
    \\DeclareCaptionLabelFormat{si}{#1S#2}    
    
    %% ** EDIT HERE **
    %% PLEASE INCLUDE ALL MACROS BELOW
    %% \\newcommand{\\texttwosuperior}{$^{2}$}
    %% \\newcommand{\\textpm}{$\\pm$}
    \\newcommand{\\rc}{$^{14}C$}
    %% END MACROS SECTION"
                     ("\\section{%s}" . "\\section*{%s}")
                     ("\\subsection{%s}" . "\\subsection*{%s}")
                     ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                     ("\\paragraph{%s}" . "\\paragraph*{%s}")
                     ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Latex export: How to handle multiple authors, emails, institutes
  2015-11-26 15:59 ` Thomas S. Dye
@ 2015-11-26 16:37   ` Fatma Başak Aydemir
  0 siblings, 0 replies; 6+ messages in thread
From: Fatma Başak Aydemir @ 2015-11-26 16:37 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode

Aloha!

Both solutions work for me. I went for adding the code line by line 
using #+LATEX_HEADER for I do not collaborate with the same co-authors 
all the time so I did not want to permanenetly add the configuration to 
my setup.

Thanks!

26/11/15 16:59 tarihinde Thomas S. Dye yazdı:
> Aloha Fatma Başak Aydemir,
>
> Fatma Başak Aydemir <aydemirfb@gmail.com> writes:
>
>> 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
>>
>> I failed (the title says no institute given, does not show emails) since
>> the latex block is inserted after \maketitle command. How can insert
>> author & institue information in the header?
>>
>> If related, I'm using Springer LNCS style, org v 20151123.
> One way is to define a "my-Springer-LNCS" class and add it to
> org-latex-classes.
>
> Here is an example that meets the preamble format required by the
> journal PLOS One.  In the PLOS One requirement, author edits to the
> preamble are restricted to the space between the ** EDIT HERE **
> comments.  So, for this style, you'd just add your LaTeX code between
> the ** EDIT HERE ** comments.
>
>      (add-to-list 'org-latex-classes
>                   '("plos-devel"
>                     "\\documentclass[10pt]{article}
>      [NO-DEFAULT-PACKAGES]
>      [PACKAGES]
>      [EXTRA]
>      \\doublespacing
>      % Text layout
>      \\topmargin 0.0cm
>      \\oddsidemargin 0.5cm
>      \\evensidemargin 0.5cm
>      \\textwidth 16cm
>      \\textheight 21cm
>      \\bibliographystyle{plos2009}
>      \\makeatletter
>      \\renewcommand{\\@biblabel}[1]{\\quad#1.}
>      \\makeatother
>      \\pagestyle{myheadings}
>      %% ** EDIT HERE **
>      \\DeclareCaptionLabelFormat{si}{#1S#2}
>      
>      %% ** EDIT HERE **
>      %% PLEASE INCLUDE ALL MACROS BELOW
>      %% \\newcommand{\\texttwosuperior}{$^{2}$}
>      %% \\newcommand{\\textpm}{$\\pm$}
>      \\newcommand{\\rc}{$^{14}C$}
>      %% END MACROS SECTION"
>                       ("\\section{%s}" . "\\section*{%s}")
>                       ("\\subsection{%s}" . "\\subsection*{%s}")
>                       ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>                       ("\\paragraph{%s}" . "\\paragraph*{%s}")
>                       ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> hth,
> Tom
>

-- 
--------------------------------
Fatma Başak Aydemir
PhD Student at ICT International Doctoral School
Department of Information Engineering and Computer Science
University of Trento
Skype: fatmabasak.aydemir
E-mail: aydemir@disi.unitn.it

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Latex export: How to handle multiple authors, emails, institutes
  2015-11-26 15:26 Latex export: How to handle multiple authors, emails, institutes Fatma Başak Aydemir
  2015-11-26 15:33 ` Rainer M Krug
  2015-11-26 15:59 ` Thomas S. Dye
@ 2015-12-04  9:04 ` Eric S Fraga
  2015-12-04 11:41   ` John Kitchin
  2 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2015-12-04  9:04 UTC (permalink / raw)
  To: Fatma Başak Aydemir; +Cc: emacs-orgmode

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.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Latex export: How to handle multiple authors, emails, institutes
  2015-12-04  9:04 ` Eric S Fraga
@ 2015-12-04 11:41   ` John Kitchin
  0 siblings, 0 replies; 6+ messages in thread
From: John Kitchin @ 2015-12-04 11:41 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Fatma Başak Aydemir, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-04 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-26 15:26 Latex export: How to handle multiple authors, emails, institutes Fatma Başak Aydemir
2015-11-26 15:33 ` Rainer M Krug
2015-11-26 15:59 ` Thomas S. Dye
2015-11-26 16:37   ` Fatma Başak Aydemir
2015-12-04  9:04 ` Eric S Fraga
2015-12-04 11:41   ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).