Questions tagged [underline]
{underline} is about underlining portions of text for emphasis or blank spaces for creating forms. Popular packages are {soul} and {ulem}.
203
questions
0
votes
0
answers
30
views
Underlining a \def text [duplicate]
So basically I have defined a term:
\def\Title{Lorem ipsum dolor sit amet consectetur adipiscing elit risus, maecenas nisl imperdiet aliquet taciti ac.}
And I want to underline it, but when I do so ...
1
vote
0
answers
19
views
Underline entire line in tabbing environment
Following on from the question underline instead of space in tabbing environment, I would like to ask whether it is also possible to underline an entire line across a tab space.
Unfortunately, I have ...
0
votes
1
answer
33
views
How to specifically underline an author using biblatex (instead of making it bold)
Is there a way to underline a specific author (instead of making it bold such as in the code snippet provided here):
\newcommand*{\mkboldifhashinlist}[1]{%
\xifinlist{\thefield{hash}}{\nhblx@...
2
votes
1
answer
63
views
How can I include an underline in a ConTeXt \setuphead
I am currently using:
\setuphead[section] [style=\tfb\bf, color=titlegrey, align=right]
How can this be modified to include an underline (or underbar)?
0
votes
1
answer
77
views
math direction changes inside `\underline` when using `babel` with `bidi`
I am using Latex to do my homework in our native language Hebrew, which is an rtl language. I am trying to migrate to babel with lualatex since I encountered annoying bugs with polyglossia and xelatex ...
6
votes
4
answers
123
views
How to add underlines under individual letters with space between underline and letter?
I am giving students ciphers/codes to solve. I want to add an underline under each individual letter with the underline far enough below the letter to allow the student to write the decoded letter.
I ...
0
votes
1
answer
63
views
How do I underline capital letters in math-mode
I want Z underlined to show it as a complex number in math-mode. For lowercase z I can use \underline{z} but if I use it with Z it displays the normal Letter without a underline.
How do I get a ...
1
vote
1
answer
151
views
Are there any similar package (or color ulem) to ulem package with color?
Are there any similar packages (or color ulem) to the ulem package, with color, underline, sout, xout, dash underline, dot underline with color as parameter?
I found this Q&A about changing the ...
2
votes
0
answers
58
views
Using Colored Underlines in Math Mode
I am trying to underline specific terms in math mode in color. Right now, I have defined a command:
\newcommand{\ula}[1]{{\setulcolor{red}\ul{#1}}}
While this command works on normal text, it doesn't ...
2
votes
1
answer
113
views
How to adjust texts aligned at the both ends and how to put the text in the middle of a fixed length underline
I tried to align text like this:
with the "aa"s aligned at the both ends, and "bb"s in the middle of a fixed lendth underline. I tried to use \justifying and hfill, but it did not ...
4
votes
1
answer
97
views
Link with colour and underline
I am using the hyperref package to colour my urls in the text. I've tried adding an underline as well with the last two lines below for the hypersetup:
\documentclass{book}
\usepackage{xcolor}
\...
4
votes
1
answer
137
views
Passing formatting commands as arguments
I have a custom underlining command \cleverul{text} proposed by @Jinwen here.
I would like to be able to pass the command inside a redefinition of the \@makechapterhead macro, as a formatting value ...
1
vote
2
answers
147
views
Text under line
My MWE:
\documentclass{standalone}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcblisting}{colback=white,colframe=white,comment style=
{frame hidden,scale=2.1}, comment only, pdf comment, ...
0
votes
1
answer
171
views
Underline overfull \hbox
I am getting the following Overfull \hbox (0.10945pt too wide) in paragraph at lines 12--13. How could I prevent this?
I am using \, inside \dotuline because I want to use a little bit longer dotted ...
0
votes
0
answers
23
views
Non iso coded chars displayed in \underline{}
Hello (mu first post here)!
I'm having trouble with \underline{SHOWxŁÓŻĄ} ("ŁÓŻĄ" are example for ISO 8859-2 (Latin-2) chars).
But after compile I get only SHOWx underlined.
How to make ...
1
vote
0
answers
26
views
Error adapting Steven B. Segletes Revised Solution to use \xblackout for breaking underline with Glossary \gls
I'm attempting to adapt Segletes's Revised Solution in List of Underlining Packages - Pros and Cons that employs alexwlchan's Four ways to underline text in LATEX in order to re-create alexwlchan's '...
0
votes
0
answers
30
views
newcommand - no linebreak [duplicate]
I am trying to write a new command that will underline the text from the first argument and add the red comment of the second argument. I think I've got this mostly, but the result does not add the ...
1
vote
1
answer
228
views
How to produce the double wave underline?
I am using the wave underline to highlight some text, but there is no function to make a double waveline. And I wish the underline could have line break automatically. Is there any methods to use \...
0
votes
1
answer
302
views
How to use soul's `\ul` instead of `\underline` in TeXstudio
I'm using TeXstudio on Linux, and there is an option under the LaTeX/Font Styles menu to underline the selected text. For convenience, I set Alt + U as a shortcut so that I can quickly underline ...
0
votes
1
answer
50
views
How to Underline (with Linebreaking) within Contiguously Highlighted Text Using Soul
I would like to use the command \ul within a block of text that is contiguously highlighted using the macro contained in the following code:
\documentclass[12pt,openany]{book}
\usepackage{soul}
\...
8
votes
3
answers
484
views
How to create \in-symbol with underbar that has rounded edges and correct vertical spacing?
The aim is to create a new symbol \ineq. The appearence of \ineq would be to \in as \subseteq is to \subset.
Output from attempt at making \ineq:
Problems with attempt in decreasing order of ...
1
vote
1
answer
88
views
How to Break Text-Underlining within a Paragraph without the Soul Package
Consider the code:
\documentclass{book}
\usepackage{soul}
\begin{document}
\thispagestyle{empty}
\large
How may I do this without the \textit{soul} package?\\[7pt]
\ul{Text underlining with ...
0
votes
0
answers
28
views
Remove underline in Biblatex style angew-chem [duplicate]
I'm currently using the Biblatex style angew-chem and if i try to print the bibliography, it always underlines the Title of books. I already went through the .bbx and .cbx files but couldn't find ...
1
vote
1
answer
181
views
Customized underline below frame titles
I would like to have frame titles underlined exactly as long as the title runs and hopefully be able to have different colors for the title and the line. For now I have,
\documentclass{beamer}
\...
0
votes
1
answer
175
views
How do I achieve this CV look?
I'm trying to replicate this CV style (below). I have some idea how to approach it, but I don't know how to achieve:
Underline below the text
Writing text left and right on the same line
If anyone ...
2
votes
2
answers
50
views
Flexible sized underline
I want to have a blank line followed by 5 check boxes, such that together they occupy the entire horizontal space available.
The current way I have "solved" this problem is:
\usepackage{...
1
vote
0
answers
1k
views
\underline and \underbar commands have change warning
I have two warnings telling me that "Command \underbar has changed." and "Command \underline has changed." but I don't get why is that so since I am not using these commands.
I ...
1
vote
1
answer
201
views
Highlight or underline answer in Latex when code is in begin/end{align*}
I normally write my solutions to mathematics problems in Latex using the begin/end{align*} feature.
How does one highlight an equation, or answer in my case, when the code is in begin/end{align*} ?
...
0
votes
1
answer
73
views
Text documents with fixed length underline segments fill-able by hand, typewriter, or entering character strings in LaTeX source
I would like to create simple text documents in which lines and paragraphs may contain underline segments (\rule{}{}) of various preset lengths. Compiling the document with the underline segments only ...
0
votes
1
answer
358
views
How to Format the Resume Section Underline in Awesome CV by posquit0?
I am Using This Resume and I want to change the Resume Sections Headline Underline from Current (Where it starts after the text end) to the Normal underline we see in Resume i.e just below the Text ...
1
vote
1
answer
130
views
No automatic line-breaks with ulem and soul packages
In below code, I define two commands \refpage and \refpages using in turn, the ulem and soul
packages, but both of them do not break a sentence when that sentence runs on beyond the end of a line.
...
2
votes
3
answers
282
views
How can I use command in upper part of \tcolorbox environment, like \underline
How can I use \underline command for upper part of \tcolorbox, and underline all text in upper part?
I test
before upper=\uline{,
after upper=},
or
before upper=\underline{,
after upper=},
but not ...
1
vote
1
answer
181
views
Underline list item to page width
I am currently working on my thesis template, which requires the title to be formatted as shown below:
The title begins with a fixed "THESIS:" label, and the title itself is placed with ...
1
vote
1
answer
149
views
The myuline command is not accepting line break
I found a template on Overleaf in which I found the following lines of code:
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
However, this underline command is ...
8
votes
3
answers
586
views
Underline for an answer
In Japan, it is very common to underline an answer in a math exam sheet with this:
(Usual underline plus two slashes at the end.) Can I find a macro for this in some package? If not, do I have to ...
1
vote
1
answer
371
views
How do I add an underline to all section headings in {section in head/foot}?
I am using beamer, and I can change the size of the font by using
\setbeamerfont{section in head/foot}{size=\scriptsize}
However, I do not know the correct way to make this text also underlined. I ...
1
vote
0
answers
69
views
Jagged underline in listing
I'm trying to mark some code in a listing as erroneous with a typical jagged red underline.
Ideally, this would be the output of the following code.
\begin{lstlisting}
12 + ~[1, 2]~
\end{lstlisting}
...
1
vote
2
answers
426
views
How to underline text from a macro including a line break?
I'm trying to underline text that spans over more than one line. In principle, the ulem oder the soul package can do the trick when inputting the text directly to the respective command.
\ul{some text ...
1
vote
1
answer
256
views
Is it possible to highlight and underline at the same time?
In looking at Highlight text with colored underline link to margin notes, I was struck by (to me) the unexpectedly attractive look of text that is both highlighted and underlined -- certainly not ...
2
votes
1
answer
102
views
\ul collapses the frame title to a black bar
I'm trying to underline all frame titles in Beamer in the same manner as my title page:
However, instead of the intended result, I get a black bar/square where the frame title was supposed to be.
A ...
0
votes
0
answers
131
views
Looking for a Soul Alternative to Underline in Color with Custom Depth and Thickness Using Pdflatex
Consider the code
\documentclass{article}
\usepackage{color,soul}
\begin{document}
\Huge
\setulcolor{red}
\setul{}{2.5pt}
\textcolor{blue}{\ul{\textbf{some text}}}
\end{document}
with output
This ...
2
votes
0
answers
108
views
siunitx - Underline significant digits in SI object
Context
Hello all,
I am writing a document making use of the siunitx package for my unit formatting. I use the \SI{...}{...} blocks for ease of writing when formatting my numbers.
In my document, I ...
0
votes
2
answers
610
views
Write email address with an underline between words
I need to include an email address with an underline between words in this form: [email protected], but latex was considering the underline being for a subscript in math mode.
I used \author{Name\...
3
votes
1
answer
225
views
Underline two cells with a continuous line in table
My code is like this:
\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{A} \\
\hline
AID & A1 \\
\hline
\end{tabular}
Which compile as:
How can I underline AID and A1 with ...
1
vote
1
answer
147
views
How do i underline half the length of a word or a number of words side by side? Thank you so much
I want to underline with half the length of a word or a number of words side by side like picture below. Thank you for reading my question.
0
votes
2
answers
127
views
Why and how ulem package disable linebreaking and stretching encountering brace and macro replacement
Descriptions of my questions
So, I am doing some hacking which requires me to use ulem package. I found on page 5 of the documentation of this package (dated 2019/11/18) that
One important ...
1
vote
1
answer
146
views
Blackout censor macro capable of handling italic and bold fonts
In the following TeX stackexchange answer, the author provides an excellent \blackout macro that produces very aesthetically pleasing underline effect.
However, this macro does not work well with any ...
2
votes
2
answers
917
views
Underline Style
I want to make bold underline.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{contour}
\usepackage{ulem}
\renewcommand{\ULdepth}{1.8pt}
\contourlength{0.8pt}
\newcommand{\myuline}[...
0
votes
1
answer
635
views
Underline journal, conference names in reference
I tried a lot to find out how to underline journal, conference, or venue names in my reference. But, I am unable to find it. Please check the reference check, the author highlights the venue name.
...
0
votes
1
answer
66
views
Underline List of Algorithms, References, and Index with Victorian Ornament
I would like to place a victorian ornament (pgfornament 80) below List of Algorithms, References, and Index, all centered and capitalized.
Below is my minimal working example (MWE), but the ornament ...