Questions tagged [underline]

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

4
votes
2answers
269 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
65 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
36 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{} ...
0
votes
0answers
32 views

Double dashed underline

In accounting reports it is customary to use double underlines, and double dashed underlines. Is there a simple way to do so without using Tikz? I prefer something that can work with Siunitx table ...
1
vote
1answer
39 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
33 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
29 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
43 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
146 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
75 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
304 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
323 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
43 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
32 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
36 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
36 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
63 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
80 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
31 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 ...
0
votes
0answers
25 views

Underline the Answer of Polylongdiv in Latex

How to underline the answer of \polylongdiv (from polynom) in LaTeX?
3
votes
3answers
104 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
111 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
61 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
319 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
63 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
40 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
197 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
165 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
71 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
61 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
76 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
53 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
174 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
1answer
149 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
50 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} \...
0
votes
1answer
187 views

spacing of \uline

I use the \uline command for underling with break line. But it upper space to the word are small and it seems that it is drawn a line on the words. How can I make some space between line and the word?
2
votes
2answers
631 views

Underline width

It seems, by using the command \setul{}{ pt} in the soul package, we can change the underline width. But I don't want to use this package. Is there any other command for changing the underline width ...
3
votes
1answer
92 views

How to put text at rightmost position of an underline?

\documentclass{article} \usepackage{booktabs} \usepackage[a4paper,left=0cm,top=0.2cm,bottom=0cm,right=0cm]{geometry} \usepackage{polyglossia} \setmainlanguage[numerals=Devanagari]{bengali} \...
1
vote
0answers
124 views

How to underline text with in-text citation with wrapping?

The line of text I want to underline includes in-text citation. My problem is that \uline only works on this line when I use \mbox(I get an error without \mbox), which makes it impossible to wrap the ...
2
votes
1answer
180 views

How to underline whole bibitem in biblatex?

I want to underline whole bibitem when using biblatex. I tried \AtEveryBibitem{\uline} but failed. What I want to do:
2
votes
3answers
154 views

underline and background color for section or subsection

Please , help me to get a section or subsection with an underline and background color as the same figure below ? Here is the code of my document with ordinary titles : \documentclass[11pt]{report}...
1
vote
1answer
88 views

underline and number for a part of a text

How can we underline a part of a text which is accompanied by a number beside the text as the below figure:
3
votes
1answer
178 views

How to set not underlined?

\textit is canceled by \textup \itshape is canceled by \upshape \textbf is canceled by \textmd \bfseries is canceled by \mdseries \normalfont cancels everything What cancles \underline? \...
1
vote
0answers
61 views

Underlining greek letters with soulutf8 and compiling with LuaLaTeX [duplicate]

I would like to use the features of soulutf8 and compile a document containing greek letters with LuaLaTeX. However, this approach seems to gobble the letters that I chose for underlining. What can be ...
2
votes
1answer
476 views

underline (empty space) until end of line (manual “fill in the blank” to end of line), within enumerated environment

I keep encountering situations where I would like to quickly include a few "fill-in-the-blank" style underlined horizontal spaces (usually within an enumerated environment) but each time I come to ...
2
votes
1answer
44 views

Problem in bibliography with applemac

I have one problem with the bibliography: I need to work on TexMaker with the package inputenc applemac because my supervisor absolutely wants that I use that, but when the bibliography appears, the ...
2
votes
1answer
154 views

boxed text and underline within the gb4e environment

I would like to ask about boxed text and underline within the gb4e environment. I would like to box the text to indicate that this word is important. At the same time, I would like to draw an ...
1
vote
3answers
88 views

Underlining text with repeated symbol

I'd like to underline by repeating a symbol (for example +). I have this code that works for underlining with x but I couldn't make it work for +: \documentclass{article} \usepackage{tikz} \...
2
votes
1answer
101 views

sectsty underline and titlecap not working together

So I'm trying to make the format of the subsection be normal font size, underlined, and have title case. Below is an example, stolen from here: \documentclass{article} \usepackage[normalem]{ulem} \...
2
votes
1answer
67 views

Special underline/Partial box

I'm not exactly sure what to call this, but I'd like to know how to replicate the text decoration shown under the $n$ in the image. It seems a hooked underline or similar to, a partial box, but only ...