latextemplates / scientific-thesis-template

LaTeX template for Master, Bachelor, Diploma, and Student Theses
http://latextemplates.github.io/scientific-thesis-template/
BSD Zero Clause License
357 stars 120 forks source link

Build using texlive-2023 fails #153

Open moemode opened 10 months ago

moemode commented 10 months ago

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 commented 10 months ago

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

koppor commented 10 months ago

Googling found https://github.com/MiKTeX/miktex-packaging/issues/210 and from that, I found https://github.com/MiKTeX/miktex-packaging/issues/209#issuecomment-734385178. -- 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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

Sorry i am confused about your last comment. What does

.pdf always works.

mean?

koppor commented 10 months ago

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 commented 10 months ago

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.