Generalhorizontal line separator

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
antosha
Posts: 3
Joined: Sun Oct 26, 2008 7:40 pm

horizontal line separator

Post by antosha »

Could you please tell me how can i separate parts of the text with a horizontal line or tilde or whatever.
This is usually used to separate the introduction from the main text,
or to separate poems.
You know?

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

horizontal line separator

Post by localghost »

If you could describe more precisely what you want to do and what is the sense behind that, we might be able to get an idea how to solve this issue. For the present you can try a \rule command to get such a separation.


Best regards and welcome to the board
Thorsten¹
antosha
Posts: 3
Joined: Sun Oct 26, 2008 7:40 pm

Re: horizontal line separator

Post by antosha »

Thanks for the quick reply.

I mean this:
In some of the books the text is organized liked this:


bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla

-------

Thefore bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla




or like this


bla bla bla bla bla bla
bla bla bla bla bla bla
bla bla bla bla bla bla

****

bla bla bla bla bla bla
bla bla bla bla bla bla
bla bla bla bla bla bla





You know what i mean now?
I don't even know how is this called. (paragraph separator? )

The line and the stars should be in the centred. (I wasn't able to do that in this reply)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

horizontal line separator

Post by Stefan Kottwitz »

Hi,

perhaps there's a package aimed at this. Here's an example how you could do it by yourself:

Code: Select all

\documentclass[a4paper,10pt,english]{article}
\usepackage{babel}
\usepackage{blindtext}
\setlength{\parindent}{0pt}

\newcommand*\sepline{%
  \begin{center}
    \rule[1ex]{.5\textwidth}{.5pt}
  \end{center}}

\newcommand*\sepstars{%
  \begin{center}
    $\star\star\star$
  \end{center}}

\begin{document}
\blindtext

\sepline

\blindtext

\sepstars

\blindtext
\end{document}
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

horizontal line separator

Post by localghost »

Another basic structure could look like the following.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[centering,includeheadfoot,margin=2cm]{geometry}
\usepackage{txfonts}
\usepackage{blindtext}

\parindent0em

\begin{document}
  \blindtext

  \bigskip
  \centerline{**********}

  \bigskip
  \blindtext
\end{document}
antosha
Posts: 3
Joined: Sun Oct 26, 2008 7:40 pm

horizontal line separator

Post by antosha »

The

Code: Select all

\centerline
worked just fine.
Thank you!

Is there a proper name for this?
So, that the editor can change the line(or stars) to whatever symbol is preferred by the publisher.
How long should this line (stars) be? Is there a standard for this?

Thanks
Post Reply