Text Formattingtwo chapters in one page

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
strongstorm
Posts: 6
Joined: Tue Nov 25, 2014 10:29 am

two chapters in one page

Post by strongstorm »

can you tell me how I could put two chapter in one page??
if I use
{\let\clearpage\relax\chapter*{Test 2}}

it will be on same page.... but there will be problem.....the problem if we write many lines and paragraph in each chapter the space between lines will change

how I cloud put two chapter on same page and keep the space between line without change??
Last edited by Johannes_B on Tue Nov 25, 2014 11:25 am, edited 1 time in total.
Reason: removed unnecessary markup

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

two chapters in one page

Post by Johannes_B »

Hi and welcome,

i don't understand the matter you are describing. Can you show us whats going on in form of a minimal working example?

Chapters start on new pages, there is a reason for that. If you need two on one page, you should think about the reason.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
strongstorm
Posts: 6
Joined: Tue Nov 25, 2014 10:29 am

Re: two chapters in one page

Post by strongstorm »

Dear Johannes_B
my proplem:
In latex, every time you use \chapter{.....} it will start at new page
I want to make second chapter start direct after end of chapter one not skip to new page
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: two chapters in one page

Post by Johannes_B »

But which class are you using? You described changes in the spacing, i cannot reprocude this right now. I need your help.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
strongstorm
Posts: 6
Joined: Tue Nov 25, 2014 10:29 am

two chapters in one page

Post by strongstorm »

Dear Johannes_B :
if you use this latex code below and and fill each chapter then
the space between lines (linespread) will not be 1.3 as I mention in the code
because the statement \let\clearpage\relax\chapter

Code: Select all

\documentclass[a4]{report}
\usepackage{amsmath}
\linespread{<1.3}
\begin{document}
{\let\clearpage\relax\chapter*{Level 1}}

{\let\clearpage\relax\chapter*{Level 2}}

\end{document}
Last edited by Johannes_B on Tue Nov 25, 2014 4:02 pm, edited 2 times in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

two chapters in one page

Post by Johannes_B »

That is an example i can easily test. And provide a solution

Code: Select all

\documentclass[a4paper]{report}
\usepackage{amsmath}
\usepackage{blindtext}
\linespread{1.3}
\begin{document}
{\chapter*{Level 1}}
\blindtext
{\let\clearpage\relax\par \chapter*{Level 2}}
\blindtext

\end{document}
Hint: You can test the code by clicking on »Open in weitelatex«.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply