GithubHelp home page GithubHelp logo

Comments (8)

Wandmalfarbe avatar Wandmalfarbe commented on May 12, 2024

There seems to be an issue with the user data directory and the lookup of latex files in version 2.2.2:

Fix regression finding templates in user data directory (#4777). Under version 2.2.1 and prior pandoc found latex templates in the templates directory under the data directory, but this broke in 2.2.2.

The new pandoc version 2.2.2.1 should fix this issue. You can download it from the release page.

from pandoc-latex-template.

mrichman avatar mrichman commented on May 12, 2024

I'm on 2.2.2:

pandoc --version
pandoc 2.2.2
Compiled with pandoc-types 1.17.5.1, texmath 0.11.0.1, skylighting 0.7.2
Default user data directory: /User/Mark/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

from pandoc-latex-template.

mrichman avatar mrichman commented on May 12, 2024

I was able to work around this by using --template ~/.pandoc/templates/eisvogel.latex

from pandoc-latex-template.

Wandmalfarbe avatar Wandmalfarbe commented on May 12, 2024

I accidentally wrote the wrong version number in the first comment. The problem is fixed in version 2.2.2.1. So you just have to update. Sorry for the confusion.

from pandoc-latex-template.

hidde-jan avatar hidde-jan commented on May 12, 2024

Bug seems present in Pandoc 2.3.1. Pandoc doesn't even look in the data-dir it seems.

from pandoc-latex-template.

kopax avatar kopax commented on May 12, 2024

I have the same issue with pandoc 2.7.3, should --data-dir be fixed?

from pandoc-latex-template.

cagix avatar cagix commented on May 12, 2024

according to the pandoc manual in section "General writer options" pandoc would search for template files in $DATADIR/templates/, where $DATADIR can be specified using the --data-dir option ...

that is, pandoc requires a certain subfolder structure in $DATADIR. you can not specify the folder containing the template directly via the option --data-dir ...

from pandoc-latex-template.

cagix avatar cagix commented on May 12, 2024

just tried this (pandoc 2.7.3): created a subfolder templates/ in my working copy, copied eisvogel.tex to this subfolder, opened a terminal at examples/book/ and issued pandoc book.md -o book.pdf --template eisvogel.tex --data-dir ../../ ... worked pretty well :)

ok, pandoc book.md -o book.pdf --template ../../eisvogel.tex works, too ...

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.