Open Henzlefens opened 8 months ago
Hi, thanks for submitting this issue!
So far I have figured out that you are using the mylatexformat
package, but it is not clear how to use the package to me, the documentation is a bit minimal.
Could you explain what is supposed to happen when running the command that is in your bat file? I guess a bericht.fmt
file should be produced?
How do you then compile main.tex
into a pdf?
If I execute etex -initialize -save-size=20000 -stack-size=20000 -jobname="bericht" "&pdflatex" mylatexformat.ltx "format_preamble.tex"
then the output is
etex: unrecognized option '-initialize'
etex: unrecognized option '-save-size=20000'
etex: unrecognized option '-stack-size=20000'
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Arch Linux) (preloaded format=etex)
restricted \write18 enabled.
entering extended mode
(/home/thomas/.miktex/texmfs/install/tex/latex/mylatexformat/mylatexformat.ltx
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>) (./format_preamble.tex
(/usr/share/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2022/10/12 v3.38 KOMA-Script document class (report)
(/usr/share/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrlfile.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
(/usr/share/texmf-dist/tex/latex/koma-script/scrlogo.sty)))
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)))
(/usr/share/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/share/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(/usr/share/texmf-dist/tex/latex/koma-script/typearea.sty))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def))) )
(\dump is performed only by INITEX)
No pages of output.
Transcript written on bericht.log.
and only a bericht.log
is produced, no format file.
I'm using MiKTeX on Linux.
Description
Hi! My name is Jens and I improved my compiling speed witch the implementation of a format file that contains all packages, the documentclass, header and footer definition etc. etc.
I write longer reports on energy analysis so my documents consists of several chapters that I write in multiple .tex files and \include{} them in my main.tex.
But since I am now compiling with a format file, PyCharm marks all sniplets that are based on the loaded packages in the format file.
Example
I created a small example project. The project needs to be compiled with pdflatex. But first, the .bat file needs to be executed. It creates the format file based on the format_preamble.tex. After that please compile the main.tex and have a look at the Heizkreise.tex. \includegraphics based on graphicx is unterlined with a red zigzag by PyCharm with a hint to import the package. But when you replace "./image" with an image of your choice you will see that the import of the graphic is working.
example.zip
This is my first ever created issue and I am more than happy to help. I use texify in Pycharm on a regular basis.
Setup
I use PyCharm 2023.3.3 (Professional Edition) Build #PY-233.13763.11 Runtime version: 17.0.9+7-b1087.11 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
TeXiFy 0.9.3 is installed.