Summary
This lesson teaches how to take a finished document to its destination: a journal, a repository or an archive. It explains why journals distribute their own classes, which of them already come with TeX Live and how one's own source is adapted to them, keeping the content and the meaningful commands and abandoning one's own design; it shows the clashes that this adaptation reveals in the log, with the engine and with the bibliography; it gives a checklist for preparing a submission; it describes how arXiv compiles the source by itself, which engines it offers, what to do if the document was typeset with LuaLaTeX, and when the .bib suffices and when the .bbl is uploaded; it presents PDF/A for long-term archiving, with the \DocumentMetadata interface and with the pdfx package; it describes the current state of tagged PDF and of alternative text for figures; and it ends with the Creative Commons licences for sharing a document and its source.
Learning objectives
- Explain what a journal's class decides and adapt one's own source to it, distinguishing what is kept, what is abandoned and what must be changed.
- Interpret in the log the clashes between a template and one's own source, with the engine or with the bibliography system.
- Prepare a submission folder that compiles on its own, without superfluous files and with the bibliography in the form the destination requires.
- Decide how to submit to arXiv a document typeset with LuaLaTeX, on the basis of what its documentation says about engines and bibliographies.
- Produce a PDF/A with
\DocumentMetadataor with pdfx, and correct the version warning that the former produces. - Activate PDF tagging, give figures alternative text and set the document's language and metadata, knowing that tagging is still a work in progress.
Journal classes
In the lesson on document and page classes we saw that the class decides the general form of the document: the text block, the headings, the title page, the abstract. A journal wants all its articles to have the same form, and to have it without depending on each author's taste. From this follows the most widespread practice in the disciplines that write in LaTeX: the journal, or the publisher, distributes its own class, and the author supplies only the content. The journal gains uniformity and less editing work; the author gains not having to imitate someone else's design by hand.
Classes that are already installed
Many of these classes come with TeX Live. To find out whether one is installed, it is enough to ask where its file is with kpsewhich, the command with which the distribution looks for its own files: if it answers with a path, the class is there; if it answers nothing, it is missing, and it is installed as explained in the lesson on the working environment.
$ kpsewhich elsarticle.cls # journals of the publisher Elsevier$ kpsewhich revtex4-2.cls # journals of the American Physical Society$ kpsewhich IEEEtran.cls # publications of the Institute of Electrical and Electronics Engineers$ kpsewhich amsart.cls # articles of the American Mathematical Society$ kpsewhich llncs.cls # Lecture Notes in Computer Science, by SpringerIn a full installation of TeX Live 2025, all five answer with a path, and all five compile with LuaLaTeX a minimal document with fontspec and babel. The log says which version was loaded, in the line that begins with “Document Class”; for example, “elsarticle 2026/01/09, 3.5” or “amsart 2020/05/29 v2.20.6”. It is worth looking at, because the journal may require a more recent version than the distribution's, and in that case one uses the version it provides on its page for authors.
That a class compiles does not mean that it works the same with every engine. Many of them were written for pdfLaTeX and choose their fonts with that engine's encodings. With IEEEtran, for example, the minimal document compiles with LuaLaTeX and fontspec, but the log warns that the font the class asks for does not exist in fontspec's encoding, and substitutes Latin Modern for it: the article no longer has the look the journal expects.
LaTeX Font Warning: Font shape `TU/ptm/m/n' undefined(Font) using `TU/lmr/m/n' instead on input line 503.The rule that follows is simple: before adapting anything, one reads the journal's instructions for authors, which say which class to use, which engine to compile with and which bibliography system to employ. If the journal compiles with pdfLaTeX, the source must compile with pdfLaTeX.
Adapting the source to a template
Adapting an article to a journal's class is, above all, a matter of removing. If the article was written as this course has taught, separating meaning from appearance, the operation is almost mechanical, and it comes down to three decisions.
- The content is kept: the sections, the text, the formulas, the figures with their captions, the labels and the cross-references.
- One's own design is abandoned: the class and its options, the geometry margins, the running heads, the main typeface, the fake headings made with bold and the spaces inserted by hand. All of that is now decided by the journal.
- The meaningful commands are kept: those defined in the lessons on meaningful formatting and on macros and one's own preamble, such as
\workor\concept. Since they name functions and not appearances, they remain valid with any class; if the journal wants another form, it is enough to change their definition.
Here is a short article in its own form, with KOMA-Script, margins fixed by hand, a fake title and abstract, and the bibliography with biblatex.
\documentclass[11pt]{scrartcl}\usepackage{fontspec}\usepackage[english]{babel}\usepackage[margin=2.5cm]{geometry}\usepackage{csquotes}\usepackage[style=authoryear]{biblatex}\addbibresource{fuentes.bib}\newcommand{\work}[1]{\emph{#1}}\begin{document}\begin{center}\Large\textbf{Slow Reading as a Method}\end{center}\vspace{1em}\noindent\textbf{Abstract.} Slow reading is examined as a method.\section{Statement of the Problem}The method goes back to the philological tradition \parencite{eco1977},and \work{Come si fa una tesi di laurea} recommends it.\printbibliography\end{document}The journal, in this example, asks for the elsarticle class with the publisher's author–year style. Its instructions also say something that one's own source could not foresee: the bibliography is made with BibTeX and the natbib package, which the class loads by itself, and not with biblatex. If \usepackage{biblatex} is left in the preamble, the compilation stops, because the two packages cannot coexist.
! Package biblatex Error: Incompatible package 'natbib'.The bibliographic database, by contrast, does not change: the same .bib file from the unit on the bibliographic database serves both BibTeX and biber.
@book{eco1977, author = {Eco, Umberto}, title = {Come si fa una tesi di laurea}, publisher = {Bompiani}, address = {Milano}, year = {1977}}\documentclass[preprint,12pt,authoryear]{elsarticle}\usepackage{fontspec}\usepackage[english]{babel}\newcommand{\work}[1]{\emph{#1}} % kept: it names a function\journal{Journal of Reading Studies}\begin{document}\begin{frontmatter}\title{Slow Reading as a Method}\author{Ann Parker}\affiliation{organization={Department of English}, city={Bristol}, country={United Kingdom}}\begin{abstract}Slow reading is examined as a method.\end{abstract}\begin{keyword}reading \sep method \sep study\end{keyword}\end{frontmatter}\section{Statement of the Problem}The method goes back to the philological tradition \citep{eco1977},and \work{Come si fa una tesi di laurea} recommends it.\bibliographystyle{elsarticle-harv}\bibliography{fuentes}\end{document}Gone are geometry, the fake title, the hand-made space and the bold line: the title, the author, the affiliation, the abstract and the keywords are declared with the class's commands, and the class typesets them in its own way. The citation changed its name, from \parencite to \citep, the natbib command that puts it in parentheses, and the list is requested with \bibliographystyle and \bibliography. \work did not change. Note also that the headings “Abstract” and “Keywords” come from the class, not from babel: they would stay in English even if the document were in another language, because those labels are set by the journal, not by the language of the document.
If the journal's template does not load natbib, biblatex can stay; the only way to know is to read its instructions and, afterwards, the log.
Thesis templates
Many universities offer a template for their theses, which fixes the title page, the margins required for binding, the order of the preliminary parts and, sometimes, the citation style. Its logic is the same as that of a journal, with two cares of its own. First, it should be obtained from the university's official source (its library or its graduate school) and one should confirm that it is the current version, because many old copies circulate. Second, one should check at the beginning, and not at the end, which engine it compiles with and which bibliography system it assumes. A thesis organized as explained in the lesson on long documents, with a main file and one file per chapter, changes template by changing only the main file.
Loading the content…
Completed
Sign in to save your progress