Is it possible to draw a (dotted) horizontal rule at the middle of the page (same distance from the top as from the bottom) independent of the rest of the text (perhaps in some way overlayed over the text)?

I just want it as a help line for a special purpose, it will removed in the final version of the text so it doesn't matter if it overlays text.


Here's one possibility using the background package:

\usepackage[a6paper]{geometry}% just for the example
\usepackage{lipsum}% just to generate text for the example

  contents={\tikz\draw[ultra thick,dotted] (current page.west) -- (current page.east);}




enter image description here

To make the line disappear, you can simply change




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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