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

Problems with new Miktex Versions #79

Open
Thomas19842 opened this issue Feb 17, 2017 · 2 comments
Open

Problems with new Miktex Versions #79

Thomas19842 opened this issue Feb 17, 2017 · 2 comments

Comments

@Thomas19842
Copy link

Hello,

I have the following problem with new miktex installations since maybe a half year. I can't use the preview and compiling function. The miktex installation was found and all packages are installed but if I use the Tikzedt I have the following error.

This software is under development. All help/feedback/feature requests/error reports are welcome.
Application data directory is C:\Users\tstein\AppData\Roaming\TikzEdt\TikzEdt\0.2.3.0
Working directory is now: C:\Program Files (x86)\TikzEdt\TikzEdt 0.2.3
Compiling document for preview: pdflatex -interaction=nonstopmode -halt-on-error "C:/Users/tstein/AppData/Local/Temp/TE_temp_preview9840.tex" 
Compilation failed with exit code 1
Compiling document for preview: pdflatex -interaction=nonstopmode -halt-on-error "C:/Users/tstein/AppData/Local/Temp/TE_temp_preview9840.tex" 
Compilation failed with exit code 1
Compiling document for preview: pdflatex -interaction=nonstopmode -halt-on-error "C:/Users/tstein/AppData/Local/Temp/TE_temp_preview9840.tex" 
Compilation failed with exit code 1

The same problem I also have with other scripts which use the latex Compilers. They can't find latex.exe whether the path is correct and the normal installation is working with editors like TecnicCenter. After a long time trying I didn't found any solution for this Issue. I can't only explain that something changed at latex.exe and maybe arguments didn't work.

Does anyone have some experience there? How can I change it in my scripts and also in TikzEdt?

Thank you very much in advance and best regards

Thomas Stein

@ThomasAuzinger
Copy link

ThomasAuzinger commented Apr 27, 2018

I investigated this problem a bit and found the following issues and solution:

  • After having pdflatex exit with code 1 (i.e., with an error) the pdflatex.log file of MiKTeX has the following error messages:
INFO  .. starting with command line: pdflatex ... C:/Users/.../AppData/Local/Temp/TE_temp_preview18216.tex
...
INFO  pdflatex - going to create file: C:\Users\...\AppData\Roaming\TikzEdt\TikzEdt\023~1.0\TEMP_H~1.fmt
ERROR pdflatex - output:
ERROR pdflatex - 
Sorry, but "MiKTeX Configuration Utility" did not succeed for the following reason:
  Unknown format name/engine: TEMP_H~1/pdftex
The log file hopefully contains the information to get MiKTeX going again:
  C:/Users/.../AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log
  • In the file initexmf.log, I find:
INFO  initexmf - starting with command line: initexmf --enable-installer --dump-by-name=TEMP_H~1 --engine=pdftex
FATAL initexmf - Unknown format name/engine: TEMP_H~1/pdftex
  • So it seems to me that there is some problem with the format file at C:\Users\...\AppData\Roaming\TikzEdt\TikzEdt\0.2.3.0\temp_header.fmt. If I delete it, TikzEdt tries to regenerate it from temp_header.tex but hangs.

  • temp_header.tex is a hidden file (for whatever reason) and when I checked it, I saw that it contained corrupted commands such as reviewEnvironment{tikzpicture} instead of \PreviewEnvironment{tikzpicture}. After deleting these problematic commands, TikzEdt works again.

@bibbca
Copy link

bibbca commented Apr 8, 2020

For future reference, my issue is fixed (so far) by not doing the above (my file has \PreviewEnvironment{tikzpicture})
Instead I launched TikzEdt and went to Compilation > (Re-)Generate precompiled headers.

Also, I would like to take this opportunity to tag #77 , Does anyone know how to compile this program from source code?

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

3 participants