Text FormattingHorizontal rule (line) after paragraph indented on the right

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
LavaTyper
Posts: 69
Joined: Sat Feb 11, 2012 2:38 am

Horizontal rule (line) after paragraph indented on the right

Post by LavaTyper »

Greetings again.

I want to place a horizontal bar after some paragraphs (the equivalent of <hr> in HTML), but I also need to use \usepackage[parfill]{parskip} for my documents. Part of this is so that I can condense everything, e.g., I want tables immediately below table captions, and doing this and setting \parskip=0pt works well. I'm also not sure how to redefine parskip elsewhere; I just get errors, or it doesn't recognize that I changed the value.

I just tried searching the internet and the forums but no one else seems to have this problem.

How do I get right of the right indent of the bar in this MWE?

Code: Select all

\documentclass[12pt]{article}
\usepackage[parfill]{parskip}

\parskip=12pt
\parindent=0.5in

\begin{document}

Content for first paragraph. I tried including a ``noindent" below for the ``hrulefill" but that didn't help on the right side of the line.

{\noindent}\hrulefill

{\noindent}Content for second paragraph, and I just felt like not indenting this paragraph.

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply