nick-ulle / pandoc-minted Goto Github PK
View Code? Open in Web Editor NEWA pandoc filter that has the LaTeX writer use minted for typesetting code.
License: ISC License
A pandoc filter that has the LaTeX writer use minted for typesetting code.
License: ISC License
Error producing PDF.
! LaTeX Error: Environment minted undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.140 \begin{minted}
Hi @nick-ulle
I'm currently trying to use your script in my thesis. I've installed Python. I've also installed pandocfilters
via pip.
pandoc --no-highlight --filter ./minted.py "$(INPUTDIR)"/*.md \
-o "$(OUTPUTDIR)/thesis.pdf" \
-H "$(STYLEDIR)/preamble.tex" \
--template="$(STYLEDIR)/template.tex" \
--bibliography="$(BIBFILE)" 2>pandoc.log \
--csl="$(STYLEDIR)/ref_format.csl" \
-V fontsize=12pt \
-V papersize=a4paper \
-V documentclass:report \
-N \
--latex-engine-opt='-shell-escape' \
--latex-engine=xelatex \
--verbose
I'm always getting the following error:
! Package minted Error: Missing Pygments output; \inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
In addition to the error message above I have the following in my log file of pandoc:
Error: cannot read infile: [Errno 2] No such file or directory: 'input.pyg'
system returned with code 256
Do you have any idea why this is happening?
Thanks for your help
Phil
When I run pandoc --filter pandoc-minted test.md -o test.pdf
I ge the error:
Error running filter pandoc-minted:
Could not find executable pandoc-minted
I have checked echo $PATH
and I'm sure that the python script is in the path. Any ideas?
Running the command from README.md
as such: ln -rs pandoc-minted.py DIRECTORY/pandoc-minted
(with a real path directory in place of DIRECTORY), I get:
ln: illegal option -- r
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Looking at the man page for ln
, it seems like there is no -r
option for ln
, at least on Mac. Perhaps this should be correctly, or in the case it's valid on linux, made separate for Mac.
pandoc.exe: Error running filter ./pandoc-minted.py
terminateProcess: permission denied (Permission denied)
The pandoc-minted.py file is given permission to excute
It would be useful to be able to set any desired minted options from the respective pandoc fenced_code_attributes
and inline_code_attributes
similar to this
Can it support docx? like http://www.planetb.ca/syntax-highlight-word
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.