Graphics, Figures & Tables ⇒ Separating Figures from Text with dotted Line
-
- Posts: 4
- Joined: Fri Apr 29, 2011 7:23 pm
Separating Figures from Text with dotted Line
I'm using fancyhdr as well so I'd prefer not to use a solid line to separate Figures as it would be too similar to the solid line at the top of each page already.
Any help would be much appreciated - thanks!
-sultan1919
P.S. - I'm sorry if this has been posted before, I couldn't find it in my search.
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
Separating Figures from Text with dotted Line
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{blindtext}
\def\topfigrule{\vskip1ex\noindent\dotfill}
\def\botfigrule{\noindent\dotfill\vskip1ex}
\begin{document}
\blindtext[4]
\begin{figure}[!ht]
\centering
\rule{\linewidth}{0.75\linewidth}
\caption{Dummy figure}\label{fig:dummy}
\end{figure}
\blindtext[3]
\end{document}
For floats appearing in the text you my need to do that manually. Perhaps packages like float or floatrow can help in restyling floats.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10