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

learn more… | top users | synonyms

10
votes
1answer
136 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 ...
5
votes
2answers
57 views

superscripting a dot which is enclosed in square brackets

This question is about how to extend the nice answer here by @egreg http://tex.stackexchange.com/a/304078/103130 to the following case (which is close to what I need except that the brackets should ...
4
votes
2answers
120 views

putting square brackets around the underline of a letter (in math mode)

I would be very grateful for some help. \documentclass{article} \begin{document} $ a,\underline{b},\underline{c},d $ \end{document} I need to enclose the underline under the letter $b$ in small ...
1
vote
1answer
56 views

How to raise or lower text?

How to do automatic raising text? 1pt-2pt-3pt ... 12pt Related to: https://www.tug.org/texshowcase/diminuendo.tex
4
votes
1answer
84 views

How does this partial-string color-highlighting code work?

I'm using the awesome-cv class, which highlights the first three letters of the section heading like so: The code that produces this effect looks like this: \RequirePackage{xcolor} ...
0
votes
0answers
40 views

Variable font size of a text string

I was wondering if it is possible to use \fontsize{<size>}{<line space>} in a loop in order to create a text string of strictly decreasing/increasing font size from, say, 30 to 2. Surely ...
1
vote
1answer
43 views

Breakable underline, no messing with line breaking

Chinese words aren't separated by spaces. As a result, neighboring underlines will be joined together. The xeCJK package provides a CJKunderline- command, but the underline it generates is ...
6
votes
1answer
2k 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 ...
108
votes
3answers
141k 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 ...
32
votes
6answers
1k 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 ...
15
votes
1answer
238 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, ...
0
votes
1answer
81 views

how can I highlight text with the following effect

how can I highlight text with the following effect? The darkness of the color indicates the importance of the text.
2
votes
1answer
38 views

Adding text outlines to the Section command

I am learning LaTeX and I want to add a outline to the text of the section title and was wondering if there is a nice way to adjust the command to include the outline in the section command rather ...
3
votes
2answers
674 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 ...
2
votes
2answers
56 views

Striking thru a tabular row in LaTeX

