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.
- Keep the whole manuscript (the main file, included files, the
.bibfile and the figures) in one folder and the folders inside it. - Choose File then Import then Import LaTeX manuscript….
- Select the main
.texfile, the one with\begin{document}, and choose Open. - Wait while the Import LaTeX manuscript window reads the manuscript. Long theses can take a few minutes; Cancel stops it.
- Read the Review the import page (below).
- Optionally choose Save summary… to keep the review as a text file.
- Choose Create book.
- 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.
| Group | What 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 imported | Files or pictures that were not found, were outside the manuscript folder or were too large. |
| Imported with changes | Things 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,memoirand compatible classes. - Parts, chapters, sections and lower headings; footnotes and endnotes; lists, quotations, verse and code.
- Your
\newcommandmacros 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
.bibfile, 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
.bibfile, 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
\includepdfand some packages are skipped. Check the review page for them. - A
\pagerefshows 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}.
Related
- Export the manuscript as LaTeX
- Import a manuscript from the library
- How smart import finds chapters and the title page
Still stuck?
Choose Help then Report a problem… in LeafBound to send us the details, or write to support.