Questions tagged [underline]

{underline} is about underlining portions of text for emphasis or blank spaces for creating forms. Popular packages are {soul} and {ulem}.

Filter by
Sorted by
Tagged with
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 ...
Keith Kamson's user avatar
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 ...
TobKel's user avatar
  • 145
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@...
ecjb's user avatar
  • 883
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)?
jftuga's user avatar
  • 123
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 ...
Shai Avr's user avatar
  • 387
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 ...
Paul's user avatar
  • 61
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 ...
Franzeska Vandeli's user avatar
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 ...
Mika Ike's user avatar
  • 3,681
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 ...
Ethan's user avatar
  • 21
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 ...
se812's user avatar
  • 55
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} \...
Steeven's user avatar
  • 1,397
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 ...
Vincent Krebs's user avatar
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, ...
WinnieNotThePooh's user avatar
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 ...
mala97's user avatar
  • 312
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 ...
Poldek's user avatar
  • 1
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 '...
RosesBouquet's user avatar
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 ...
Malvinka's user avatar
  • 113
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 \...
Sunshine's user avatar
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 ...
Ben Zelnick's user avatar
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} \...
DDS's user avatar
  • 8,491
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 ...
Linear Christmas's user avatar
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 ...
DDS's user avatar
  • 8,491
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 ...
William Robert MacSwaggerson's user avatar
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} \...
Kim Goddard's user avatar
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 ...
nocomment's user avatar
  • 363
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{...
Sriotchilism O'Zaic's user avatar
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 ...
Rubén Pérez Sanz's user avatar
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*} ? ...
Stephan's user avatar
  • 145
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 ...
Griffith Feeney's user avatar
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 ...
Khumanshu Singh's user avatar
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. ...
niksirat's user avatar
  • 597
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 ...
niksirat's user avatar
  • 597
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 ...
atxy's user avatar
  • 140
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 ...
SKS's user avatar
  • 11
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 ...
Taro's user avatar
  • 203
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 ...
Machinus's user avatar
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} ...
Safron's user avatar
  • 350
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 ...
Axel's user avatar
  • 25
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 ...
sgmoye's user avatar
  • 8,454
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 ...
Frederik's user avatar
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 ...
DDS's user avatar
  • 8,491
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 ...
Kneelawk's user avatar
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\...
Nobody's user avatar
  • 101
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 ...
parsa2820's user avatar
  • 317
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.
tungsondkh's user avatar
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 ...
Qi Tianluo's user avatar
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 ...
Underline Apprentice's user avatar
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}[...
cufcuf's user avatar
  • 594
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. ...
Khawar Islam's user avatar
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 ...
Sam Macharia's user avatar

1
2 3 4 5