Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-12-04 Thread Eric S Fraga
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



Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-12-04 Thread John Kitchin
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



[O] Latex export: How to handle multiple authors, emails, institutes

2015-11-26 Thread Fatma Başak Aydemir

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: ayde...@disi.unitn.it




Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-11-26 Thread Rainer M Krug


Envoyé de mon iPhone

> Le 26 nov. 2015 à 16:26, Fatma Başak Aydemir  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: ayde...@disi.unitn.it
> 
> 



Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-11-26 Thread Thomas S . Dye
Aloha Fatma Başak Aydemir,

Fatma Başak Aydemir  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



Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-11-26 Thread Fatma Başak Aydemir

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  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: ayde...@disi.unitn.it