Page Layout ⇒ ruled margins
ruled margins
I'm writing up my thesis and I want to have the main story running through it but with large blocks of text inserted that are noticably different to the main text explaining certain aspects as I go (sounds confusing I know but it's the only way I can persuade it to make any sense). So far all I've managed is to do the inserts with narrower margins but given that they sometimes run over several pages it makes it hard to tell that they're any different to the main text, also some environments (proposition for example) just go straight back to the normal text width in the middle anyway. I thought a nice double ruled margin on the left next to the insert text would make it really clear but I can't work out if that's even possible.
If ruled margins aren't possible I'm open to any suggestions as to how to achieve distincively different blocks of text. There is a lot of maths in both types of text so it needs to be able to cope with that.
Any help would be very much appreciated.
Tiz.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
ruled margins
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: ruled margins
ruled margins
Code: Select all
\documentclass{article}\usepackage{xcolor}\usepackage{framed}% modify 0.7 higher for a lighter shade of gray,% or lower for a darker shade\newcommand{\grayleftbar}[1]{\textcolor[gray]{0.7}{%\begin{leftbar}\textcolor{black}{#1}\end{leftbar}}}\begin{document}\grayleftbar{%text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text\begin{equation}a=b\end{equation}text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text}\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
ruled margins
Code: Select all
\documentclass[11pt,a4paper,english]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage[includeheadfoot,margin=2cm]{geometry}\usepackage{babel}\usepackage[svgnames]{xcolor}\usepackage{framed}\usepackage{blindtext}\colorlet{shadecolor}{gray!25} % you may try 'blue' here\renewenvironment{leftbar}{%\def\FrameCommand{\textcolor{shadecolor}{\vrule width 3pt} \hspace{10pt}}%\MakeFramed {\advance\hsize-\width \FrameRestore}}%{\endMakeFramed}\begin{document}\begin{leftbar}\blindtext\end{leftbar}\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10