निरंजन
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}
```
![Screen Shot 2020-04-26 at 20.15.41.png](/image?hash=cedb38ea6874d00ed5a29488f33ed04244abe3c5c2717592454f78956eb5d8d4)