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}.

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
48 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
42 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
23 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
21 views

Underline the Answer of Polylongdiv in Latex

How to underline the answer of \polylongdiv (from polynom) in LaTeX?
3
votes
3answers
95 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
79 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
49 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
161 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
47 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
34 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
174 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
140 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
60 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
46 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
43 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
152 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
91 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
40 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
112 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
392 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
73 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
89 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
165 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
113 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
71 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:
2
votes
1answer
136 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
55 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
285 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
42 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 ...
0
votes
0answers
36 views

Underlining subsection text, not numbers

I am looking to add underlines to all of my subsections, and subsubsections but only applying to text, not the number I used the below sectsty commands below and end up with both text, and section ...
2
votes
1answer
116 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
77 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
87 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
59 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
233 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, ...
2
votes
1answer
121 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 ...
2
votes
1answer
306 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 ...
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
351 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
50 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
166 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 ...
0
votes
1answer
451 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
150 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 ...
0
votes
2answers
47 views

Problems on Longtables

I have the following code: \documentclass{harvard-thesis} \newenvironment{bottompar}{\par\vspace*{\fill}}{\clearpage} \newcommand*\0[1]{{\large#1}} \newenvironment{psmallmatrix} {\left(\begin{...
1
vote
1answer
620 views

underline in align environment

A small problem this time: I try to underline my result in an align environment using the package ulem. The problem: I want to underline the whole result (e.g. x=1) not only 1. But because I like the =...
1
vote
1answer
184 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,...
4
votes
1answer
732 views

Continue underlining up to percentage of textwidth

I need to create a recipient section with 3 lines. I'd like to have them underlined and with the same length, regardless of how many words I write in them. I could achieve the result with the {soul} ...