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

Indicate LaTeX compilation Errors in Modeline #387

Closed
Sk4zz opened this issue Nov 2, 2020 · 4 comments
Closed

Indicate LaTeX compilation Errors in Modeline #387

Sk4zz opened this issue Nov 2, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Sk4zz
Copy link

Sk4zz commented Nov 2, 2020

Is it feasible to implement an indicator for comilation Errors (and maybe Warnings) when compiling LaTeX documents using auctex? Something like the flycheck segment but instead calling TeX-error-overview or a similar function?

Thank you!

@seagle0128 seagle0128 added the enhancement New feature or request label Nov 3, 2020
@seagle0128
Copy link
Owner

It's easy to define a new segment and integrate into doom-modeline. I'm pleasure to do that, but I am not using LaTeX.
Another option is using flycheck to check latex buffers. I think it's enabled by default?

Anyway, PRs are welcome!

@Sk4zz
Copy link
Author

Sk4zz commented Nov 3, 2020

Thank you for the answer and the hint to flycheck! I must admit I have never considered flycheck for LaTeX. I just gave it a try and it works nicely together with doom-modeline.

Unfortunately, flycheck seems not to differentiate between Warnings and Errors that would cause the compilation to fail. Furthermore, it seems like flycheck does not detect undefined control sequences.

I am learning elisp but I will try to write a segment for doom-modeline that works as desired. I might ask some follow-up questions here.

This is an example of a *TeX errors* buffer that I would use to extract the information from:

File                     Line   Type        Message
Thema_2.tex                 83 Warning Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
Thema_2.tex                 83 Warning Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
content02.tex              304 Error   Undefined control sequence.
Thema_2.vrb                 13 Bad box Overfull \hbox (22.80315pt too wide) in paragraph at lines 13--34
Thema_2.vrb                 13 Bad box Overfull \hbox (22.80315pt too wide) in paragraph at lines 13--34

@haji-ali
Copy link
Contributor

haji-ali commented Aug 23, 2022

@Sk4zz, see my package procress for a possible solution.

@Sk4zz
Copy link
Author

Sk4zz commented Aug 23, 2022

Hey @haji-ali, thanks for your reply! In fact I discovered the procress package through a reddit post some time ago and it is indeed the perfect solution. I totally forgot about this issue.

@Sk4zz Sk4zz closed this as completed Aug 23, 2022
seagle0128 added a commit that referenced this issue Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants