Getting started

Install

Download kTeX from the kTeX page.

  • Windows (64-bit): run KherveTeX-Setup.exe. The installer is not code-signed yet, so Windows SmartScreen may warn you. Click More info ▸ Run anyway.
  • macOS (Apple Silicon): open the .dmg and drag KherveTeX into Applications. kTeX is not notarised by Apple, so the first time macOS refuses to open it: click Done, then go to System Settings ▸ Privacy & Security, scroll down to Security and click Open Anyway. The step-by-step guide with pictures shows every screen.

Nothing else is needed. The LaTeX engine and an offline cache of TeX packages and fonts ship inside kTeX, so every template compiles on a computer that has never been online.

Updates

kTeX checks for a new version a few seconds after it starts and then every half hour. With Help ▸ Update automatically on (the default), the update downloads by itself:

  • Windows: the update is installed when you quit kTeX.
  • macOS: it installs straight away and offers Restart now or Later.

You can also check at any time with Help ▸ Check for updates….

The Welcome page

kTeX Welcome page
The Welcome page: start a document, pick a template, and choose how you want to work.

The Welcome page opens when kTeX starts. You can open it again from Help ▸ Welcome page…. It offers:

  • Start: New document, Open…, New project (thesis, book)…, and Take the guided tour.
  • Examples & templates: the full template gallery (see Files, templates and projects).
  • Recent documents.
  • How do you want to work? Choose the layout you prefer:
    • Visual + PDF side by side: write on the left, the typeset PDF on the right.
    • Visual + PDF in its own window: handy with two screens.
    • Visual only / Page only, like Word: the PDF is hidden. The page view already looks like the paper.
  • Show this page when kTeX starts: untick it to go straight to your work.

New to kTeX? Choose Take the guided tour. It opens a Welcome tour document that walks through every feature on real pages.

The window

The kTeX window
The kTeX window: menu bar and ribbon at the top, the page you write on, and the compiled PDF on the right.

From top to bottom:

  1. Title bar: shows "kTeX vN — document name", and the current history branch in square brackets.
  2. Menu bar: File, Edit, View, Insert, Format, Tools, Window, Help.
  3. Ribbon: Word-style tabs: Home, Insert, Layout, View, References, Review, History, Compile, Examples, Help.
    • The quick-access corner on the left holds New, Open, Save, Print, Undo and Redo.
    • On the right are Compile PDF, the Auto-compile switch and the User guide.
    • Contextual tabs appear when the cursor is in a table (Table Design, Table Layout), a picture (Picture), a theorem (Theorem) or an equation (Equation).
  4. Document area: the Visual tab, Code tab and Console, with the PDF beside them.
  5. Status bar:
    • PDF zoom (25–300 %) and Fit page width.
    • The "Make the PDF follow the text" switch.
    • The compile progress bar.
    • Recent files, the Documents panel switch and the light/dark theme switch.

Views

ViewHow to show itWhat it is
VisualCtrl+1 · View ▸ Views ▸ VisualThe page you write on, typeset as you type
CodeCtrl+2 · View ▸ Views ▸ CodeThe LaTeX kTeX generates (editable)
PDFCtrl+3 · View ▸ PDFThe compiled PDF
PDF side panelCtrl+4PDF docked beside the editor
DocumentsCtrl+5The panel of documents in a project
ConsoleCtrl+6The compiler log
  • PDF in its own window: use View ▸ PDF in its own window, or Detach PDF on the View tab. Close that window to dock the PDF back.
  • Light or dark: use View ▸ Theme or the switch in the status bar.

Your first document

  1. Press Ctrl+N (or choose Blank document on the Welcome page).
  2. Type a title and choose the Title style from Home ▸ Styles. Press Enter, and the next paragraph is Body text again.
  3. Add a heading with Heading 1, then write your text.
  4. Press Ctrl+M for an equation, or Ctrl+Shift+M for a displayed one.
  5. Watch the PDF update. Auto-compile recompiles about half a second after you stop typing.
  6. Press Ctrl+S to save. The document is saved as a single .ktex file.

kTeX has no autosave yet, so save often. On every save, kTeX can also record a version in the document's history (see History, GitHub and Overleaf).