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 [strikeout]

The tag has no usage guidance.

3
votes
1answer
31 views

How do I strike out line inside an algorithm?

Package I am using: \usepackage[linesnumbered,ruled,vlined]{algorithm2e} My latex code: \begin{algorithm}[H] \label{alg:my-alg} \DontPrintSemicolon \caption{My algorithm} \SetKwInOut{Input}{Input}\...
0
votes
2answers
35 views

Using \cite in \sout causes errors

When I use \cite[something with spaces]{ref} inside \sout{...} I get errors. For the article document class it helps to replace spaces by ~. That doesn't help, however, for the elsarticle document ...
1
vote
1answer
95 views

Strike out an arrow with a small oblique segment like with \nrightarrow

I'm looking for a way to strike out an arrow in the same style (or idiscernible) as predefined struck arrows, with short, slightly-oblique segments, like for instance \nrightarrow. Using \not or \...
1
vote
1answer
184 views

Strike out over graphics

I have a document with a graphics and I want to replaced this graphics with another as part of a revision. To make this clear I want to show the old version of a figure next (or below) to the new ...
3
votes
1answer
64 views

Strikethrough a \cref-generated cross-reference

I'm looking to strikethrough a cross-reference generated with \cref. I thought a basic example like the following would work: \documentclass{article} \usepackage{cleveref} \usepackage{soul} \begin{...
4
votes
1answer
254 views

How to strike through or cancel using different colors in the same line

For example, suppose I had an equation x = 2 + 1 - 2 - 1 (obviously toy example) I want the +2 to cancel out with the -2, +1 to cancel out with the -1 So in Latex I would want something like Is ...
0
votes
1answer
223 views

Strike a paragraph of text

I want to strike obliquely one or more paragraphs of text, to indicate cancellation, like in this picture: I would need to strike also if the paragraph spans in two pages. I tried the cancel package,...
2
votes
2answers
82 views

How to strikeout an flalign block?

I am trying to strikeout an entire flalign block. This post shows how to strikeout an aligned block using the cancel package, but I'm not able to get it to work for the flalign environment. Any ...
3
votes
3answers
79 views

How to avoid or compensate horizontal and vertical shifts in a tikz' struck out node?

The following MCE below points out that, for a tikz' struck out node, the line width causes both horizontal and vertical shifts. Is it possible to avoid them? Or, at least, to know exactly the ...
1
vote
2answers
496 views

highlighting strikeout text with ulem shifts the line downwards

I'm trying to highlight a text with a strikeout word by defining a new command as explained in the docs of ulem. Unfortunately, that moves down the strikeout line a few points, which looks strange ...
0
votes
1answer
1k views

strikethrough math formula in the math mode

Is there a way to do strikethrough math formula in the math mode? I had known this: \usepackage[normalem]{ulem} \sout{ ...} and \usepackage{soul} \st{...} are useful but they can not be used in ...
2
votes
1answer
77 views

How can I include the section number of a deleted section in the deletion formatting applied by latexdiff?

I have a document marked up by latexdiff and then edited to make it compile. The current output for a deleted section is similar to this: How can I include the section number in the deletion markup? ...
5
votes
1answer
216 views

How to avoid shifts for content which is “strike out” (from tikz shapes.misc library)?

In the following MWE, the strike out content is shifted horizontally and vertically. How avoid these shifts? \documentclass{beamer} \usepackage{mwe} \usepackage{tikz} \usepgflibrary{shapes.misc} \...
1
vote
1answer
476 views

Trying to strike out a column in a matrix (array)

