Coder Social home page Coder Social logo

Comments (5)

Wandmalfarbe avatar Wandmalfarbe commented on May 8, 2024

Could you give me the document that you're trying to convert? I'll have a look then.

from pandoc-latex-template.

 avatar commented on May 8, 2024

command:
pandoc how_to_convert_markdown_to_pdf.md -o how_to_convert_markdown_to_pdf.pdf --from markdown -s --template eisvogel

how_to_convert_markdown_to_pdf.md.gz

from pandoc-latex-template.

Wandmalfarbe avatar Wandmalfarbe commented on May 8, 2024

Hm, that's strange. The error message tells me that pandoc can't parse something in the template (maybe a $ because that character has a special meaning). When I run it on my mac everything is fine and I can't reproduce the problem.

Can it be that you downloaded the template somehow wrong, and it therefore contains invalid characters (possibly also something like a BOM)?

You could try to redownload the file from the GitHub generated zip here. It may also be possible, that the template does't work with the older pandoc version you are using. You could install the newer version like mentioned on askubuntu. This command should do the trick:

sudo wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb

Unfortunately I don't have an Ubuntu installation ready at the moment.

from pandoc-latex-template.

eben-roux avatar eben-roux commented on May 8, 2024

I had the same issue and Wandmalfarbe is correct about the template being "corrupt".

Initially I didn't follow the instructions properly and added the template to my "source" folder where I had my markdown file. Somehow pandoc used it and it was changed.

Once I actually copied it across to the proper user location I got the mentioned error since the template was altered into an unusable form.

I downloaded the template again and it is much smaller and the error was gone.

Just thought I'd mention that.

from pandoc-latex-template.

 avatar commented on May 8, 2024

I have downloaded zip file as you mentioned and it works. Thank you both.

from pandoc-latex-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.