0

I have seen that in some of the SE entries, such as Missing number, treated as zero on section using package titlesec, that the start of a comment overlaps the end of the question.

How could I do this with LaTeX? Consider two paragraphs in the source where in the typeset output the words in the bottom half of the first paragraph are overlaid by the words in the top half of the second paragraph. I'm not sure I would ever want to do this, but if I did, how could I?

How does SE manage to do it? Is it controlled by SE or is it something done by the respondents?

4
  • I can't see what you mean in the link provided. Can you provide a screen shot of what you're referring to?
    – Werner
    Jun 23, 2021 at 17:33
  • You could just issue a negative \vspace to let content overlap, I guess...
    – Werner
    Jun 23, 2021 at 17:33
  • as Werner says \vspace{-5cm} between the paragraphs will make the latex paragraphs overlap, but I see no overlapping in the page that you link to? Jun 23, 2021 at 17:51
  • @Werner I don't know how to provide a screen shot. I have a nasty feeling that it is my viewer (Mozilla Firefox) that is causing the SE problem. Anyway, never mind. Jun 23, 2021 at 18:33

1 Answer 1

1

Use a negative \vspace:

enter image description here

\documentclass{article}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\vspace{-\dimexpr\parskip+3\baselineskip}% Overlap 3 lines of the previous paragraph

\lipsum[2]

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .