unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / Atom feed
* How is the LaTeX-related file psfonts.map installed on Guix?
@ 2021-05-02 15:03 Rovanion Luckey
  2021-05-03  9:35 ` Andreas Enge
  2021-05-03 13:44 ` Ricardo Wurmus
  0 siblings, 2 replies; 5+ messages in thread
From: Rovanion Luckey @ 2021-05-02 15:03 UTC (permalink / raw)
  To: Guix Devel, rekado, mhw

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

Hi,
I'm trying to define a Guix environment that enables the following LaTeX
document to be compiled:

\documentclass[a4paper,12pt]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[swedish]{babel}
> \usepackage{url}
> \usepackage{color}
> \usepackage[colorlinks=true, linkcolor=blue, urlcolor=blue]{hyperref\
> }
> \usepackage[T1]{fontenc}
> \usepackage{lmodern}
> \usepackage{morefloats}
> \usepackage{sectsty}
> \usepackage{ifmtarg}
> \usepackage{pagenote}
>
> \makepagenote
> \let\footnote\pagenote
> \renewcommand*{\notedivision}{\section*{\notesname}}
> \renewcommand*{\pagenotesubhead}[2]{}
>
> \begin{document}
>
> \title{\textsc{\Huge Curriculum Vitae\\[0.5cm]}}
> \newpage
>
> \setlength{\hoffset}{0pt}
>
> \printnotes
>
> \end{document}
>

It's a reduced version of the real document I'm writing. Right now I've
packaged a bunch of things that were missing like
texlive-generic-babel-swedish, texlive-morefloats, texlive-sectsty,
texlive-ifmtarg and texlive-pagenote for an environment that is started
with the following call:

$ ~/source/guix/main/pre-inst-env guix environment --ad-hoc texlive-base
texlive-generic-babel-swedish texlive-url texlive-latex-hyperref
texlive-fonts-ec texlive-lm texlive-morefloats texlive-sectsty
texlive-pagenote

But I'm now stuck at the following error that pdflatex throws at me:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600
> ec-lmr12
> gsftopk: fatal: map file `psfonts.map' not found.
> mktexpk: don't know how to create bitmap font for ec-lmr12.
> mktexpk: perhaps ec-lmr12 is missing from the map file.
> kpathsea: Appending font creation commands to missfont.log.
>  )
> !pdfTeX error: pdflatex (file ec-lmr12): Font ec-lmr12 at 600 not found
>  ==> Fatal error occurred, no output PDF file produced!
>

I've looked at the Debian package and it looks to be provided by
texlive-base: https://packages.debian.org/buster/all/texlive-base/filelist.
The same folder path in Guix seems to be generated by the function
gnu/packages/tex.scm:texlive-union; but I have no idea how I would go about
having it generate the .map-file I want it to.

Does anyone happen to have any idea what to do here. I've spent a couple of
hours without getting anywhere, so any hints would be appreciated.

[-- Attachment #2: Type: text/html, Size: 2887 bytes --]

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

* Re: How is the LaTeX-related file psfonts.map installed on Guix?
  2021-05-02 15:03 How is the LaTeX-related file psfonts.map installed on Guix? Rovanion Luckey
@ 2021-05-03  9:35 ` Andreas Enge
  2021-05-03 13:44 ` Ricardo Wurmus
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Enge @ 2021-05-03  9:35 UTC (permalink / raw)
  To: Rovanion Luckey; +Cc: Guix Devel

Hello,

as a quick fix, you can install the (huge) texlive package, which in one
place contains the full texlive distribution. Your document compiles with
pdflatex then.

Am Sun, May 02, 2021 at 05:03:18PM +0200 schrieb Rovanion Luckey:
>     \usepackage[colorlinks=true, linkcolor=blue, urlcolor=blue]{hyperref\
>     }

(After dropping the "\" after "hyperref", which I assume sneaked in through
email formatting.)

There may be a way using less space, but at least this one works.

Andreas



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

* Re: How is the LaTeX-related file psfonts.map installed on Guix?
  2021-05-02 15:03 How is the LaTeX-related file psfonts.map installed on Guix? Rovanion Luckey
  2021-05-03  9:35 ` Andreas Enge
@ 2021-05-03 13:44 ` Ricardo Wurmus
  2021-05-04 16:21   ` Rovanion Luckey
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2021-05-03 13:44 UTC (permalink / raw)
  To: Rovanion Luckey; +Cc: Guix Devel


Hi Rovanion

there was a problem with the profile hook.  It only did half of 
the work that “texlive-union” normally does.  “texlive-union” is 
used for packages only, but some of the steps it performs should 
also have been done by the profile hook.

Commit a6b8794c69446730b5f12eb8eefc5ef3b99c97dc fixes this 
problem.

