I use Scientific word to generate Latex, and from its GUI, it only supports \fbox
to put a frame around a displayed equation. i.e. I select the equation from the GUI and click on a button which adds a frame. The latex it generates adds fbox
inside \[...\]
and so I have no control over this.
What I can do is add something in the preamble of the latex file that can fix or improve something it does.
The problem is that \fbox
seems to change the size of the math on the right side of the equation compared to the left side. When I do the same thing using \boxed
I get much better result, which is what I want. (but again, the GUI generates \fbox
and there is no way to tell SW to use boxed
instead).
Here is a MWE and it is clear that fbox
output is not right.
At first I thought if I make the fboxsep
larger that will fix it, but that has no effect at all on the font size. Is there something else I can add to preamble to make the result look like \boxed
?
One last thing, I can't just change \fbox
by \boxed
using some smart text replacement macro, as SW will not longer be able to display the equation on the screen then, since it does not know what \boxed
is.
\documentclass[11pt]{article}%
\usepackage{amsmath}
\setlength{\fboxsep}{10pt}
\begin{document}
\[
\fbox{$x_1\left( t\right) =x_{20}\frac{t}{1+t^2}+\frac{1}{\sqrt{\left(
1+t^2\right) }}$}%
\]
\[
\boxed{x_1\left( t\right) =x_{20}\frac{t}{1+t^2}+\frac{1}{\sqrt{\left(
1+t^2\right) }}}%
\]
\end{document}
Result is
\[\fbox{$x_1(t) = x_{20} \frac{t}{1 + t^{2}} + \frac{1}{\sqrt{1 + t^{2}}}$}\]
.