Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am co-authoring a piece of text, and I would like to indicate that in my opinion certain parts should be removed, by drawing a big red cross through that specific section. I have tried to work with tikz, but this usually ends up in procrastinating by exploring the awesomeness of Tikz.

What I need is being able to just add a line before and after the section needed to be discussed, such as:

\begin{cross}
    This text should be removed or discussed
\end{cross}

Is there a package that enables this?

share|improve this question
1  
Have you seen changes package? A simple example is tex.stackexchange.com/questions/65453/track-changes-in-latex/… –  percusse Sep 27 '13 at 10:52
3  
For American readers... the request means to draw a big red X through the specified text. –  LarsH Sep 27 '13 at 15:36

5 Answers 5

up vote 45 down vote accepted

Here is a solution which allows page breaks:

\documentclass{article}
\usepackage{lipsum}
\usepackage[many]{tcolorbox}

\newtcolorbox{cross}{blank,breakable,parbox=false,
  overlay={\draw[red,line width=5pt] (interior.south west)--(interior.north east);
    \draw[red,line width=5pt] (interior.north west)--(interior.south east);}}

\begin{document}

\begin{cross}
\lipsum[1]
\end{cross}

\par\bigskip
Now a part that continues to the next page:
\par\bigskip

\begin{cross}
\lipsum[2-9]
\end{cross}

\end{document}

enter image description here

share|improve this answer
3  
+1 I am once more amazed by the possibilities of your nice package! –  Daniel Sep 27 '13 at 12:57
1  
@Daniel Thank you for the flowers :-) –  Thomas F. Sturm Sep 27 '13 at 16:54

This will work only in a page.

\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\newcommand\tikzmark[1]{%
  \tikz[remember picture,overlay]\coordinate (#1) {};}
\newenvironment{cross}{%
\noindent\tikzmark{lbegin}\hfill \tikzmark{rbegin}
}{%
\par\noindent\tikzmark{lend}\hfill \tikzmark{rend}
\begin{tikzpicture}[overlay, remember picture]
    \draw[red,thick] (lbegin) -- (rend);
    \draw[red,thick] (rbegin) -- (lend);    
\end{tikzpicture}\par
}

\begin{document}
\lipsum[1]
%
\begin{cross}
    \lipsum[2]
\end{cross}

%
\lipsum[3-4]
\end{document}

enter image description here

share|improve this answer

Check out the changes package. Simply crossing out the text you want removed might be too little functionality. What if you have comments on why to remove certain text passages?

An example of how to use this package

share|improve this answer

A big red cross might be a bit awkward-looking. Through a squarish paragraph it would look OK (as in Harish Kumar's answer, but what if the block spans a page break? Or is only 1 long line?

The ulem package provides \sout{} like strikethrough and \xout{} where a slash is overlaid on each character. Coloured versions can easily be created, according to the manual.

share|improve this answer

With PSTricks.

\documentclass{article}

\usepackage{pst-node,lipsum}

\newsavebox\IBox
\newenvironment{criscross}{%
    \begin{lrbox}{\IBox}
    \begin{minipage}{\linewidth}
    \parindent=\xxx\relax
    \ignorespaces
}{%
    \end{minipage}
    \end{lrbox}
    \noindent
    \psDefBoxNodes{N}{\usebox\IBox}%
    \psline[linecolor=red](N:tl)(N:br)%
    \psline[linecolor=red](N:bl)(N:tr)%
    \ignorespacesafterend
}

\AtBeginDocument{\newlength\xxx\xxx=\parindent}

\begin{document}
\textcolor{red}{Don't be lukewarm! If you cannot be the best, be the worst!}
\lipsum[1]

\begin{criscross}
\lipsum[2-3]
\end{criscross}

\lipsum[4]
\end{document}

enter image description here

share|improve this answer
    
One down vote detected... Oh my ghost! –  Oh my ghost Oct 2 '13 at 7:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.