Debian Codegraph @

texmf-dist/doc/latex/quantumarticle/quantum-template.tex

raw
1 \documentclass[a4paper,twocolumn,11pt,accepted=2017-05-09]{quantumarticle}
2 \pdfoutput=1
3 \usepackage[utf8]{inputenc}
4 \usepackage[english]{babel}
5 \usepackage[T1]{fontenc}
6 \usepackage{amsmath}
7 \usepackage{hyperref}
8
9 \usepackage{tikz}
10 \usepackage{lipsum}
11
12 \newtheorem{theorem}{Theorem}
13
14 \begin{document}
15
16 \title{Template demonstrating the quantumarticle document class}
17
18 \author{Lídia del Rio}
19 \affiliation{Institute for Theoretical Physics, ETH Zurich, 8093 Zurich, Switzerland}
20 \orcid{0000-0002-2445-2701}
21 \author{Christian Gogolin}
22 \email{[email protected]}
23 \homepage{http://quantum-journal.org}
24 \orcid{0000-0003-0290-4698}
25 \thanks{You can use the \texttt{\textbackslash{}email}, \texttt{\textbackslash{}homepage}, and \texttt{\textbackslash{}thanks} commands to add additional information for the preceding \texttt{\textbackslash{}author}. If applicable, this can also be used to indicate that a work has previously been published in conference proceedings.}
26 \affiliation{Covestro Deutschland AG, Kaiser-Wilhelm-Allee 60, 51373 Leverkusen, Germany}
27 \author{Marcus Huber}
28 \affiliation{Institute for Quantum Optics \& Quantum Information (IQOQI), Austrian Academy of Sciences, Boltzmanngasse 3, Vienna A-1090, Austria}
29 \orcid{0000-0003-1985-4623}
30 \author{Cassandra Granade}
31 \affiliation{Microsoft Research, Quantum Architectures and Computation Group, Redmond, WA 98052, USA}
32 \author{Johannes Jakob Meyer}
33 \affiliation{Dahlem Center for Complex Quantum Systems, Freie Universität Berlin, 14195 Berlin, Germany}
34 \orcid{0000-0003-1533-8015}
35 \author{Victor V. Albert}
36 \affiliation{Institute for Quantum Information and Matter \& Walter Burke Institute for Theoretical Physics, Caltech, Pasadena, CA 91125, USA}
37 \orcid{0000-0002-0335-9508}
38 \maketitle
39
40 \begin{abstract}
41 In the standard, \texttt{twocolumn}, layout the abstract is typeset as a bold face first paragraph.
42 Quantum also supports a \texttt{onecolumn} layout with the abstract above the text.
43 Both can be combined with the \texttt{titlepage} option to obtain a format with dedicated title and abstract pages that are not included in the page count.
44 This format can be more suitable for long articles.
45 The \texttt{abstract} environment can appear both before and after the \texttt{\textbackslash{}maketitle} command and calling \texttt{\textbackslash{}maketitle} is optional, as long as there is an \texttt{abstract}.
46 Both \texttt{abstract} and \texttt{\textbackslash{}maketitle} however must be placed after all other \texttt{\textbackslash{}author}, \texttt{\textbackslash{}affiliation}, etc.\ commands, see also Section~\ref{sec:title-information}.
47 If you provide the ORCID number of an author by using the \texttt{\textbackslash{}orcid} command, the author name becomes a link to their page on \href{http://orcid.org/}{orcid.org}.
48 \end{abstract}
49
50 In the \texttt{twocolumn} layout and without the \texttt{titlepage} option a paragraph without a previous section title may directly follow the abstract.
51 In \texttt{onecolumn} format or with a dedicated \texttt{titlepage}, this should be avoided.
52
53 Note that clicking the title performs a search for that title on \href{http://quantum-journal.org}{quantum-journal.org}.
54 In this way readers can easily verify whether a work using the \texttt{quantumarticle} class was actually published in Quantum.
55 If you would like to use \texttt{quantumarticle} for manuscripts not yet accepted in Quantum, or not even intended for submission to Quantum, please use the \texttt{unpublished} option to switch off all Quantum related branding and the hyperlink in the title.
56 By default, this class also performs various checks to make sure the manuscript will compile well on the arXiv.
57 If you do not intend to submit your manuscript to Quantum or the arXiv, you can switch off these checks with the \texttt{noarxiv} option.
58 On the contrary, by giving the \texttt{accepted=YYYY-MM-DD} option, with \texttt{YYYY-MM-DD} the acceptance date, the note ``Accepted in Quantum YYYY-MM-DD, click title to verify'' can be added to the bottom of each page to clearly mark works that have been accepted in Quantum.
59
60 \section{Figures}
61 \begin{figure}[t]
62 \centering
63 \includegraphics{example-plot.pdf}
64 \caption{Every figure must have an informative caption and a number.
65 The caption can be placed above, below, or to the side of the figure, as you see fit.
66 The same applies for tables, boxes, and other floating elements.
67 Plots that integrate seamlessly with \texttt{quantumarticle} can be obtained through the Python package rsmf, as described in Section~\ref{sec:plots}.
68 Figures spanning multiple columns can by typeset with the usual \texttt{figure*} environment.}
69 \label{fig:figure1}
70 \end{figure}
71 See Fig.~\ref{fig:figure1} for an example of how to include figures.
72 Feel free to place them at the top or bottom of the page, or in the middle of a paragraph as you see fit.
73 Try to place them on the same page as the text referring to them.
74 A figure on the first page can help readers remember and recognize your work more easily.
75
76 \section{Sectioning and equations}
77 Sections, subsections, subsubsections, and paragraphs should be typeset with the standard LaTeX commands.
78 You can use the standard commands for equations.
79 \begin{align}
80 \label{emc}
81 E &= m\,c^2\\
82 a^2 + b^2 &= c^2\\
83 H\,|\psi\rangle &= E\,|\psi\rangle\\
84 (\openone \otimes A)\,(B \otimes \openone) &= B \otimes A
85 \end{align}
86 For multi-line equations \texttt{align} is \href{http://tex.stackexchange.com/questions/196/eqnarray-vs-align}{preferable} over \texttt{eqnarray}.
87 Please refrain from using the latter.
88 For complex equations you may want to consider using the \texttt{IEEEeqnarray} environment from the \texttt{IEEEtrantools} package.
89 Whether you prefer to refer to equations as Eq.~\eqref{emc}, Equation~\ref{emc}, or just \eqref{emc} is up to you, but please be consistent and use the \texttt{\textbackslash{}eqref\{\dots\}} command instead of writing \texttt{(\textbackslash{}ref\{\dots\})}.
90 As a courtesy for your readers and referees, please suppress equation numbers only if there is a specific reason to do so, to not make it unnecessarily difficult to refer to individual results and steps in derivations.
91
92 \paragraph{Paragraphs}
93 The paragraph is the smallest unit of sectioning.
94 Feel free to end the paragraph title with a full stop if you find this appropriate.
95
96 \subsection{References and footnotes}
97 \label{sec:subsec1}
98 Footnotes\footnote{Only use footnotes when appropriate.} appear in the bottom of the page.
99 Please do not mix them with your references.
100
101 Citations to other works should appear in the References section at the end of the work.
102
103 \begin{theorem}[DOI links are required]
104 Important: As Quantum is a member of Crossref, all references to works that have a DOI must be hyperlinked according to the DOI. Those links must start with \texttt{https://doi.org/} (preferred), or \texttt{http://dx.doi.org/}. Direct links to the website of the publisher are not sufficient. Also so-called \href{https://shortdoi.org/}{shortDOIs} are unfortunately not accepted by Crossref (despite shortDOI being their own service). Thus all authors must use regular full DOIs that usually start with \mbox{``10.''} as in \url{https://doi.org/10.1103/PhysRevLett.120.103201} instead of the associated shortDOI starting with \mbox{``10/''} as in \url{https://dx.doi.org/10/gc5sj2}.
105 \end{theorem}
106
107 This can be achieved in several ways, depending on how you are formatting your bibliography.
108 This is done easiest using the custom bibliography style for Quantum,
109 please refer to its separate demo for details (\texttt{quantum\_bst\_demo.pdf}).
110 Suppose the DOI of an article \cite{examplecitation} that you want to cite is \texttt{10.22331/idonotexist}.
111 If you are formatting your bibliography manually, you can cite this work using the following in your \texttt{thebibliography} environment:
112 \begin{verbatim}
113 \bibitem{examplecitation}
114 Name Surname,
115 \href{https://doi.org/10.22331/
116 idonotexist}{Quantum
117 \textbf{123}, 123456 (1916).}
118 \end{verbatim}
119
120 \begin{theorem}[One citation per bibitem]
121 Important: If you are formatting your bibliography manually, please do not group multiple citations into one \texttt{\textbackslash{}bibitem}.
122 Having to search through multiple references to find the cited result makes your work less accessible for authors and grouping references can screw up our automatic extraction of citations.
123 \end{theorem}
124
125 We encourage the use of BibTeX to generate your bibliography from the BibTeX meta-data provided by publishers.
126 For DOI linking to work, the BibTeX file must contain the \texttt{doi} field as for example in:
127 \begin{verbatim}
128 @article{examplecitation,
129 author = {Surname, Name},
130 title = {Title},
131 journal = {Quantum},
132 volume = {123},
133 page = {123456},
134 year = {1916},
135 doi = {10.22331/idonotexist},
136 }
137 \end{verbatim}
138 As the arXiv does not run BibTeX for you, you \href{https://arxiv.org/help/submit_tex}{must include the .bbl file} that BibTeX creates alongside your .tex source files when submitting your work.
139
140 Several authors had problems because of Unicode characters in their BibTeX files.
141 Be advised that \href{http://wiki.lyx.org/BibTeX/Tips}{BibTeX does not support Unicode characters}.
142 All special characters must be input via their respective LaTeX commands.
143
144 If you are using BibTeX, you can load the \texttt{natbib} package by putting
145 \begin{verbatim}
146 \usepackage[numbers]{natbib}
147 \end{verbatim}
148 in the preamble of your document and then use the \texttt{quantum} citation style by including your BibTeX bibliography \texttt{mybibliography.bib} where you want the bibliography to appear as follows:
149 \begin{verbatim}
150 \bibliographystyle{quantum}
151 \bibliography{mybibliography}
152 \end{verbatim}
153 The quantumarticle class automatically detects that the \texttt{natbib} package was loaded and redefines the \texttt{\textbackslash{}doi} command to create hyperlinks.
154 This is likely the easiest option if you are converting from another document class.
155 The \texttt{quantum.bst} bibliography style is currently a beta feature and feedback is very much appreciated. Please open a \href{https://github.com/quantum-journal/quantum-journal/issues}{github issue} or write an email to \href{mailto:[email protected]}{[email protected]} if you come across any bugs or possible improvements.
156
157 If you want to use BibLaTeX, you can instead add
158 \begin{verbatim}
159 \usepackage[backend=bibtex]{biblatex}
160 \addbibresource{mybibliography.bib}
161 \end{verbatim}
162 to the preamble of your document and then output the bibliography with
163 \begin{verbatim}
164 \printbibliography
165 \end{verbatim}
166 where appropriate.
167 You then have to upload the .bbl file along with the other source files when submitting to the arXiv.
168 Due to incompatibilities between different BibLaTeX versions we unfortunately cannot recommend this option \cite{biblatexsubmittingtothearxiv}.
169
170 The quantumarticle class automatically detects that the \texttt{biblatex} package was loaded, sets the default option \texttt{doi=true} to include the DOI in the bibliography, and declares a suitable field format to make it a hyperlink.
171 Due to issues with \texttt{biber} we recommend to use the \texttt{bibtex} backend of \texttt{biblatex}.
172
173 More information on how to get DOI links in your document can be found on StackExchange \cite{howtogetdoilinksinbibliography,automaticallyaddingdoifieldstoahandmadebibliography}.
174 Feel free to change the appearance of citations in any way you like by using a different \texttt{bibliographystyle} or via the advanced mechanisms provided by BibLaTeX.
175 The only two requirements are that citations must uniquely identify the cited work and that they must contain a DOI hyperlink whenever possible.
176
177 \begin{theorem}[Use \texttt{\textbackslash pdfoutput=1}]
178 In order to get correct line breaks within hyperlinks and to make sure the arXiv produces a PDF as output, please add the line
179 \begin{verbatim}
180 \pdfoutput=1
181 \end{verbatim}
182 within the first 5 lines of your main LaTeX file, as suggested by the arXiv \cite{arxivpdfoutput}.
183 \end{theorem}
184
185 \section{Plots}
186 \label{sec:plots}
187 We strongly encourage authors to use the vector based PDF format for plots. The Python package \href{https://pypi.org/project/rsmf/}{rsmf} (``right-size my figures'') together with the widely used plotting library \href{https://matplotlib.org/}{matplotlib} can be used to create plots that integrate seamlessly with the \texttt{quantumarticle} document class. In the Quantum \href{https://github.com/quantum-journal/quantum-journal/}{GitHub repository}, you find the script \href{https://raw.githubusercontent.com/quantum-journal/quantum-journal/master/example-plot.py}{example-plot.py} that shows how these tools were used to create Figure~\ref{fig:figure1}.
188
189
190 \begin{theorem}[Be mindful of the colorblind]
191 About 4\% of the worlds population are affected by some form of color vision deficiency or color blindness.
192 Please make sure that your plots and figures can still be understood when printed in gray scale and avoid the simultaneous use of red and green, as the inability to distinguish these two colors is the most widespread form of color vision deficiency.
193 \end{theorem}
194
195 \section{Summary section}
196 Longer articles should include a section that, early on, explains the main results, their limitations, and assumptions.
197 This section can be used to, for example, present the main theorem, or provide a summary of the results for a wider audience.
198
199 \section{Extra packages}
200 Quantum encourages you to load the following extra packages:
201 \begin{verbatim}
202 \usepackage[utf8]{inputenc}
203 \usepackage[english]{babel}
204 \usepackage[T1]{fontenc}
205 \usepackage{amsmath}
206 \usepackage{hyperref}
207 \end{verbatim}
208 If you do not load the \texttt{hyperref} package, quantumarticle automatically loads it for you.
209 Packages that change font settings, such as \texttt{times} or \texttt{helvet} should be avoided.
210
211 \section{Wide equations}
212 Very wide equations can be shown expanding over both columns using the \texttt{widetext} environment.
213 In \texttt{onecolumn} mode, the \texttt{widetext} environment has no effect.
214 \begin{widetext}
215 \begin{equation}
216 |\mathrm{AME}(n=6,q=5)\rangle=\sum_{i,j,k=0}^4 |i,j,k,i+j+k,i+2j+3k,i+3j+4k\rangle
217 \end{equation}
218 \end{widetext}
219 To enable this feature in \texttt{twocolumn} mode, \texttt{quantumarticle} relies on the package \texttt{ltxgrid}.
220 Unfortunately this package has a bug that leads to a sub-optimal placement of extremely long footnotes.
221
222 \section{Title information}
223 \label{sec:title-information}
224 You can provide information on authors and affiliations in the common format also used by \texttt{revtex}:
225 \begin{verbatim}
226 \title{Title}
227 \author{Author 1}
228 \author{Author 2}
229 \affiliation{Affiliation 1}
230 \author{Author 3}
231 \affiliation{Affiliation 2}
232 \author{Author 4}
233 \affiliation{Affiliation 1}
234 \affiliation{Affiliation 3}
235 \end{verbatim}
236 In this example affiliation 1 will be associated with authors 1, 2, and 4, affiliation 2 with author 3 and affiliation 3 with author 4.
237 Repeated affiliations are automatically recognized and typeset in \texttt{superscriptaddress} style.
238 Alternatively you can use a format similar to that of the \texttt{authblk} package and the \texttt{elsarticle} document class to specify the same affiliation relations as follows:
239 \begin{verbatim}
240 \title{Title}
241 \author[1]{Author 1}
242 \author[1]{Author 2}
243 \author[2]{Author 3}
244 \author[1,3]{Author 4}
245 \affil[1]{Affiliation 1}
246 \affil[2]{Affiliation 2}
247 \affil[3]{Affiliation 3}
248 \end{verbatim}
249
250 \section{LyX layout}
251 \label{sec:lyx-layout}
252
253 The quantumarticle document class comes bundled with a \href{https://raw.githubusercontent.com/quantum-journal/quantum-journal/master/quantum-lyx-template.lyx}{LyX layout} that allows to typeset manuscripts with the LyX document processor instead of directly writing LaTeX code. Please be aware that this is a beta feature that might not receive the same level of support as the quantumarticle document class itself.
254
255 \section{Version}
256 \label{sec:version}
257 This is quantumarticle version v\quantumarticleversion.
258
259 \bibliographystyle{quantum}
260 \begin{thebibliography}{9}
261 \bibitem{examplecitation}
262 Name Surname,
263 \href{https://doi.org/10.22331/
264 idonotexist}{Quantum
265 \textbf{123}, 123456 (1916).}
266
267 \bibitem{biblatexsubmittingtothearxiv}
268 StackExchange discussion on \href{http://tex.stackexchange.com/questions/26990/biblatex-submitting-to-the-arxiv}{``Biblatex: submitting to the arXiv'' (2017-01-10)}
269
270 \bibitem{arxivpdfoutput}
271 Help article published by the arXiv on \href{https://arxiv.org/help/submit_tex}{``Considerations for TeX Submissions'' (2017-01-10)}
272
273 \bibitem{howtogetdoilinksinbibliography}
274 StackExchange discussion on \href{http://tex.stackexchange.com/questions/3802/how-to-get-doi-links-in-bibliography}{``How to get DOI links in bibliography'' (2016-11-18)}
275
276 \bibitem{automaticallyaddingdoifieldstoahandmadebibliography}
277 StackExchange discussion on \href{http://tex.stackexchange.com/questions/6810/automatically-adding-doi-fields-to-a-hand-made-bibliography}{``Automatically adding DOI fields to a hand-made bibliography'' (2016-11-18)}
278 \end{thebibliography}
279
280
281
282 \onecolumn
283 \appendix
284
285 \section{First section of the appendix}
286 Quantum allows the usage of appendices.
287 If you want your appendices to appear in \texttt{onecolumn} mode but the rest of the
288 document in \texttt{twocolumn} mode, you can insert the command
289 \texttt{\textbackslash{}onecolumn\textbackslash{}newpage} or just
290 \texttt{\textbackslash{}onecolumn} before
291 \texttt{\textbackslash{}appendix}.
292
293
294 \subsection{Subsection}
295 Ideally, the command \texttt{\textbackslash{}appendix} should be put before the appendices to get appropriate section numbering.
296 The appendices are then numbered alphabetically, with numeric (sub)subsection numbering.
297 Equations continue to be numbered sequentially.
298 \begin{equation}
299 A \neq B
300 \end{equation}
301 You are free to change this in case it is more appropriate for your article, but a consistent and unambiguous numbering of sections and equations must be ensured.
302
303 \section{Problems and Bugs}
304 In case you encounter problems using the quantumarticle class please analyze the error message carefully and look for help online; \href{http://tex.stackexchange.com/}{http://tex.stackexchange.com/} is an excellent resource.
305 If you cannot resolve a problem, please open a bug report in our bug-tracker under \href{https://github.com/quantum-journal/quantum-journal/issues}{https://github.com/quantum-journal/quantum-journal/issues}.
306 You can also contact us via email under \href{mailto:[email protected]}{[email protected]}, but it may take significantly longer to get a response.
307 In any case, we need the full source of a document that produces the problem and the log file showing the error to help you.
308
309 \end{document}