2

Please let me know to add French to the following argument in the command line, so that strings in English such as in, available at are translated. The argument '-V lang=fr-FR' doesn't change the output.

pandoc --filter=pandoc-citeproc', '--csl=./files/turabian-fullnote-bibliography.csl', '--bibliography=./files/biblio.bib'

1

tl;dr

Use -M instead of -V


You have to set the language as metadata (not as a variable).

Let's take the following minimal example:

biblio.bib:

@inbook{hitchens,
  editor={Christopher Hitchens},
  title={Introduction},
  year={2010},
  author={Sigmund Freud},
  booktitle={Civilization and Its Discontents},
  publisher={W. W. Norton},
  address={New York}
}

in.md:

[@hitchens]

# Bibliography

Now you have to run pandoc like this:

pandoc in.md --filter=pandoc-citeproc --bibliography=biblio.bib --csl=./turabian-fullnote-bibliography.csl -M lang:fr -o out.pdf

Which gives you

out.pdf:

enter image description here

  • It doesn't work applied to convert markdown into html in Nikola with Python -this is what I am trying to achieve now. – jmm Mar 23 '18 at 12:37
  • Nevertheless, I have reproduced your detailed instructions to convert markdown to pdf with my own data, they do work and are good to know for future use. Thank you. – jmm Mar 23 '18 at 12:39
  • I have accepted the answer because it does reply the question I posted. I didn't specify that it is citeproc-py that I am using. – jmm Mar 23 '18 at 13:10
  • If you are trying to convert markdown to html without any (La)TeX involved, you should ask your question on the pandoc mailing list or stackoverflow – DG' Mar 23 '18 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.