mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Partial fox for bug #6622: Display \utilde on screen correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38633 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1d23f8bf79
commit
32f6c066cc
@ -2085,6 +2085,7 @@ lib_images_math_files = Split('''
|
||||
upsilon2.png
|
||||
upuparrows.png
|
||||
urcorner.png
|
||||
utilde.png
|
||||
varepsilon.png
|
||||
varkappa.png
|
||||
varnothing.png
|
||||
|
@ -947,6 +947,7 @@ dist_imagesmath_DATA = \
|
||||
images/math/upsilon2.png \
|
||||
images/math/upuparrows.png \
|
||||
images/math/urcorner.png \
|
||||
images/math/utilde.png \
|
||||
images/math/varepsilon.png \
|
||||
images/math/varkappa.png \
|
||||
images/math/varnothing.png \
|
||||
|
@ -309,6 +309,7 @@
|
||||
\TestPackage{subscript}
|
||||
\TestPackage[turkmen.ldf]{turkmen}
|
||||
\TestPackage{ulem}
|
||||
\TestPackage{undertilde}
|
||||
\TestPackage{units}
|
||||
\TestPackage{url}
|
||||
\TestPackage{varioref}
|
||||
|
@ -5591,6 +5591,41 @@ ulem
|
||||
to PDF.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
undertilde
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Found:
|
||||
\begin_inset Info
|
||||
type "package"
|
||||
arg "undertilde"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
CTAN:
|
||||
\family typewriter
|
||||
macros/latex/contrib/undertilde/
|
||||
\end_layout
|
||||
|
||||
\begin_layout Description
|
||||
Notes: The package
|
||||
\family sans
|
||||
undertilde
|
||||
\family default
|
||||
provides the
|
||||
\family sans
|
||||
|
||||
\backslash
|
||||
utilde
|
||||
\family default
|
||||
command.
|
||||
It is needed by LyX to underline symbols with a tilde in formulas.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsection
|
||||
units
|
||||
\end_layout
|
||||
|
BIN
lib/images/math/utilde.png
Normal file
BIN
lib/images/math/utilde.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 286 B |
@ -26,6 +26,10 @@ underleftarrow decoration none amsmath
|
||||
underleftrightarrow decoration none amsmath
|
||||
underline decoration none
|
||||
underrightarrow decoration none amsmath
|
||||
#Do not load automatically, since it might conflict with user macros and we
|
||||
#don't have a possibility to turn automatic loading off like for ams
|
||||
#utilde decoration none undertilde
|
||||
utilde decoration none
|
||||
vec decoration none
|
||||
widehat decoration none
|
||||
widetilde decoration none
|
||||
|
@ -398,6 +398,8 @@ ToolbarSet
|
||||
Item "check" "math-insert \check"
|
||||
Item "widehat" "math-insert \widehat"
|
||||
Item "widetilde" "math-insert \widetilde"
|
||||
# enable this once the undertilde package is loaded automatically
|
||||
# Item "utilde" "math-insert \utilde"
|
||||
Item "vec" "math-insert \vec"
|
||||
Item "acute" "math-insert \acute"
|
||||
Item "ddot" "math-insert \ddot"
|
||||
|
@ -614,7 +614,8 @@ char const * simplefeatures[] = {
|
||||
"amscd",
|
||||
"slashed",
|
||||
"multirow",
|
||||
"tfrupee"
|
||||
"tfrupee",
|
||||
"undertilde",
|
||||
};
|
||||
|
||||
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
|
||||
|
@ -47,7 +47,7 @@ Inset * InsetMathDecoration::clone() const
|
||||
|
||||
bool InsetMathDecoration::upper() const
|
||||
{
|
||||
return key_->name.substr(0, 5) != "under";
|
||||
return key_->name.substr(0, 5) != "under" && key_->name != "utilde";
|
||||
}
|
||||
|
||||
|
||||
@ -93,7 +93,8 @@ bool InsetMathDecoration::wide() const
|
||||
key_->name == "widetilde" ||
|
||||
key_->name == "underleftarrow" ||
|
||||
key_->name == "underrightarrow" ||
|
||||
key_->name == "underleftrightarrow";
|
||||
key_->name == "underleftrightarrow" ||
|
||||
key_->name == "utilde";
|
||||
}
|
||||
|
||||
|
||||
@ -204,6 +205,7 @@ namespace {
|
||||
// this is the macron, again, but it works
|
||||
t["underline"] = Attributes(false, "¯");
|
||||
t["underrightarrow"] = Attributes(false, "⟶");
|
||||
t["utilde"] = Attributes(false, "∼");
|
||||
t["vec"] = Attributes(true, "→");
|
||||
t["widehat"] = Attributes(true, "^");
|
||||
t["widetilde"] = Attributes(true, "∼");
|
||||
|
@ -287,6 +287,7 @@ named_deco_struct deco_table[] = {
|
||||
{"underleftarrow", arrow, 1 },
|
||||
{"underrightarrow", arrow, 3 },
|
||||
{"underleftrightarrow", udarrow, 1 },
|
||||
{"utilde", tilde, 0 },
|
||||
|
||||
// Delimiters
|
||||
{"(", parenth, 0 },
|
||||
|
Loading…
Reference in New Issue
Block a user