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

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

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?

Tags :

\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}


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
\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
May 15, 2019 16:01 PM

Disappearing border lines in table

Updated October 31, 2018 10:23 AM

Table formatting issue in Overleaf

Updated May 22, 2019 16:23 PM

One sentence of dummy text

Updated November 29, 2018 22:23 PM