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
1answer
37 views

Underlining Text in Latex — No Vertical Gap

There are many questions/answers on Stack Exchange and elsewhere regarding underlining text in latex. After reading (a selection of) these, I tend to use \underline{...}. I have one (fairly major) ...
1
vote
2answers
55 views

customize beamer block environment: underline block title

I'm trying to define an underlined block title in beamer and I'm unable to do it. Could anybody help me with that? I managed to customize the specific font and shape of the block title, but so far no ...
0
votes
0answers
27 views

Show underlines in view mode, but omit when printing?

I would like to know if there is a way I could display URLs with underlines when being viewed in a PDF, but to omit them when printing. I saw the following code example from this answer: \usepackage{...
3
votes
1answer
44 views

Underline needed using Phantom for cells in Tables

Underline need to set selected Cell using phantom text(not cell width) so that I do not want to change Column alignment? Is any way to achieve this? Kindly ignore my \al definitions. Please find MWE ...
1
vote
1answer
40 views

How to underline the heading of List of Acronyms?

Following is my MWE of my thesis, using to create a LIST OF ACRONYMS. \documentclass{article} \usepackage{acro} \usepackage{mfirstuc} \acsetup{ index = false, list-long-format = \makefirstuc , ...
1
vote
2answers
23 views

Centering table entries with a custom underline that matches width of column

I have a simple table with 3 columns, which I am using as a heading for data. I have defined a custom underline rule (with custom thickness, color and depth) that I am using to underline each table ...
2
votes
1answer
75 views

Redefining contour colour (for underlining)

I'm using the following code (taken from this site for putting nice underlines under my text. \usepackage{ulem} \usepackage{contour} \renewcommand{\ULdepth}{1.8pt} \contourlength{0.8pt} \newcommand{...
1
vote
0answers
50 views

How to underline a URL hyperlink in Latex?

How to make a underline for my URL, I tried \underline but is not useful, it make the text over the pages. \documentclass[12pt,oneside]{book} \usepackage[utf8]{inputenc} \usepackage[OT6,T1]{fontenc}...
4
votes
2answers
58 views

Latex newcommand underlined section

I have to write a proposal in LaTeX in which there are normal headlines defined by conventional LaTeX commands (\section, \subsection, \subsubsection, and \subsubsubsection), but there are also other ...
5
votes
2answers
199 views

underline alignment

\begin{equation}\label{eq:OrdenaAlpha} \begin{array}{lrl} \alpha^{0} = \alpha & = & (+6 \quad -1 \quad +4 \quad -5 \quad \underline{-2} \quad \underline{-3}) \\ \alpha^{1} =...
4
votes
1answer
81 views

Draw a horizontal line from the left margin to the end of centered text

I would like to draw a horizontal line from the left margin of the current page to the end of a centered text. For example, if I write "Hello, world!" as centered text, I would like a line spanning up ...
2
votes
1answer
79 views

ConTeXt: Combination of overstrike and underbar

Problem I currently work on an edition in which I want to render passages that have been marked as 'done' by the source's author (e.g. todo lists). Some of the crossed out items are underlined, and I ...
0
votes
0answers
41 views

Are underlines obtained using boxes?

Can I have different kinds of lines actually drawn using LaTeX boxes? I was curious to know about the definition of \underline{}. I am sure it uses boxes, because If I type something like this - \...
0
votes
1answer
52 views

Space-efficient underbrace

How to obtain the above right image with Tex? If too difficult, you may also present a solution with straight lines. If you know a better alternative, then by all means present it. The solution ...
2
votes
1answer
37 views

Underlining question command

I have to set a test for my students and I was given a template to work with. I want to underline the word Question together with the number so that it may be applied to the document globally. Here's ...
3
votes
1answer
39 views

How can I write a dotted (imported) text

I use the answer of @werner in this post: How do I write \underline text but with a dotted line to write a dotted text with the dashundergaps package, but when I use it with a text imported from my ...
0
votes
0answers
28 views

unsrt bibtex mode with underlined

I have a problem with the underlines in the bibliography. I am using the package \bibliographystyle{unsrt} in report mode. And introducing the bibliography like this @incollection{...
4
votes
2answers
341 views

Underbar nabla symbol doesn't work

I want to write a symbol like the one shown in the following image but I can't make it work. I tried: $$ \underbar{\nabla} $$ but it didn't work (I think the reason for this is that the input for ...
4
votes
1answer
82 views

How to draw under-text grid lines in minipage?

I want to achieve like shown below: But the only thing I can get with ulem is: With the code below: \documentclass[12pt]{report} \usepackage{ulem} \begin{document} \begin{center} \begin{minipage}...
0
votes
0answers
42 views

Redefine command to handle empty linebreaks

I have the request to use underline text. I am aware this could be done with \ul (from soul package) which works in most of the scenarios. Somehow this command has a problem to handle properly \href{} ...
1
vote
1answer
55 views

Underline a number in an siunitx table (in beamer)

I want a table column to be aligned using the thousands comma. But when I try to underline the number it moves and the comma disappears. MWE: [![\documentclass\[t,xcolor=table\]{beamer} \usepackage\[...
0
votes
0answers
47 views

underline breaking ligatures

This is another version of my color question, as I've found another case where the problem occurs. In some behind the scenes work for spacing reasons, the pieces of a syllable get split up in ...
0
votes
1answer
47 views

command similar to \underset

Is there a command similar to \underset which doesn't minimize the elements under the text? I want to write a function in the usual way: set to set with the elements beneath them, but \underline ...
2
votes
2answers
49 views

Setting the border of links in hypersetup always at the same height

I would like to underline links in my document, using the hypersetup command. However, this underlines links with a descender (e.g. a p, q, g, j, y) on the descender line, but links without a ...
3
votes
2answers
241 views

Double underlining a result in a system of equations with calculation steps on the right side

I am trying to create a system of equations with my calculation steps on the right side and a double underlined result. I've decided to use NiceArray from the nicematrix package for the calculation ...
5
votes
3answers
95 views

ULdepth does not change space in equation

I am trying to underline a result within an equation environment. The result contains a Matrix. I use the ulem package with uline. How can I add more space between my matrix and the line? I tried ...
6
votes
3answers
316 views

Visualize multiple string segments

I need to compactly visualize multiple, possibly intersecting string segments for a given string. For instance, here is pseudocode for all palindrome occurrences in a binary string: S = 1 0 1 0 0 1 0 ...
7
votes
1answer
341 views

A problem with Hebrew and English underlined text

When I'm combined at the same line Hebrew and English, the line below is "breaking" for two lines.... e.g. MWE: \documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl} \usepackage{...
0
votes
0answers
70 views

cloze package: Clozes in math mode have stopped working

I recently updated my MacTeX distribution via Tex Live Utility. Before that clozes from the cloze package have also worked in math mode, e.g. in amsmath's align environment. But that does not seem ...
0
votes
0answers
35 views

Problems with the table of contents

I am facing three types of problems with the table of contents. First, I want to remove underlining (from the section titles) and bold (from the chapter titles) from the table of contents. The page ...
1
vote
1answer
53 views

Fixing the length of underline text

I was looking for an example here about setting the lengh of the command \underline. I'm trying to produce a text on top of a line with 10cm fixed length, with text of variable size. In addition the ...
1
vote
1answer
68 views

Linebreaks in formated texts

I need to format my text in bold therefore I have several options for the same result. The main result would look like \textbf{text in bold} which works fine. But as soon as line breaks start to ...
1
vote
2answers
278 views

How to make a single line in latex to have more line space?

In the following code, due to the shape of Q in "Qualification", the upper side of "L" in "Language" stick with the underline of "Further Qualification". Would it be possible to make the line space of ...
1
vote
1answer
173 views

how to add vertical space between words and the underline effect?

I searched around here and did not find anything accurate to what I wanted. I would like to know other ways to increase the decrease in the space between underline and words as well as in this MWE ...
1
vote
1answer
46 views

Underlining a whole line with texts at different spots

I would like to underline the whole line with texts anywhere I choose on the line. I found this answer, which is almost what I want. I tried \titleline{homework \hfill assignment} but it does not ...
3
votes
3answers
115 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 ...
1
vote
2answers
141 views

arabluatex: Underlining an Arabic text

How to fix the following underlined Arabic text? \documentclass{article} \usepackage[tuenc]{fontspec} \newfontfamily\arabicfont{Amiri}[Script=Arabic, RawFeature={+anum}] \usepackage{arabluatex} \...
0
votes
1answer
146 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 \...
3
votes
1answer
459 views

\everymath and \underline color

I use \everymath to change the color of all maths (blue). However, beyond my expectation, this color happens to automatically apply for any underlined texts. Please kindly instruct me how to solve ...
1
vote
1answer
102 views

How to underline CJK with soul?

I was using soul to underline text. It works until I tried to underline some CJK text. When I have \def \mytest {测试test very long text blah blah blah ...} \ul\mytest in the document, it complains: ...
2
votes
0answers
44 views

Extending soul underline up to the right side of tabular

I found the \longunderline command at Extending underline up to the right side. However it does not work as expected in an tabular: \documentclass{article} \usepackage{tabularx} \usepackage{soul} \...
5
votes
1answer
265 views

Formula in Latex: How to use special symbols in Latex?

I want to write following formula in Latex: The problem is the "i" underneath "x". It is not a regular fraction. It means that value "x" will be replaced with "i". How can I write this one in Latex? ...
3
votes
2answers
236 views

Field for handwritten text [duplicate]

I'm preparing a small workbook. I'm using gray empty underlines as in this answer to make empty fields for handwritten text. I'm using \documentclass[a4paper,11pt]{book}. \documentclass[a4paper,11pt]...
1
vote
1answer
155 views

Custom Underlining

I am trying to define three commands, say \wave, \underdots and \jagged such that \wave{hello} produces the word hello, with a wave underline it. Similarly, \jagged{hello} produces the word hello, ...
3
votes
2answers
123 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 ...
2
votes
1answer
187 views

Is it possible to have underlines at the same height in math mode?

For my thesis, I would like to use (light gray) underlines to indicate the rank of tensors. There are three modes: No underline, one underline and two underline. (For rank-0, rank-1 and rank-2 tensors....
0
votes
1answer
72 views

Type underline in latex [duplicate]

I was intending to type something like use_aesni = True in latex. Therefore, I type $use_aesni = True$. However, it becomes this.
2
votes
1answer
231 views

Underline inside of enumerate and align

MAIN QUESTION! This is my first question on here so bear with me. I would like to underline my last line of code where it says underline. I have tried to do so as you can see below, but I keep getting ...
6
votes
2answers
199 views

Underline part of a word while preserving kerning

The usual ways of underlining text (or at least the ones I know of: be it with \underline or e.g. the soul package) break kerning when used with part of a word. My current solution consists of a two-...
0
votes
1answer
68 views

How to automatically put a colorized underline under my glossary entries and acronyms?

I want that all my glossary entries and acronyms are underline and that the underline are colorized. I'm using this configuration so by default all hyperref links are hidden. \usepackage{hyperref} \...