Skip to content

Production Editor

Charles Pence edited this page Feb 13, 2026 · 30 revisions

In general, the typesetting process involves:

  1. Taking the author’s original documents, regardless of their format, and converting them into a Markdown manuscript.

  2. Creating a metadata file that describes the authors, keywords, title, etc., in a way that will be readable by Pandoc.

  3. Generating a publishable PDF version of the article, as well as a DOCX version that we submit to Michigan Press for conversion into XML.

The Process

To typeset an article, follow (more or less) the following procedure:

Initial Steps

  1. Create a repository for the paper. Each paper will need a Github repository. We traditionally name these based on the author’s last name and the first word of the title, LastName-FirstWord (e.g., Darwin-Origin). Note that, of course, these should be private repositories.

    It is very important that the latest versions of all files be put into this repository, and that the repository be kept up to date. This will ensure that production could be handed off to someone else in the case of a personal emergency.

    We have a repository template that can be used to save time and effort here. Visit https://github.com/ptpbio/production-repo-template, and click on the “Use this template” button in the top right. Select “Create a new repository” below, and you’ll get a new production repository with a pre-configured latexmkrc and gitignore file.

  2. Fetch final paper files. The paper in question should be present in Janeway, in the “Typesetting Plugin” phase of the system. You should also have already been assigned as typesetter for the paper. This should allow you to see whatever the final files are that were accepted at the end of the process by the Executive Editor (whether DOCX, TeX, or something else, and possibly including figure files or other supplementary info).

    It’s of course possible that something might be missing at this stage. If that’s the case, let the Executive Editor know ASAP; it’s their responsibility to chase down those files at this stage.

  3. Build the metadata file. There is a script in the ptpbio-production repository that can generate a basic version of the YAML file (called metadata.yml) that we need to provide all of the paper’s metadata. Run create-metadata in the repository directory, follow the prompts, and then edit the file that results to make sure everything looks right.

    Here’s where you find some of the metadata parts:

    • Volume, issue, and article number: Go to the page in Janeway for the article. At the top right, click “Logs, Documents, and More,” and then click “Edit Metadata.” Scroll down to find “Primary Issue,” which has the slightly unusual format “number(volume) (year)”. Just above that, you should see “Article number,” which is a number that’s unique to each volume.
    • Abstract, acknowledgments, funding, and GenAI statements: Also all available on the “Edit Metadata” page where you find the volume, issue, and article number. If you think that the author wrote something here that they wouldn’t actually want published alongside the article (or if somehow they managed to leave it blank), you can ask them about it in a query to the proofs. If acknowledgments, funding, or GenAI statements are meant to be left empty, replace them with “N/A”.
    • Janeway ID: In the list of articles on the “Typesetting Plugin” page, the first column of the table is the ID. It’s just a number. It’s also the ID in the Janeway URLs for the article, and is also visible on the Edit Metadata page.
    • Submitted, revised, and accepted dates: Go to the page in Janeway for the article. At the top right, click “Logs, Documents, and More,” and then click on “Logs.” At the very beginning of the log you should find the “Submission Complete” event, which is the submission date. The revised date should be set to the last revision before the one that we accepted (i.e., don’t list the revise date if it’s one day before the accepted date!). To find that, look for “Revisions Complete” events in the log. Finally, for the accepted date, find the “Article Decision” event.
    • Running title and author: These should be the shortened, lowercased versions of the author’s name(s), and a shortened version of the title (usually what comes before the colon, if there is one, or maybe just a word or two taken from the title to abbreviate it). The only real guide is to build the PDF and see if the running heads look too long.

From here, the process diverges depending on the format in which the author has submitted the manuscript.