So using the last answer from here, as I am using an array not any matrix. I am using MathTex for Libre Office Writer. FYI. Normal Matrix: \left[ \begin{array}{ccc} 3 & 3 & 1 \\ 1 & 0 &...
1
vote
2answers
226 views

cancel package and tables

I have a "friend" who needs to do some kind of strikethrough or cancel but for a whole row or column (or both) of a table at a time. It should ideally be something supported by MathJax, so various ...
0
votes
1answer
281 views

fun style cross-strike-out

I want to cross out (strike out) words or letters in fun ways for poster-sized text for children. ulem and cancel produce rather formal/sterile-looking cancellations, as do tikz-based combinations of ...
3
votes
1answer
795 views

Strikethrough different color than the text [duplicate]

Using the cancel package, you can cross expressions in various ways. However, what I can do to cross a symbol, with the strikethrough a different color, say red.
4
votes
2answers
1k views

Customizing latexdiff default (UNDERLINE) output styling

I'm using latexdiff to highlight the differences between two versions of a tex document, using the default style which is UNDERLINE. This style formats added text in blue with a wavy underline, and ...
10
votes
1answer
145 views

Active ! Character Hangs within TikZ

The MWE below makes the ! active in math mode using the solution from Make Characters Active via Macro in Math Mode and uses the tikz \hcancel via Diagonal strikeout starting too low and ending too ...
4
votes
1answer
88 views

Polish letter disappears when striked out with soul package [duplicate]

I am trying to typeset something in Polish. Unfortunately one letter mysteriously disappears - but only when it is the last in a word. When I add a character ('a' in the example below) right after the ...
3
votes
1answer
494 views

How to strike out an entire group of text

I am using the command \sout{some text} to strike out a word or a sentence; However, I wanted to know if it is possible to strike out a group of text without having to use the braces { and }. ...
3
votes
0answers
551 views

Displaying source code listing with strikethrough/strikeout

I'm preparing for a presentation in which I would like to show some source code with bits struck out. Does anyone know a package that can do that? I've googled but can't find anything. Here's my MWE, ...
7
votes
2answers
17k views

Thickness for \sout{} (strikethrough) command from ulem package

I am using \sout from the ulem package together with beamer to strike through some text: \documentclass[mathserif]{beamer} \usepackage{ulem} \begin{document} \begin{frame} Next meetings: \begin{...
1
vote
0answers
56 views

Creating an Elimination Matrix with strikethrough rows/columns [duplicate]

I am writing a paper, and I need to display an elimination matrix during the steps of finding a determinant. \[ A =\begin {bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \...
6
votes
2answers
3k views

How to strikethrough text in red inside beamer using soul? (inside a tabular)

I was trying to strike through text inside a beamer frame, using package soul and changing color to red. It is inside a tabular, but I've tried outside and couldn't make it work either. I also tried ...
5
votes
1answer
266 views

Strikeout in roboto font in texlive 2015

In texlive 2015 strike through for roboto font is a bit too high for lower case letters. I think the reason might be, that the unit 1ex for this font differs roughly by a factor 2 from what I would ...
1
vote
0answers
513 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 ...
10
votes
2answers
1k views

Strikeout all text, including enumerated lists

Is it possible to define an environment that strikes out all text, even in enumerated lists? I am basically trying automate what is currently being done manually in Microsoft Word. I have a body of ...
6
votes
1answer
1k views

Is it possible to strikeout a whole equation or paragraph?

I have a document in which I want to strikeout whole paragraphs including all equation and eqnarray environments. Available options such as sout (from ulem) works on paragraph but not in equations. ...
6
votes
1answer
2k views

More robust strike-through / cross-out

I al using the ulem package to cross-out unwanted text like so \documentclass{article} \usepackage{ulem} \begin{document} \xout{Lorum ipsum dola blah blah blah.} \sout{Lorum ipsum dola blah blah ...
2
votes
1answer
910 views

cross out the text in the section title

It seems that \st{} for crossing out a text (strike through) doesn't work on the section title. For example, this \documentclass{article} \usepackage{soul,color} \begin{document} \section{\st{...
1
vote
1answer
677 views

Strikethrough rows and columns in matrices

I've found this code from How to cross a row in matrix with a line? \documentclass{article} \usepackage{tikz} \newcommand{\pmark}[1]{\begin{tikzpicture}[overlay,remember picture]\node(#1)at (-1em,....
2
votes
1answer
222 views

How do I strike out indices? [duplicate]

I want to strike out the superscripts and subscripts for an expression like $$\Gamma^{\lambda}_{\mu\nu}$$ I tried the ulem package: \usepackage[normalem]{ulem} \sout{Hello World} and the soul ...
1
vote
1answer
251 views

How to strike out an url?

I am trying to strike out a long url, but it seems that I only can either break the url or strike it out, but not both. I would like to do something like this: \documentclass{article} \usepackage{...
8
votes
2answers
2k views

Cancel maths expression with a down arrow

The following solution to the question where soome maths text is to be cancelled out makes use of the cancel package. There the macro \cancelto produces an arrow from bottom left to top right. It ...
2
votes
2answers
806 views

Strike through with colors

My question is related to: Strikeout in different color appears behind letters, not on top of them, except that I use beamer instead of article. Therefore, the solution provided there is somehow not ...
7
votes
3answers
2k views

How to denote adjacent vertices?

Background I'm trying to write a rapport that relies on some rudimentary graph theory and as such I'd like to write a section explaining the basics of it. Trying to do I've run into a bit of a snag ...
2
votes
0answers
180 views

Put text on top of text that has strikethrough - like one would edit an essay

I would like to obtain the same effect as in this question: Write text above other text But in those answers, it doesn't flow properly across multiple lines of text in the essay. If you strike too ...
4
votes
1answer
2k views

Strikeout formula inside eqnarray?

I want to strikeout a part of my paper. In particular, this one: When bla bla $s$ bla bla $v$, bla bla $\boldsymbol{x}_{v}$, bla bla, the equation is: \begin{eqnarray} \displaystyle p_{v,s} & = &...
15
votes
2answers
1k views

Strike through text without affecting text box size

I want to strike through text with a simple line. Unfortunately, in the solution(s) I found, the text always has a larger distance to the next line (see example). How can I strike through text ...
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 ...
11
votes
3answers
1k views

How do I get the \cancel (strikeout) in Plain TeX?

I've searched both online and in the TexBook, but can not find a command or package. Note, I am pretty new to TeX / LaTeX, but am currently trying to figure out how to do things in Plain TeX. Edit: ...
56
votes
1answer
100k 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 ...
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 ...
10
votes
1answer
3k views

Strikeout in different color appears behind letters, not on top of them

When using package ulem's strikeout facilities (macro \sout) and also color in my text, the strikethrough appears behind the letter string: \documentclass{article} % I also often work with the memoir ...
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 ...
19
votes
2answers
10k views

In beamer, how to strike through an item after displaying

In a beamer frame I have a item list \begin{itemize} \item<1-> World peace \item<2-> Peace in our neighbourhood \end{itemize} How can I strike through the first item on the second (...
1
vote
1answer
2k views

Is there a nice way to make a strikethrough for the square subset character in LaTeX?

I am working on some math that uses the square subset notation. I need a good way to strikethrough the character in LaTeX. I have tried using the package "cancel" but the strikethrough it produces ...
235
votes
3answers
366k 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 ...
7
votes
2answers
3k views

Strikethrough in Section Title

I am currently using ulem and \sout to do strikethroughs, but what if I want to strikethrough in a section title? I'm using hyperref and receive the following error when I use \section{\sout{..}}: ...