diff --git a/epj-template.org b/epj-template.org new file mode 100644 index 0000000..e5a378d --- /dev/null +++ b/epj-template.org @@ -0,0 +1,179 @@ +# -*- mode: org; org-confirm-babel-evaluate: nil; org-babel-noweb-wrap-start: "«"; org-babel-noweb-wrap-end: "»"; -*- + +#+TITLE: Title-Goes-Here + +* Authors +* Institutions +* Abstract +* PACS + +#+NAME: pacs-codes-table +| PACS-KEY | PACS-KEY-Description-Text | +|------------+----------------------------| +| PACS-key01 | text discribing PACS-key01 | +| PACS-key02 | text discribing PACS-key02 | + +** Generate PACS Latex Code + +#+NAME: epj-pacs-codes-latex +#+BEGIN_SRC elisp :var pacs_codes=pacs-codes-table :results latex replace :var join_delim=" \\and\n" + (string-join (mapcar (lambda (x) (format " {%s}{%s}" (car x) (nth 1 x))) pacs_codes) join_delim) +#+END_SRC + +#+RESULTS: epj-pacs-codes-latex +#+BEGIN_EXPORT latex + {PACS-key01}{text discribing PACS-key01} \and + {PACS-key02}{text discribing PACS-key02} +#+END_EXPORT + +* Introduction +* Latex Template + +#+NAME: european-physical-journal-latex-template +#+BEGIN_SRC latex :eval never + %%%%%%%%%%%%%%%%%%%%%%% file template.tex %%%%%%%%%%%%%%%%%%%%%%%%% + % + % This is a template file for The European Physical Journal + % + % Copy it to a new file with a new name and use it as the basis + % for your article + % + %%%%%%%%%%%%%%%%%%%%%%%% Springer-Verlag %%%%%%%%%%%%%%%%%%%%%%%%%% + % + \begin{filecontents}{leer.eps} + %!PS-Adobe-2.0 EPSF-2.0 + %%CreationDate: Mon Jul 13 16:51:17 1992 + %%DocumentFonts: (atend) + %%Pages: 0 1 + %%BoundingBox: 72 31 601 342 + %%EndComments + + gsave + 72 31 moveto + 72 342 lineto + 601 342 lineto + 601 31 lineto + 72 31 lineto + showpage + grestore + %%Trailer + %%DocumentFonts: Helvetica + \end{filecontents} + % + \documentclass[epj]{svjour} + % Remove option referee for final version + % + % Remove any % below to load the required packages + %\usepackage{latexsym} + \usepackage{graphics} + % etc + % + \begin{document} + % + \title{Insert your title here} + \subtitle{Do you have a subtitle?\\ If so, write it here} + \author{First author\inst{1} \and Second author\inst{2}% etc + % \thanks is optional - remove next line if not needed + \thanks{\emph{Present address:} Insert the address here if needed}% + } % Do not remove + % + \offprints{} % Insert a name or remove this line + % + \institute{Insert the first address here \and the second here} + % + \date{Received: date / Revised version: date} + % The correct dates will be entered by Springer + % + \abstract{ + Insert your abstract here. + % + \PACS{ + «epj-pacs-codes-latex()» + } % end of PACS codes + } %end of abstract + % + \maketitle + % + \section{Introduction} + \label{intro} + Your text comes here. Separate text sections with + \section{Section title} + \label{sec:1} + and \cite{RefJ} + \subsection{Subsection title} + \label{sec:2} + as required. Don't forget to give each section + and subsection a unique label (see Sect.~\ref{sec:1}). + % + % For one-column wide figures use + \begin{figure} + % Use the relevant command for your figure-insertion program + % to insert the figure file. + % For example, with the option graphics use + \resizebox{0.75\textwidth}{!}{% + \includegraphics{leer.eps} + } + % If not, use + %\vspace{5cm} % Give the correct figure height in cm + \caption{Please write your figure caption here} + \label{fig:1} % Give a unique label + \end{figure} + % + % For two-column wide figures use + \begin{figure*} + % Use the relevant command for your figure-insertion program + % to insert the figure file. See example above. + % If not, use + \vspace*{5cm} % Give the correct figure height in cm + \caption{Please write your figure caption here} + \label{fig:2} % Give a unique label + \end{figure*} + % + % For tables use + \begin{table} + \caption{Please write your table caption here} + \label{tab:1} % Give a unique label + % For LaTeX tables use + \begin{tabular}{lll} + \hline\noalign{\smallskip} + first & second & third \\ + \noalign{\smallskip}\hline\noalign{\smallskip} + number & number & number \\ + number & number & number \\ + \noalign{\smallskip}\hline + \end{tabular} + % Or use + \vspace*{5cm} % with the correct table height + \end{table} + % + % BibTeX users please use + % \bibliographystyle{} + % \bibliography{} + % + % Non-BibTeX users please use + \begin{thebibliography}{} + % + % and use \bibitem to create references. + % + \bibitem{RefJ} + % Format for Journal Reference + Author, Journal \textbf{Volume}, (year) page numbers. + % Format for books + \bibitem{RefB} + Author, \textit{Book title} (Publisher, place year) page numbers + % etc + \end{thebibliography} + + + \end{document} + + % end of file template.tex + + +#+END_SRC + +* Latex Output + +#+BEGIN_SRC latex :noweb yes :eval never :tangle yes + «european-physical-journal-latex-template» +#+END_SRC