Comments (4)
Just like you suggested, this works perfectly:
pandoc example.md -s --natbib --pdf-engine=latexmk -o example.pdf
There is a strange error message from latexmk, but it can be ignored. The PDF is rendered correctly, including citations.
Latexmk: Missing bbl file '/tmp/tex2pdf.-d487ff2e850c87fc/input.bbl' in following:
No file input.bbl.
from pandoc.
Yes. Because when you go straight to pdf with --natbib
, pandoc doesn't run bibtex for you.
If you use --natbib
, you need to go to standalone latex and run the latex and bibtex commands yourself.
As the manual says:
--natbib
Use natbib for citations in LaTeX output. This option is not for use with the--citeproc
option or with PDF output. It is intended for use in producing a LaTeX file that can be processed with bibtex.
from pandoc.
I see, I overlooked that it explicetely says natbib is not for PDF, sorry about that. Just as an idea, if the system already provides the latexmk command, using it would make it possible to render directly to PDF.
from pandoc.
Yes, you can use --pdf-engine=latexmk
, and then it might take care of the bibtex step for you. (You might need some additional --pdf-engine-opt
)
from pandoc.
Related Issues (20)
- Compact (aka "Lazy") syntax for tables if converting to GitHub Flavored Markdown HOT 3
- LaTeX writer sets wrong/outdated locale name for polytonic Greek HOT 2
- Inserting "//" in header-includes command HOT 7
- Markdown to Mediawiki: escaped asterisk is not escaped HOT 1
- audodesk's .dfx support HOT 2
- Exponential runtime for [link](url) HOT 8
- New approach to LaTeX math environments
- Pandoc not identifying typst's #context feature HOT 5
- Add the 'alert' extension to Pandoc standard markdown HOT 3
- Support for Manual Bibliography Sorting HOT 4
- Support Zotero citations in docx writer HOT 6
- pandoc does not pick up the figure which pandoc-crossref specifies using "<figure" HOT 22
- export from google docs: lots of empty html comment inside clode blocks HOT 3
- Support `abstract-title` for Typst format HOT 3
- Docx -> HTML: Pandoc discards comments on tables, table rows and table cells
- Access violation in generated code when reading 0xffffffffffffffff HOT 1
- Doesn't generate link ID if convert to markdown_strict when using link-citations. HOT 1
- Section Cross Reference ID is removed when converting from Quarto markdown to markdown_strict HOT 1
- Several bug with pandoc-xnos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc.