You are not logged in.
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
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
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
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-contextLast edited by xerus (2022-09-24 23:35:37)
Offline
I do not see TEXMF set in your PKGBUILD. And you still did not answer my question why you want to set it at all.
The updmap-sys command was run as root?
Offline
Note you should fiddle with this only if you know exactly why you need to. If you do need to, you need to do it in just the right place and just the right way.
I do not use Arch's TeX Live. I don't know where just the right places are for Arch's installation, but it will presumably be a texmf.cnf or similar. (Perhaps in /etc?)
The way this works with vanilla TeX Live, you override specific values in the default texmf.cnf in a local texmf.cnf. I'm assuming Arch's brand will use something similar.
If you really need additional stuff in TEXMF, you need to add it. So find the default value in Arch's configuration file and then make sure you only add to that value when you override it. For example, I have these lines to add certain things I use from Arch's repos on to the standard TeX Live stuff. In this case, I'm adding /usr/share/texmf:
TEXMFARCH = /usr/share/texmf
TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDIST,$TEXMFARCH}
TEXMFDBS = {!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDIST,$TEXMFARCH}You would need to adapt this to modify whatever defaults Arch uses. Note that the exclamation points and braces are crucial here. This gets expanded by TeX. You don't set TEXMF in your shell. You configure it so that kpsewhich processes it correctly.
echo $TEXMFreturns an empty line on my machine, but
kpsewhich --var-value=TEXMFreturns
{/home/myusername/.texlive2021/texmf-config,/home/myusername/.texlive2021/texmf-var,/home/myusername/texmf,!!/usr/local/texlive/2021/texmf-config,!!/usr/local/texlive/2021/texmf-var,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2021/texmf-dist,/usr/share/texmf}[I'm lazy this year and haven't yet installed 2022.]
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline