Questions tagged [text-decorations]

Applying effects to text such as underlining, striking through, highlighting, shadows or other geometric transformations

Filter by
Sorted by
Tagged with
81
votes
3answers
58k views

How can I have colored and underlined links with hyperref?

I would like the internal hyperlinks generated by hyperref to be colored and underlined. Reading some of the package documentation, I know that these \hypersetup keys exist: colorlinks: when true, ...
108
votes
7answers
81k views

Long underscore in LaTeX

In LaTeX, how would I make a long underscore? For example, Name _______ Signature _______
68
votes
1answer
54k views

How to strike through obliquely, e.g. to indicate cancellation?

How can I strike through an expression (e.g. "2x") obliquely, e.g. from bottom left to top right, so as to indicate cancellation? With the \sout command from the ulem package, I can only strike ...
82
votes
2answers
45k views

Why does underlined text not get wrapped once it hits the end of a line ?

Sometimes I want to underline some text, and it extends past the end of a line. Why does \underline{} not automatically wrap my text for me ? Also, how can I underline text so that it will still ...
73
votes
5answers
4k views

underline omitting the descenders

I'm very well aware that it is considered best practice not to use underlining other than on typewriters and in handwriting. But sometimes it is needed nonetheless. In my opinion the typographically ...
34
votes
7answers
4k views

How to replace a large block of text by an empty block of the same size?

I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)? What I want is to have some commands, call them \hide and \...
17
votes
2answers
1k views

List of Underlining Packages - Pros and Cons

The \underline macro built into LaTeX is pretty much not useable per Why does underlined text not get wrapped once it hits the end of a line ? I have been attempting to use the soul package to ...
48
votes
1answer
16k views

Draw a diagonal arrow across an expression in a formula to show that it vanishes

I would like to find a way to cross out a term in a mathematical expression with a diagonal arrow pointing from lower left to upper right and with a little "zero" next to the pointy end of the arrow.
26
votes
2answers
26k views

How do I write \underline text but with a dotted line

Like Hello World ........... or Hello World ----------- And not so Hello World // \underline{Hello World} ___________ //
6
votes
1answer
3k views

How do I put text over a squiggly arrow?

I am currently trying to write text over a squiggly arrow (\rightsquigarrow). For normal arrows, I use the extarrows package, which provides commands like \xlongrightarrow and \xLongrightarrow which ...
38
votes
3answers
7k views

What's a good typewriter template?

I'm searching for a template which makes a document look like it's written with a real typewriter. Ideally, this means it's not only in mono-spaced font, but the hyphenation is adjusted accordingly. ...
33
votes
2answers
8k views

Recreating a logo (text around a circle)

My objective is to figure out how to put text around the circumference of a circle as shown below. I have read Calligraphic logo in tikz which answer part of my question but not completely as shown ...
12
votes
2answers
2k views

Outline text using TrueType fonts

I'd like to write outlined text. Here is a minimal example, what I'd like to achieve. \documentclass[a4paper]{minimal} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \...
4
votes
2answers
3k views

The text in pdf is not smooth [duplicate]

I am using TeXstudio to edit Latex and create pdf files. The text is not smooth in the pdf files created by TeXstudio in my computer. When I zoom in, it will be But if I use my friend's computer to ...
8
votes
1answer
1k views

Mixing underline and strike-out

Word allows for all kinds of font formatting: The above example combines strike-through/strike-out (like this) and underlining. I'd like to be able to do the same, but neither ulem nor soul allows ...
239
votes
3answers
377k views

Strikethrough text

I am writing an article in LaTeX 2e. Part of the article describes the Sieve of Eratosthenes, and I want to show examples of how multiples of a prime are removed from the sieve by showing them in a ...
80
votes
3answers
155k views

How can I underline a single word with LaTeX?

Given a simple paragraph, how do I underline a word in that paragraph? (Note: I post this here because it wasn't really obvious using google or this site and my TexNicCenter is somehow missing this ...
15
votes
2answers
3k views

Is there is a package so you can add text with visual effects like “WordArt” from “Word”

I am elaborating a business card style for LaTeX but I found out that even if I have the style and margin for the cards I can not make it look "pretty" like other text editors without overusing text-...
10
votes
2answers
727 views

How to make every line in a bubble like chat conversations?

I've had a plain chat conversation and need display them similarly to how they are designed in Messenger. Since this is a long conversation, I need a method to do it at once. I know this might be ...
74
votes
2answers
90k views

Changing background color of text in Latex

How can I make change a text background in LaTeX? For example using Latex code \textsc{Extra Curricular Achievements}\ I get However, I want the background of this heading to be changed so that it ...
31
votes
4answers
4k views

How to change color of edge of characters? [duplicate]

Possible Duplicate: Outlined characters There are many ways how to change whole character color. I want edge color to be different from body color of character. How to do it? It is possible to ...
48
votes
1answer
19k views

Closer underline

I am currently using \underline{...} to underline text. However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line). Is there ...
11
votes
1answer
6k views

Url with fragments in bold

I need to write document containing a lot of URLs but some fragments of these URLs have to be in bold. How can I accomplished this? For urls I use \nolinkurl but I can't use \bf in it.
20
votes
3answers
5k views

How to fine tune rotation of text along circular path?

After searching the web and finally coming from here (recreating a logo), I couldn't find an answer to what I am looking for. I want to rotate a text inside a circle and have a full control/fine ...
3
votes
1answer
7k views

text with semi-transparent color filled box

I have this text: \begin{flushleft} \fontsize{16pt}{16pt}\selectfont\textit{some text}\\ \fontsize{16pt}{16pt}\selectfont\textit{some text} \end{flushleft} and I would like to have a filled ...
10
votes
5answers
7k views

