Export to LaTeX
KERNIT exports a .tex file pre-configured with the correct document class, margin settings, font packages, and bibliography style for your target journal. Compile with pdflatex or xelatex in Overleaf or a local TeX installation.
How to export LaTeX
- Select journal preset
Choose the target journal from the preset list — for example IEEE, Elsevier, or ACS. KERNIT selects the correct document class automatically.
- Write or paste content
Enter your manuscript in the KERNIT editor. Equations written in LaTeX or Markdown math syntax are passed through directly.
- Click "Export LaTeX"
Click the Export LaTeX button. KERNIT generates a .tex file with all preamble settings configured for your target journal.
- Compile the .tex file in Overleaf or locally
Upload the .tex file to Overleaf or compile locally using pdflatex or xelatex. The file is ready to compile without modification.
Document classes by journal
- IEEE — IEEEtran
- ACS / APS — revtex4-2
- Elsevier — elsarticle
- Springer — svjour3
- Nature — nature (custom class)
- PLOS ONE — plos2015
- APA — apa7 (via the apa7 package)
- Lancet / JAMA — article with journal-specific preamble settings
LaTeX packages included
- geometry — page margins and paper size
- fontenc and inputenc — font encoding (pdflatex)
- amsmath — equation environments
- graphicx — figure inclusion
- hyperref — hyperlinks and PDF metadata
- natbib or biblatex — bibliography management, depending on journal requirements
Frequently Asked Questions
- Which TeX engine should I use — pdflatex or xelatex?
- Most KERNIT LaTeX exports compile with pdflatex. Journals that require Unicode fonts or custom OpenType fonts (such as Nature) may need xelatex. The exported .tex file includes a comment at the top indicating the recommended engine.
- How are equations exported from Markdown?
- Inline math (wrapped in $...$) and display math (wrapped in $...$) are passed through as-is into the LaTeX output. Block equations use the equation environment with automatic numbering.
- Is a bibliography (.bib) file included?
- No. KERNIT exports the .tex source file only. You need to provide your own .bib file and reference it in the document. The preamble includes the correct bibliography package (natbib or biblatex) for your journal.
- Is the LaTeX output compatible with Overleaf?
- Yes. Upload the .tex file to Overleaf, add your .bib file, and set the compiler to pdflatex or xelatex as indicated. The file compiles without additional package installation because all required packages are standard in TeX Live.
- What if I get "missing package" errors when compiling?
- All packages used by KERNIT are included in standard TeX Live and MiKTeX distributions. If a package is missing, run "tlmgr install <package-name>" locally, or in Overleaf the packages are pre-installed. Make sure your TeX distribution is up to date.