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
1 vote
0 answers
36 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 ...
user avatar
0 votes
1 answer
22 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*} ? ...
user avatar
  • 35
0 votes
1 answer
23 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
0 votes
0 answers
11 views

Underline the section line inside the Table of Contents [duplicate]

I would like to underline an section line inside the TOC, like the image of MS Word below on item 2.1.1.1, someone have an idea of how to do this?
user avatar
1 vote
1 answer
34 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. ...
user avatar
  • 343
0 votes
3 answers
60 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 ...
user avatar
  • 343
1 vote
1 answer
52 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 ...
user avatar
  • 13
1 vote
0 answers
29 views

The myuline command is not accepting line break

I found a template in overleaf where I found the following lines of code: \newcommand{\myuline}[1]{% \uline{\phantom{#1}}% \llap{\contour{white}{#1}}% } But this underline command is taking any ...
user avatar
  • 11
9 votes
3 answers
353 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 ...
user avatar
  • 203
1 vote
1 answer
61 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 ...
user avatar
0 votes
0 answers
28 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} ...
user avatar
  • 318
0 votes
2 answers
66 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 ...
user avatar
  • 15
1 vote
1 answer
75 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 ...
user avatar
  • 7,683
2 votes
1 answer
40 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 ...
user avatar
0 votes
0 answers
45 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 ...
user avatar
0 votes
0 answers
20 views

How to output the start position coordinates and end position coordinates of the underline generated using fancypar or underline

For example, in the picture below, I want to know the start and end coordinates of the underline in each line \documentclass{article} \usepackage{zref-savepos} \usepackage{zref-user} \usepackage{zref-...
user avatar
  • 149
2 votes
0 answers
57 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 ...
user avatar
0 votes
2 answers
76 views

Write email address with an underline between words

I need to include an email address with an underline between words in this form: foo_bar@gmail.com, but latex was considering the underline being for a subscript in math mode. I used \author{Name\...
user avatar
  • 101
3 votes
1 answer
85 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 ...
user avatar
  • 207
1 vote
1 answer
60 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.
user avatar
0 votes
2 answers
90 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 ...
user avatar
1 vote
1 answer
68 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 ...
user avatar
2 votes
2 answers
215 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}[...
user avatar
  • 584
0 votes
1 answer
154 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. ...
user avatar
0 votes
1 answer
42 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 ...
user avatar
4 votes
1 answer
175 views

Underline math symbols and letters on same height

i'm looking for another option than \underline for underline math symbols as well as regular letters on same height. What I want is to change the underline of the first two symbols to the red ...
user avatar
  • 41
0 votes
1 answer
46 views

Writing out elementary subtraction in Latex

I'm hoping to figure out how to write out calculations like this along with the crosses as seen in the image attached. Your help will be greatly appreciated Many thanks!
user avatar
0 votes
1 answer
28 views

underlining of a text depends on the text [duplicate]

When I want to underline text, I have a gap depending on whether the text contains letters that go down or not. For example : \begin{document} Je teste le \underline{soulignement} \underline{...
user avatar
  • 659
0 votes
0 answers
30 views

Math formulae alignment in multiple dotted lines with answer on the lines

In the post Multiple dotted lines with answer on the lines, Piroooh provided an excellent solution and with excellent document as well. Is there any chance to further enhance the MWE provided by ...
user avatar
0 votes
2 answers
116 views

How to multiple underline characters in strings

I need to show examples of border, cover and other regularities on a string and I would like to show that by underlining the characters of a string accordingly. Also I would like to have a larger font ...
user avatar
  • 3
2 votes
0 answers
213 views

issue related to undefined control sequence [closed]

My first post on here. If I fail to abide by the rule, apologies beforehand :) My code run months ago without error. When I try it this time, after updating my MikTex, it sows me the following error ...
user avatar
  • 21
3 votes
1 answer
72 views

Accents package not working inside captions

I'm writing a document involving phasors and I'd like to use egreg's notation from this post: \bar below symbol, e.g. $\underaccent{\bar}{U}$. It works well except if I put the phasor inside a caption....
user avatar
0 votes
0 answers
29 views

Whilst using \uline combined with \st the content goes of page

Using the following causes the text going off page only when using a combination of \uline and \st: \uline{\st{this is for testing purpose.It is a long established fact that a reader will be ...
user avatar
  • 1
0 votes
1 answer
144 views

Color box with multiple lines and underlined text (within a paragraph)

In a paragraph, I want to highlight some part of the text (not the whole paragraph!) with a colorbox and also underline the text within that colorbox. This would be the result that I am looking for: ...
user avatar
  • 1
1 vote
0 answers
135 views

\uline cannot wrap the line after texlive2021

I need to underline some text and hope the text automatically wrap at then end of the line. see Why does underlined text not get wrapped once it hits the end of a line ? The \uline works with ...
user avatar
1 vote
0 answers
55 views

SOUL not working with "ě" character

I have the following code in soul to allow underlines for letters with descenders. \usepackage{xcolor} \usepackage{xparse} \usepackage{soul} \makeatletter \ExplSyntaxOn \cs_new:Npn \...
user avatar
0 votes
2 answers
128 views

Centering an underlined title

The goal is to center the main title in the cover page, however, this has been proven quite the challenge. What the problem is Most of the approaches I've tried end up in the same way: the title ...
user avatar
1 vote
1 answer
72 views

Colored underline without affecting the default LaTeX style

I would like to have a colored line. I tried the following: \documentclass[11pt,english]{article} \usepackage[T1]{fontenc} \usepackage[parfill]{parskip} \usepackage{color,soul} \setulcolor{red} \...
user avatar
  • 611
2 votes
1 answer
89 views

In ConTeXt, how can I avoid \underbar also underlining a following dash?

In this code: \starttext \underbar{foo}-bar \stoptext ConTeXt also underlines the dash after foo instead of just underlining foo. How can I fix that?
user avatar
  • 1,959
1 vote
2 answers
76 views

Underline text with === (SETEX style)

I'm trying to recreate the typewriter look. How to make \underline{sometext} work like SETEX-style section marker? The intended use is with monospaced/typewriter fonts for lines with plenty of space ...
user avatar
0 votes
0 answers
63 views

apply nested box in soul package

\documentclass[a4paper,twocolumn]{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} % \usepackage{soul} \usepackage{soulpos} \begin{document} \ulposdef\ulpgfC[xoffset=.15em]{% \...
user avatar
  • 31
1 vote
1 answer
79 views

hyperref \href underlined vertical spacing

I am trying to underline links using \href from hyperref in a tabular environment, with an increased vertical spacing. As you can see in the MWE and the picture following it, it results in a line ...
user avatar
  • 121
2 votes
0 answers
44 views

Make hyperref underlining have consistent height

I want to have consistent underlining under references when hyperref is used. As of now, this example: \documentclass[a4paper]{article} \usepackage{xcolor} \usepackage{hyperref} \hypersetup{ ...
user avatar
  • 229
0 votes
1 answer
58 views

identical formatting of two underlined lines have different vertical spacing

I'm new to latex but using it to format my CV. I have several sections like the one below, where I expect the two headings "Instruction" and "Lectures and Workshops" to look ...
user avatar
  • 103
0 votes
0 answers
8 views

identical formatting of two underlined lines have different vertical spacing [duplicate]

I'm new to latex but using it to format my CV. I have several sections like the one below, where I expect the two headings "Instruction" and "Lectures and Workshops" to look ...
user avatar
  • 103
0 votes
2 answers
64 views

Reduce the length of underscore inside detokenize

Like this question But because many of my keywords has underscore, I created a macro called \keyword with \detokenize to make things easy. However, it makes underscore become longer again. \...
user avatar
  • 184
3 votes
2 answers
309 views

Highlighting only the bottom half of a word

I would like to define a command for highlighting in the following style. Some people do this on paper and I would like to mimic that on a particular document. How could I achieve this? I thought of ...
user avatar
  • 77
1 vote
0 answers
162 views

Underline in red

The \underline command only adds black underline. \usepackage command, however, is not allowed in StackOverflow questions so there is no way to use \color{red}\uline{...}. Is there any chance to apply ...
user avatar
0 votes
1 answer
177 views

How to disable the red underline in the output PDF file?

in the output PDF file there are some unwanted red/green unterlines: And all over the contents: I am using latex workshop 8.13.2 on Vscode and I can't find the relevant setting. How could I disable ...
user avatar