निरंजन
How to have a document in which we separate the margin from the body with a rule / line? I want to have a simple TeX rule for this purpose. Also I only want it to start from where I start writing the text and it should end where the text ends. Is there any package to achieve this?
Top Answer
samcarter
One possible approach with the `mdframed` package:
```
\documentclass{article}
\usepackage{mdframed}
\usepackage{duckuments}
\newmdenv[
topline=false,
bottomline=false,
leftline=false,
]{siderule}
\begin{document}
\begin{siderule}
\duckument
\end{siderule}
\end{document}
```
