pandoc

Table of Contents


Markdown to PDF

  • General command:

    pandoc <Document_Name>.md -o <Document_Name>.pdf
    
  • For color links, use option --variable urlcolor=cyan
  • To change the hilight style: --highlight-style=kate
  • To add table of contents: --toc
  • For adding title, author and date:
    ---
    title: Notes of XDAQ Learning
    author: Ram Krishna Sharma
    date: April 15, 2019
    ...
    

Latex to Work conversion

Reference: https://jabranham.com/blog/2016/11/using-pandoc-export-to-word/

Possible errors & solution

  1. Unexpected End
    Error at "source" (line 117, column 1):
    unexpected \end
    \end{document}
    ^

Solution

This happened to me because I forgot to end the curly bracket. In the line below:

The famous quote ``{\textit{history repeats itself}" applies well to the High Energy Physics (HEP) experiments.

In above line you can notice that one of curly bracket has no end.




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Vi-Editor
  • GitLab workflow for CMS-AN
  • awk command
  • Git CheatSheet
  • sed command
  • Condor Jobs
  • Latex Commands
  • XDAQ Basics
  • Terminal Hacks
  • Mac Settings
  • Grep command