Shortcuts and troubleshooting

On a Mac, press ⌘ Cmd wherever this page says Ctrl.

File

ActionShortcut
New / New windowCtrl+N / Ctrl+Shift+N
Open / Open in new windowCtrl+O / Ctrl+Shift+O
Save / Save AsCtrl+S / Ctrl+Shift+S
Print / Print previewCtrl+P / Ctrl+Shift+P
QuitCtrl+Q

Editing

ActionShortcut
Undo / RedoCtrl+Z / Ctrl+Y (or Ctrl+Shift+Z)
Cut / Copy / Paste / Select allCtrl+X / C / V / A
Paste SpecialCtrl+Alt+V
Find / ReplaceCtrl+F / Ctrl+H
Bold / Italic / UnderlineCtrl+B / I / U
HyperlinkCtrl+K
HighlightCtrl+Shift+H
New paragraph / line breakEnter / Shift+Enter
Next / previous table cellTab / Shift+Tab
Show formatting marksCtrl+*

Insert

ActionShortcut
Inline maths / displayed equationCtrl+M / Ctrl+Shift+M
Equation builderCtrl+Shift+E
Symbols paletteCtrl+Shift+G
Chemical reaction / structureCtrl+Shift+R / Ctrl+Shift+T
Flowchart builderCtrl+Shift+F
New commentCtrl+Alt+M
Previous / next commentCtrl+Shift+[ / Ctrl+Shift+]

View and compile

ActionShortcut
Visual / Code / PDFCtrl+1 / Ctrl+2 / Ctrl+3
PDF side panel / Documents panel / ConsoleCtrl+4 / Ctrl+5 / Ctrl+6
Fit page widthCtrl+0
Compile PDFCtrl+Shift+C
User guideF1
Spelling listF7

Drawing canvas

ToolKey
Select / Pencil / Eraser / Fill / Colour picker / TextV / P / X / B / K / T
Line / Arrow / DimensionL / A / M
Rectangle / Circle / EllipseR / C / E

Troubleshooting

Windows says "Windows protected your PC". The installer isn't code-signed yet. Click More info ▸ Run anyway.

macOS says the app can't be opened. Right-click kTeX in Applications and choose Open. You only need to do this the first time.

The PDF doesn't update. Check that Auto-compile is on, or press Ctrl+Shift+C. If the Console tab is red, the compile failed; read the last error in the log (Ctrl+6).

A compile error mentions a missing package. Templates compile offline. For a package you added yourself (Document properties ▸ Packages), kTeX downloads it the first time, which needs the internet once. Tools ▸ Compiler ▸ Compiler status… shows whether the engine and package cache are working.

The page on screen doesn't match the PDF exactly. For classes marked beta, the visual page is an approximation. The PDF is always the final result.

A citation shows as [?] or a reference as ??. Run Tools ▸ Check citations. Make sure the label exists (References ▸ Captions & labels…), then compile again.

A long thesis compiles slowly.

  • Use Compile range to typeset only the chapter you're working on.
  • Switch on Skip images.
  • Turn Auto-compile off and compile when you want to.

I need my document from before an edit. Use History ▸ View version history…, select an earlier version, and click Restore this version.

Something else is wrong. kTeX is in beta. Send a description, and a screenshot if you can, with Help ▸ Send feedback (beta)….