Non-LaTeX Manuscripts

  1. Convert the manuscript to Markdown. Start by converting the author’s document to Markdown (except in the very rare case that it was actually submitted as Markdown, which we do allow). Run:

    pandoc "Manuscript Final Revised Final.docx" -o author-submitted.md
  2. Edit the Markdown. Perform a set of standard editing steps on the Markdown file that results.

    • Section headings should be simple Markdown headers (like # and ##), without section numbers (as Pandoc will automatically number sections).
    • Figures, figure legends, and tables will almost certainly require some assorted and perhaps inventive editing.
    • Other changes that are easily done via find-and-replace are good to do now, like replacing hyphens with dashes between numbers.

    It's also important here to ensure that bibliographies conform to house style. The Executive Editor should have largely done this already, but conversion steps might have introduced some errors. See the Copyediting document for more information about stylistic concerns.

  3. Build a TeX version. You should now be able to build a TeX version of the document by calling Pandoc, passing in the path to the ptpbio-template file in the ptpbio-production repository:

    pandoc -f markdown -t latex author-submitted.md -o author-submitted.tex --standalone --metadata-file=metadata.yml --template=(path-to-ptpbio-template.tex)
  4. Edit the TeX version. A few standard tweaks need to be performed here:

    • Move the bibliography from the body of the text to where it should appear in the TeX template.
    • Make sure there is no duplicated content (like the title, abstract, or acknowledgments, which have all been added to the template from the metadata file).

Skip the next subsection and head to Final Steps.

LaTeX Manuscripts

  1. Create a LaTeX template. The easiest way to quickly generate a template LaTeX file for the typesetting process is to generate an “empty” Markdown file and use Pandoc to transform that, along with our metadata, into a blank template. Run:

    touch empty.md
    pandoc -f markdown -t latex empty.md -o template.tex --standalone --metadata-file=metadata.yml --template=(path-to-ptpbio-template.tex)
  2. Adapt the author’s file. You now need to take the empty TeX template that was just generated and add the author’s document. This process will differ, depending on whether the bibliography is present in Bib[La]TeX, or whether there is an included .bbl file, etc., etc.

  3. Edit the TeX file. See the Copyediting document for more information about stylistic concerns. Especially important here is to double-check the bibliography, and to see that any special mathematics that the authors have used are still compiling correctly with our fonts.

Final Steps

  1. Make a proofs version. Copy the initial TeX file to proofs.tex. Add the class option proofs to the ptpb document class (\documentclass[proofs]{ptpbio}). This adds line numbers so that you can propose corrections, if needed. If you had any questions for the authors while editing, make sure to prepare them to be sent to the author.

  2. Send proofs for approval. Send the proofs, along with any questions to the authors, for final approval. The best way to do this is in Janeway itself, so that the sending of the e-mail will appear in the document log. Visit Janeway, click on “Logs, Documents and More” at the top right, and then click “Archive Page.” Under “Correspondence Author” right at the top of this page, you will see the name of the corresponding author, and then a small envelope icon. Clicking on the envelope icon will pop up a window that allows you to compose a mail to the author and attach the proofs.

    At proof time, there is one further requirement from the press that we need to honor. If the article contains figures, the authors will need to provide alt-text for their figures. There isn’t a good place prior to this for us to collect this information. Copy-paste the following paragraph into the e-mail to the authors:

    University of Michigan Press requests that, for accessibility reasons, we provide alt-text – text which describes the content of the image for visually impaired readers – for every image that appears in the journal. When you return your proofs, please also provide a Word document containing this alt text for all of your paper’s figures. For more information about how to write this alt-text, visit Michigan’s Describing Visual Resources website, or consult their collection of sample alt-text descriptions.

    Note that when the authors return their comments on the proofs, if there have been changes to the title, abstract, funding statement, generative AI statement, or keywords, these changes need to be incorporated in Janeway! Go to the Janeway page for the paper, click “Logs, Documents and More” in the top right, and then click “Edit Metadata” to change the abstract.

  3. Finalize the document. Create a “final” version of the TeX document, including the author’s requested changes, if any. Build it as PDF and double-check that everything looks good.

  4. Convert to ODT. We now need to convert the document to ODT, so that it can be later converted to XML by the contractors that are hired by Michigan Press.

    1. Copy the file to todoc.tex (or some other filename).
    2. Edit that file and add the simple class option to the ptpb document class.
    3. Build the PDF and make sure that it compiles. You should have a PDF that is output in nearly “default” LaTeX formatting.
    4. Run make4ht --format odt todoc.tex to produce an ODT file.
    5. rm *.tmp, since this sometimes generates huge amounts of temporary files.
  5. Check the ODT file. Open the ODT and make sure that everything actually converted. This is both a surprisingly good conversion and, occasionally, produces some very strange outputs. It’s worth taking ten minutes to see that things actually produced the document that we expect.

  6. Upload the results. Go back to the page in Janeway in the Typesetting Plugin for this article. The PDF version should be uploaded in the “Current Galleys” section, by clicking on the “Upload New Typeset File” button. Make sure the “Label” for this file reads “PDF”.

    The ODT version, on the other hand, needs to be uploaded into the “Files for Typesetting” section. This is a bit more complicated. You’ll need to go to the “Logs, Documents and More” button at the top right of the article page, and click on “Document Management.” Then, on that page, click on the “Upload File” button at the bottom. Give it the label of “Final ODT Version for XML” and upload the ODT as a “Manuscript File.”

    All source figure files should also be uploaded under the “Files for Typesetting” section. Make sure they are labeled something like “Figure N (final)” or similar, so that the press will be able to see them.

    Finally, the alt-text file, if the paper contains figures, should be uploaded here as well.

  7. Complete typesetting assignment. Head back to your main dashboard in Janeway (the first option on the sidebar, not the link for the Typesetting Plugin). Once there, click on the pink button reading “You have N typesetting tasks.” Find the assignment for this article in the list, click on “View Assignment,” and then mark the typesetting task as complete by clicking on the blue “Complete Typesetting” button. This will send the paper back to the Executive Editor.

    IMPORTANT: Do not click on the “Complete Typesetting” button in the Typesetting Plugin (under Actions), as this will move the article to the next phase instead of returning it to the Executive Editor, a step that only Michigan Press will complete.

  8. Archive the repository. When the paper’s final versions are uploaded to Janeway and all typesetting work is done, head back to Github and archive the repository (Settings -> Archive this repository). Note that you should not delete the repository; if we ever need to issue corrections or retractions, it is important that we have the history of the typesetting process preserved.

Bibliography Generation

BibLaTeX

If the author has used BibLaTeX, and/or if you have received the references for the article in an electronic format and you can convert them to .bib, then you should answer “yes” when create-metadata asks if you would like to use BibLaTeX. Configuration is largely automatic; for more information about citation commands, see the documentation of the biblatex-chicago package.

If the author provided their bibliography in the classic BibTeX format instead of BibLaTeX (and errors are caused as a result), you can use the convertbibliography script to convert and clean it.

BibTeX

If the author provided their bibliography as a .bbl file, or if they directly pasted the thebibliography environment into their source TeX document, then you should answer “yes” when create-metadata asks if you would like to use BibTeX. Configuration will be available in the template.

Manual

If you answer “no” to both of those questions, then you will be given a place in which to copy/paste the basic bibliography, for instance as it was converted from a Word document.

LaTeX Configuration

Typesetting of our final journal article PDFs requires a fairly recent installation of LaTeX (which includes, at least, BibLaTeX and XeLaTeX). You will also need to configure your LaTeX environment with the custom PTPBio article class. For this, you’ll need to do the following (once):

  1. Go clone a copy of the PTPBio production repository. This repo includes our custom LaTeX classes that we use for the journal.

  2. Install those files into your LaTeX tree. You will need to create a texmf directory (the directory which contains custom TeX files), at the location that is appropriate for your platform. (On Linux, this is often ~/texmf or ~/.texmf; on Mac OS X, this is often ~/Library/texmf.) This is called, in TeX speak, TEXMFHOME.

    Create the directory TEXMFHOME/tex/latex/ptpbio. Copy the ptpb.cls, ptpbio-logo.png, cc.pdf, and cc-by.pdf files into that directory, which will make them available to your TeX system. NOTE: Don’t forget to occasionally go update these files!

  3. Install the PTPBio fonts in your system font directory. Note that XeLaTeX uses the fonts that your system has installed in the normal way, not any kind of special TeX fonts, so these fonts do not need to be installed under TEXMFHOME.

Clone this wiki locally