You are not logged in.

#1 2022-09-19 11:22:24

xerus
Member
Registered: 2021-05-11
Posts: 20

Using latex from texlive and context lmtx side by side

I made an AUR package for ConTeXt LMTX: https://aur.archlinux.org/packages/context

But for it to work, I have to set the TEXMF environment variable.

However, when that is set, pdflatex curiously complains:

❯ pdflatex -shell-escape -recorder "test.tex"
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Arch Linux) (preloaded format=pdflatex)
 \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_IE.UTF-8",
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LC_MONETARY = "de_DE.UTF-8",
	LC_CTYPE = "C.UTF-8",
	LANG = "en_DK.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt:   /home/janek/.texlive/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /home/janek/.texlive/texmf-var/web2c
mktexfmt [INFO]: Did not find entry for byfmt=pdflatex skipped
mktexfmt [INFO]: total formats: 0
mktexfmt [INFO]: exiting with status 0
I can't find the format file `pdflatex.fmt'!

No subpath of `/usr/share/texmf-dist/tex/latex` was accepted by it, which is what it normally seems to work in.
Interestingly enough, `pdflatex.fmt` does not even exist on my system.

Last edited by xerus (2022-09-19 13:05:12)

Offline

#2 2022-09-19 12:04:57

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,894
Website

Re: Using latex from texlive and context lmtx side by side

Please use code tags for terminal output.

https://wiki.archlinux.org/title/Genera … s_and_code

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-09-21 15:29:49

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,277

Re: Using latex from texlive and context lmtx side by side

Why do you have to set the TEXMF variable, and to what value?

Edit: pdflatex.fmt, like the other format files, does not come with the texlive packages, but needs to be generated by a updmap-sys run.

Last edited by Stefan Husmann (2022-09-21 18:02:25)

Offline

#4 2022-09-24 23:35:20

xerus
Member
Registered: 2021-05-11
Posts: 20

Re: Using latex from texlive and context lmtx side by side

You can see the value in the PKGBUILD of the package, but it really does not matter:
Any value, and it starts complaining about the missing file - which it does not if it is unset. That is very weird.

The suggested command produces:

❯ updmap-sys
updmap will read the following updmap.cfg files (in precedence order):
updmap may write changes to the following updmap.cfg file:
  /etc/texmf/web2c/updmap.cfg
updmap: Directory "/var/lib/texmf/fonts/map/dvips/updmap" isn't writable: No such file or directory at /usr/bin/updmap line 1464.
❯ echo $TEXMF
/usr/share/texmf-dist/texmf-context

Last edited by xerus (2022-09-24 23:35:37)

Offline

Board footer

Powered by FluxBB