1

I think I could draw a square with the \rule command, but I can’t place it at the corner of the page. How can I change the absolute position of my square?

1
1

I found my own answer now:

\usepackage{eso-pic}
\AddToShipoutPictureBG*{%
   \AtPageUpperLeft{%
      \hspace{\paperwidth}%
      \raisebox{-\height}{%
         \makebox[0pt][r]{{\color{red}\rule{40pt}{40pt}}}
      }
   }
}

Thanks to @werner

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.