Closed Kristinita closed 3 years ago
Uh to be honest i don't know how windows path lookups work exactly. what happens if you try using --filter=C:\Users\SashaChernykh\AppData\Roaming\npm\pandoc-url2cite
?
Status: Partially fixed :moon:
This command:
pandoc --filter=C:\Users\SashaChernykh\AppData\Roaming\npm\pandoc-url2cite.cmd --citeproc minimal.md -o minimal.pdf
But I think that it would be nice to use pandoc-url2cite without full path declaring.
citation-cache.json
successfully generated for me:
{
"_info": "Auto-generated by pandoc-url2cite. Feel free to modify, keys will never be overwritten.",
"urls": {
"https://papers.nips.cc/paper/5423-generative-adversarial-nets": {
"fetched": "2021-01-20T04:18:03.022Z",
"bibtex": [
"",
"@inproceedings{baum_supervised_1988,",
" title = {Supervised {Learning} of {Probability} {Distributions} by {Neural} {Networks}},",
" url = {https://proceedings.neurips.cc/paper/1987/file/eccbc87e4b5ce2fe28308fd9f2a7baf3-Paper.pdf},",
" urldate = {2021-01-20},",
" booktitle = {Neural {Information} {Processing} {Systems}},",
" publisher = {American Institute of Physics},",
" author = {Baum, Eric and Wilczek, Frank},",
" editor = {Anderson, D.},",
" year = {1988},",
" pages = {52--61},",
"}",
""
],
"csl": {
"URL": "https://proceedings.neurips.cc/paper/1987/file/eccbc87e4b5ce2fe28308fd9f2a7baf3-Paper.pdf",
"accessed": {
"date-parts": [
[
2021,
1,
20
]
]
},
"author": [
{
"family": "Baum",
"given": "Eric"
},
{
"family": "Wilczek",
"given": "Frank"
}
],
"container-title": "Neural Information Processing Systems",
"editor": [
{
"family": "Anderson",
"given": "D."
}
],
"id": "https://papers.nips.cc/paper/5423-generative-adversarial-nets",
"issued": {
"date-parts": [
[
1988
]
]
},
"page": "52-61",
"publisher": "American Institute of Physics",
"title": "Supervised Learning of Probability Distributions by Neural Networks",
"type": "paper-conference"
}
}
}
}
But PDF not generated:
D:\SashaDebugging\KiraManubot>pandoc --filter=C:\Users\SashaChernykh\AppData\Roaming\npm\pandoc-url2cite.cmd --citeproc minimal.md -o minimal.pdf
got all 1 citations from URLs
pdflatex not found. Please select a different --pdf-engine or install pdflatex
I installed TeX Live for Windows via Chocolatey. Now:
D:\SashaDebugging\KiraManubot>pandoc --filter=C:\Users\SashaChernykh\AppData\Roaming\npm\pandoc-url2cite.cmd --citeproc minimal.md -o minfetching citation from url https://papers.nips.cc/paper/5423-generative-adversarial-nets
got all 1 citations from URLs
Error producing PDF.
! LaTeX Error: File `xcolor.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
<kbd>Enter</kbd> file name:
! Emergency stop.
<read *>
l.36 \IfFileExists
Thanks.
But I think that it would be nice to use pandoc-url2cite without full path declaring.
Yep. But then I don't think this is related to pandoc-url2cite. You can try running a different pandoc filter from here: https://github.com/jgm/pandoc/wiki/Pandoc-Filters
It should have the same issue for those. Then probably open an issue in https://github.com/jgm/pandoc instead.
Your second problem also looks unrelated to pandoc-url2cite but rather to the Tex installation (Tex on windows is weird I know but I can't really help you there). Try just pandoc test.md -o test.pdf
without url2cite and you should get the same error. Tex has its own internal package manager, so you're probably missing the packag econtaining xcolor. Try installing miktex instead of texlive or figure out how to install the extra packages with texlive on windows. On Linux it's usually just apt install texlive-extra
Closing this since I don't think it's related to pandoc-url2cite specifically and more about some Windows minutiae
1. Summary
I can’t begin to use pandoc-url2cite on my Windows. I get the error:
2. Data
2.1. Markdown file
minimal.md
:2.2. pandoc-url2cite path
3. Environment
Thanks.