Skip to content

Import a LaTeX manuscript with BibTeX

Import a LaTeX book, thesis or article with its included files, macros, BibTeX bibliography, figures and equations.

Academic plan and above

LeafBound reads LaTeX itself; you do not need a TeX installation. It follows the main file through its \input and \include files, expands your own macros, reads the BibTeX bibliography and the figures, and typesets every equation. Before the book is made, it shows a review of everything that did not come in exactly.

  1. Keep the whole manuscript (the main file, included files, the .bib file and the figures) in one folder and the folders inside it.
  2. Choose File then Import then Import LaTeX manuscript….
  3. Select the main .tex file, the one with \begin{document}, and choose Open.
  4. Wait while the Import LaTeX manuscript window reads the manuscript. Long theses can take a few minutes; Cancel stops it.
  5. Read the Review the import page (below).
  6. Optionally choose Save summary… to keep the review as a text file.
  7. Choose Create book.
  8. Choose the book type, then Continue, check the details and choose Open book.

The review page

  • A line with the main file, the document class, how many files were read, the bibliography files and the word count.
  • Counts for parts, chapters, sections, footnotes, endnotes, citations (with the number of sources), equations (and how many were kept as text), figures (and how many are missing), tables and cross-references (and how many are unresolved).
  • Either Everything was imported, or Check these before publishing with one box per group below. Each line names the command or file, how many times it appears, what happened, and every file and line where it is.
GroupWhat it means
Unknown commands and environments (kept as readable text)LeafBound did not know the command, so its arguments are in the book as plain text.
Not importedFiles or pictures that were not found, were outside the manuscript folder or were too large.
Imported with changesThings that came in, but differently: for example a hand-made title page replaced by LeafBound's, a reference with no matching label, an EPS or PDF figure converted to a picture.
Layout commands not used (LeafBound's theme sets layout)Spacing, page and font commands that the theme replaces.

Save the summary

Save summary… opens the Save import summary window, already in the manuscript folder with the name <main file> import summary.txt. The text file has the counts and every item with its file and line, so you can work through it in your editor.

What comes across

  • Classes book, report, article, memoir and compatible classes.
  • Parts, chapters, sections and lower headings; footnotes and endnotes; lists, quotations, verse and code.
  • Your \newcommand macros and new environments, expanded.
  • Equations, typeset as editable equations. Any the typesetter cannot draw are kept as LaTeX text and counted.
  • Labels and cross-references, numbered and linked.
  • Citations from the .bib file, which fill the source library and a generated bibliography.
  • Figures with captions. PDF figures are converted to a picture at print resolution, because ebooks cannot hold PDF.
  • Tables.

Limits

  • Citations are set in LeafBound's citation style (Chicago notes with a bibliography). An author and year style or a numeric style in the manuscript is not reproduced.
  • Without a .bib file, a compiled bibliography (.bbl) is imported as a fixed list, and citations show its labels.
  • TeX programming (conditionals, \expandafter) is not run; the first branch of a condition is used.
  • TikZ drawings, pages added with \includepdf and some packages are skipped. Check the review page for them.
  • A \pageref shows its target's number and links to it, since ebooks have no fixed pages.
  • The generated bibliography is placed at the end of the book.
  • Heading levels are raised where a level is skipped, so ebook readers get a clean outline.
  • Picture descriptions are taken from the caption or the file name. Review them before publishing.
  • One file can be up to 16 MB, and the manuscript up to 128 MB in up to 2,000 files. Files outside the manuscript folder, and files named by an absolute path, are not read.
  • EPS and TIFF figures that LeafBound cannot convert are reported; save them as PNG, JPEG or SVG and add them.

If the import fails

A message titled Could not import the LaTeX manuscript gives the reason. The usual one is that the chosen file is not the main file: choose the .tex file that has \begin{document}.

LaTeX import is part of the Academic plan. A box set can also include a LaTeX manuscript.
Import only material you have the right to use. LeafBound does not check who owns a file.

Still stuck?

Choose Help then Report a problem… in LeafBound to send us the details, or write to support.

Contact supportError messages