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

* Re: Missing fonts when compiling latex documents
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Neidhardt @ 2019-11-14 16:32 UTC (permalink / raw)
  To: Alexandros Theodotou, guix-devel

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

Hi Alex,

Sorry for the troubles, indeed only the big "texlive" package is fully
functional with Guix at the moment.  There are plans to fix the
individual packages, hopefully someone (possibly me :p) will find time
to get down to it in the near future :)

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* Re: Missing fonts when compiling latex documents
  2019-11-14 16:32 ` Pierre Neidhardt
@ 2019-11-16 22:32   ` Ludovic Courtès
  2019-11-16 23:31   ` Ricardo Wurmus
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-11-16 22:32 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel, Alexandros Theodotou

Hello!

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> Sorry for the troubles, indeed only the big "texlive" package is fully
> functional with Guix at the moment.

Hmm, is this accurate?  I mean, all the packages uses ‘texlive-union’
internally, and with the texlive profile hook, we should now be able to
make do with individual texlive packages, no?

Thanks,
Ludo’.

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

* Re: Missing fonts when compiling latex documents
  2019-11-14 16:32 ` Pierre Neidhardt
  2019-11-16 22:32   ` Ludovic Courtès
@ 2019-11-16 23:31   ` Ricardo Wurmus
  1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2019-11-16 23:31 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel, Alexandros Theodotou


Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Sorry for the troubles, indeed only the big "texlive" package is fully
> functional with Guix at the moment.

This statement could be misunderstood.  The individual texlive packages
work pretty well for many use cases.  I myself have been using them
since they have become available and I have no problems formatting
letters with g-brief, for example.

Some package combinations might not work, but that’s not because only
the big “texlive” package is fully functional, but because there are
minor bugs in the configuration when using split packages that are
exposed when certain packages are used.  We should treat these bug
reports on a case by case basis.

There are no known big issues that need fixing with the individual
packages.  What should be done, though, is to provide a meta-package
that installs most (if not all) of the individual packages for an
experience similiar to that of having installed the big “texlive”
package — only modular.

@Alexandros: could you please show us the error message you get?  The
messages usually include the names of LaTeX packages that have not been
found.

--
Ricardo

^ 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).