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?
General ⇒ horizontal line separator
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
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¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: horizontal line separator
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)
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)
- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
horizontal line separator
Hi,
perhaps there's a package aimed at this. Here's an example how you could do it by yourself:
Stefan
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}
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
horizontal line separator
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}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
horizontal line separator
The
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
Code: Select all
\centerline
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