Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [underline]

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

2
votes
1answer
348 views

Double-bar notation for second-order tensors4

I found it interesting to represent a tensor with the notation normally used by my professor. Looking for respect to the mathematical symbol I found this code from this post, very interesting. I ...
0
votes
0answers
29 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
26 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
33 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
52 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
50 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
26 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 ...
2
votes
1answer
1k views

Underline colored text with linebreak

I would like to underline colored text with a black line, and preserve line breaking. My best solution so far is using \uline from the ulem package. However, I cannot get my desired result. My ...
0
votes
0answers
21 views

Underline the Answer of Polylongdiv in Latex

How to underline the answer of \polylongdiv (from polynom) in LaTeX?
3
votes
3answers
100 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 ...
0
votes
1answer
53 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 \...
1
vote
2answers
98 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} \...
3
votes
1answer
208 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
52 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: ...
3
votes
0answers
36 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
180 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? ...
2
votes
1answer
169 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:
0
votes
1answer
42 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} \...
3
votes
2answers
148 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
62 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
51 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
50 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
164 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 ...
5
votes
1answer
93 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
139 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
469 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
82 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
93 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
3answers
124 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}...
2
votes
1answer
145 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
1answer
77 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:
1
vote
0answers
56 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
349 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
43 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
123 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
81 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
94 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
62 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 ...
1
vote
1answer
264 views

Line break and hyphenation for underlined text

I am struggling with a problem that occurs using \underline. From other posts I heard that there is no possiblity for linebreaks using this command. However, I tried using the ulem package. In fact, ...
1
vote
1answer
192 views

Underlined URLs with line breaks in formatted bibliographic entries

Requirements: Underlined URLs in a bibliography built from an external file. Margins are respected. No URLs go into the margins. The final output is a pdf file. Other format requirements still apply,...
2
votes
1answer
134 views

Can't underline highlighted text (soul)

\usepackage{soulutf8} \begin{document} \hl{ AAAA {\ul{AAAA}} AAAA} \end{document} fails: ! Package soul Error: Reconstruction \underline works but I don't seem to be able to change its color ...
4
votes
3answers
207 views

Macro to capitalize all letters and change breaks to underlines

I'm trying to make a macro that will take an input phrase, capitalize all letters, and replace all breaks with underlines: \ctest{one word} => ONE_WORD I've been trying to use the stringstrings ...
6
votes
1answer
353 views

pdflatex vs lualatex underline mystery

Using lualatex, I have uderlined links : Using pdflatex they are gone : \documentclass[french]{article} \usepackage{xcolor,hyperref,tikz} \hypersetup{% colorlinks=true, urlcolor=blue, ...
2
votes
1answer
57 views

Hyperref, tikz node and underline misalignement

With a Tikz node, there is a shift of the underline line. I use lualatex. See my related question : pdflatex vs lualatex underline mystery \documentclass[french]{article} \usepackage{xcolor,hyperref,...
2
votes
1answer
186 views

Underline a name in bibliography using ClassicThesis and BibLaTeX

I need to underline all occurrences of a person's name in the bibliography, using ClassicThesis and BibLaTeX. I would prefer to change the tex file only (not the bib or bst). So far, I have tried this ...
1
vote
0answers
26 views

How to make tight underlines that omit longer letters? [duplicate]

Using \underbar{Categorical} produces But how do I automatically produce \underbar{Cate}g\underbar{orical}, which looks like I mean automatic in the sense that I don't have to single our the g, or ...
1
vote
1answer
91 views

Wrapping underline in mdframed

I am trying to have a fill in the blank paragraph inside of a box. I've been using mdframed with great success, but the underline blank doesn't wrap inside of the box. I'm newer to Latex; I've tried ...
0
votes
1answer
483 views

Correctly using hyperref package to underline href elements

I'm interested in using hyperref package to highlight links typed as href elements, the links should be: Of the same colour as the remaining text (default, black) Underlined with single lines ...
0
votes
1answer
157 views

Drawing multiple lines and/or dashed lines under words

I'm trying to define tables for logical design in database course and I only need to write headers of columns, but the problem is that depending on whether one or multiple columns are primary keys or ...