How can i make dummy text (like \lipsum) grey?

by Leon D   Last Updated May 15, 2019 16:23 PM

Hi i would like to make my dummy text more distinguishable from the normal text, so i can better determine the progress by making it for example grey?

Can i adjust the \lipsum command, so it applies this behavior every time i use the command?



Answers 2


How about

\documentclass{article}
\usepackage{xcolor}
\usepackage{lipsum}
\SetLipsumParListSurrounders{\colorlet{oldcolor}{.}\color{gray}}{\color{oldcolor}}
\begin{document}
Hello

\lipsum[1-2]

Hello hello

\textcolor{red}{Hello again \lipsum[3] and again}
\end{document}

enter image description here

marmot
marmot
May 15, 2019 15:46 PM

For older versions of lipsum, which don't have \SetLipsumParListSurrounders

\documentclass{article}
\usepackage{lipsum}
\usepackage{xcolor}

\makeatletter
\renewcommand\[email protected]{%
  \ifnum\value{[email protected]}<\[email protected]\relax
    \addtocounter{[email protected]}{1}%
    \begingroup
      \color{gray}% <--- Change color here
      \csname [email protected]\romannumeral\[email protected]@count\endcsname
    \endgroup
    \expandafter\[email protected]
  \fi
}
\makeatother

\begin{document}

Hello

\lipsum[1-2]

Hello hello

\textcolor{red}{Hello again \lipsum[3] and again}

\end{document}
Phelype Oleinik
Phelype Oleinik
May 15, 2019 16:01 PM

Related Questions


Updated December 06, 2017 10:23 AM

Updated October 31, 2018 10:23 AM

Updated June 02, 2016 08:09 AM

Updated November 29, 2018 22:23 PM

Updated February 19, 2018 18:23 PM