I have various \vspace commands spread in a large document. Can I make them all visible by re-defining it somehow in the preamble?
I have positive and negative arguments to it. I imagine negative vspaces might be shown as a red vertical bar of some length (say 3cm, in the page background?) and positve ones as a green bar.
The actual space the command or the text uses should not be changed.
This could be an excerpt:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\vspace{-0.5pc}
Nunc in ultrices ante, sit amet aliquam enim.
Mauris auctor ornare nulla, ac elementum nibh dapibus vitae.
\vspace{1pc}
Aliquam accumsan, metus vitae lobortis maximus, ligula
tellus vehicula ipsum, eu posuere augue dolor nec est.
\vspace{-0.2pc}
Aenean id felis sit amet odio pulvinar suscipit quis sed nulla.
Donec sit amet sapien iaculis purus ultricies ornare.
Sometimes the \vspace is between paragraphs, sometimes it is attached to its end or beginning.
I played around with \rule TikZ and overlays but could not at all get it to work.
Update:
I replaced all \vspace in the doc with \tvspace and defined that as:
\newcommand{\tvspace}[1]{%
\vbox to0pt{\rlap{%
{\color{red}\rule{1pt}{\dimexpr#1*-1}}%
{\color{green}\rule{1pt}{#1}}}%
}\vspace{#1}%
}
That seems to solve the horizontal box problem (\rlap), but the vertically the overlap seems not to work at all. I do not understand enough of how the boxes work.
With my color bars: https://i.stack.imgur.com/B0uw4.jpg
Without my color bars: https://imgur.com/a/QrZs8
Alas, not non-intrusive at all.
The tvspace in question is here:
\tvspace{-0.5pc}In diesem Kapitel...

Lua-visual-debugpackage – Michael Fraiman Nov 23 '17 at 19:34\vspacehas a 'bigger' problem. Why do you have to use the command so often? – Dr. Manuel Kuehner Nov 23 '17 at 20:12