Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ulem]

{ulem} concerns the ulem package for underlining and strikethrough capabilities

3
votes
1answer
35 views

Striking out colored text through user defined commands

I have been trying to strikeout a colored text defined by a macro, but it seems that it does not support line breaking. I have a command bt to type blue text and I want to strike some of the text with ...
0
votes
1answer
30 views

How to have underlined text break line in table?

I have a long text in a table which is combined from two commands with a space in between, which has to be underlined. How can I make it wrap while being underlined? The example below shows the ...
2
votes
2answers
172 views

How to control the vertical space below a double-underline?

I use an edited version of the \\uline command from the ulem package to get a nice compact double underline to denote tensor variables. The used code comes from this question. My problem is that the ...
3
votes
3answers
98 views

Redefine `\uline` so `\colorbox` is locally defined to have underlined text, too

Initial problem: I want to underline the text with a continuous line with the following code: \uline{No underlining for \colorbox{lightgray}{everything} inside the colorbox.} Workaround: A ...
0
votes
1answer
51 views

How can I use `\uline` from the `ulem` package to underline text inside a `\colorbox`?

Screenshot: I have the following code: \uline{No underlining for \colorbox{lightgray}{everything} inside the colorbox.} Which looks like this: How can I get a continuous line for the text inside \...
2
votes
2answers
134 views

insert text in rule

I have difficulty writing a compact command that allows me to insert a text between two lines. I read some links such as this and this, but each one treats the left and right line separately \...
2
votes
1answer
55 views

How do I get permission for exam materials?

MWE \documentclass{minimal} \usepackage{ulem} book = 1 phone = 0 photocopy = 1 internet = 0 tablet = 1 \begin{document} Book, \xout{phone}, photocopy, \xout{internet}, tablet, \ldots\ free or open. ...
3
votes
2answers
51 views

Size/density of dots used by \dotuline command (ulem package)

