Skip to content

Instantly share code, notes, and snippets.

@rain1024
Last active Jul 31, 2022
Embed
What would you like to do?
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
sudo apt-get install texlive-fonts-recommended
sudo apt-get install texlive-fonts-extra
  • Install the extra packages,
sudo apt-get install texlive-latex-extra

Once installed as above, you may be able to create PDF files from latex sources using PdfLatex as below.

pdflatex latex_source_name.tex

Error 1: grep: ptmr7t.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr7t' failed to make ptmr7t.tfm. kpathsea: Appending font creation commands to missfont.log.

! Font OT1/ptm/m/n/10=ptmr7t at 10.0pt not loadable: Metric (TFM) file not found.

Ref: http://kkpradeeban.blogspot.com/2014/04/installing-latexpdflatex-on-ubuntu.html

@ScholliYT
Copy link

ScholliYT commented Jun 25, 2019

all in one: sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra

@GroupTheorist12
Copy link

GroupTheorist12 commented May 29, 2021

Thanks bunches!!!

@pmbittner
Copy link

pmbittner commented Jun 1, 2021

Thank you very much! :)

@drmaniak
Copy link

drmaniak commented Jun 12, 2021

Thanks for this, friend!

@wuchenthomas
Copy link

wuchenthomas commented Jun 18, 2021

Thanks, it works

@ebiabiany
Copy link

ebiabiany commented Jul 5, 2021

Thanks !

@judicandus
Copy link

judicandus commented Jul 12, 2021

Thank you! Super useful.

@demonicirfan
Copy link

demonicirfan commented Aug 29, 2021

Thank you !

@Existential-Kernel
Copy link

Existential-Kernel commented Sep 15, 2021

thanks a lot!

@Impassive
Copy link

Impassive commented Nov 17, 2021

Thank you, useful!

@GregHilston
Copy link

GregHilston commented Dec 3, 2021

Thanks!

@nagellette
Copy link

nagellette commented Dec 4, 2021

Thanks!

@Jerry-wangsenscomm
Copy link

Jerry-wangsenscomm commented Apr 11, 2022

Thank you a lot.

@JustenRickert
Copy link

JustenRickert commented Apr 11, 2022

Thank !

@Michael-Obele
Copy link

Michael-Obele commented May 25, 2022

Thank you very much. However, it appears that I already have a different compiler installed. I'm not sure if I can have both, or if I need to look for and remove the other compiler.

@RajSolai
Copy link

RajSolai commented Jun 2, 2022

Thanks a lot :)

@firas-jolha
Copy link

firas-jolha commented Jun 12, 2022

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment