Pandoc

From LaTeX to HTML using Pandoc

2024-12-20

Written by: Cristián Valencia

Pandoc

Notes


Here is and example of how to use pandoc to convert a latex file into html.

pandoc main_v2.tex \
  -f latex \                    # Input format: LaTeX
  -t html \                     # Output format: HTML
  -s \                         # Standalone document
  -o main_v2.html \            # Output file
  --biblatex \                 # Use BibLaTeX
  --bibliography=refs.bib \     # Bibliography file
  --number-sections \          # Add section numbers
  --citeproc \                 # Process citations
  -V colorlinks=true \         # Enable colored links
  -V linkcolor=#d10056 \       # Internal link color
  -V urlcolor=red \            # External link color
  -V toccolor=gray \           # Table of contents color
  -M link-citations=true       # Make citations clickable