## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ \tableofcontents & \listoffigures: Remove blank pages 2 & 6 Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

### \tableofcontents & \listoffigures: Remove blank pages 2 & 6

With \tableofcontents and \listoffigures, I get two blank pages (2 and 6). Can you post an example of how to get rid of the two blank pages.

There are other blank pages in the document, but I can live with them.

\documentclass{book}     \usepackage{caption}     \usepackage{graphicx}     \begin{document}      \chapter{One}     \tableofcontents      \chapter{Two}     \listoffigures      \bigbreak      \chapter{Three}       This is the third chapter in the story.      \begin{minipage}{\linewidth}             \begin{center}                     \includegraphics[width=\textwidth]{example-image}                     \captionof{figure}{this is my caption}             \end{center}     \end{minipage}       \chapter{Four}       This is the fourth chapter in the story.      \begin{minipage}{\linewidth}             \begin{center}                     \includegraphics[width=\textwidth]{example-image}                     \captionof{figure}{this is my caption}             \end{center}     \end{minipage}       \chapter{Five}       This is the fifth chapter in the story.      \begin{minipage}{\linewidth}             \begin{center}                     \includegraphics[width=\textwidth]{example-image}                     \captionof{figure}{this is my caption}             \end{center}     \end{minipage}      \end{document}

Thank you,
Last edited by Michael_590 on Mon Aug 25, 2014 4:16 pm, edited 2 times in total.

Tags:

Johannes_B
Site Moderator
Posts: 3854
Joined: Thu Nov 01, 2012 4:08 pm
I didn't test your example, but the book class starts ne chapter on a right (odd) page. KOMA-classes provide an option to start a chapter on left (even) pages. My battery is low right now, but i'll make a test run tomorrow.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Johannes_B
Site Moderator
Posts: 3854
Joined: Thu Nov 01, 2012 4:08 pm
I am not quite sure what you are trying to achieve. Do you want the tableofcontents and the listoffigures numbered? This is quite unusual. Both commands start a new (unnumbered) chapter of their own.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm
You get empty pages because you have empty chapters. As Johannes says the commands \tableofcontents and \listoffigures both implicitly call \chapter*. This means that the piece of code
\chapter{One}\tableofcontents \chapter{Two}\listoffigures

is some how equivalent to
\chapter{One}\chapter*{Contents}Table of contents stuff ... \chapter{Two}\chapter*{List of Figures}List of figures stuff...

This lets me suspect that you're not telling what it actually is you're trying to achieve. As Johannes I suspect you want to have numbered headings for the table of contents and the list of figures?

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm
Hello,

I have attempted a rewrite of my example to try and demonstrate what I am trying to do. Please excuse any misrepresentations that I may have in the original example above!

The below example produces a blank page on pages: 2, 4, and 6, take a look.

My question is how can I remove these three blank pages.

I.E.: I would like a new document which is exactly same document as this one without blank pages 2, 4, and 6. I want a document that will still have pages numbered from 1, ..., N, but ONLY without these blank pages.

P.S.: The poem is by Norman Wilson
Reference: http://www.poetry.com/users/189919

\documentclass{book}     \usepackage{caption}     \usepackage{graphicx}     \begin{document}       \begin{titlepage}      \LARGE{Ballad of Yore}      \end{titlepage}     \tableofcontents     \listoffigures      \chapter{One}When chaos once ruled in the days of yore, The country was magically entwined in civil war. When, the honour of knights protected the land. The Queen’s own knights made their final stand.       \chapter{Two} In castle surroundings, clustered in silky green heather. Growing on the hillside where nature blends, together. While a lady of elegance sits by a clear streaming brook. Her kingdom threatened by mystical beasts and crooks.        \chapter{Three}  The champion of her kingdom in a strong will to fight, He brought forth her army and the last of her loyal knights. His love for his Queen was more than duty of one man. He would sit by her side and bring harmony back to the land.       \begin{minipage}{\linewidth}             \begin{center}                     \includegraphics[width=3cm]{example-image}                     \captionof{figure}{Caption for the 3rd chapter}             \end{center}     \end{minipage}       \chapter{Four}He rode a white steed in the early morning light. Dressed in full battle gear, glittering too sight. Now harden to the misery of wails in air. Our brave knight readies to war’s affair.       \begin{minipage}{\linewidth}             \begin{center}                     \includegraphics[width=4cm]{example-image}                     \captionof{figure}{Caption for the 4th chapter}             \end{center}     \end{minipage}       \chapter{Five}He speaks aloud to his brave comrades in arms. We must protect the Queen from an evil harm. Bare all you have and all you shall give. We fight for the Queen, for our kingdom must live.       \begin{minipage}{\linewidth}             \begin{center}                     \includegraphics[width=5cm]{example-image}                     \captionof{figure}{Caption for the 5th chapter.}             \end{center}     \end{minipage}      \chapter{Six}The sound of his voice resonated in the emerald forest to the bending of trees. As he spoke so passionately, he gave ears to the wind to let all men see.     \chapter{Seven} Come ride upon the winds with me. I see you so, for it must be. Good souls cease for a while. Do not sway from cunning and guile.      \chapter{Eight}As the minds of his men now, stir in anticipation of his needed words. Not a pine needle dropped or chirping birds stirred to his words heard.      \chapter{Nine}Do you have so little faith in me? Men of such stature, I know to be. Quicken with haste and heed my prose. Now rally you of brave hearts, against our foes.      \chapter{Ten}The knight paused with thoughts of life without death. Just to have one more kiss from the Queen’s sweet breath.      \chapter{Eleven}  A war not of our chosen, a war not sought. For the sake of our Queen, battles shall be fought. We shall raise our banners majestically amid sky. Above all noble heads held high.      \chapter{Twelve}Rising to their feet, filled with venom of strengthened men. Beneath a rising sun, that sets in a day gone old in life’s end.      \chapter{Thirteen}To the foul cries of those stretched on the fields. I say no, to them who may yield. Together we shall burn the hearts of man in fire. At days light, we shall camp within the enemies’ shire.      \chapter{Fourteen}To the clasping of shields, spears and swords the howling warriors begin. To mesmeric words that dance upon the flames of hearted men with no sin.       \chapter{Fifteen}For the Queen’s affections, we shall remove the blight.   We shall be victorious by end of a coming night. Quell their angst with blade, I say. For her, we shall win this day.      \chapter{Sixteen}As now, memories pass amongst men of steal. For the one’s they left in the flowering of fields. As men’s hearts, bleed the war of death or life. While lost souls roam, fraught in war and strife.      \chapter{Seventeen}Valiant is the heart of men of war. We bow to no man’s brazen lore. Follow with me and seal their fate. For their verdict is there death on this date.      \chapter{Eighteen}A promise of victory flows within the breath of wind that binds the air. For the knight’s love is but one battle of will away from the beast lair.      \chapter{nineteen}Do not frighten from threats of their bloodletting hand. We shall bury them, deep within their own lands. In the wake of new night, blood lust will bleed in streams. For our Queen shall reign once more supreme. We now ride upon the evil hordes. In the slashing and crashing, pounding steal on sword.      \end{document}

Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm
I fixed the problem by setting the documentclass to "oneside."

Thanks everyone,