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

Support for the mylatexformat package #3461

Open
Henzlefens opened this issue Feb 21, 2024 · 1 comment
Open

Support for the mylatexformat package #3461

Henzlefens opened this issue Feb 21, 2024 · 1 comment
Labels
enhancement New feature or (non bug related) change to the program. more-info-needed More information is needed from the person filing the issue.

Comments

@Henzlefens
Copy link

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.

@Henzlefens Henzlefens added enhancement New feature or (non bug related) change to the program. untriaged Issue type still needs to be triaged or verified. labels Feb 21, 2024
@PHPirates
Copy link
Collaborator

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.

@PHPirates PHPirates changed the title Recognize packages included in preamble Support for the mylatexformat package Feb 26, 2024
@PHPirates PHPirates added more-info-needed More information is needed from the person filing the issue. and removed untriaged Issue type still needs to be triaged or verified. labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or (non bug related) change to the program. more-info-needed More information is needed from the person filing the issue.
Projects
None yet
Development

No branches or pull requests

2 participants