# Add some vertical text on the margin of document?

I like to put url in the left/right margin and align it vertically like arXiv (see figure below).

Here is a MWE:

    \documentclass[10pt,a4paper]{article}
\usepackage{lipsum}

\begin{document}

\lipsum

\end{document}


One way would be to use the background package:

## Code:

\documentclass[10pt,a4paper]{article}
\usepackage[all]{background}
\usepackage{url}
\usepackage{lipsum}

\SetBgContents{\url{http://tex.stackexchange.com/}}% Set contents
\SetBgPosition{0.25cm,-5.0cm}% Select location
\SetBgOpacity{1.0}% Select opacity
\SetBgAngle{90.0}% Select rotation of logo
\SetBgScale{2.0}% Select scale factor of logo

\begin{document}

\lipsum[1-7]

\end{document}

• This solution does not work with links to labels. – Kadir Nov 5 '14 at 8:06

I usually use a combination of eso-pic, graphicx and rotating as it is easy to adjust in terms of location, angle and size.

\documentclass[12pt]{scrartcl}
\usepackage{blindtext}
\usepackage{eso-pic, rotating, graphicx}


• Use \AddToShipoutPictureBG* if you want the mark only once. Also AddToShipoutPicture seems depreciated and repalced by AddToShipoutPictureBG and AddToShipoutPictureFG – Fibo Kowalsky May 12 at 19:17