I would like to use the \dotuline command (from the ulem package) to create a "fill in the blanks" document. It gives good results but when the blank becomes small it is hardly noticeable (a single ...
0
votes
0answers
46 views

Controlling vertical space between text and underline in ulem

I'm using ulem to add colored underline for sections. but underline is crossed through text: But I want something like this: I'm generating colored and underlined section using this: \...
2
votes
0answers
52 views

Punctuation and text decoration - 'csquotes' not compatible with 'ulem' or 'soul'

I'm using TeX for a long time now, but I'm currently struggling integrating some features for my daily use. To be more precise: I'm intending to use features like text highlighting (yellow markup), ...
1
vote
0answers
92 views

How to underline text with in-text citation with wrapping?

The line of text I want to underline includes in-text citation. My problem is that \uline only works on this line when I use \mbox(I get an error without \mbox), which makes it impossible to wrap the ...
2
votes
1answer
169 views

How to underline whole bibitem in biblatex?

I want to underline whole bibitem when using biblatex. I tried \AtEveryBibitem{\uline} but failed. What I want to do:
2
votes
1answer
124 views

Problem with linebreak in combination with strikeout from the ulem package and newcommand

Is it possible to combine the "result" of a newcommand with the sout command of the ulem package with working linebrak/hyphenation? \documentclass{article} \usepackage{ulem,lipsum} \textwidth=3cm % ...
1
vote
1answer
261 views

Line break and hyphenation for underlined text

I am struggling with a problem that occurs using \underline. From other posts I heard that there is no possiblity for linebreaks using this command. However, I tried using the ulem package. In fact, ...
1
vote
2answers
440 views

highlighting strikeout text with ulem shifts the line downwards

I'm trying to highlight a text with a strikeout word by defining a new command as explained in the docs of ulem. Unfortunately, that moves down the strikeout line a few points, which looks strange ...
1
vote
1answer
104 views

Textwidth underline while ragged right text

I want to do this: But all I can do is: \documentclass[14pt]{extreport} \usepackage[normalem]{ulem} \begin{document} \hfill\begin{minipage}[t]{0.7\textwidth} \begin{flushleft} Lorem:~\uline{ipsum ...
0
votes
1answer
58 views

Strange behaviour of ulem?

I know, it's ugly and seems stupid, but I need to redefine like that. I try a lot of things (\edef, \expandafter...) Nothing seems to work. No break line. \documentclass{article} \usepackage{...
3
votes
1answer
157 views

KOMA — Underlined headings using `ulem` conflicts with `hyperref`

I noticed, that if you underline headings with the use of ulem and redefining \sectionlinesformat (as done in this answer) does conflict with hyperref. The conflict only occurs on unnumbered sections, ...
7
votes
2answers
610 views

Underlining words with dash-dotted line without affecting the other text in LaTeX

NOTE: I am searching for a LaTeX solution. The ConText code was offered, which is a good answer, but that doesn't fit my purpose. I want to underline some words in text to show the parts of ...
3
votes
1answer
57 views

Comfortable solution for using ulem together with (r)eledmac

Preface: Sorry for the long text. By writing it, I was able to solve an earlier problem leading to this one. In Underlining with ulem package breaks footnotes Ulrike Fischer and Heiko Oberdiek answer ...
4
votes
1answer
749 views

How to underline name of specific authors in biblatex?

My goal is to underline the name of specific authors in a bibliography processed by biber/biblatex. I can make them in bold following https://tex.stackexchange.com/a/73246/127979 and https://tex....
0
votes
1answer
272 views

fun style cross-strike-out

I want to cross out (strike out) words or letters in fun ways for poster-sized text for children. ulem and cancel produce rather formal/sterile-looking cancellations, as do tikz-based combinations of ...
1
vote
0answers
165 views

xecjk conflict with ulem?

Building the following MWE with xelatex in TeXnicCenter results in 5 errors: \documentclass{article} \usepackage{fontspec} \setmainfont[Mapping=tex-text]{Times New Roman} \usepackage{xeCJK} \...
2
votes
1answer
1k views

Underline colored text with linebreak

I would like to underline colored text with a black line, and preserve line breaking. My best solution so far is using \uline from the ulem package. However, I cannot get my desired result. My ...
0
votes
0answers
18 views

Bibliography messed up by ulem package [duplicate]

I needed to use the ulem package to underline sections and subsections, and it works great. The problem is now that the bibliography of my document got messed up. This is how I have configured it: \...
1
vote
3answers
416 views

How to have comments + text until the end of the line in ulem underline environment?

Code % https://tex.stackexchange.com/a/159996/13173 \documentclass{article} \usepackage[normalem]{ulem} \begin{document} \begin{enumerate} \item Initials: \uline{A.B.C.} \item Age: \uline{50} \item ...
1
vote
2answers
271 views

Colored underlining without affecting vertical spacing

I'm using the coloured underlining trick described in the ulem package manual (p.3). The underlining looks good, but interacts poorly with align-like environments, where (in contrast to \uline) it ...
5
votes
1answer
131 views

Interaction between xcolor, ulem, and no-break spaces

Using no-break spaces seems to break interaction between xcolor and ulem: \documentclass{article} \usepackage{xcolor} \usepackage[normalem]{ulem} \begin{document} \textcolor{green}{\uline{\...
3
votes
1answer
111 views

uline doesn't show at the end of line

Here is the minimal working example \documentclass{article} \usepackage{ulem} \begin{document} one two three one two three one two three one two three one two three one two three one two three one ...
2
votes
1answer
266 views

How to underline enumerate label with dotted line?

The ulem package provides several commands for underlining text. I tried all of these commands to style the label in my enumerate environment. Some of the commands work, some of them do not. I'm ...
2
votes
1answer
221 views

Breakable underline, no messing with line breaking

Chinese words aren't separated by spaces. As a result, neighboring underlines will be joined together. The xeCJK package provides a CJKunderline- command, but the underline it generates is ...
7
votes
2answers
17k views

Thickness for \sout{} (strikethrough) command from ulem package

I am using \sout from the ulem package together with beamer to strike through some text: \documentclass[mathserif]{beamer} \usepackage{ulem} \begin{document} \begin{frame} Next meetings: \begin{...
5
votes
1answer
316 views

Line breaks in underlined citations

I've been looking for a solution to automatically highlight citations to the works of a specific author using biblatex, but the question is still unanswered and I'm lacking time at the moment to ...
3
votes
1answer
209 views

\uline{} does not work correctly with long non-English lines

I have encountered with situation that \uline does not break correctly non-English lines. I think that problem may be in extra-libraries that I use. For, example I work with Russian document. \...
3
votes
1answer
265 views

cleveref and ulem/soul compatibility

I'm trying to use uwave and cleveref together: \documentclass{article} \usepackage{ulem} \usepackage{cleveref} \begin{document} \uwave{\cref{sec:A}} \section{A} \label{sec:A} \end{document} After ...
1
vote
2answers
2k views

\uline not work for command arguments

I try to use \uline from the ulem package. Moreover, I need a command to carry some text. Unfortunately, \uline doesn't wrap the text carried by the command automatically. Code: Output: I think \...
1
vote
0answers
183 views

How to strike out over an environment and formulas and using local variables in latex?

While I am revising my papers, for the sake of easier tracking and saving the time of the reviewers, and hence shortening the review process (I hope!), I use the following commands \usepackage{ulem} \...
1
vote
1answer
44 views

ulem nesting of underlines: dimension too large error (but renders nicely)

I have the following MWE: \documentclass{article} \usepackage{ulem} \newcommand\deeperuline{\bgroup\markoverwith{\rule[-1.1ex]{2pt}{0.4pt}\ULon} \begin{document} This \deeperuline{does} work \uwave{...
3
votes
1answer
719 views

How to control space length between lines of double-underline?

I use \uuline command from ulem package to make double-underlined text. I would like to know if it is possible to control space length between lines? I drew below what I mean. If not, how to make ...
4
votes
1answer
376 views

Ulem package : horizontal line is too thin

The slanted lines are correct regarding the size of characters, but horizontal isn't. How to correct that ? \documentclass{beamer} \usepackage{fourier} \usepackage{fontspec} \setmainfont{Erewhon}[ ...
4
votes
1answer
789 views

Highlighting text with ulem package

Consider the following minimal example (taken from this answer): \documentclass{article} \usepackage{color} \usepackage{ulem} \newcommand\hl{\bgroup\markoverwith {\textcolor{yellow}{\rule[-.5ex]{...
6
votes
1answer
1k views

Is it possible to strikeout a whole equation or paragraph?

I have a document in which I want to strikeout whole paragraphs including all equation and eqnarray environments. Available options such as sout (from ulem) works on paragraph but not in equations. ...
6
votes
1answer
2k views

More robust strike-through / cross-out

I al using the ulem package to cross-out unwanted text like so \documentclass{article} \usepackage{ulem} \begin{document} \xout{Lorum ipsum dola blah blah blah.} \sout{Lorum ipsum dola blah blah ...
3
votes
3answers
656 views

How to cross out a word with a wavy line in LaTex

I need to cross out a word with a wavy line in LaTex. I used ulem package but the result was underlined word with a wavy line. This is my code so far: \documentclass{article} \usepackage{pict2e} \...
0
votes
1answer
96 views

How to underline a single line of text that contains an \enquote{d text} using ulem?

This MWE should explain the problem and the question: \usepackage{fontspec} %\usepackage[ngerman]{babel} % polyglossia is recommended for lualatex \usepackage{polyglossia} \setdefaultlanguage[...
4
votes
1answer
394 views

URL with dotted/customized underline AND line breaking

How can I get a dotted URL underline with line breaking? I found this solution: Having all links underlined with dotted line but this TIKZ one does not work with line breaking. I also tried a ...
3
votes
1answer
166 views

Conflict between ULon and siunitx

I am trying to create an automatic numbering of remarks which will be highlighted. It does produce the expected result but it crashes and I don't understand what is wrong. Below is the minimum working ...
3
votes
1answer
272 views

\uline and German quotation marks

I'm using the \uline command from the ulem package. But unfortunately it causes an error when used togehter with German quotation marks (\glqq,\grqq): \documentclass[12pt]{scrartcl} \usepackage[utf8]{...
7
votes
4answers
626 views

New 'ulem' command not working

I'm trying to create a new command that will give blue underline under black text. My mwe is \documentclass[a4paper,12pt]{report} \usepackage[table,hyperref,dvipsnames]{xcolor} \usepackage{ulem} \...
3
votes
1answer
2k views

Strike through text does not work with multiple cites

I'd like to strike through some text in a paper with package ulem's \sout{}. However, when the text to be struck through contains multiple cites like \cite{a,b}, the compiler gives some error messages ...