lyx_mirror/src/insets
Enrico Forestieri 91afc2430d Protect underlined \ref{} commands by enclosing them in \mbox{}.
This is the same protection used for \cite{}. Although "ulem" commands
don't strictly need this protection with \ref{} and friends, this helps
when one wants to use another package souch as "soul".
Indeed, ulem's \uline{} doesn't hyphenate words, while soul's \ul{} does,
and thus the output is much nicer.

With this patch, replacing ulem with soul is as simple as adding
\usepackage{soul}
\renewcommand{\uline}[1]{\ul{#1}}
to the preamble, without worrying about manually enclosing in \mbox the
\ref commands. In any case, the output from ulem remains unchanged.

Another possibility offered by soul is that of typesetting as
"yellow highlighted" the underlined text. This is achieved by adding
\usepackage{color,soul}
\renewcommand{\uline}[1]{\hl{#1}}
to the preamble.
2012-08-30 14:09:23 +02:00
..
CMakeLists.txt cmake: move CMakeLists.txt into source dir (multiple steps) 2011-05-10 17:44:41 +00:00
ExternalSupport.cpp Revert r36654. 2010-12-04 23:01:59 +00:00
ExternalSupport.h
ExternalTemplate.cpp Header cleanup. 2011-07-14 17:00:35 +00:00
ExternalTemplate.h Header cleanup. 2011-07-14 17:00:35 +00:00
ExternalTransforms.cpp TR1: use std::tr1 regex with msvc10 2010-06-29 17:09:40 +00:00
ExternalTransforms.h
Inset.cpp Add support for some basic non-unicoded IPA macros 2012-08-23 17:42:53 +02:00
Inset.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetArgument.cpp Header file cleanups 2011-10-29 15:34:06 +00:00
InsetArgument.h Header file cleanups 2011-10-29 15:34:06 +00:00
InsetBibitem.cpp Factor out method to get a properly encoded latex string 2012-06-30 13:30:48 +02:00
InsetBibitem.h Remove extra whitespace. 2011-12-03 22:15:11 +00:00
InsetBibtex.cpp We need to clean the HTML id before writing it. 2012-05-14 08:30:04 -04:00
InsetBibtex.h Remove extra whitespace. 2011-12-03 22:15:11 +00:00
InsetBox.cpp Before we process the LFUN, make sure that it is actually intended 2012-05-02 17:30:52 -04:00
InsetBox.h Header file cleanups 2011-10-29 15:34:06 +00:00
InsetBranch.cpp Deal with the part of #7872 involving changing branch activation 2011-12-02 21:21:37 +00:00
InsetBranch.h Allow Insetlayout for Branch inset (#8106). 2012-04-19 11:56:32 +02:00
InsetCaption.cpp This "#if 0" code is very old, and obsolete. 2011-03-28 22:34:41 +00:00
InsetCaption.h This "#if 0" code is very old, and obsolete. 2011-03-28 22:34:41 +00:00
InsetCitation.cpp Move the citation engine machinery to layouts. 2012-03-01 00:41:30 +00:00
InsetCitation.h Move the citation engine machinery to layouts. 2012-03-01 00:41:30 +00:00
InsetCode.h Add support for some basic non-unicoded IPA macros 2012-08-23 17:42:53 +02:00
InsetCollapsable.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetCollapsable.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetCommand.cpp Sort out usage of INset::has Settings and Inset::clickable 2012-02-15 09:42:13 +00:00
InsetCommand.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetCommandParams.cpp Factor out method to get a properly encoded latex string 2012-06-30 13:30:48 +02:00
InsetCommandParams.h Fix bug #6962. I hadn't see how these were being escaped. 2010-10-21 17:56:00 +00:00
InsetERT.cpp Remove unused headers. 2011-04-11 14:11:07 +00:00
InsetERT.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetExternal.cpp Allow LyX format to be written to View>Source window. 2012-06-05 10:24:15 -04:00
InsetExternal.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetFlex.cpp Comment from JMarc (devlist) 2012-04-22 12:32:41 +02:00
InsetFlex.h Fix bug #7080. 2011-03-28 23:11:54 +00:00
InsetFloat.cpp This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
InsetFloat.h This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
InsetFloatList.cpp Sort out usage of INset::has Settings and Inset::clickable 2012-02-15 09:42:13 +00:00
InsetFloatList.h Sort out usage of INset::has Settings and Inset::clickable 2012-02-15 09:42:13 +00:00
InsetFoot.cpp When an error occurs, don't highlight more than necessary. 2011-03-12 01:40:01 +00:00
InsetFoot.h This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
InsetFootlike.cpp This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
InsetFootlike.h Fix bug #6919 by splitting Inset::noFontChange() into inheritFont() and 2011-02-22 19:41:04 +00:00
InsetGraphics.cpp Fix bug #5204: Undo removes text selection 2012-07-15 18:16:09 +02:00
InsetGraphics.h Add tooltip for graphics insets 2012-02-25 23:05:28 +00:00
InsetGraphicsParams.cpp Move readBB_from_PSFile() out of support (no code change), 2012-02-15 20:50:52 +00:00
InsetGraphicsParams.h
InsetHyperlink.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetHyperlink.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetInclude.cpp Update the button text of InsetInclude insets 2012-06-26 20:41:25 +02:00
InsetInclude.h Translations for listings insets 2012-04-10 20:21:01 +02:00
InsetIndex.cpp Whitespace 2012-07-01 08:38:54 +02:00
InsetIndex.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetInfo.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetInfo.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetIPA.cpp Add support for some basic non-unicoded IPA macros 2012-08-23 17:42:53 +02:00
InsetIPA.h Consider specifics for TIPAs T3 font encoding and allow insertion of straight quote (stress shortcut) to IPA inset. 2012-03-09 11:14:39 +00:00
InsetIPAMacro.cpp Implement plaintext for tie bars 2012-08-24 10:12:17 +02:00
InsetIPAMacro.h Add support for some basic non-unicoded IPA macros 2012-08-23 17:42:53 +02:00
InsetLabel.cpp Fix bug #5204: Undo removes text selection 2012-07-15 18:16:09 +02:00
InsetLabel.h addendum to r39250: I forgot about math labels. This fixes it. 2011-07-06 18:52:56 +00:00
InsetLayout.cpp Fix bug #8078: Assertions in xhtml output on Windows 2012-04-30 12:58:32 +02:00
InsetLayout.h Translations for listings insets 2012-04-10 20:21:01 +02:00
InsetLine.cpp InsetLine.cpp: fix bug #7851 2011-10-25 23:22:55 +00:00
InsetLine.h Integrate texrow with otexstream in order to perform automatic line 2011-02-10 20:02:48 +00:00
InsetListings.cpp Extend the notermination flag to math as well. 2012-03-25 15:57:38 +02:00
InsetListings.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetListingsParams.cpp fix compiler warnings in pedantic mode: remove trailing comma after last enum member 2010-12-17 19:56:51 +00:00
InsetListingsParams.h More include frenzy. 2010-10-31 01:26:50 +00:00
InsetMarginal.cpp Inset::addToToc() can and should be const. It wasn't, I take it, because 2011-01-12 22:23:27 +00:00
InsetMarginal.h This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
InsetNewline.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetNewline.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetNewpage.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetNewpage.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetNomencl.cpp Factor out method to get a properly encoded latex string 2012-06-30 13:30:48 +02:00
InsetNomencl.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetNote.cpp Improve output of XHTML comments. 2011-12-06 20:44:37 +00:00
InsetNote.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetPhantom.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetPhantom.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetPreview.cpp Integrate texrow with otexstream in order to perform automatic line 2011-02-10 20:02:48 +00:00
InsetPreview.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetQuotes.cpp Fix bug #7653: Quotation marks have wrong color 2012-04-29 14:54:31 +02:00
InsetQuotes.h This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
InsetRef.cpp Protect underlined \ref{} commands by enclosing them in \mbox{}. 2012-08-30 14:09:23 +02:00
InsetRef.h Integrate texrow with otexstream in order to perform automatic line 2011-02-10 20:02:48 +00:00
InsetScript.cpp Use InsetLayout for LaTeX output. 2012-04-17 09:35:25 -04:00
InsetScript.h Use InsetLayout instead of hardcoding forcePlainLayout and 2012-04-17 09:43:29 -04:00
InsetSpace.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetSpace.h Sort out usage of INset::has Settings and Inset::clickable 2012-02-15 09:42:13 +00:00
InsetSpecialChar.cpp Fix bug #7998 and related issues: 2012-01-31 20:49:49 +00:00
InsetSpecialChar.h typos in comments. 2011-03-15 13:27:08 +00:00
InsetTabular.cpp Suppress babel RTL commands when using polyglossia (part of #8251) 2012-07-23 08:40:37 +02:00
InsetTabular.h Fix #8180: Page break on current row can't be unchecked. 2012-05-31 13:56:07 +02:00
InsetText.cpp Handle sending a FuncRequest object to lyxerr 2012-06-07 17:21:49 +02:00
InsetText.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetTOC.cpp Minor cleanup: We should use the usual conventions for 2012-05-31 12:24:08 -04:00
InsetTOC.h Native support for \lstlistoflistings 2012-04-16 21:40:59 +02:00
InsetVSpace.cpp Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetVSpace.h Sort out usage of INset::has Settings and Inset::clickable 2012-02-15 09:42:13 +00:00
InsetWrap.cpp Fix stupid typo. 2012-07-10 17:11:58 -04:00
InsetWrap.h This is intended to be a pure renaming of the Inset::name() routine, 2011-03-28 22:33:04 +00:00
RenderBase.h Correct the return and parameter types to match the type of RenderBase::state_. 2011-02-13 09:56:54 +00:00
RenderButton.cpp Fix bug #7256. Reduce space around inset buttons by a pixel on each side. 2011-12-09 15:36:53 +00:00
RenderButton.h
RenderGraphic.cpp Using "using namespace std" with msvc10 makes also std::tr1::bind visible and generates conflicts with boost::bind. 2010-04-22 11:16:58 +00:00
RenderGraphic.h Fix bug #6134: Reload context menu for graphics inset. 2009-08-13 17:21:59 +00:00
RenderPreview.cpp Graphics cleanup: get rid of Previews.{h,cpp} 2011-07-12 12:43:11 +00:00
RenderPreview.h Graphics cleanup: get rid of Previews.{h,cpp} 2011-07-12 12:43:11 +00:00