Giter Site home page Giter Site logo

Comments (6)

bk avatar bk commented on July 26, 2024

This works for me, so I suspect you have a configuration problem. Things to check for:

  1. Have you specified pandoc_bibliography in the *.setup file? If so, have you specified an absolute path to the .bib file?
  2. 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?
  3. Is pandoc-citeproc configured in *.setup or present in your $PATH? (I do not use homebrew myself, but I am given to understand that pandoc-citeproc is a separate package which is not automatically installed when you install pandoc).
  4. Does the .bib file contain syntax errors?
  5. 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.

 avatar commented on July 26, 2024

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.

bk avatar bk commented on July 26, 2024

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.

 avatar commented on July 26, 2024

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.

bk avatar bk commented on July 26, 2024

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.

 avatar commented on July 26, 2024

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)

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.