mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
039de52ad9
The \underbar macro is a text mode macro that can also be used in math mode. However, when inserting it in mathed, LyX helpfully wraps it in a \text inset. One can dissolve such text inset and the macro would appear in math mode without any problem. But the output routine thinks that the user is shooting itself in the foot and tries to protect him by wrapping \underbar in the \lyxmathsym macro, whose definition is normally added to the preamble when an unicode character is used in math mode. Of course, this is not the case for \underbar and a compile error arises. The easier solution is to simply add lyxmathsym as a requirement for \underbar in lib/symbols, but this means that the definition of \lyxmathsym would be added even when not necessary (because in the validation routine we miss the info about the current mode). The correct solution is acknowledging the dual nature of \underbar as a text-mode macro that can also be used in math mode. Luckily the correct solution is almost as easy as the easier one and is what is done in this commit. |
||
---|---|---|
.. | ||
client | ||
convert | ||
frontends | ||
graphics | ||
insets | ||
mathed | ||
support | ||
tests | ||
tex2lyx | ||
.gitignore | ||
AppleSpellChecker.cpp | ||
AppleSpellChecker.h | ||
AspellChecker.cpp | ||
AspellChecker.h | ||
Author.cpp | ||
Author.h | ||
BiblioInfo.cpp | ||
BiblioInfo.h | ||
boost.cpp | ||
Box.cpp | ||
Box.h | ||
BranchList.cpp | ||
BranchList.h | ||
buffer_funcs.cpp | ||
buffer_funcs.h | ||
Buffer.cpp | ||
Buffer.h | ||
BufferEncodings.cpp | ||
BufferEncodings.h | ||
BufferList.cpp | ||
BufferList.h | ||
BufferParams.cpp | ||
BufferParams.h | ||
BufferView.cpp | ||
BufferView.h | ||
Bullet.cpp | ||
Bullet.h | ||
Changes.cpp | ||
Changes.h | ||
Chktex.cpp | ||
Chktex.h | ||
Citation.h | ||
CiteEnginesList.cpp | ||
CiteEnginesList.h | ||
CMakeLists.txt | ||
CmdDef.cpp | ||
CmdDef.h | ||
Color.cpp | ||
Color.h | ||
ColorCode.h | ||
ColorSet.h | ||
Compare.cpp | ||
Compare.h | ||
CompletionList.h | ||
Converter.cpp | ||
Converter.h | ||
ConverterCache.cpp | ||
ConverterCache.h | ||
CoordCache.cpp | ||
CoordCache.h | ||
Counters.cpp | ||
Counters.h | ||
Cursor.cpp | ||
Cursor.h | ||
CursorSlice.cpp | ||
CursorSlice.h | ||
CutAndPaste.cpp | ||
CutAndPaste.h | ||
DepTable.cpp | ||
DepTable.h | ||
Dimension.cpp | ||
Dimension.h | ||
DispatchResult.h | ||
DocIterator.cpp | ||
DocIterator.h | ||
DocumentClassPtr.h | ||
EnchantChecker.cpp | ||
EnchantChecker.h | ||
Encoding.cpp | ||
Encoding.h | ||
ErrorList.cpp | ||
ErrorList.h | ||
Exporter.cpp | ||
Exporter.h | ||
factory.cpp | ||
factory.h | ||
Floating.cpp | ||
Floating.h | ||
FloatList.cpp | ||
FloatList.h | ||
Font.cpp | ||
Font.h | ||
FontEnums.h | ||
FontInfo.cpp | ||
FontInfo.h | ||
FontList.cpp | ||
FontList.h | ||
Format.cpp | ||
Format.h | ||
FuncCode.h | ||
FuncRequest.cpp | ||
FuncRequest.h | ||
FuncStatus.cpp | ||
FuncStatus.h | ||
Graph.cpp | ||
Graph.h | ||
HunspellChecker.cpp | ||
HunspellChecker.h | ||
IndicesList.cpp | ||
IndicesList.h | ||
InsetIterator.cpp | ||
InsetIterator.h | ||
InsetList.cpp | ||
InsetList.h | ||
Intl.cpp | ||
Intl.h | ||
KeyMap.cpp | ||
KeyMap.h | ||
KeySequence.cpp | ||
KeySequence.h | ||
Language.cpp | ||
Language.h | ||
LaTeX.cpp | ||
LaTeX.h | ||
LaTeXFeatures.cpp | ||
LaTeXFeatures.h | ||
LaTeXFonts.cpp | ||
LaTeXFonts.h | ||
LaTeXPackages.cpp | ||
LaTeXPackages.h | ||
Layout.cpp | ||
Layout.h | ||
LayoutEnums.h | ||
LayoutFile.cpp | ||
LayoutFile.h | ||
LayoutModuleList.cpp | ||
LayoutModuleList.h | ||
Lexer.cpp | ||
Lexer.h | ||
lyx_commit_hash.h.in | ||
LyX.cpp | ||
LyX.h | ||
LyXAction.cpp | ||
LyXAction.h | ||
lyxfind.cpp | ||
lyxfind.h | ||
LyXRC.cpp | ||
LyXRC.h | ||
LyXVC.cpp | ||
LyXVC.h | ||
lyxwinres.rc | ||
main.cpp | ||
Makefile.am | ||
MetricsInfo.cpp | ||
MetricsInfo.h | ||
ModuleList.cpp | ||
ModuleList.h | ||
Mover.cpp | ||
Mover.h | ||
output_docbook.cpp | ||
output_docbook.h | ||
output_latex.cpp | ||
output_latex.h | ||
output_plaintext.cpp | ||
output_plaintext.h | ||
output_xhtml.cpp | ||
output_xhtml.h | ||
output.cpp | ||
output.h | ||
OutputEnums.h | ||
OutputParams.cpp | ||
OutputParams.h | ||
paper.h | ||
Paragraph.cpp | ||
Paragraph.h | ||
ParagraphList.h | ||
ParagraphMetrics.cpp | ||
ParagraphMetrics.h | ||
ParagraphParameters.cpp | ||
ParagraphParameters.h | ||
ParIterator.cpp | ||
ParIterator.h | ||
PDFOptions.cpp | ||
PDFOptions.h | ||
PersonalWordList.cpp | ||
PersonalWordList.h | ||
Row.cpp | ||
Row.h | ||
RowFlags.h | ||
RowPainter.cpp | ||
RowPainter.h | ||
Server.cpp | ||
Server.h | ||
ServerSocket.cpp | ||
ServerSocket.h | ||
Session.cpp | ||
Session.h | ||
Spacing.cpp | ||
Spacing.h | ||
SpellChecker.h | ||
TexRow.cpp | ||
TexRow.h | ||
texstream.cpp | ||
texstream.h | ||
Text.cpp | ||
Text.h | ||
TextClass.cpp | ||
TextClass.h | ||
TextMetrics.cpp | ||
TextMetrics.h | ||
Thesaurus.cpp | ||
Thesaurus.h | ||
Toc.h | ||
TocBackend.cpp | ||
TocBackend.h | ||
TocBuilder.cpp | ||
TocBuilder.h | ||
Trans.cpp | ||
Trans.h | ||
Undo.cpp | ||
Undo.h | ||
update_flags.h | ||
VCBackend.cpp | ||
VCBackend.h | ||
version.cpp | ||
version.h | ||
VSpace.cpp | ||
VSpace.h | ||
WordLangTuple.h | ||
WordList.cpp | ||
WordList.h | ||
xml.cpp | ||
xml.h |