On 2025/11/30 17:23:19 +0100, Arash Esbati wrote: > Arash Esbati <[email protected]> writes: > > > "Dr. Werner Fink" <[email protected]> writes: > > > >> Just detected during writing a german letter with dinbrief class and > >> also seen with letter class and article class. First one have to use > >> a name for the letter which does not have the same basename as the > >> AucTeX style file. Means calling `emacs letter.tex` and using > >> letter as document class works as now the environment `letter` exists > >> and will do the questions given in letter.el. But using an other > >> basename does not work that way. Also in this case the variable > >> `LaTeX-default-document-environment` is `nil` ... the same with > >> a german letter with the dinbrief class which uses dinbrief.el. > >> In both cases the options are known but the hook is not expanded. > >> The same test with a fresh file using the article class ... the > >> in the `TeX-add-style-hook` added "abstract" environment is not known. > > > > Thanks for the report. I admit I'm not sure if I exactly understand > > what you describe. Can you please: > > > > • Set `TeX-parse-self' to t and try it again? I see have you have > > that variable set to nil. > > > > • If that doesn't work, can you please provide a minimal .tex file for > > us in order to reproduce what you describe? > > Ping! Werner, any update about this issue? > > Best, Arash
Hi,
thanks for pinging ... I've a simple patch to resolve this problem.
Beside missing parentheses the correct order of the LaTeX-add-environments
solve it for me.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
---
style/dinbrief.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- style/dinbrief.el
+++ style/dinbrief.el 2025-10-02 11:14:41.048677856 +0000
@@ -45,8 +45,8 @@
"dinbrief"
(lambda ()
(LaTeX-add-environments
- '("letter" LaTeX-dinbrief-env-recipient)
- "dinquote")
+ '("dinquote")
+ '("letter" LaTeX-dinbrief-env-recipient))
(add-hook 'LaTeX-document-style-hook
#'LaTeX-dinbrief-style)
(setq LaTeX-default-document-environment "letter")
signature.asc
Description: PGP signature
_______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
