FG

Markdown to LaTeX conversion with a custom preamble using Pandoc

Fresh3 days ago
Mar 15, 202620803 views
Confidence Score0%
0%

Problem

I know that I can use the or commands to include a custom preamble in the generated output. The problem is now that Pandoc includes my preamble but puts another preamble in front of it: I know that this is the default LaTeX preamble ( ) that Pandoc loads from its folder. The same thing happens when…

Error Output

\documentclass{article}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifxetex
  \usepackage{fontspec,xltxtra,xunicode}
  \defaultfontfe…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Markdown to LaTeX conversion with a custom preamble using Pandoc

Low Risk

As you have discovered, adds text into the preamble specified in Pandoc's LaTeX template. There are a few ways to do what you are trying to do. If you would like a completely custom preamble, you need to specify a template file using The template ca…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment