mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Revert yesterday's change. It's going to be too complicated to deal
with nasty surprises. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5438 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
53177767c9
commit
8648388992
@ -1,3 +1,8 @@
|
||||
2002-10-18 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* formula.C (latexString): Revert yesterday's change. It's going to
|
||||
be too complicated to deal with nasty surprises.
|
||||
|
||||
2002-10-17 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* formula.C (latexString): change "\[ ... \]" to "$ \displaystyle ... $"
|
||||
|
@ -330,18 +330,5 @@ string const InsetFormula::PreviewImpl::latexString() const
|
||||
ostringstream ls;
|
||||
WriteStream wi(ls, false, false);
|
||||
parent().par_->write(wi);
|
||||
string str = ls.str().c_str();
|
||||
|
||||
// If we are in displaymode, the preview will include the margins
|
||||
// on either side of the previewed equation.
|
||||
// We can create an image with a tight bounding box by replacing the
|
||||
// "\[ ... \]" delimiters with "$ \displaystyle ... $".
|
||||
// Note that we have to get rid of any trailing '\n's for the fix
|
||||
// to work.
|
||||
if (prefixIs(str, "\\[")) {
|
||||
str = rtrim(rtrim(ltrim(str, "\\["), "\n"), "\\]");
|
||||
str = "$ \\displaystyle " + str + " $";
|
||||
}
|
||||
|
||||
return str;
|
||||
return ls.str().c_str();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user