Comments (6)
This works for me, so I suspect you have a configuration problem. Things to check for:
- Have you specified
pandoc_bibliography
in the*.setup
file? If so, have you specified an absolute path to the.bib
file? - If the answer above is No, have you instead specified
bibliography
in the YAML meta block in the page, again preferably with an absolute path? - Is
pandoc-citeproc
configured in*.setup
or present in your$PATH
? (I do not use homebrew myself, but I am given to understand thatpandoc-citeproc
is a separate package which is not automatically installed when you installpandoc
). - Does the
.bib
file contain syntax errors? - Are you absolutely certain that your files are being handled by pandoc rather than the default Markdown processor? I have found it to be easiest to separate them by extension, using
*.md
for pandoc and*.mdwn
for the default processor. This is also a good idea because a few ikiwiki directives (i.e. commands surrounded by[[!...]]
) do not work in pandoc-processed files.
If everything in the list checks out OK, it would be interesting to see your *.setup
file and a sample page which fails.
from ikiwiki-pandoc.
It indeed turned out to be a configuration error on my end: I had put my bib file and my csl in single quotes, as I thought the empty single quotes in my .setup suggested. Turns out, you shouldn't use quotes there. Thanks!
P.S.: I think it might be a good idea to present the caveats as regards to some ikiwiki derectives not working in the readme.
from ikiwiki-pandoc.
Can you please clarify? The .setup
file is just perl, so it makes no difference whether you use single or double quotes (as long as you're not doing any variable interpolation). How was it before, when it didn't work, and how did you change it to make it work?
from ikiwiki-pandoc.
Here's how the relevant portion of the .setup
looks after installing pandoc.pm
and using ikiwiki --changesetup
:
# Path to default bibliography file
pandoc_bibliography: ''
# Path to CSL file (for references and bibliography)
pandoc_csl: ''
I assumed that these single quotes were meant to be filled instead of being replaced.
from ikiwiki-pandoc.
Ah, you're using the YAML .setup
format. Still, this is puzzling, since the presence or absence of surrounding quotes should not affect normal filenames in YAML: /path/file.ext
, '/path/file.ext'
and "path/file.ext"
all represent the same string. (For the details on when quoting makes a difference, see the YAML spec). Could you have inadvertently inserted a space before or after the filename, or something of the sort?
from ikiwiki-pandoc.
I guess that's possible, too. I'm not sure what my error was, only that it was mine. Hehe. I'm very happy that it works now.
from ikiwiki-pandoc.
Related Issues (16)
- html5 option seems to be deprecated HOT 2
- Inline directive does not work HOT 5
- img directive doesn't work on pages that are processed by ikiwiki-pandoc HOT 3
- request: add information on how to update the plugin to the readme HOT 1
- Wikilinks easily breaks pandoc-flavoured markdown tables HOT 6
- ikiwiki's style.css breaks pandoc table headers HOT 1
- Regression: Doesn't work anymore with recently updated pandoc 1.18. from homebrew HOT 12
- Inclusion into ikiwiki? Package for debian? HOT 2
- Pandoc YAML metadata block HOT 8
- Regression: --normalize has been removed HOT 3
- Rearrange repo layout so that it's suitable to use with git-submodule
- Support for filters
- Failed to load plugin error on line 286 HOT 4
- Use of uninitialized value […] in pattern match (m//) at […]/pandoc.pm line 269. HOT 4
- How to set locale (for bibliography) wiki wide HOT 4
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 ikiwiki-pandoc.