10

According to the man page for latexmk there is a command line option -latexoption=<option> for passing options to pdflatex, but there seems to be no similar way to pass options to biber.

Is there a way to pass options such as --validate-datamodel or --isbn-normalise to biber while using latexmk?

3
  • In ~/.latexmkrc, add $biber='biber --validate-datamodel %O %S' (or whatever options you like).
    – Derek
    Sep 26, 2016 at 23:09
  • @Derek: Thanks, that worked perfectly! Please make it an answer so that I can accept it.
    – Mårten W
    Sep 26, 2016 at 23:16
  • Glad that helped!
    – Derek
    Sep 26, 2016 at 23:28

2 Answers 2

8

In ~/.latexmkrc, add $biber='biber --validate-datamodel %O %S' (or whatever options you like)

1
  • If I understand correctly a ; at the end of each command is needed, at least if there is more than one in .latexmkrc file. May 26, 2021 at 16:32
2

I ran into an issue where I'm running latexmk from a build script and do not want the user to have to modify their ~/.latexmkrc file. For this, the options can be provided on the command line without changing the user's environment:

latexmk -e '$biber='"'"'biber --isbn-normalise %O %S'"'" [your_tex_file]

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.