Questions tagged [underline]

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

is about underlining portions of text for emphasis or blank spaces for creating forms. Popular packages are and .

213 questions
10
votes
1 answer

What's the difference between \underline and \underbar?

These two commands seem identical, and I haven't found enough materials on \underbar. What's the difference? and which doc/book has covered that?
7
votes
3 answers

Constant Length of \underline

My question is incorporated in the code/output. \documentclass{article} \begin{document} The underline \underline{\qquad} (\verb+\underline{\qquad}+) is the length of the underline that I would like to have no matter the contents of…
6
votes
2 answers

\underline rule position

Using the \underline{} command and I'm getting very strange (and inconsistent) results. There randomly seems to be added spacing to one of the underlined words. Any suggestions/solutions would be much appreciated! Please see image below. (I've…
Andy
  • 315
4
votes
2 answers

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 the underbar command should be only text. How can I…
Heath
  • 207
3
votes
2 answers

How to underline the proofname

In my project, I added this code \AtBeginDocument{\renewcommand\proofname{\underline{Proof}}}. When I use the proof environment, the proofname goes like $\underline{\textit{Proof}}.$ But what I want is the underline extends to the end of the dot…
PermQi
  • 187
3
votes
1 answer

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 data, it writes it on the same line. How can I…
3
votes
2 answers

Field for handwritten text

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}.…
user5402
  • 346
2
votes
1 answer

Make the compiler ignore \underline command

I have the command \underline in several parts of my document. I would like to check how it looks without any underlining. But I don't want to recover all the instances of the \underline command in case I change my mind. How can I achieve…
RyeCatcher
  • 123
  • 4
2
votes
2 answers

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}[1]{% \uline{\phantom{#1}}% …
cufcuf
  • 594
2
votes
1 answer

Underline in flalign

For some reason, \underline doesn't work in \begin{flalign*}. I have a fragment of an equation which ends like \begin{flalign*} t&=10 \end{flalign*} and I want to underline the last equation \begin{flalign*} \underline{t&=10} \end{flalign*} and…
2
votes
1 answer

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 my…
R Maharaj
  • 405
2
votes
1 answer

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, with a jagged underline, and \underdots{word}…
2
votes
0 answers

Is there an equivalent of \bf for \underline{}?

We can use $\bf 10$ for obtaining a bold 10. Of course, this is equivalent to $\mathbf{10}$. Is there an equivalent of \bf in math environment for \underline{}? I would need something like $\ul 10$ for a code where I can not use brackets.…
andreshp
  • 163
2
votes
1 answer

Matching under- and overlines to parentheses

I want to encapsulate text in a sort of inline "dialogue bubble". To do this I defined % overline text \newcommand{\textoverline}[1]{$\overline{\mbox{#1}}$} as seen here, and defined my dialogue box as % dialogue box \newcommand{\Say}[1]{% …
1
vote
1 answer

How to produce the double wave underline?

I am using the wave underline to highlight some text, but there is no function to make a double waveline. And I wish the underline could have line break automatically. Is there any methods to use \dwave(double wavy underline) as follow? For example,…
1
2 3