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

learn more… | top users | synonyms

2
votes
1answer
21 views

Partition the box'ed text items!

After the Let's get fancy: Text like tag?, I am thinking that it would be nice to have a sequence of boxes, let's say 5 in number and be able to partition them in the first 2 and the rest 3, for ...
1
vote
1answer
56 views

On the easier embedding of certain jokes on texts?

I just found the following in a facebook page Called "Academia Obscura": Which is a piece of the lyrics in Rick Astley: Never Gonna Give You Up. Obviously, this could be crafted with a wise ...
1
vote
1answer
35 views

overlapping underline

I would like to underline all occurrences of a factor that appears in a text, e. g. all occurrences of aba in text=abaababa If I use underline, I won't see clearly the three occurrences so what I ...
3
votes
2answers
126 views

tcolorbox with fancy text

Driven from Let's get fancy: Text like tag? , I wrote this code: \documentclass{article} \usepackage{tcolorbox} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} \newtcbox{\mybox}{nobeforeafter,...
9
votes
5answers
704 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?
5
votes
2answers
65 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
145 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 ...
4
votes
1answer
106 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} \RequirePackage{...
0
votes
0answers
45 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 ...
2
votes
3answers
89 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
1
vote
1answer
49 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 ...
15
votes
1answer
262 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
88 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
47 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 ...
2
votes
2answers
59 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 ...
1
vote
0answers
39 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$. undefined"...
10
votes
1answer
149 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 ...
2
votes
0answers
37 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
116 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} \...
2
votes
3answers
313 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
67 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 ...
3
votes
2answers
116 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 ...
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 ...
4
votes
2answers
797 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
64 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 ...
4
votes
0answers
176 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
135 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
144 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
103 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 ...
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} ...
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
176 views

How do you underline

How do you underline text? Also how do you underline math?
4
votes
1answer
146 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
342 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???
3
votes
1answer
280 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 ...
6
votes
1answer
330 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} \begin{...
5
votes
2answers
246 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 ...
5
votes
1answer
178 views

How do I use the `every character` key in tikz decorations?

Assuming I have the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture}[node distance=5cm] \node[draw, rectangle] (a) ...
0
votes
0answers
56 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} \usepackage[utf8]{...
15
votes
1answer
551 views

Text reflection effect

How could I achieve with LaTeX a trendy text reflection effect as the following one?
1
vote
1answer
136 views

Place braces around page numbers

I'd like to have my page numbers go from this: 2 to this { 2 }. Basically, I just want to add some decoration to the page numbers throughout a book. Is there an easy way to do this? Thanks for your ...
1
vote
2answers
721 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
2answers
770 views

Underlined titles in bibliography with biblatex and ulem packages

I want to underline all titles in a bibliography using the biblatex package with Biber backend and the ulem package. biblatex seems to break ulem's line breaking capabilities. Please consider the ...
5
votes
1answer
166 views

move text box outside the textwidth

I used tcolorbox to make a semi-transparent box as explained in this link. What I need is to offset this box from the center of the texwidth, this means crossing a bit the border of the textwidth. Is ...
4
votes
1answer
3k 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 ...
7
votes
1answer
100 views

Keeping URLs clickable while decorating?

I want URLs in the rendered PDF to appear as follows: <http://website/blah> I have declared the URLS in my document using the 'url' package, in the form: \url{https://tex.stackexchange.com/} ...
6
votes
2answers
603 views

How to add text around/below a node using tikz-qtree?

I read many examples in tikz-qtree, but I didn't find one which illustrates how to add text around/below a node using qtree. Anyone knows how to draw the following tree using tikz-qtree?
6
votes
2answers
3k views

\textlf{} for light font weight – how common?

In the allrunes.sty documentation (which uses Metafont), I’ve recently seen the \textlf macro for the first time. It selects a light font and therefore accompanies the frequent command \textbf and its ...
0
votes
3answers
1k 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?