Skip to main content

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
3 votes
2 answers
153 views

Colored underline and overline in math mode

I am trying to write a style sheet that will define the commends \undercolor{math here}{<color>} and \overcolor{math here}{<color>}. I had thought this would be very easy, and got this ...
Jack's user avatar
  • 177
2 votes
2 answers
168 views

How to underline several empty lines

I need 3 lines to be underlined and doesn't contain text. I tried: \usepackage{ulem} \uline{\hfill \\ \hfill \\ \hfill} But it doesn't output more than one empty line.
Intolighter's user avatar
3 votes
2 answers
84 views

How to center caption under underlined text

I'm using ulem package to underline text. That's my setup: \usepackage{ulem} \setlength\ULdepth{1.5pt} \noindent Student {\uline{Meow Meow \hfill} \\[-.3\baselineskip] {\centering \footnotesize full ...
Intolighter's user avatar
2 votes
2 answers
79 views

How to align TikZ nodes in different environments to the dimensions of the current line?

What I'm trying to do I'm trying to typeset what is shown in the following graphic using LaTeX. The graphic was created using Inkscape. Note that ... all texts (including the numbers inside the ...
Rodrigo Morales's user avatar
8 votes
1 answer
195 views

lua-ul underlines with unwanted gaps

I'd like to stretch a word using the command \textls from the microtype package and underline it using the package lua-ul. Unfortunately I get an interupted line: See the gap in the line under the ...
Keks Dose's user avatar
  • 31.3k
1 vote
0 answers
61 views

How to make underline work like bfseries?

I want to define a command \bflikeuline which works like \bfseries. Namely, \bflikeuline some text will underline some text. I tried the following code: \documentclass{ctexart} \usepackage{amsthm} \...
gaoqiang's user avatar
  • 155
2 votes
0 answers
45 views

Underlining across multiple paragraphs

I’m producing syntax-highlighted LaTeX via fancyvrb. It all works well – unless styles cross lines. I have a workaround but the output would be more concise if there were a LaTeX command for ...
Axel Rauschmayer's user avatar
3 votes
2 answers
660 views

How to write deg with an underline across the bottom of 'g'?

I want to use this notation in LaTeX: , which is different from \underline{\deg}. Is there any way to obtain this notation? Thanks!
lolipop's user avatar
  • 35
1 vote
1 answer
40 views

How do you draw square arrows, either above or below from the center of one element in an equation to the center of another?

I have checked other answers, but they are not easily customizable to get the desired behavior. They do not center the ends of the arrow and do not support underlined text in the equation. I have this ...
John Glen's user avatar
  • 131
0 votes
1 answer
33 views

How to align in the middle of \underline{} with another formula?

I want to realize the following formula in latex. I've tried \begin{equation} \begin{aligned}[c] \underline{\mathrm{Primal}\,\,&\mathrm{problem}} % \mathrm{Primal}\,\,&\mathrm{problem}...
narip's user avatar
  • 109
0 votes
0 answers
41 views

how Do I Enhace (bold, Underline or Italise) texts in twenty seconds cv

I am trying to use the twenty-second CV class to create my CV, and I would like to enhance (bolden, underline or italicise) some texts, like underlining the places I have worked and bolding the key ...
Daniel James's user avatar
2 votes
1 answer
117 views

Make the compiler ignore \underline command

I have the command \underline in several parts of my document. I would like to check how it looks without any underlining. But I don't want to recover all the instances of the \underline command in ...
RyeCatcher's user avatar
1 vote
1 answer
37 views

How to underline and color the first letter and the underlining [duplicate]

I would like to underline and color only the first letre which is "I" for Information and C for Communication, also color the underlining but this line color all the texte with red !! \color{...
Inesss's user avatar
  • 11
6 votes
3 answers
442 views

Evenly underline a formatted text so that descenders (like "y") overlap the line

I am trying to underline a formatted text. What am I trying to do is the following: \usepackage{xcolor} \usepackage{tikz} \newcommand{\udensdot}[1]{% \tikz[baseline=(todotted.base)]{ \...
Evgeny Kuznetsov's user avatar
3 votes
2 answers
107 views

How to underline the proofname

In my project, I added this code \AtBeginDocument{\renewcommand\proofname{\underline{Proof}}}. When I use the proof environment, the proofname goes like $\underline{\textit{Proof}}.$ But what I want ...
PermQi's user avatar
  • 187
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
26 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
65 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
  • 925
2 votes
1 answer
80 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
85 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
  • 909
6 votes
4 answers
194 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
114 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
319 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,781
2 votes
0 answers
67 views

Using Colored Underlines in Math Mode [duplicate]

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
142 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
171 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,427
4 votes
1 answer
164 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
226 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
289 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
1 vote
0 answers
34 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
31 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
384 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
438 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
58 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
  • 9,768
8 votes
3 answers
534 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
99 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
  • 9,768
0 votes
0 answers
29 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
288 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
298 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
55 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
2k 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
245 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
  • 245
0 votes
1 answer
88 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
496 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
153 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
  • 617
2 votes
3 answers
358 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
  • 617
1 vote
1 answer
234 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
188 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
663 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
497 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
2 3 4 5