! LaTeX Error: Missing \begin{document}. #320
-
Hii during converting my Markdown File to pdf I am getting this error even if i have included /begin{document} as shown below -: ERROR -: See the LaTeX manual or LaTeX Companion for explanation. l.1 4 The md file -:title: Protocol Audit Report
\begin{titlepage} \maketitle |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The problem was solved by doing the following -: You can copy this and replace your first line till prepared by with this*---
<-- Your report starts from here --> Do the following in the GitBash or WSL-:pandoc Report.md -o report.pdf --pdf-engine=xelatex --highlight-style=zenburn Plz make sure you have installed latex and pandoc and added it in WSL or GitBash. If you want to check then write pandoc --version and xelatex --version in your gitBash or WSL command pannel. |
Beta Was this translation helpful? Give feedback.
The problem was solved by doing the following -:
You can copy this and replace your first line till prepared by with this
*---
title: "Protocol Audit Report"
author: "Bikalpa Regmi"
date: "April 13, 2025"
output:
pdf_document:
latex_engine: xelatex
toc: true
number_sections: true
header-includes:
--- *
<-- Your report starts from here -->
...
Do the following in the GitBash or WSL-:
pandoc Report.md -o report.pdf --pdf-engine=xelatex --highlight-style=zenburn
Plz make sure you have installed latex and pandoc and …