Questions tagged [strikeout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
125 views

StrikeThrough (st) command drops the Unicode letters

The \st command drops the Unicode letters coming at the end. I use LuaLatex most of the time on TexLive 2020. Here is my MWE. \documentclass[a4paper,openany,14pt,oneside,]{extbook} \usepackage{soul} ...
0 votes
1 answer
87 views

{soul} and {xcolor} packages not working

I would like to strikeout a paragraph with some different text colorings in it. As I learned here: Strikeout - when which package ? ( ulem vs soul vs ...) the \st command in soul strikesout whole ...
  • 701
3 votes
1 answer
360 views

How to place a slash (/) over the letter ð?

How can I type the letter ð with a slash across it? I have tried the solutions proposed in How can I place a "slash" -- / -- through a letter in this way? but they do not work for the letter ...
0 votes
0 answers
36 views

Adding strikeout to a \newenvironment command

We have defined a new environment to allow us to mark large blocks of text: \newenvironment{deletedParagraphs}{\par\color{red}}{\par} That environment works great to color the text red, but now we'd ...
0 votes
1 answer
69 views

Striking through multiple column and row in tabular [duplicate]

I am trying to create a table that has multiple strikes through columns and rows, similar to this table I have tried this solution Striking thru a tabular row in LaTeX but it can't produce multiple ...
2 votes
2 answers
76 views

Strikeout of a table row and caption two tables separately

First question. I want to organize these two tabular as subtables (a) and (b) of a main table and share a single caption. Second question. I want to cross out the second row of the first subtable ...
0 votes
3 answers
54 views

Strikeout numbers from an enumerated list

I would like to have a simple enumerated list like \begin{enumerate} \item First item \item Second item \end{enumerate} where I strike through "(1)" and "(2)" but not the ...
1 vote
0 answers
102 views

Define new command to strikethrough all text in an \item

I would like to strikethrough all the text in an \item. Since \item takes a variable number of arguments, I don't know how to do that. I have tried: \documentclass{article} \usepackage{ulem} \...
1 vote
1 answer
79 views

Uniformly oriented cancelling lines across math or texts

How do I cross out maths to show they vanish with evenly oriented diagonal lines (i.e., all lines parallel?) I don't like how the crossing lines appear due to size of the expressions. It doesn't ...
  • 1,197
0 votes
1 answer
151 views

Strikeout in fraction equation [duplicate]

I am having trouble getting the strikeout to work in this equation. I'd appreciate your help.
  • 1
0 votes
1 answer
81 views

Whole Page Strikethrough with Variable length

Context: I'm working on recreating the AANZFTA CoO in LaTeX, which contains a list of varying length. I use longtblr to make it travel across multiple pages, and use a fancyfooter for the declaration ...
4 votes
1 answer
642 views

How to strikethrough diagonally, from left top to right bottom?

While this answer already has a diagonal strikethrough solution with \cancel, this is actually, in a matrix terminology meaning, "anti diagonal", i.e. from lower left to upper right. What I ...
  • 215
1 vote
1 answer
634 views

Strikethrough and line breaks

I need to use \sout{} from the ulem package for longer passages of text and in combination with other macros. However, this removes all linebreaks and the text is kept on a single line. Is there any ...
  • 217
2 votes
0 answers
81 views

Strikethrough lines in minted

I want to strikethrough some line in a minted enviroment, for example line 3 in \documentclass[usenames,xcolor=dvipsnames]{beamer} \usetheme{CambridgeUS} \usecolortheme{beaver} \usepackage[utf8]{...
  • 21
1 vote
1 answer
127 views

Colored strikeout in subscript in mathmode

In order to strike text in red in math mode, I found this solution quite useful. However, it fails when I want to do it in subscript, since the command does not detect that the size of the text is ...
  • 5,509
1 vote
1 answer
2k views

How do I strikethrough in \text{} inside inline math mode

I want to strike out the word "prime" in the given below text. How can I do it? $\mathfrak{P}:=\{\text{set of all prime ideals contained in} \ A\setminus S\}$.
  • 151
3 votes
1 answer
45 views

How to get xcancel to work inside highlight?

\documentclass[oneside,9pt]{memoir} \usepackage{soul} \usepackage{cancel} \usepackage{ulem} \usepackage{lipsum} \usepackage{xcolor} \makeatletter \def\SOUL@hlpreamble{% \setul{\dp\strutbox}{\...
  • 207
1 vote
0 answers
81 views

Beamer: strikeout with onslide produces "perhaps a missing \item"

Following the recommendation in In beamer, how to strike through an item after displaying, I wrote this: \documentclass[14pt,aspectratio=1610]{beamer} \usepackage[normalem]{ulem} \renewcommand{\...
  • 515
0 votes
1 answer
4k views

Strikethrough command in LaTeX [closed]

I am trying to have as strikethrough text using base LaTeX command and up till now there is no solution available except the use of some packages, i.e, ulem and cancel. Is there any other way to get a ...
4 votes
2 answers
2k views

How do cross out text in math mode?

Since \sout does not work in math mode, what can I use instead? I don't want the diagonal strikeout like with cancelf
  • 736
1 vote
1 answer
67 views

How to strike through in mbox and in begin{Large}?

Here is my input here. I want strikrthrough all these lines (1)(1)+2(1)+(-1)2+ (-2)1+0(1)+(1)3+ 1(2)+(-1)(1)+0(4) \documentclass[10pt,letterpaper]{article} \usepackage[left=8mm,top=6mm,bottom=...
  • 463
1 vote
1 answer
44 views

How to add a strikethough or slash over the "Cal" of "CalParam"

There are two types of parameters: calibrated and non-calibrated. I use "CalParam" as a shorthand to denote a calibrated parameter. To denote a non-calibrated paramter, I want to add a strikethrough ...
user avatar
0 votes
0 answers
43 views

How to create arrow over multiple cells in longtable environment?

I need to build a table like the image. I have built the table easily but can not get the arrowed lines properly.
2 votes
1 answer
380 views

Strikeout a paragraph containing text and an equation environment

As shown in this answer, we can strikeout text like abc $x=y$ using \st or \sout from the ulem and soul package, respectively. However, both approaches don't work if the text contains an equation ...
  • 353
3 votes
1 answer
220 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}\...
  • 161
1 vote
2 answers
2k 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 ...
  • 223
2 votes
1 answer
2k 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
2 answers
2k 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 ...
  • 14.1k
5 votes
1 answer
310 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{...
  • 163
5 votes
1 answer
3k 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 there ...
  • 3,009
3 votes
1 answer
579 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
2 answers
281 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 ...
  • 53
3 votes
3 answers
218 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
2 answers
2k 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
1 answer
3k 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,267
3 votes
1 answer
253 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? ...
  • 186k
5 votes
1 answer
356 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
1 answer
2k 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 &...
  • 165
1 vote
2 answers
440 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 ...
  • 415
2 votes
2 answers
395 views

acro acronym not recognized inside the soul package's strikeout command

I'm finding that if I use an acro acronym inside a soul strikeout command, I get errors about the acronym not being defined. Here is my Minimal Working Example: \documentclass{article} \usepackage{...
  • 855
0 votes
1 answer
428 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 ...
  • 1,499
3 votes
1 answer
2k 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.
11 votes
2 answers
4k 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
1 answer
187 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
1 answer
254 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 ...
  • 275
3 votes
1 answer
1k 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
0 answers
1k 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, ...
  • 1,959
12 votes
2 answers
34k 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
0 answers
457 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} \...
  • 11
4 votes
1 answer
4k views

Command to Strikeout text and citation?

I am making major edits (a hack and slash) to a big document, want to do a word count on what's there (hence texcount), and, while I'm editing and we are reviewing, I want to retain what I'm removing ...