public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Trying to get biber to run when generating PDF
@ 2020-04-20  8:36 Lyndon Drake
       [not found] ` <68a5023c-3ce3-44ef-9f05-2753626caf90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Lyndon Drake @ 2020-04-20  8:36 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1335 bytes --]

Hi,

Last one for the day (I hope): if I generate a LaTeX file and run latexmk 
on it, I get my citations fine, but if I try to get pandoc to generate the 
PDF the citations don't come through. I.e. this works:

/usr/local/bin/pandoc -dlatex -s -o output/README.tex README.md
cd output/
latexmk -lualatex README.tex

but this doesn't - the PDF is generated with the citations unmatched:

/usr/local/bin/pandoc -dlatex -s -o output/README.pdf README.md

I'm using the following defaults file in both cases:

metadata:
  author: Lyndon Drake
  papersize: a4
  documentclass: article
  mainfont: Times New Roman
  lang: en-GB
  mainfontoptions: Ligatures=TeX, Numbers=OldStyle
  otherlangs: [grc, he]
  bibliography:
    - /Users/lyndon/repo/workflow/zot-export.bib
  biblio-style: sbl
  biblatexoptions:
    - backend=biber
    - indexing=cite
  indent: true

cite-method: biblatex

pdf-engine: lualatex

number-sections: true

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/68a5023c-3ce3-44ef-9f05-2753626caf90%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2077 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to get biber to run when generating PDF
       [not found] ` <68a5023c-3ce3-44ef-9f05-2753626caf90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-04-20 11:33   ` Lukas Atkinson
  2020-04-20 16:27   ` John MacFarlane
  1 sibling, 0 replies; 5+ messages in thread
From: Lukas Atkinson @ 2020-04-20 11:33 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2668 bytes --]

This seems about right. Either use Pandoc's built-in citation system, or
generate LaTeX and compile it yourself. Pandoc is no substitute for
latexmk. Latexmk knows how and when to run additional required programs
such as Biber or Makeindex.

I tend to write makefiles that manage the necessary Pandoc/Latexmk calls
for me, e.g.:

  %.tex : %.md
    pandoc -st latex $< -o $@

  %.pdf : %.tex
    mkdir -p build
    latexmk -pdf -outdir build -interaction=batchmode $*
    cp build/$*.pdf .

Then, a call like `make paper.pdf` will do the necessary steps, assuming
paper.md exists.

On Mon, 20 Apr 2020 at 08:36, Lyndon Drake <lyndon-S8RYeTzMgQ3QT0dZR+AlfA@public.gmane.org> wrote:

> Hi,
>
> Last one for the day (I hope): if I generate a LaTeX file and run latexmk
> on it, I get my citations fine, but if I try to get pandoc to generate the
> PDF the citations don't come through. I.e. this works:
>
> /usr/local/bin/pandoc -dlatex -s -o output/README.tex README.md
> cd output/
> latexmk -lualatex README.tex
>
> but this doesn't - the PDF is generated with the citations unmatched:
>
> /usr/local/bin/pandoc -dlatex -s -o output/README.pdf README.md
>
> I'm using the following defaults file in both cases:
>
> metadata:
>   author: Lyndon Drake
>   papersize: a4
>   documentclass: article
>   mainfont: Times New Roman
>   lang: en-GB
>   mainfontoptions: Ligatures=TeX, Numbers=OldStyle
>   otherlangs: [grc, he]
>   bibliography:
>     - /Users/lyndon/repo/workflow/zot-export.bib
>   biblio-style: sbl
>   biblatexoptions:
>     - backend=biber
>     - indexing=cite
>   indent: true
>
> cite-method: biblatex
>
> pdf-engine: lualatex
>
> number-sections: true
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/68a5023c-3ce3-44ef-9f05-2753626caf90%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/68a5023c-3ce3-44ef-9f05-2753626caf90%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAJTYOd37ygRSEEW0%2BJG3T9xGJDEN-ThKmT81WFEfV0VSM-BWmw%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3992 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to get biber to run when generating PDF
       [not found] ` <68a5023c-3ce3-44ef-9f05-2753626caf90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2020-04-20 11:33   ` Lukas Atkinson
