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 [text-decorations]

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

234
votes
3answers
360k 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 ...
104
votes
7answers
79k views

Long underscore in LaTeX

In LaTeX, how would I make a long underscore? For example, Name _______ Signature _______
80
votes
3answers
153k 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 ...
80
votes
2answers
43k 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 ...
80
votes
3answers
56k 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, ...
72
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 ...
71
votes
2answers
85k 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 ...
67
votes
1answer
53k 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 ...
62
votes
2answers
53k views

Crossing out sentences

I had to cross out a sentence and I did it the following way, which is kinda sloppy. $ \rlap{\textbf{-------------------------------------------------------------------------------------------------}...
55
votes
1answer
99k views

How to write crossed-out math in LaTeX? [duplicate]

Possible Duplicate: Draw a diagonal arrow across an expression in a formula to show that it vanishes As you might know from my other questions, I am still a newbie at LaTeX, so please don't ...
48
votes
1answer
18k 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 ...
47
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.
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. ...
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 \...
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 ...
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 ...
31
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 ...
31
votes
3answers
7k views

Fancy start-of-chapter marks

I'd like to include some fancy start-of-chapter marks in my poster. I especially like these marks (see pictures below) in a Power Point template. I wonder if there is a convenient way to produce ...
29
votes
2answers
9k 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 ...
26
votes
2answers
25k 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} ___________ //
26
votes
2answers
9k 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. ...
23
votes
1answer
10k 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 ...
20
votes
2answers
8k views

Adding vertical lines to each side of a paragraph

How can I add vertical lines to each side of a paragraph? To illustrate, what I need is: some paragraphs... |My paragraph begins| |here and goes like | |this... ~~~~~~~~~~~| |~~~~~~~~~~~~~~~~~~~| |...
20
votes
3answers
4k 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 ...
19
votes
1answer
3k views

Underline at the same level

I want to underline alpha's and beta's, but at the same level. I mean, I don't want but . Maybe there is already a command that make it but I couldn't find it. The second image was obtained with the ...
17
votes
3answers
2k views

Red squiggly imitation

Is there an elegant way to draw red squigglies under text, to emulate what a [source] code editor does when it detects errors (either spelling mistakes, syntactical errors or semantic errors)? Here ...
16
votes
5answers
11k 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 ...
16
votes
4answers
7k views

How to create text with shadows?

This question led to a new package: shadowtext I used the following code: \documentclass{article} %\usepackage{pst-all} \usepackage{pstricks} \usepackage{pst-3d,pst-text} \usepackage{soul} \...
16
votes
2answers
725 views

Why is unskip not working here?

I'm trying to define a macro to be used as follows: \usepackage[normalem]{ulem} \newcommand{\thesis}[1]{\uline{\ignorespaces #1\unskip}} % underlining required by school - I know, I know % later... ...
16
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 ...
15
votes
3answers
8k views

Two-lined text (text over text)

Is it possible to have some words written over each other in normal text? The use case is that it should be used instead of slashes where a sentence talks about two similar options. A short example: ...
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-...
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 ...
14
votes
1answer
1k views

Text reflection effect

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

numbered ornament as section title

I am trying to recreate a kind of numbered ornament in my section labels. The section number comes from a specific font, then is transformed (rotated) and then placed within an image. For example, ...
14
votes
1answer
848 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 ...
14
votes
1answer
10k views

crossing out using different colour

How to cross out a sentence using a horizontal line in a colour different from the text? I found this useful question about how to cross out a sentence, but I cannot figure out how to use colour with ...
14
votes
1answer
25k views

Paragraph header

I want to include an indented, underlined, upper- and lowercase paragraph heading ending with a period in my document instead of using \subsubsection. Anyone who knows how I can define the command for ...
14
votes
1answer
958 views

Having all links underlined with dotted line

so I'm trying to figure out how to have all links underlined with a dotted line. The furthest I got with this and this is: \documentclass{article} \usepackage{xcolor,soul,lipsum} \usepackage[...
12
votes
3answers
2k views

'Wordart' in (La)TeX

Would it be feasible to try to reproduce something like the image below in TeX? I just wanted to ask the advice of some experts before I invested too much time trying. I've already messed around with ...
12
votes
2answers
6k views

Good Style of Creating a Signature all within LaTeX

I have a small task that involves trying to get a signature using LaTeX fonts. I want to be able to make the signature look as handwritten as possible (pen/marker) using the LaTeX fonts. Also like to ...
12
votes
1answer
976 views

Triple underlining

I am quoting passages from ms. letters and need to underline a few words with three lines. Does a command exist for doing so? I've consulted Melchior Franz's soul package documentation from 2003 and ...
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} \...
12
votes
2answers
640 views

How to improve machine-readability of a CV created in LaTeX with moderncv?

Some background story. I recently send my CV to a free online evaluation. The reply showed that although the document looked visually appealing, it was bad for ATS (Applicant Tracking System). These ...
11
votes
3answers
8k views

how to maintain text justification after forcing a new line

How to break a line of text (\newline or \\) and still maintain justification for its texts?
11
votes
1answer
5k 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.
11
votes
1answer
613 views

Drawing lines along text baselines

I'm not very familiar with the world of TeX and its flavors, and I'm having trouble evaluating whether it fits my needs before I dive into it. TeX and its ilk can draw horizontal line strokes, but can ...
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?
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 ...
10
votes
3answers
12k 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 ...