Neither ulem nor soul packages allow striking thru a whole row in a tabular environment, eg: \sout{1,3-Cyclopentadiene & 161.39 & 148.19 & 155.65 & 153.43 & 154.7 ...
4
votes
1answer
547 views

How can I move a “text along path” vertically?

How can I move a "text along path" vertically? Currently, I'm using a path with modified endpoints to place the text, and then draw the actual line. \documentclass{article} \usepackage{tikz} ...
1
vote
0answers
28 views

Caption in \lstinputlisting environment gives keyval error

I am trying to include the table shown in my example below (shown in the verbatim environment - but saved in a text file), but I get a keyval error stating that "Package keyval Error: $r2v$. ...
2
votes
0answers
34 views

Is there a general term for subscripts and superscripts? [closed]

Given subscript and superscript, and maybe on the left hand side as well, what is the general term for such features? And what are they called on the left hand side? And how do you do this?
3
votes
1answer
88 views

How to Strikethrough Subtitle in Beamer? [duplicate]

I wish to write a subtitle in a beamer presentation crossed over with a line (strike-through). I tried the followings: \documentclass[11pt]{beamer} \usetheme{Rochester} \usepackage[utf8]{inputenc} ...
3
votes
2answers
100 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 ...
2
votes
3answers
194 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?
0
votes
0answers
65 views

How I can write on a % of page?

I would like know how I can write on a percentage of page, namely, if I have text (for examen equation) in the left part of my document, how could I put text in the right part of that region of my ...
8
votes
2answers
1k views

Editing bst file to underline title

I could not find an option in makebst that would make the titles of articles be underlined, however, using emphasize in an otherwise correct bst I was able to underline it. Unfortunately this makes ...
63
votes
5answers
3k 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 ...
4
votes
2answers
450 views

Trying to hide blocks of text in beamer

Motivation: giving lectures using beamer, I show all the details of solutions to examples, but in the handout I would like to hide these. students fill out the missing text during lectures, which ...
1
vote
3answers
60 views

Make whole line of a table stroke through

Related to Make first row of table all bold, however the solution seems not to be transferable to striking text through (see Strikethrough command that affects all following text, like \bfseries). So ...
3
votes
0answers
119 views

Why does \IEEEPARstart have conflict with \textcolor?

MWE: \documentclass[journal,twoside]{IEEEtran} \usepackage{color} \usepackage{amsmath} \begin{document} \textcolor{red}{ \IEEEPARstart{L}orem ipsum dolor sit amet, consectetur adipiscing elit. ...
1
vote
0answers
115 views

Strikethrough command that affects all following text, like \bfseries

Q&As like Strikethrough text, provide guidance on how to strike through text with ulem's \sout{...} or soul's \st{...}. Is there a readymade alternative that behaves like \bfseries and affects all ...
3
votes
1answer
115 views

Problem with \pdfliteral

MWE \documentclass[a4paper,11pt]{article} \begin{document} NAME: \hfill SURNAME: \hfill \pdfliteral {q 1 Tr [.1 .4]0 d .1 w}SIGN\pdfliteral{q}\\ This text is not black. \end{document} And ...
0
votes
0answers
91 views

How to revert corroupted or unredable Latex file back to original form

While compiling my Latex file (.tex) on Ubuntu power shutdown and now file looks like unreadable text. How to revert it back to original form. While opening the file i am getting this error After ...
0
votes
3answers
878 views

how a \framebox will appear around the text on a click

I use some framebox for some sentences. But I want it to appear in the same slide after next click. How can a frame appear around the text on a click in the presentation?
71
votes
7answers
41k views

Long underscore in LaTeX

In LaTeX, how would I make a long underscore? For example, Name _______ Signature _______
1
vote
1answer
35 views

Centering text at the top of the header

I'm using the following to create this header: \documentclass[12pt]{article} \usepackage[left=0.5cm, right=1.1cm, top=-1cm, bottom=2cm]{geometry} \usepackage{marvosym} % for icons \usepackage{url} ...
12
votes
2answers
3k 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... ~~~~~~~~~~~| |~~~~~~~~~~~~~~~~~~~| ...
18
votes
2answers
22k 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 ...
3
votes
3answers
1k views

How to create a keybutton in latex? [duplicate]

Possible Duplicate: Keyboard Font for LaTeX So the result looks like: Press F5 for help. I've checked the fancybox package, but it only includes three patterns: doublebox, ovalbox, ...
2
votes
3answers
2k 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 ...
1
vote
0answers
161 views

How do you underline

How do you underline text? Also how do you underline math?
4
votes
1answer
128 views

tikz: \pgfkeysvalueof and text color!

This tikz code automatically output a node with the y value on the plot... However, how can I colour the text black ??? (now it's blue) \definecolor{mycolor1}{rgb}{0.20810,0.16630,0.52920}% ...
0
votes
0answers
17 views

\textit command reports weird error [duplicate]

I have following MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} ...
1
vote
1answer
299 views

leadsto with text

I know that: \[ A \xleftarrow{\text{this way}} B \xrightarrow[\text{or that way}]{ } C \] will produce: Is there a way to have an arrow with text, but with the style of a \leadsto???
7
votes
1answer
652 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} ...
28
votes
2answers
5k 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 ...
3
votes
1answer
211 views

Strike through text does not work with multiple cites

I'd like to strike through some text in a paper with package ulem's \sout{}. However, when the text to be struck through contains multiple cites like \cite{a,b}, the compiler gives some error messages ...
14
votes
4answers
4k 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} ...
15
votes
1answer
519 views

Text reflection effect

How could I achieve with LaTeX a trendy text reflection effect as the following one?
5
votes
2answers
227 views

References as text decorations (using multiple files)

I would like to draw a picture in which a line connects two points. Along this line, there should be a text "x", where x is the number of a specific equation in another document. Unfortunately, I am ...
6
votes
1answer
304 views

Why can't contour text along curve path?

I want to use a font with a white contour but doesn't seems to work. \usepackage{color} \usepackage[outline]{contour} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} ...
4
votes
1answer
206 views

“Text along path” decorations take absurdly long to be compiled for non-default font sizes

I'm trying to use a text along path decoration in tikz-pgf which causes absurd loading times, sometimes far longer than an hour if I want to print a whopping two (!!) words in for example \large font ...
0
votes
0answers
55 views

Help with text format

I need to prevent a word from splitting into two lines of text. For example, the word "polinĂ³mico" splits in "po" and "linĂ³mico" when i compile the code. \documentclass{article} ...