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

3
votes
4answers
782 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 ...
7
votes
3answers
448 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?
3
votes
1answer
57 views

Decrease spacing between double bars [duplicate]

I'd like double bars over my X, that I can get using these overline symbols \[\overline{\overline{X}}\] I also tried the bar symbols, but they're misaligned over the X. \[\bar{\bar{X}}\] What I ...
6
votes
1answer
100 views

Center align text decoration along path

I am trying to duplicate the node highlighted in green but along a curved path. It mostly works, but when I attempt to apply the text align=center effect to the decoration, I get Dimension too ...
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, ...
6
votes
2answers
1k views

Vectorized Text Effects/Transformations: Stretching & Expanding (WordArt)

I'd like to apply a text transformation similar to what the Inkscape extension 'Modify Path -> Envelope' does within LaTeX: In-source documentation of the envelope extension: This extension ...
3
votes
1answer
106 views

ConTeXt: Squiggly Underbar

Is it possible to create a squiggly underline? Like this, but wavy: \setupwhitespace[big] \starttext \underbar{\samplefile{knuth}} \stoptext
3
votes
2answers
270 views

Drop cap theorem style

I would like a theoremstyle-like definition which induces the first letter of the theorem-head to be drop-capped. I do not intend to use counters, at all, with this style. I fully intend to use other ...
1
vote
1answer
51 views

Implementing subscript text within regular text (math equation) [duplicate]

How do you add subscript text within a text string e.g. I would like my the output to have the max as subscript \text{AC generator emf_max}
5
votes
3answers
965 views

How can I write upside down real numbers symbol ($\mathbb{R}$)?

How can I write $\mathbb{R}$ upside down? And, in general, \mathbb letters...
4
votes
1answer
140 views

How do I use mark indices with position in tikz?

I am trying to decorate a curve with some arrowheads, there is a way which you could specify the percentage position with steps % !TEX TS-program = xelatex \documentclass[UTF8]{article} \usepackage{...
1
vote
0answers
25 views

Text on one page is different color than other pages

I'm writing an article and as I was editing it I noticed that sometime within the last half hour the text on one of the pages had turned blue. I wasn't doing anything other than adding/removing text, ...
12
votes
2answers
642 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 ...
10
votes
3answers
9k 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 ...
6
votes
1answer
689 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{...
0
votes
0answers
61 views

Decoration of problem sets

Did anyone have an experience with formatting the problem set for home assignments? I'm looking for results like in attached picture: I found the similar result for a "caption" here: https://...
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} ___________ //
0
votes
1answer
79 views

\texttt does not break in two lines

I use \texttt to format some text. I need to break it into two lines if it exceeds the line width. I use \justify but it does not always work. The script below shows two examples one works well and ...
0
votes
0answers
53 views

How to enable hard text wrapping in WinShell Latex editor

I need to enforce hard text wrapping (i.e. new line after some number of words, say 100). I found that the warpping mode is enabled (Options-> Wrap Mode) but it is soft (insert new line for display ...
0
votes
0answers
39 views

How to preserve text wrapping from WinShell to GitHub [duplicate]

I am using WinShell as editor for my Latex text. I use GiHub to share my test with others. My problem is in my WinShell the text is wrapped correctly. But in GiHub, the text appears not the same. The ...
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 ...
1
vote
1answer
97 views

Changing text in Console output

I am finding that I am writing more and more packages/commands for other people these days and have started writing some nice default utility commands to use. However, there is always the concern for ...
6
votes
2answers
8k 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
0answers
142 views

SVG-image colour dependent on text colour, without external tools?

I have a decorative SVG-figure, and I want to change just one variable, to alter both text- and SVG-colour Working in Sharelatex, using pdfLatex to compile SVG to retain its scaling properties MWE ...
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 ...
2
votes
1answer
66 views

Special underline/Partial box

I'm not exactly sure what to call this, but I'd like to know how to replicate the text decoration shown under the $n$ in the image. It seems a hooked underline or similar to, a partial box, but only ...
1
vote
0answers
61 views

Text editor highlighting in a verbatim-like environment? [closed]

This might be a long shot, but I'm planning to include a roughly 300-line block of python code as an appendix to my undergraduate thesis, and I was wondering if there's a way to make it display with ...
0
votes
1answer
105 views
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 ...
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 ...
1
vote
1answer
22 views

Disabling changes and todonotes packages: Text is still being coloured

The problem arose after the solution of : Colouring text doen't work in newcommand definition I am trying to define a new \note command based on todonotes and changes packages but I'm having ...
4
votes
1answer
41 views

Colouring text doen't work in newcommand definition

I am trying to define a new \note command based on todonotes and changes packages but I'm having troubles with the optional selected text styling. I want it to be coloured based on the changes ID ...
3
votes
1answer
126 views

Tikz calendar formatting, anchoring text (was small caps, text allignment, and color alternation)

I have kludged a fix to the small caps and alternating color requirement for the day headings. My code now reflects those changes, and I describe them at the end of this question for those who may be ...
9
votes
2answers
650 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 ...
1
vote
1answer
138 views

How can I create this ornament section?

or I would like to create a pattern for each section to display a line in the line of the question number, and below the right aligned, score of the question. How can I create this ornament in \...
0
votes
2answers
71 views

How can I highlight paragraphs by adding a symbol to the left of them?

I would like to add a triangle to highlight important paragraphs in my document. Especially, the triangle should not change the existing text flow. Example before: Paragraph one. Paragraph two....
4
votes
1answer
1k 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 ...
20
votes
2answers
9k 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... ~~~~~~~~~~~| |~~~~~~~~~~~~~~~~~~~| |...
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 ...
3
votes
1answer
312 views

How to enclosure a text block into big square brackets?

everybody. I need to enclosure a text block into big square brackets. Something like this (I need to replicate it, more or less): I've read that it could be possible with tikz but I don't know ...
0
votes
1answer
1k views

How to explicitly set “justify” for paragraph?

Is there a way to explicitly set "justify" for paragraph in latex or xelatex? (some tricks or packages??)
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 &= ...
5
votes
1answer
194 views

how to align equations with some text

I want to align the equations with text. Though the equations are aligned as I want it to be but still the text is not aligned. \begin{align} \mathscr{F}^\prime(x_0)^{-1}&\in L(Y,X) \quad &\...
2
votes
1answer
221 views

Arc over multiple columns in table

I want to have a flat arc over some columns in a table (tabu environment, as I am using to define independent colours for each row). Similar to the hhline in which bar are drawn over multiple columns. ...
1
vote
2answers
544 views

Change textwidth for 1 line only

I am writing a resume. I have a line with my email, ph etc below my name. I want this line to start at same margin as the Objective below and similarly stop where the text below stops. I figured i ...
3
votes
1answer
121 views

Mis-alignment of columns in tabular environment when using ulem (and beamer)

I have not been able to find a solution to the following problem in the ulem documentation. Could somebody help, please? When I use a ulem macro to strike through some text in the tabular ...
7
votes
1answer
136 views

About mirroring a piece of text

I would like to produce a mirrored version of the Lorem ipsum text. How can I do this? If I use \reflectbox or \scalebox, everything ends up in a single line of text. This is my code: \documentclass[...
1
vote
2answers
181 views

What is the code for creating a space for the name and date for a child's worksheet?

For example I want my worksheet to look like this: Name: ____________ Date: ____________ Vowels and Consonants
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 ...
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 ...