lyx_mirror/src
Enrico Forestieri 039de52ad9 Amend 58103cf2
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.
2023-11-09 00:21:21 +01:00
..
client
convert
frontends Better dialog resizing behavior 2023-11-09 00:15:16 +01:00
graphics
insets Fix mangling names in temp directory (amends eef0c8e8). 2023-11-08 21:42:54 +01:00
mathed Amend 58103cf2 2023-11-09 00:21:21 +01:00
support Fix mangling names in temp directory (amends eef0c8e8). 2023-11-08 21:42:54 +01:00
tests
tex2lyx Fix tautology spotted by coverity 2023-10-20 09:53:38 +02:00
.gitignore
AppleSpellChecker.cpp
AppleSpellChecker.h
AspellChecker.cpp
AspellChecker.h
Author.cpp
Author.h
BiblioInfo.cpp Handle bibtex location field syntax file1;file2 2023-09-09 13:00:36 +02:00
BiblioInfo.h
boost.cpp
Box.cpp
Box.h
BranchList.cpp
BranchList.h
buffer_funcs.cpp
buffer_funcs.h
Buffer.cpp Preview formatted references in the work area. 2023-08-24 21:24:31 -04:00
Buffer.h Display equation/theorem numbers in insert cross reference dialog. 2023-07-26 13:35:42 -04:00
BufferEncodings.cpp
BufferEncodings.h
BufferList.cpp
BufferList.h
BufferParams.cpp Consider PackageOptions with parskip 2023-10-30 12:54:29 +01:00
BufferParams.h Consider PackageOptions with parskip 2023-10-30 12:54:29 +01:00
BufferView.cpp When splitting a bufferview, keep the scrollbar position 2023-09-05 14:33:18 +02:00
BufferView.h When splitting a bufferview, keep the scrollbar position 2023-09-05 14:33:18 +02:00
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 Introduce color_selectionmath 2023-10-04 13:10:07 +02:00
Color.h
ColorCode.h Introduce color_selectionmath 2023-10-04 13:10:07 +02:00
ColorSet.h
Compare.cpp
Compare.h
CompletionList.h
Converter.cpp Amend 12e3d46b 2023-09-23 16:18:28 +02:00
Converter.h Revert "Do not return copies of string members" 2023-05-15 17:13:41 +02:00
ConverterCache.cpp
ConverterCache.h
CoordCache.cpp Group most verbose dbg output into more intuitive categories. 2023-07-18 22:25:28 +02:00
CoordCache.h Revert a9c6fb0c. 2023-07-27 22:39:49 +02:00
Counters.cpp Fix reference to temporary 2023-07-29 14:41:22 -04:00
Counters.h New RefFormat tag for counters, and PrettyFormat for floats. 2023-07-28 17:37:13 -04:00
Cursor.cpp Update math macro display when entering from above/balow 2023-11-07 15:46:04 +01:00
Cursor.h Fix word selection expansion when going to the left 2023-11-06 11:53:03 +01:00
CursorSlice.cpp
CursorSlice.h
CutAndPaste.cpp Amend 3f0bb8aa43 2023-10-04 13:49:34 +02:00
CutAndPaste.h
DepTable.cpp
DepTable.h
Dimension.cpp
Dimension.h
DispatchResult.h
DocIterator.cpp Allow using the text properties dialog in mathed 2023-11-06 18:04:44 +01:00
DocIterator.h Allow using the text properties dialog in mathed 2023-11-06 18:04:44 +01:00
DocumentClassPtr.h
EnchantChecker.cpp
EnchantChecker.h
Encoding.cpp Amend 04bfbc0f 2023-09-30 20:20:03 -04:00
Encoding.h
ErrorList.cpp
ErrorList.h
Exporter.cpp
Exporter.h
factory.cpp
factory.h
Floating.cpp
Floating.h
FloatList.cpp
FloatList.h
Font.cpp fix nested uwave 2023-09-30 13:44:03 +02:00
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 Detect when one tries to bind a lfun to a prefix of longer commands 2023-07-22 00:01:34 +02:00
KeyMap.h Detect when one tries to bind a lfun to a prefix of longer commands 2023-07-22 00:01:34 +02:00
KeySequence.cpp
KeySequence.h
Language.cpp
Language.h
LaTeX.cpp Limit nomencl backwards support to case when old package is really used 2023-11-08 16:17:58 +01:00
LaTeX.h
LaTeXFeatures.cpp Limit nomencl backwards support to case when old package is really used 2023-11-08 16:17:58 +01:00
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 Fix bug #12852. 2023-08-16 17:51:55 -04:00
Lexer.h
lyx_commit_hash.h.in
LyX.cpp Implement ui style selection dialog 12832 attempt 2 2023-10-15 08:46:12 +02:00
LyX.h
LyXAction.cpp Adding hebrew quotation marks (bug #12849). 2023-08-06 16:50:07 +02:00
LyXAction.h
lyxfind.cpp Fix selection restoration in quick search (#12779) 2023-08-11 11:07:53 +02:00
lyxfind.h
LyXRC.cpp Implement ui style selection dialog 12832 attempt 2 2023-10-15 08:46:12 +02:00
LyXRC.h Implement ui style selection dialog 12832 attempt 2 2023-10-15 08:46:12 +02:00
LyXVC.cpp
LyXVC.h
lyxwinres.rc
main.cpp
Makefile.am Allow using the text properties dialog in mathed 2023-11-06 18:04:44 +01:00
MetricsInfo.cpp Allow using the text properties dialog in mathed 2023-11-06 18:04:44 +01:00
MetricsInfo.h Allow using the text properties dialog in mathed 2023-11-06 18:04:44 +01:00
ModuleList.cpp
ModuleList.h
Mover.cpp
Mover.h
output_docbook.cpp DocBook: fix a crash in docbookSimpleAllParagraphs. 2023-10-10 09:57:17 -04:00
output_docbook.h
output_latex.cpp At end of children, language needs to be reset 2023-07-18 15:27:17 +02:00
output_latex.h
output_plaintext.cpp
output_plaintext.h
output_xhtml.cpp
output_xhtml.h
output.cpp
output.h
OutputEnums.h
OutputParams.cpp Account for babel's bidi option (#12866) 2023-08-17 14:25:33 +02:00
OutputParams.h Account for babel's bidi option (#12866) 2023-08-17 14:25:33 +02:00
paper.h
Paragraph.cpp DocBook: in InsetInfo, ensure that no db:date is inserted within a db:date. 2023-10-10 09:57:17 -04:00
Paragraph.h Fix brokenBiblio() and fixBiblio() with change tracking (#12909) 2023-09-16 08:34:43 +02:00
ParagraphList.h
ParagraphMetrics.cpp At metrics time, store paragraph id too 2023-03-03 10:34:18 +01:00
ParagraphMetrics.h Fixup 00c39208: initialise ParagraphMetrics::id_ in default constructor 2023-03-15 23:38:16 +01:00
ParagraphParameters.cpp
ParagraphParameters.h
ParIterator.cpp
ParIterator.h
PDFOptions.cpp
PDFOptions.h
PersonalWordList.cpp
PersonalWordList.h
Row.cpp Improve comments 2023-09-25 12:51:33 +02:00
Row.h Avoid row breaking at inconvenient places. 2023-09-25 12:46:54 +02:00
RowFlags.h
RowPainter.cpp Inherit outer font in text-in-math environments 2023-11-02 17:54:02 +01:00
RowPainter.h
Server.cpp
Server.h
ServerSocket.cpp
ServerSocket.h
Session.cpp Fix compiler warning about unused string consts 2023-04-26 14:06:25 -04:00
Session.h
Spacing.cpp
Spacing.h
SpellChecker.h
TexRow.cpp
TexRow.h
texstream.cpp
texstream.h
Text.cpp Fix word selection expansion when going to the left 2023-11-06 11:53:03 +01:00
Text.h Update caret if needed when changing depth 2023-08-30 13:45:00 +02:00
TextClass.cpp New RefFormat tag for counters, and PrettyFormat for floats. 2023-07-28 17:37:13 -04:00
TextClass.h
TextMetrics.cpp Inherit outer font in text-in-math environments 2023-11-02 17:54:02 +01:00
TextMetrics.h Improve label font computation in insets 2023-06-21 17:23:34 +02:00
Thesaurus.cpp
Thesaurus.h
Toc.h
TocBackend.cpp
TocBackend.h Display equation/theorem numbers in insert cross reference dialog. 2023-07-26 13:35:42 -04:00
TocBuilder.cpp Fix wrong nesting in Outline. 2023-07-28 10:31:54 +02:00
TocBuilder.h
Trans.cpp
Trans.h
Undo.cpp
Undo.h
update_flags.h
VCBackend.cpp
VCBackend.h
version.cpp
version.h Introduce default box frame color (#12921) 2023-09-30 09:56:27 +02:00
VSpace.cpp
VSpace.h
WordLangTuple.h
WordList.cpp
WordList.h
xml.cpp DocBook: fix case with emphasis at end of footnote 2023-09-25 10:41:21 -04:00
xml.h DocBook: fix case with emphasis at end of footnote 2023-09-25 10:41:21 -04:00