Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build using texlive-2023 fails #153

Open
moemode opened this issue Oct 26, 2023 · 8 comments
Open

Build using texlive-2023 fails #153

moemode opened this issue Oct 26, 2023 · 8 comments

Comments

@moemode
Copy link

moemode commented Oct 26, 2023

Hey i use qmcgaw/latexdevcontainer:latest-full which uses the TexLive full scheme but on build i get the following error
Does anybody see a fix?

kpathsea: Running mktextfm ntx-Regular-tlf-t1+20
/usr/local/texlive/2023/texmf-dist/web2c/mktexnam: Could not map typeface abbreviation tx for ntx-Regular-tlf-t1+20.
/usr/local/texlive/2023/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2023/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ntx-Regular-tlf-t1+20
This is METAFONT, Version 2.71828182 (TeX Live 2023) (preloaded base=mf)


kpathsea: Running mktexmf ntx-Regular-tlf-t1+20
! I can't find file `ntx-Regular-tlf-t1+20'.
<*> ... ; nonstopmode; input ntx-Regular-tlf-t1+20
                                                  
Please type another input file name
! Emergency stop.
<*> ... ; nonstopmode; input ntx-Regular-tlf-t1+20
                                                  
Transcript written on mfput.log.
grep: ntx-Regular-tlf-t1+20.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ntx-Regular-tlf-t1+20' failed to make ntx-Regular-tlf-t1+20.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font csnameendcsname=ntx-Regular-tlf-t1+20 at 10.95pt not loadable: Metric (T
FM) file not found.
<to be read again> 
                   relax 
l.47 \begin{document}
                     
? 
@moemode
Copy link
Author

moemode commented Oct 26, 2023

Same problem with https://github.com/a-nau/latex-devcontainer.

@koppor
Copy link
Member

koppor commented Oct 28, 2023

Googling found MiKTeX/miktex-packaging#210 and from that, I found MiKTeX/miktex-packaging#209 (comment). -- Maybe, it is a packaging error in TeXLive...

I currently don't have time to investigate more. Would be nice if you could try with the Docker image from https://gitlab.com/islandoftex/images/texlive#tex-live-docker-image.

@moemode
Copy link
Author

moemode commented Oct 30, 2023

Thanks for your response i tried copying the contents of the enc folder into the enc folder of the distribution.
But it did not resolve the issue. In the enc folder the filenames also do not resemble the offending font. It rather seems to be about the tfm directory.

Using the following command i can see that the font file is actually there but not found.
root@6ad9783a73c1:/usr/local/texlive/2023/texmf-dist/fonts# find -type f -name "ntx-Regular-tlf-t1*" ./tfm/public/newtx/ntx-Regular-tlf-t1.tfm

I also tried copying all files from the tfm subfolder in newtx.zip to "/usr/local/texlive/2023/texmf-dist/fonts/tfm/newtx" (instead of public)
To refresh file name database and font map files i ran
mktexlsr
updmap-sys
Are these even correct?

@moemode
Copy link
Author

moemode commented Oct 30, 2023

I now tried with the image from islandoftex. Same errors. By the way i also have to comment out the following in config.tex using any of the three images.

%\usepackage{epstopdf}
%\epstopdfDeclareGraphicsRule{.svg}{pdf}{.pdf}{%
% inkscape -z -D --file=#1 --export-pdf=\OutputFile
%}

Otherwise i get the following error before the font errors come up.

(/usr/local/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
Package epstopdf Warning: Drivers other than `pdftex' and `luatex' are not supp
orted.
))
! Undefined control sequence.
<recently read> \epstopdfDeclareGraphicsRule                                         
l.381 \epstopdfDeclareGraphicsRule
                                  {.svg}{pdf}{.pdf}{%
? 

Is there any known good image compatible with the template?

@koppor
Copy link
Member

koppor commented Nov 2, 2023

Is there any known good image compatible with the template?

.pdf always works.

As a quick fix, I can remove svg conversion support. - One could also switch to the svg package

@moemode
Copy link
Author

moemode commented Nov 2, 2023

Sorry i am confused about your last comment. What does

.pdf always works.

mean?

@koppor
Copy link
Member

koppor commented Nov 2, 2023

Sorry i am confused about your last comment. What does

.pdf always works.

mean?

\includegraphics{test.pdf}

Works for graphics inclusion. You need to crop the PDF to have the right image size (no white margin etc)


Maybe, I understood your question wrong.

Is there any known good image compatible with the template?

I understood that you wanted to ask for an image format compatible with the template.

See https://tex.stackexchange.com/a/39446/9075 for an MWE

@moemode
Copy link
Author

moemode commented Nov 3, 2023

Hey,
thanks for getting back. Yes that is a misunderstanding.
I was asking about a docker image / other distribution which can compile the template.
As outlined above compilation failed with the three texlive based images i tried, including the islandoftext one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants