unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Missing fonts when compiling latex documents
@ 2019-11-14 16:10 Alexandros Theodotou
  2019-11-14 16:32 ` Pierre Neidhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandros Theodotou @ 2019-11-14 16:10 UTC (permalink / raw)
  To: guix-devel

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

Hi Guix,

I spent a few hours trying to get texi2pdf working on a simple tex
file:
```
\documentclass[10pt]{article}
\usepackage[margin=3cm]{geometry}
\title{\bfseries\Huge My Name}
\author{me@me.com}
\date{}
\begin{document}
\maketitle
\end{document}
```

I tried installing a bunch of tex packages to get this to compile, but
I kept getting errors about fonts not being found:
```
texlive-generic-pdftex texlive-bin texlive-latex-xkeyval texlive-fonts-
latex texlive-fonts-ec texlive-latex-mflogo texlive-latex-type1cm 
texinfo texlive-ae texlive-txfonts texlive-cm-super texlive-fontinst
texlive-graphics-def texlive-kpathsea texlive-latex-psnfss texlive-
latexconfig texlive-metafont-base texlive-latex-base texlive-latex-pdfx 
texlive-latex-pgf texlive-latex-geometry texlive-latex-graphics
```

I tried this for example:
```
guix environment -C --ad-hoc texlive-fonts-ec texlive-tex-texinfo
texlive-generic-epsf texinfo coreutils sed texlive-bin grep texlive-
latex-base tar texlive-latex-graphics texlive-latex-geometry
texi2pdf my_tex_file.tex
```

It was not until I installed the "texlive" package that I manged to
compile the .tex file.

I found that the following are the minimum packages required to compile
a simple latex file into pdf:
```
guix environment -C --ad-hoc texinfo coreutils sed grep tar texlive
diffutils
```

Maybe this would be straight forward to some users but it took me some
time to figure out which packages are needed since I don't know much
about latex. I found a lot of information about how to install the
fonts on other distros when I searched online, but for guix I had to
experiment on my own, so maybe this information should be mentioned
somewhere, maybe a blog post? Or maybe someone will stumble on this
post.

Anyway, just posting my findings :-)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2019-11-16 23:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-14 16:10 Missing fonts when compiling latex documents Alexandros Theodotou
2019-11-14 16:32 ` Pierre Neidhardt
2019-11-16 22:32   ` Ludovic Courtès
2019-11-16 23:31   ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).