@ 2020-04-20 16:27   ` John MacFarlane
       [not found]     ` <m2r1wip1gr.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2020-04-20 16:27 UTC (permalink / raw)
  To: Lyndon Drake, pandoc-discuss


You can use latexmk as your pdf-engine.  You'll need to pass in
--pdf-engine-opts to tell latexmk to use lualatex and biber.

Lyndon Drake <lyndon-S8RYeTzMgQ3QT0dZR+AlfA@public.gmane.org> writes:

> Hi,
>
> Last one for the day (I hope): if I generate a LaTeX file and run latexmk 
> on it, I get my citations fine, but if I try to get pandoc to generate the 
> PDF the citations don't come through. I.e. this works:
>
> /usr/local/bin/pandoc -dlatex -s -o output/README.tex README.md
> cd output/
> latexmk -lualatex README.tex
>
> but this doesn't - the PDF is generated with the citations unmatched:
>
> /usr/local/bin/pandoc -dlatex -s -o output/README.pdf README.md
>
> I'm using the following defaults file in both cases:
>
> metadata:
>   author: Lyndon Drake
>   papersize: a4
>   documentclass: article
>   mainfont: Times New Roman
>   lang: en-GB
>   mainfontoptions: Ligatures=TeX, Numbers=OldStyle
>   otherlangs: [grc, he]
>   bibliography:
>     - /Users/lyndon/repo/workflow/zot-export.bib
>   biblio-style: sbl
>   biblatexoptions:
>     - backend=biber
>     - indexing=cite
>   indent: true
>
> cite-method: biblatex
>
> pdf-engine: lualatex
>
> number-sections: true
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/68a5023c-3ce3-44ef-9f05-2753626caf90%40googlegroups.com.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to get biber to run when generating PDF
       [not found]     ` <m2r1wip1gr.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-04-20 16:27       ` John MacFarlane
       [not found]         ` <m2o8rmp1fb.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2020-04-20 16:27 UTC (permalink / raw)
  To: Lyndon Drake, pandoc-discuss


To clarify, pandoc doesn't attempt to run bibtex or biber itself.
But if you use latexmk as your pdf-engine, latexmk can do this.

John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes:

> You can use latexmk as your pdf-engine.  You'll need to pass in
> --pdf-engine-opts to tell latexmk to use lualatex and biber.
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to get biber to run when generating PDF
       [not found]         ` <m2o8rmp1fb.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-04-20 17:41           ` Lyndon Drake
  0 siblings, 0 replies; 5+ messages in thread
From: Lyndon Drake @ 2020-04-20 17:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]

Ah, OK, that makes perfect sense now that I think about it. I'll give it a 
go with latexmk as the pdf-engine.

On Tuesday, 21 April 2020 04:28:09 UTC+12, John MacFarlane wrote:
>
>
> To clarify, pandoc doesn't attempt to run bibtex or biber itself. 
> But if you use latexmk as your pdf-engine, latexmk can do this. 
>
> John MacFarlane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org <javascript:>> writes: 
>
> > You can use latexmk as your pdf-engine.  You'll need to pass in 
> > --pdf-engine-opts to tell latexmk to use lualatex and biber. 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/df0a3e9a-ec68-45f3-a8ad-036fe426aa48%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1644 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-20 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  8:36 Trying to get biber to run when generating PDF Lyndon Drake
     [not found] ` <68a5023c-3ce3-44ef-9f05-2753626caf90-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-20 11:33   ` Lukas Atkinson
2020-04-20 16:27   ` John MacFarlane
     [not found]     ` <m2r1wip1gr.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-04-20 16:27       ` John MacFarlane
     [not found]         ` <m2o8rmp1fb.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-04-20 17:41           ` Lyndon Drake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).