This reduces the explicit finger painting in Math.lyx.

A better idea to solve this would be welcome. Using
\arraystretch yields worse results...

Ok?

Andre'
Index: Math.lyx
===================================================================
--- Math.lyx    (revision 26229)
+++ Math.lyx    (working copy)
@@ -197,7 +197,6 @@
 \tracking_changes false
 \output_changes false
 \author "" 
-\author "" 
 \end_header
 
 \begin_body
@@ -12516,6 +12515,12 @@
 \end_inset
 
 
+\begin_inset FormulaMacro
+\newcommand{\pad}[2]{{\fboxrule0mm\fboxsep#1\boxed{\fboxrule0.4pt{}{#2}}}}
+{\framebox[pad][#1]{#2}}
+\end_inset
+
+
 \begin_inset Box Frameless
 position "c"
 hor_pos "c"
@@ -12641,8 +12646,7 @@
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}\fbox{$\int A=B$}\raisebox{-4mm}{}$
-
+\begin_inset Formula $\pad{0.8ex}{\fbox{$\int A=B$}}$
 \end_inset
 
 
@@ -12695,7 +12699,7 @@
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{8.5mm}{}\boxed{\int A=B}\raisebox{-6.5mm}{}$
+\begin_inset Formula $\pad{0.8ex}{\boxed{\int A=B}}$
 \end_inset
 
 
@@ -12733,7 +12737,7 @@
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}A+\fbox{B}\raisebox{-3mm}{}$
+\begin_inset Formula $\pad{0.8ex}{A+\fbox{B}}$
 \end_inset
 
 
@@ -12802,18 +12806,10 @@
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula $\raisebox{6mm}{}$
+\begin_inset Formula $\pad{0.8ex}{\framebox[20mm][]{$\frac{A}{B}$}}$
 \end_inset
 
 
-\begin_inset Formula $\framebox[20mm][]{$\frac{A}{B}$}$
-\end_inset
-
-
-\begin_inset Formula $\raisebox{-4mm}{}$
-\end_inset
-
-
 \end_layout
 
 \end_inset

Reply via email to