Graphics, Figures & Tablestextpos | Unwanted white Space

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

textpos | Unwanted white Space

Post by jossojjos »

Dear all,

I'm trying to create a little "photo booklet". For this, I'd like to have pictures than span a page exactly ; I thought textpos would be suitable for this.

Here's the code for the document (created with lyx) :

Code: Select all

\documentclass[oneside,english]{book}
\usepackage[OT1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[paperwidth=148mm,paperheight=210mm]{geometry}
\geometry{verbose,tmargin=0cm,bmargin=0cm,lmargin=0cm,rmargin=0cm,headheight=0cm,headsep=0cm,footskip=0cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{graphicx}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[showboxes,absolute,overlay]{textpos}
% A5 page : 148 × 210 mm
\textblockorigin{0mm}{0mm}
\setlength{\TPHorizModule}{148mm}
\setlength{\TPVertModule}{210mm}

\makeatother

\usepackage{babel}

\begin{document}

\title{Zuid Amerika 2009}

\maketitle
\begin{textblock}{1}[0,0](0,0)

\includegraphics[width=1\paperwidth]{0352}

\end{textblock}
\end{document}
However, the picture appears with some white space at the left. Apparently, this space is inside the textblock. How to get this picture spanning an entire page ?

Thanks in advance,
Jos

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

textpos | Unwanted white Space

Post by Stefan Kottwitz »

Hi Jos,

the paragraph indentation causes this white space. You can prevent this by writing \noindent right before \includegraphics.

Stefan
LaTeX.org admin
Post Reply