Text FormattingEmpty page after ToC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
kulima
Posts: 23
Joined: Mon Aug 03, 2015 5:42 pm

Empty page after ToC

Post by kulima »

Hello

I want to get rid of the empty page after ToC.
Google suggested:

Code: Select all

Code, edit and compile here:
\begingroup
\let\cleardoublepage\relax
\let\clearpage\relax
\tableofcontents
\addcontentsline{toc}{chapter}{Table of Contents}
\endgroup
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Which does not work.
When i open it in "WRITELATEX", no extra page is displayed after the ToC.
Locally it is.
Here is part of my document:

Code: Select all

Code, edit and compile here:
\documentclass[12pt]{scrreprt}
\usepackage{palatino,url}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{enumitem}
\hypersetup{
colorlinks=true,
linkcolor=blue
}
\usepackage{mdwlist}
\usepackage{listings}
%\usepackage{scrpage2}
%\usepackage{titlepic}
\begin{document}
\begin{titlepage}
\addcontentsline{toc}{chapter}{Cover}
\centering
\vspace*{6cm}
{\fontsize{1.4cm}{1em}\mdseries
dadada
}
1. August 2015
\vfill
v. 1.2
\end{titlepage}
\pagenumbering{arabic}
\tableofcontents
\addcontentsline{toc}{chapter}{Table of Contents}
\chapter{Overview}
\section*{fsdfsfsf}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Recommended reading 2024:

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

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

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

Empty page after ToC

Post by Johannes_B »

There seems to be something different on your system. Can you show us the log-file of your run?


You want the toc in the toc? unusual, but possible. KOMA has its own mechanism for that. Please add to the preamble: \setuptoc{toc}{totoc}.

Please note, that every pagenumbering change should be preceeded by \cleardoublepage
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kulima
Posts: 23
Joined: Mon Aug 03, 2015 5:42 pm

Empty page after ToC

Post by kulima »

Here is the log file. redacted full path names.
Implemented the other changes you suggested.

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex 2015.8.4) 4 AUG 2015 14:59
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**inventoryv12.tex
(./inventoryv12.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 4 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2013/12/19 v3.12 KOMA-Script document class (report)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrkbase.sty
Package: scrkbase 2013/12/19 v3.12 KOMA-Script package (KOMA-Script-dependent b
asics and keyval usage)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty
Package: scrbase 2013/12/19 v3.12 KOMA-Script package (KOMA-Script-independent
basics and keyval usage)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/05/08 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package: scrlfile 2013/12/19 v3.12 KOMA-Script package (loading files)
Package scrlfile, 2013/12/19 v3.12 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/tocbasic.sty
Package: tocbasic 2013/12/19 v3.12 KOMA-Script package (handling toc-files)
)
Package tocbasic Info: omitting babel extension for `toc'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `toc' on input line 117.
Package tocbasic Info: omitting babel extension for `lof'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `lof' on input line 118.
Package tocbasic Info: omitting babel extension for `lot'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `lot' on input line 119.
Package tocbasic Info: defining new hook before heading of `' on input line 112
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty page after ToC

Post by Johannes_B »

Your document has 20 pages, the above not ;-)

Don't have time to take a closer look, the code generating the log would definitely be helpful.

Are you trying to get a blank line between paragraphs? If so, use global option parskip. Do not use double backslashes.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kulima
Posts: 23
Joined: Mon Aug 03, 2015 5:42 pm

Re: Empty page after ToC

Post by kulima »

I have

Bla: blubb \\
Bla2: blubb2\\
Bla3: blubb3\\

In the Code, i am not trying to get a blank line put put every bla:blubb in a seperate line.

Hm the sample code i posted compiles without the extra ToC page, ill post more of the original document when i am at home, have to clear out the sensitive information.
kulima
Posts: 23
Joined: Mon Aug 03, 2015 5:42 pm

Re: Empty page after ToC

Post by kulima »

Found it!
The .jpg in the next chapter was too big, somehow carrying over to the previous page?
Scaled it down a little, its good now.
Can i somehow tell the pic not to extend to the previous page?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty page after ToC

Post by Johannes_B »

kulima wrote:
Bla: blubb \\
Bla2: blubb2\\
Bla3: blubb3\\
This makes the code full of warning, because the paragraph-making algorithm gets deeply confused and warns about lines that are underfull.

Use a simple list instead, just like in the other thread.


There are many pictures in your document that seem to be too big. Best to give the width of the image \includegraphiccs[width=.7\textwidth]{basename}.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kulima
Posts: 23
Joined: Mon Aug 03, 2015 5:42 pm

Re: Empty page after ToC

Post by kulima »

Thanks!
Nice service here :)

Used \\ because its much less hassle than doing lists and friendlier on the eyes ;)

Anyhow, with your help, my document is finished now and all in all less time consumed than doing the same in LibreOffice, with 0 LaTeX experience beforehand.
And it looks better.
Pleasantly surprised!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty page after ToC

Post by Johannes_B »

kulima wrote:Used \\ because its much less hassle than doing lists and friendlier on the eyes ;)
That is laziness ;-)

That is ok, you could also call it eficient. But really, instead of using duck tape, screws and bolts and build something bound to fail, get a good text editor that supports you in all the writing you are doing, no matter if it is LaTeX or Ruby or C++ or some plain text for short notes.

The big two are Emacs and vim. But beware, both are so powerful, you once more need to invest some time learning. So far, everybody liked the change and never regretted to check them out. Personally, i prefer vim.

The most basic knowledge you need to know about vim -- how to exit the programm ;-)

Image
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
kulima
Posts: 23
Joined: Mon Aug 03, 2015 5:42 pm

Re: Empty page after ToC

Post by kulima »

I am using vim for text editing normally.
For LaTeX i used "Texmaker"
Post Reply