diff --git a/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_2.tex b/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_2.tex
index 6c7f00a239e..1a6bd666f8c 100644
--- a/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_2.tex
+++ b/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_2.tex
@@ -92,10 +92,10 @@ therefore do not appear in the constructors.
\ccTexHtml{$3 \times 3$ matrix form \usebox{\arrtwo}.}%
{3x3 matrix
.}
The sub-matrix \ccTexHtml{$1\over hw$\usebox{\arrlintwo}}%
- {
hw-1
} contains the scaling and rotation
information, the vector \ccTexHtml{$1\over hw$
- \usebox{\transvectwo}}{
+ \usebox{\transvectwo}}{hw-1
}
contains the translational part of the transformation.}
diff --git a/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_3.tex b/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_3.tex
index 42013b6651c..0aab9fc6c98 100644
--- a/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_3.tex
+++ b/Kernel_23/doc_tex/Kernel_23_ref/Aff_transformation_3.tex
@@ -73,11 +73,11 @@ constructors.
{introduces a general affine transformation of the matrix
form \ccTexHtml{\usebox{\arrthree}.}{
.} The part \ccTexHtml{$1\over hw$
- \usebox{\arrlinthree}}{
+ \usebox{\arrlinthree}}{hw-1
}
defines the scaling and rotational part of the transformation,
while the vector \ccTexHtml{$1\over hw$\usebox{\transvecthree}}%
- {
hw-1
} contains the translational part.}
\savebox{\arrthree}{\small $\left(\begin{array}{cccc}
diff --git a/Manual_tools/src/latex_converter_config/html/latex.sty b/Manual_tools/src/latex_converter_config/html/latex.sty
index 14e98a969b8..0d2ef99ad78 100644
--- a/Manual_tools/src/latex_converter_config/html/latex.sty
+++ b/Manual_tools/src/latex_converter_config/html/latex.sty
@@ -1444,8 +1444,8 @@
% declare TeX compatible \ifmmode (can be used in the ifthen.sty)
\newcommand{\ifmmode}{\lciMathMode}
-\newcommand{\(}{\newcommand{\lciMathMode}{\lcTrue}\lcRawHtml{}}
+\newcommand{\(}{\newcommand{\lciMathMode}{\lcTrue}\lcRawHtml{}}
+\newcommand{\)}{\newcommand{\lciMathMode}{\lcFalse}\lcRawHtml{}}
\newenvironment{math}{\(}{\)}
\newcommand{\lciToggleMathMode}{\lciIf{\lciMathMode}{\)}{\(}}
@@ -1467,9 +1467,9 @@
\newcommand{\sqrt@om}{\lcRawHtml{root}#1\lcRawHtml{}(#2)}
\newcommand{\frac}[2]{\lciIf{\lciMathModeDisplay}
- {\lcRawHtml{
| |
\end{ccHtmlOnly}