mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Partial fox for bug #6622: Display \utilde and \undertilde on screen correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8a295389b5
commit
16c6442951
@ -2074,6 +2074,7 @@ lib_images_math_files = Split('''
|
|||||||
underrightarrow.png
|
underrightarrow.png
|
||||||
underscore.png
|
underscore.png
|
||||||
underset.png
|
underset.png
|
||||||
|
undertilde.png
|
||||||
uparrow.png
|
uparrow.png
|
||||||
uparrow2.png
|
uparrow2.png
|
||||||
updownarrow.png
|
updownarrow.png
|
||||||
@ -2085,6 +2086,7 @@ lib_images_math_files = Split('''
|
|||||||
upsilon2.png
|
upsilon2.png
|
||||||
upuparrows.png
|
upuparrows.png
|
||||||
urcorner.png
|
urcorner.png
|
||||||
|
utilde.png
|
||||||
varepsilon.png
|
varepsilon.png
|
||||||
varkappa.png
|
varkappa.png
|
||||||
varnothing.png
|
varnothing.png
|
||||||
|
@ -936,6 +936,7 @@ dist_imagesmath_DATA = \
|
|||||||
images/math/underrightarrow.png \
|
images/math/underrightarrow.png \
|
||||||
images/math/underscore.png \
|
images/math/underscore.png \
|
||||||
images/math/underset.png \
|
images/math/underset.png \
|
||||||
|
images/math/undertilde.png \
|
||||||
images/math/uparrow.png \
|
images/math/uparrow.png \
|
||||||
images/math/uparrow2.png \
|
images/math/uparrow2.png \
|
||||||
images/math/updownarrow.png \
|
images/math/updownarrow.png \
|
||||||
@ -947,6 +948,7 @@ dist_imagesmath_DATA = \
|
|||||||
images/math/upsilon2.png \
|
images/math/upsilon2.png \
|
||||||
images/math/upuparrows.png \
|
images/math/upuparrows.png \
|
||||||
images/math/urcorner.png \
|
images/math/urcorner.png \
|
||||||
|
images/math/utilde.png \
|
||||||
images/math/varepsilon.png \
|
images/math/varepsilon.png \
|
||||||
images/math/varkappa.png \
|
images/math/varkappa.png \
|
||||||
images/math/varnothing.png \
|
images/math/varnothing.png \
|
||||||
|
@ -309,6 +309,7 @@
|
|||||||
\TestPackage{subscript}
|
\TestPackage{subscript}
|
||||||
\TestPackage[turkmen.ldf]{turkmen}
|
\TestPackage[turkmen.ldf]{turkmen}
|
||||||
\TestPackage{ulem}
|
\TestPackage{ulem}
|
||||||
|
\TestPackage{undertilde}
|
||||||
\TestPackage{units}
|
\TestPackage{units}
|
||||||
\TestPackage{url}
|
\TestPackage{url}
|
||||||
\TestPackage{varioref}
|
\TestPackage{varioref}
|
||||||
|
@ -5591,6 +5591,41 @@ ulem
|
|||||||
to PDF.
|
to PDF.
|
||||||
\end_layout
|
\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
|
\begin_layout Subsection
|
||||||
units
|
units
|
||||||
\end_layout
|
\end_layout
|
||||||
|
BIN
lib/images/math/undertilde.png
Normal file
BIN
lib/images/math/undertilde.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 286 B |
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,14 @@ underleftarrow decoration none amsmath
|
|||||||
underleftrightarrow decoration none amsmath
|
underleftrightarrow decoration none amsmath
|
||||||
underline decoration none
|
underline decoration none
|
||||||
underrightarrow decoration none amsmath
|
underrightarrow decoration none amsmath
|
||||||
|
#Do not load automatically, it redefines some other symbols, and we don't
|
||||||
|
#have a possibility to turn automatic loading off like for ams
|
||||||
|
#undertilde decoration none accents
|
||||||
|
undertilde decoration none
|
||||||
|
#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
|
vec decoration none
|
||||||
widehat decoration none
|
widehat decoration none
|
||||||
widetilde decoration none
|
widetilde decoration none
|
||||||
|
@ -398,6 +398,8 @@ ToolbarSet
|
|||||||
Item "check" "math-insert \check"
|
Item "check" "math-insert \check"
|
||||||
Item "widehat" "math-insert \widehat"
|
Item "widehat" "math-insert \widehat"
|
||||||
Item "widetilde" "math-insert \widetilde"
|
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 "vec" "math-insert \vec"
|
||||||
Item "acute" "math-insert \acute"
|
Item "acute" "math-insert \acute"
|
||||||
Item "ddot" "math-insert \ddot"
|
Item "ddot" "math-insert \ddot"
|
||||||
|
@ -614,7 +614,8 @@ char const * simplefeatures[] = {
|
|||||||
"amscd",
|
"amscd",
|
||||||
"slashed",
|
"slashed",
|
||||||
"multirow",
|
"multirow",
|
||||||
"tfrupee"
|
"tfrupee",
|
||||||
|
"undertilde",
|
||||||
};
|
};
|
||||||
|
|
||||||
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
|
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
|
||||||
|
@ -47,7 +47,7 @@ Inset * InsetMathDecoration::clone() const
|
|||||||
|
|
||||||
bool InsetMathDecoration::upper() 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,9 @@ bool InsetMathDecoration::wide() const
|
|||||||
key_->name == "widetilde" ||
|
key_->name == "widetilde" ||
|
||||||
key_->name == "underleftarrow" ||
|
key_->name == "underleftarrow" ||
|
||||||
key_->name == "underrightarrow" ||
|
key_->name == "underrightarrow" ||
|
||||||
key_->name == "underleftrightarrow";
|
key_->name == "underleftrightarrow" ||
|
||||||
|
key_->name == "undertilde" ||
|
||||||
|
key_->name == "utilde";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -204,6 +206,8 @@ namespace {
|
|||||||
// this is the macron, again, but it works
|
// this is the macron, again, but it works
|
||||||
t["underline"] = Attributes(false, "¯");
|
t["underline"] = Attributes(false, "¯");
|
||||||
t["underrightarrow"] = Attributes(false, "⟶");
|
t["underrightarrow"] = Attributes(false, "⟶");
|
||||||
|
t["undertilde"] = Attributes(false, "∼");
|
||||||
|
t["utilde"] = Attributes(false, "∼");
|
||||||
t["vec"] = Attributes(true, "→");
|
t["vec"] = Attributes(true, "→");
|
||||||
t["widehat"] = Attributes(true, "^");
|
t["widehat"] = Attributes(true, "^");
|
||||||
t["widetilde"] = Attributes(true, "∼");
|
t["widetilde"] = Attributes(true, "∼");
|
||||||
|
@ -287,6 +287,8 @@ named_deco_struct deco_table[] = {
|
|||||||
{"underleftarrow", arrow, 1 },
|
{"underleftarrow", arrow, 1 },
|
||||||
{"underrightarrow", arrow, 3 },
|
{"underrightarrow", arrow, 3 },
|
||||||
{"underleftrightarrow", udarrow, 1 },
|
{"underleftrightarrow", udarrow, 1 },
|
||||||
|
{"undertilde", tilde, 0 },
|
||||||
|
{"utilde", tilde, 0 },
|
||||||
|
|
||||||
// Delimiters
|
// Delimiters
|
||||||
{"(", parenth, 0 },
|
{"(", parenth, 0 },
|
||||||
|
@ -76,6 +76,8 @@ What's new
|
|||||||
- Show the correct label after adding a line to an AMS Multline formula (bug
|
- Show the correct label after adding a line to an AMS Multline formula (bug
|
||||||
#7511).
|
#7511).
|
||||||
|
|
||||||
|
- Display \utilde and \undertilde in formulas correctly (part of bug #6622).
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user