Graphics, Figures & Tableslongtable with koma scrbook

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
larne
Posts: 2
Joined: Fri Apr 03, 2009 1:36 pm

longtable with koma scrbook

Post by larne »

Hello,
I have problems using longtable with koma scrbook. Some tables look fine while on some pages images are pushed outside the paper. I have a lot of image floats on these pages. I have also defined in the preamle;

Code: Select all

%%%%%%%%%%%%%%%% Customization 
\setlength{\textwidth}     {16cm}    % Textbreite
\setlength{\oddsidemargin} {-0.1cm}  % linker Rand (2.45-2.54) doppelseitig
\setlength{\evensidemargin}{-0.1cm}
\setlength{\paperwidth}    {20.9cm}  % physikalische Seitenbreite
\setlength{\textheight}    {23.5cm}  % Gesamthöhe für den Seitentext
\setlength{\topmargin}     {-1cm}    % oberer Rand bis Oberkante Kopfzeile (1.5-2.54)
Any ideas?
Cheers

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

longtable with koma scrbook

Post by localghost »

I wonder about the correlation of longtable environments and images in this case. A minimal working example (MWE) might help.


Best regards and welcome to the board
Thorsten¹
larne
Posts: 2
Joined: Fri Apr 03, 2009 1:36 pm

longtable with koma scrbook

Post by larne »

Thanks for your reply,
I'll give it another try to show a MWE;

Code: Select all

\documentclass[12pt,a4paper,twoside,headsepline,footsepline]{scrbook}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[pdftex]{graphicx}
\usepackage{color}
\usepackage{lineno}
\usepackage{multirow}
\usepackage{tikz}
\usepackage{natbib}
\usepackage[tight]{subfigure}
\usepackage{rotating}
\usepackage{longtable}
\usepackage[pdfborder=000,pdftex=true]{hyperref}
\setlength{\textwidth}     {16cm}    % Textbreite
\setlength{\oddsidemargin} {-0.1cm}  % linker Rand (2.45-2.54) doppelseitig
\setlength{\evensidemargin}{-0.1cm}
\setlength{\paperwidth}    {20.9cm}  % physikalische Seitenbreite
\setlength{\textheight}    {23.5cm}  % Gesamthöhe für den Seitentext
\setlength{\topmargin}     {-1cm}    % oberer Rand bis Oberkante Kopfzeile (1.5-2.54)
\graphicspath{{figures/}}
\begin{document}
\include{chapters/Fieldcampaigns}	\cleardoubleplainpage
\end{document}
Then in Fieldcampaigns I have 5 sections. The part of section 3 and 4 is "eaten" meaning it continues outside the paper. The last part of section two and the beginning of third section looks like this;

Code: Select all

\begin{figure}[htbp]
	\centering
		\begin{tikzpicture}
		\node (0,0) {\includegraphics[width=0.85\textwidth]{figures/image.jpg}};
		\draw [dashed,red] (-0.15,-3) -- +(73:6.5cm);
		\draw [dashed,red] (-0.15,-3) -- +(107:6.5cm);
		\node[draw,circle,line width=1pt,white] at (2,0.2) (a) {a};
		\draw [->,line width=1pt,white] (a) -- +(-180:2cm);
	\end{tikzpicture}
	\caption{Caption}
	\label{fig:label}
\end{figure}
\section{3rd section}
About four lines of text
\begin{longtable}{p{5cm}@{}|p{11cm}@{}}
\caption{\label{tab:sensorchar}Settings}\\
\hline
Height &7 m\\
gsfsf & 3999 m\\
bla bla & 1 m\\
bla bla & 4.4 mrad\\
Dimensions & nx: 341, ny: 3000\\
sfs& 23\\
Acquisitions & 40\\
Epochs & 7
\end{longtable}
Some more text that will go outside the paper
If I remove the image containing the tikz picture the document is ok again. However I tried putting in a normal picture without tikz and the problem persists. So it seems it has nothing to do with tikz.
Any ideas?
Cheers
Post Reply