mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
(Martin Vermeer): fix greyout and layout foul-ups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42942c285a
commit
26f64808a2
@ -1,3 +1,6 @@
|
||||
2003-07-21 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* insetnote.C: fixed greyout and conditionals layout foul-ups.
|
||||
|
||||
2003-07-18 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
|
@ -149,17 +149,19 @@ int InsetNote::latex(Buffer const * buf, ostream & os,
|
||||
string const pt = params_.type;
|
||||
|
||||
int i = 0;
|
||||
if (pt == "Comment") os << "%\n\\begin{comment}\n"; // remember to validate
|
||||
if (pt == "Greyedout") os << "%\n\\textcolor[gray]{0.8}{";
|
||||
if (pt != "Note") {
|
||||
if (pt == "Comment")
|
||||
os << "%\n\\begin{comment}\n"; // remember to validate
|
||||
else if (pt == "Greyedout")
|
||||
os << "%\n\\textcolor[gray]{0.8}{";
|
||||
|
||||
if (pt != "Note")
|
||||
i = inset.latex(buf, os, runparams);
|
||||
}
|
||||
|
||||
if (pt == "Comment") {
|
||||
os << "%\n\\end{comment}\n";
|
||||
i += 3;
|
||||
}
|
||||
if (pt == "Greyedout") {
|
||||
os << "%\n}";
|
||||
} else if (pt == "Greyedout") {
|
||||
os << "\\normalcolor%\n}";
|
||||
i += 2;
|
||||
}
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user