You are not logged in.
Hello,
I have installed latex using:
sudo pacman -S texstudio texlive-most texlive-langextraI am using this package to compile an arabic essay:
\usepackage{polyglossia}The problem is I can't change the Arabic font. Whatever font name I use it tells me this error:
kpathsea: Running mktextfm Amiri/OT
/usr/share/texmf-dist/web2c/mktexnam: Could not map source abbreviation O for OT. /usr/share/texmf-dist/web2c/mktexnam: Need to update /usr/share/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input OT
This is METAFONT, Version 2.71828182 (TeX Live 2023/Arch Linux) (preloaded base=mf)
kpathsea: Running mktexmf OT
! I can't find file `OT'. <*> \mode:=ljfour; mag:=1; ; nonstopmode; input OT Please type another input file name ! Emergency stop. <*> \mode:=ljfour; mag:=1; ; nonstopmode; input OT Transcript written on mfput.log.
grep: OT.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input OT' failed to make OT.tfm.
kpathsea: Appending font creation commands to missfont.log.How can I fix it and add new fonts please?
Last edited by light9876 (2023-08-10 08:51:14)
Offline
What tex commands do you use to try to change the font? I'm not particularly well versed in latex error output, so I'm not sure if that blurb would give an answer already, but depending on what font you want to use, there are different ways of specifying it.
First, I'm quite biased against the latex fonts - a couple of them look good, but the ecosystem as a whole is a confusing mess. Using Xelatex and the fontspec package makes a world of difference as you can then use any system font recognized by font-config (e.g., [almost] any regular font package) rather than needing latex-specific font packages.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
The blurb is quite short, but at least I see that metafont is trying to create the fonts, which is in 99 % of the usecases a hint that something at the installation step went wrong. Are the fonts actually installed? What engine do you use (xetex or luatex? or even pdftex?)?
Edit: plese read the polyglossia manual
Last edited by Stefan Husmann (2023-05-03 15:56:00)
Offline