Underline and center headings

For a paper I have to make my LaTeX document guideline conforming. Many of you will already guess now that this means dirty work by violating virtually all possible typography standards. My biggest ...
65
votes
2answers
54k views

Crossing out sentences

I had to cross out a sentence and I did it the following way, which is kinda sloppy. $ \rlap{\textbf{-------------------------------------------------------------------------------------------------}...
30
votes
2answers
10k views

Getting \emph back to normal after loading ulem

I'm typesetting a manuscript that is required to turn all \emph into underlines. But then I want to use the original definition of \emph for the list of references. How do I get \emph to behave like ...
14
votes
1answer
1k views

Text reflection effect

How could I achieve with LaTeX a trendy text reflection effect as the following one?
23
votes
1answer
11k views

Strikeout - when which package ? ( ulem vs soul vs …)

When to use which package for strikeout? I see answers : \usepackage{ulem} \sout{Hello World} or \usepackage{soul} \st{Hello world} or \usepackage{cancel} \cancel{Hello world} In what ...
14
votes
1answer
867 views

Visualize index entries in the text?

When I ad an index entry using \index with all the options available for the "format" and "see", and cross-reference, I'd like to see at the place where I make the index entry how this specific entry ...
31
votes
6answers
2k views

Underline just words, not the space between them

I need to typeset a sentence such that just the words are underlined, and not the space between the words. Using the \underline will include the spaces between the words. I could do it with something ...
26
votes
2answers
10k views

Underlined links with hyperref possible?

How can I have underlined links with hyperref? That means how to configure hyperref not to change the color of the printout but use underlined active links which are completely transparent in print. ...
10
votes
5answers
1k views

Let's get fancy: Text like tag?

How to make some text appear with a background like it appears in tags, for example the tags in Stackoverflow?
9
votes
1answer
4k views

Underlined text field in a fillable form

Is there a way to make an underlined text field in a fillable form? I am using the hyperref package to make a fillable form but I would also like to give the option of printing out the form and ...
15
votes
2answers
4k views

Is it possible to have hyphenations in \underlined{text}?

In a document I was writing, I had some really long captions and I wanted to emphasize the important parts in them. I tried to use \underline{} but no hyphenation was used at both the caption and at ...
10
votes
3answers
13k views

Placing a decorative separator in text [duplicate]

How do I put a decorative separator (like three asterisks or other symbols) in a text document so as to separate two sections of text, but not in a way that depends on LateX \section commands? Such ...
4
votes
1answer
2k views

Outline text characters

In order to improve readability of some texts, I'd like to put a kind of "eyeliner" around my letters (actually, that's how memes manage to get readable texts on any picture). Here is an exemple of ...
16
votes
5answers
12k views

Put a slash through a word

I would like to write a word with a slash through it, using LaTeX (in text, not in math mode). That is, I want a line from the lower-left corner of the word through the upper-right. Is there a nice ...
6
votes
2answers
1k views

Formatting Equation Numbers

I need the numbers of equations and brackets around to be in bold. Doing like this \usepackage{etoolbox} \pretocmd{\theequation}{\bf}{}{} only the number is produced in bold, how to bold brackets? ...
6
votes
1answer
3k views

Outlined characters in Beamer

Following Outlined characters, you can make selectable outlined text using the contour package. For example, the following writes "Text text text contour text", with "contour" in green with a red ...
5
votes
1answer
3k views

Underline text with background (soul and ulem nesting)

I'm using soul's \hl to set background for the paragraph parts and ulem's \uline to underline text. The problem is what I cant underline text for text with background. Initial doc: \documentclass{...
4
votes
2answers
2k views

Underline the section title text in table of contents

Hopefully this is easy. I would like to underline the text of the section title in the table of contents (with the section number removed). Similar to this picture, with the red line where the ...
10
votes
2answers
2k views

Follow-up: Underline + strike-through using soul

This is a follow-up question to Mixing underline and strike-out. This time, I'm specifically interested in an implementation using soul (that doesn't require multiple compilations to stabilize). I ...
8
votes
2answers
6k views

Underlining an equation in an align block

I'm trying to set up a system of equations and want to underline the last equation, but can't figure it out. Here's what I have: \begin{alignat*}{4} &F_n &- mg &- F_a\sin 32^\circ &= ...
7
votes
3answers
574 views

Underarrow with smaller depth, shorter minimum length, and smaller arrow head?

I am using underarrows from amsmath to decorate messages with their direction, as in $\underleftarrow{\mathsf{msg}}$ () and $\underrightarrow{\mathsf{msg}}$ (). I am looking for a better underarrow, ...
7
votes
3answers
581 views

How to make double overline with less vertical displacement

\overline{\overline{ABC}} produces a double bar over ABC, but it takes up too much vertical space. How can I make the top bar closer to the bar below it?
6
votes
1answer
793 views

Custom switches (such as for underlining)

Some packages (ntheorem for example) take only text switches as arguments that can be used in the form {\switch text}, for example \bfseries. If I now want to have a suitable command for underlining, ...
4
votes
1answer
5k views

TeXlipse hotkeys for bold, italic, underlined

Are there any hotkeys to make a text bold or italic in TeXlipse plug-in? It is tiresome to type \textbf{} and \textit{} each time I need to emphasize some word. Most of other TeX-editors support ...
4
votes
2answers
278 views

In Beamer, how can one have strikethrough text in the author setting (defined by a command) in the preamble?

I have some beamer slides for which many commands are defined in the preamble before the document environment. The author setting is defined by an author variable which contains strikethrough text ...