You are not logged in.

#1 2020-12-21 20:08:12

clingonboy
Member
Registered: 2020-12-09
Posts: 20

[SOLVED] Pandoc not able to export pdf file

I try to use Pandoc to export a pdf file:

pandoc appunti.md -o appunti.pdf 

but I have this error back:

pdflatex not found. Please select a different --pdf-engine or install pdflatex

I looked for in the web and forum but I dont find how to install this pdf-engine named pdflatex
At really I dont find any information about what is a pdf-engine

Somebody know where I can find some reference ?

Thanks.

Last edited by clingonboy (2020-12-21 21:06:03)

Offline

#2 2020-12-21 20:12:03

loqs
Member
Registered: 2014-03-06
Posts: 18,633

Re: [SOLVED] Pandoc not able to export pdf file

Did you check the optional dependencies for pandoc?

....
Optional Deps   : pandoc-citeproc: for citation rendering with pandoc-citeproc filter
                  pandoc-crossref: for numbering figures, equations, tables and cross-references to them with pandoc-crossref filter
                  texlive-core: for pdf output

Last edited by loqs (2020-12-21 20:12:34)

Offline

#3 2020-12-21 20:24:29

clingonboy
Member
Registered: 2020-12-09
Posts: 20

Re: [SOLVED] Pandoc not able to export pdf file

I don't know how to do that

Offline

#4 2020-12-21 20:30:07

loqs
Member
Registered: 2014-03-06
Posts: 18,633

Re: [SOLVED] Pandoc not able to export pdf file

Offline

#5 2020-12-21 20:41:07

clingonboy
Member
Registered: 2020-12-09
Posts: 20

Re: [SOLVED] Pandoc not able to export pdf file

If I try:

pacman -F pdflatex
extra/texlive-bin 2020.54586-7
    usr/bin/pdflatex

but in any case if I try:

pandoc appunti.md --pdf-engine=pdflatex -o appunti.pdf 

I have the error:

pdflatex not found. Please select a different --pdf-engine or install pdflatex

Offline

#6 2020-12-21 20:44:16

loqs
Member
Registered: 2014-03-06
Posts: 18,633

Re: [SOLVED] Pandoc not able to export pdf file

pandoc lists texlive-core as an optional dependency with the description "for pdf output".  Installing texlive-core would install its dependency textlive-bin which provides /usr/bin/pdflatex.

Offline

#7 2020-12-21 20:44:58

clingonboy
Member
Registered: 2020-12-09
Posts: 20

Re: [SOLVED] Pandoc not able to export pdf file

I don't understand why if i try
pacman -Ss pdflatex
I don't have any result

Offline

#8 2020-12-21 20:49:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,817

Re: [SOLVED] Pandoc not able to export pdf file

The pacman -F command you've used showed you that texlive-bin is the package you want to install as that contains pdflatex

Offline

#9 2020-12-21 20:51:04

loqs
Member
Registered: 2014-03-06
Posts: 18,633

Re: [SOLVED] Pandoc not able to export pdf file

pdflatex is not a package name and is not listed in the description of any package,  so no matches.  You found it from the file search which told you which package provided /usr/bin/pdflatex.
The options dependencies also listed what to install for PDF support in pandoc.

Offline

#10 2020-12-21 21:05:12

clingonboy
Member
Registered: 2020-12-09
Posts: 20

Re: [SOLVED] Pandoc not able to export pdf file

Now is clear.
I installed texlive-core and now it works.

sorry I'm slow also because my connection is poor and this was other 450Mb

Thanks for your help.

Offline

#11 2020-12-21 21:09:40

clingonboy
Member
Registered: 2020-12-09
Posts: 20

Re: [SOLVED] Pandoc not able to export pdf file

loqs wrote:

pdflatex is not a package name and is not listed in the description of any package,  so no matches.  You found it from the file search which told you which package provided /usr/bin/pdflatex.
The options dependencies also listed what to install for PDF support in pandoc.

Now I have understand enother point, I need to study better all the pacman options and how it works.

Offline

Board footer

Powered by FluxBB