I saved your document in a file “doc.tex” and then ran this 
command successfully:

    guix environment --pure --ad-hoc \
      texlive-base \
      texlive-url \
      texlive-latex-hyperref \
      texlive-fonts-ec \
      texlive-lm \
      texlive-babel-swedish \
      texlive-pagenote \
      texlive-ifmtarg \
      texlive-morefloats \
      texlive-sectsty -- pdflatex doc.tex

This produces a PDF file “doc.pdf” with an almost empty page with 
the text “Notes”.

There was a warning about Babel, which may indicate some other 
problem:

--8<---------------cut here---------------start------------->8---
Package babel Warning: Unknown language `nil'. Very likely you
(babel)                requested it in a previous run. Expect some
(babel)                wrong results in this run, which should 
vanish
(babel)                in the next one. Reported on input line 19.
--8<---------------cut here---------------end--------------->8---

-- 
Ricardo


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

* Re: How is the LaTeX-related file psfonts.map installed on Guix?
  2021-05-03 13:44 ` Ricardo Wurmus
@ 2021-05-04 16:21   ` Rovanion Luckey
  2021-05-04 20:35     ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Rovanion Luckey @ 2021-05-04 16:21 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guix Devel

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

Hello rekado!

I saved your document in a file “doc.tex” and then ran this
> command successfully:
>
>     guix environment --pure --ad-hoc \
>       texlive-base \
>       texlive-url \
>       texlive-latex-hyperref \
>       texlive-fonts-ec \
>       texlive-lm \
>       texlive-babel-swedish \
>       texlive-pagenote \
>       texlive-ifmtarg \
>       texlive-morefloats \
>       texlive-sectsty -- pdflatex doc.tex
>
> This produces a PDF file “doc.pdf” with an almost empty page with
> the text “Notes”.
>

Thank you. My full document also builds now with the above environment. The
strange thing is that, just as you noted, even though all texlive-hyphen-{a
lot of european languages} are all installed my pdflatex outputs the
following:

Package babel Warning: No hyphenation patterns were preloaded for
> (babel)                the language `Swedish' into the format.
> (babel)                Please, configure your TeX system to add them and
> (babel)                rebuild the format. Now I will use the patterns
> (babel)                preloaded for \language=0 instead on input line 49.
>

And in the document hyphenation is very much broken, either not breaking
words at all or breaking in the wrong places.

[-- Attachment #2: Type: text/html, Size: 1786 bytes --]

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

* Re: How is the LaTeX-related file psfonts.map installed on Guix?
  2021-05-04 16:21   ` Rovanion Luckey
@ 2021-05-04 20:35     ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2021-05-04 20:35 UTC (permalink / raw)
  To: Rovanion Luckey; +Cc: Guix Devel


Rovanion Luckey <rovanion.luckey@gmail.com> writes:

> Thank you. My full document also builds now with the above 
> environment. The
> strange thing is that, just as you noted, even though all 
> texlive-hyphen-{a
> lot of european languages} are all installed my pdflatex outputs 
> the
> following:
>
> Package babel Warning: No hyphenation patterns were preloaded 
> for
>> (babel)                the language `Swedish' into the format.
>> (babel)                Please, configure your TeX system to add 
>> them and
>> (babel)                rebuild the format. Now I will use the 
>> patterns
>> (babel)                preloaded for \language=0 instead on 
>> input line 49.
>>
>
> And in the document hyphenation is very much broken, either not 
> breaking
> words at all or breaking in the wrong places.

Interesting.  The error message says “rebuild the format”, so it’s 
possible that we actually need to do that.

If you look at the definition of texlive-latex-base, we’re 
building a few formats in the “build” phase.  Actually, you’ll see 
all the formats that we *don’t* build, but what’s left includes 
“pdflatex”.  It’s possible that we need to change this slightly to 
ensure that the hyphenation patterns are actually found.  My guess 
is that when we build these formats, TeX is not aware of the 
hyphenation patterns, even though they are in the build 
environment.

-- 
Ricardo


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

end of thread, other threads:[~2021-05-04 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-02 15:03 How is the LaTeX-related file psfonts.map installed on Guix? Rovanion Luckey
2021-05-03  9:35 ` Andreas Enge
2021-05-03 13:44 ` Ricardo Wurmus
2021-05-04 16:21   ` Rovanion Luckey
2021-05-04 20:35     ` Ricardo Wurmus

unofficial mirror of guix-devel@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-devel/0 guix-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-devel guix-devel/ https://yhetil.org/guix-devel \
		guix-devel@gnu.org
	public-inbox-index guix-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.devel
	nntp://news.gmane.io/gmane.comp.gnu.guix.devel


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git