[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(still) problems with the filling functions and and inline equations
From: |
Uwe Brauer |
Subject: |
(still) problems with the filling functions and and inline equations |
Date: |
Sat, 16 Dec 2023 14:12:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Hi
Some time ago Keita suggested to use
--8<---------------cut here---------------start------------->8---
(defun my-add-fill-inhibit-regexp ()
(interactive)
(setq-local auto-fill-inhibit-regexp ".*% *$"))
(add-hook 'LaTeX-mode-hook 'my-add-fill-inhibit-regexp)
--8<---------------cut here---------------end--------------->8---
To avoid that in equations long lines get broken. That works, however
not for inline equations as the following example shows:
--8<---------------cut here---------------start------------->8---
\documentclass[12pt]{article}
\begin{document}
\begin{document}
\begin{enumerate}
\item \autoref{A-E:partial1overpartialtPhiHNminusone}:
$\Big \| \bar{\partial} \Big( \frac{1}{\partial_t \Phi} \Big) \Big\|_{H^{N-1}}
\leq C e^{-\varkappa \Omega}S_{\partial \Phi;N} \sum_{l=1}^N
e^{\varkappa(l+1)\Omega} e^{-\varkappa(l - 1)} = C e^{\varkappa \Omega}
S_{\partial \Phi;N}$%
\end{enumerate}
\end{document}
--8<---------------cut here---------------end--------------->8---
The LaTeX-fill-environment results in
--8<---------------cut here---------------start------------->8---
\documentclass[12pt]{article}
\begin{document}
\begin{enumerate}
\item \autoref{A-E:partial1overpartialtPhiHNminusone}:
$\Big \| \bar{\partial} \Big( \frac{1}{\partial_t \Phi} \Big)
\Big\|_{H^{N-1}}
\leq C e^{-\varkappa \Omega}S_{\partial \Phi;N} \sum_{l=1}^N
e^{\varkappa(l+1)\Omega} e^{-\varkappa(l - 1)} = C e^{\varkappa
\Omega} S_{\partial \Phi;N}$%
\end{enumerate}
\end{document}
--8<---------------cut here---------------end--------------->8---
How can I avoid this filling? I also played around with
LaTeX-indent-environment-list
but even after have set
("enumerate" LaTeX-indent-tabular)
It still breaks the inline equations
Any ideas?
Thanks
Uwe Brauer
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
- (still) problems with the filling functions and and inline equations,
Uwe Brauer <=