pdflatex
I could not get pandoc or pdflatex to work from the texlive installed from the repos in OpenMandriva Lx. I spent hours trying everything I could find searching the Internet and Linux forums to get pdflatex to work using the TeXLive distribution in the OM repo. Nothing worked. Here’s what I did. I uninstalled and removed all previous TeXLive attempts and installed TeXLive from Quick install - TeX Live - TeX Users Group
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
Unpack the zipped file: install-tl-unx.tar.gz
Run the install-tl perl
script from within the unpacked folder:
perl ./install-tl --no-interaction
Took a looooong time.
Add the TeXLive location to $PATH by adding the following to .bashrc
:
export PATH="/usr/local/texlive/2024/bin/x86_64-linux:$PATH"
And then source the .bashrc
to update the PATH
source ~/.bashrc
Now pdflatex works and so does generating a pdf with pandoc
:
Example:
pandoc -o alice.pdf alice.md
pandoc
To get pandoc to work here’s what I did.
Downloaded pandoc from:
https://github.com/jgm/pandoc/blob/ac799380434ac72029d0b4a6412dcbd2941036c7/INSTALL.md
https://github.com/jgm/pandoc/releases/tag/3.6.3
Install from the tarball into $DEST
(/usr/local/
) by doing
sudo tar xvzf $TGZ --strip-components 1 -C $DEST
where $TGZ
is the path to the downloaded zipped tarball.
For me, cd into Downloads where I downloaded pandoc-3.6.3-linux-amd64.tar.gz and then:
sudo tar xvzf pandoc-3.6.3-linux-amd64.tar.gz --strip-components 1 -C /usr/local/