reddit / emacs

biblatex option on org-export

InterestingRun9118 · 2022-02-16 03:41
I've tried ```emacs-lisp (setq! org-latex-default-packages-alist '(("" "xeCJK" nil ("xelatex")) ("style=gb7714-2015ay" "biblatex" nil) ("" "fullpage" "t") ("" "graphicx" t) ("" "wrapfig" nil) ("margin=1in" "geometry" nil) ("normalem" "ulem" t) ("" "amsmath" t) ("" "amsfonts" t) ("" "amssymb" t) ("" "float" t) ("hidelinks" "hyperref" nil) ("table,xcdraw" "xcolor" nil)))) ``` it works for hyperref and others, but failed on biblatex. What's the problem?
h-m-b-tu · 2022-02-16 09:19
What exactly is "failed on biblatex"?
InterestingRun9118 · 2022-02-17 00:33
when I export to latex, it was just ```latex \usepackage{biblatex} ``` not ```latex \usepackage[style=gb7714-2015ay]{biblatex} ```
h-m-b-tu · 2022-02-17 10:26
OK. But I cannot reproduce this behaviour. Why is there an exclamation mark appended to `setq`? I do not know this.
InterestingRun9118 · 2022-02-17 23:42
thank you. it is doom's macro similar to `setq`.
h-m-b-tu · 2022-02-18 21:43
OK, I didn't know, I use bare emacs. The function which creates the LaTeX preamble on export is `org-latex-make-preamble`. You can check its output by evaluating (org-latex-make-preamble `(:latex-class "article" :latex-classes ,org-latex-classes)) with `C-u C-x C-e` which inputs the result into the buffer. Maybe `"article"` needs to be replaced.