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

Template does not build – but just warnings, no errors – #134

Open
Johannes1306 opened this issue Nov 26, 2020 · 10 comments
Open

Template does not build – but just warnings, no errors – #134

Johannes1306 opened this issue Nov 26, 2020 · 10 comments

Comments

@Johannes1306
Copy link

The only warning what could lead to the reason is the following one.

THIS IS AN ALPHA VERSION!(scrwfile) USAGE OF THIS VERSION IS ON YOUR OWN RISK!(scrwfile) EVERYTHING MAY HAPPEN!(scrwfile) EVERYTHING MAY CHANGE IN FUTURE!(scrwfile) THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!(scrwfile) Maybe, it would be better not to load this package..

Does anyone manage to build this current version?

@koppor
Copy link
Member

koppor commented Nov 26, 2020

I am not sure whether GitHub actions counts as "anyone"?

See https://github.com/latextemplates/scientific-thesis-template/runs/1423965865 and https://latextemplates.github.io/scientific-thesis-template/main-minted-german.pdf for the compiled version.

Without knowing your concrete build setup, I cannot really help. But this is not what you asked for ^^.

I know that someone had issues with Mac OS X and this template. We managed to get docker running on his machine and executing the docker command. With someone with more patience - and using Mac OS - we could analzye the errors.

The warning above is not releveant at all. I would use "pdflatex main-german.tex" and see the line where it stops. pdflatex has the feature that the compiler stops at the first error. This is not well-supported at UIs, but very well supported at command line prompts. - Update This is the first time, it does not stop. It seems that if .enc files are missing, it just exits without stopping.

It compiled one week ago "on my machine".

Today, on another machine:

With lualatex, I get ! error: (type 1): cannot find encoding file 'ntx-ot1-tlf.enc' for reading. Unfixable for me.

With pdflatex, I get ! TeX capacity exceeded, sorry [main memory size=3000000].. I added a new FAQ.

Then, I get the lualatex error, too.

I submitted https://github.com/MiKTeX/miktex/issues/663.

Thereby, I found a work-around: Download following three files and place them into the folder of the .tex file

@Vogel612
Copy link
Collaborator

Building from current master on my arch linux I can reproduce the error message from the original report, but I also get a proper output for the template.

pdflatex main-german.tex also surfaces the reported warning, but also completes.

Additionally there's the following warnings:

  • "Command \@parboxrestore has changed."
  • "csquotes should be loaded after fvextra"
  • filecontents is obsolete
  • eq:test multiply defined
  • eq:test@cref multiply defined
  • footnotehyper warns about: "The footnote environment will not be fully functional, sorry."
  • pgfplots wants to be updated to compat 1.17 from 1.14
  • Use of \deftripstyle should be replaced with \deftriplepagestyle
  • center environment in figure
  • 4 nag warnings and missing font shapes.

These are consistent with the warnings from running make. It seems like this is a MiKTeX issue?

@koppor
Copy link
Member

koppor commented Nov 29, 2020

Note that an issue to MikTeX seems to have been submitted in parallel to my (lengthy) report at MiKTeX/miktex-packaging#209. It is fixed. It should build.

I also updated the FAQ http://latextemplates.github.io/scientific-thesis-template/#q-i-get-font-latinmodernmath-regular-not-found-what-can-i-do

Finally the hint to ask the MikTeX maintainer to improve auto-installation at MiKTeX/miktex#127 (or submit a MiKTeX fix via a PR).

@koppor
Copy link
Member

koppor commented Nov 29, 2020

@Vogel612 Thank you for listing the warngings. I added them to #135.

I am still trying to get the template-generator finished. However, other projects require my energy, too.

@Vogel612
Copy link
Collaborator

scrwfile is marked as important to avoid "No room for a new \write". To support that usecase (although preliminary testing on my machine reveals it's not strictly necessary to have scrwfile) another option might be to use morewrites, which seems to be significantly newer and was not available when srcwfile was originally added.

@Legion2
Copy link

Legion2 commented Dec 17, 2020

I updated my latex packages with MiKTeX Console today on Window and now the template doesn't compile anymore. My CI pipeline, which runs on linux, still compiles the template.

@koppor
Copy link
Member

koppor commented Dec 17, 2020

what is the output of lualatex main? It stops at the first error. Please show us this first error! Replace "lualatex" by "pdflatex" (if you use pdflatex) and "main" by the main document filename.

@Legion2
Copy link

Legion2 commented Dec 17, 2020

The error was TeX capacity exceeded, sorry [main memory size=3000000].
I fixed it by increasing the memory limit in MiKTeX to 5000000.

@koppor
Copy link
Member

koppor commented Dec 17, 2020

Thank you for the update. We also have that in the FAQ: https://latextemplates.github.io/scientific-thesis-template/

Not sure what changed in LaTeX's packages.

I am working at the LaTeX template generator, but I do not know if it helps if some features are omitted as default.

@Legion2
Copy link

Legion2 commented Dec 17, 2020

The FAQ page does not redirect to HTTPS/is HTTPS only.

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

4 participants