Documentation/Getting Started/How to Convert Word to LaTeX
Getting Started

How to Convert Word to LaTeX

Converting Word to LaTeX helps migrate existing documents. While no tool is perfect, these methods give good starting points.

Using Pandoc

Free command-line converter:

# Install pandoc from pandoc.org

# Basic conversion:
pandoc document.docx -o document.tex

# With standalone document:
pandoc document.docx -s -o document.tex

# Extract images too:
pandoc document.docx -s --extract-media=./images -o document.tex

Manual Conversion Tips

For best results, convert section by section:

% Word headings → LaTeX sections:
Heading 1 → \section{}
Heading 2 → \subsection{}
Heading 3 → \subsubsection{}

% Bold/Italic:
**bold** → \textbf{bold}
*italic* → \textit{italic}

% Lists convert automatically with pandoc

Handle Equations

Word equations need special attention:

% If Word uses MathType:
% - Export equations as LaTeX from MathType

% If Word uses built-in equation editor:
% - Pandoc converts many automatically
% - Complex equations may need manual fixes

% Example cleanup:
% Word: x²+y²=z²
% LaTeX: $x^2 + y^2 = z^2$

💡 Tips

  • Do a rough conversion first, then fix formatting manually
  • Tables often need the most cleanup
  • Convert images separately and re-include them

Try This in Bibby AI

Write LaTeX faster with AI auto-complete and instant compilation.

Start Writing Free

Related Tutorials

How to Convert Word to LaTeX | Bibby AI