Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to enforce a table on a page.

I tried \startpostponing[2] but it doesn't seem to work and gives me an error:

Undefined control sequence \startpostponing

Is there any other way by which, I could force my table to occur on a particular page.

P.S I also tried \afterpage{}, but it didn't work as well.

Edit: My code:

        \documentclass[12pt,oneside, paper=a4,pagesize=pdftex, liststotoc, bibtotoc]{scrartcl}
        %Einstellungen der Seitenrnder
        %Umlaute ermglichen
        % macros - newly defined by htrsek
        \newcommand{\todo}[1]{\textcolor{red}{\textbf{TODO: #1}}}
        \newcommand{\comment}[2]{\textcolor{orange}{\textbf{\textit{\textless Comment (#1): #2\textgreater}}}}
        \newcommand{\inprogress}[3]{\textcolor{blue}{\textbf{InProgress: #1}}}
        \newcommand{\flexWARE}{\textsuperscript{flex}WARE }
        %[BC] Using the listing package for source code embedding.
        \usepackage{listings} \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt} \lstset{language=Perl} 

         %PDF Kram
            pdftitle={something},% Titel des PDF Dokuments.
            pdfauthor={someone},%Autor des PDF Dokuments.
            pdfsubject={something},%Thema des PDF Dokuments.
            pdfcreator={MiKTeX, LaTeX, hyperref, KOMA-Script},%Erzeuger des PDF Dokuments.
            pdfkeywords={project title},% auch fr PDF 
            pdfpagemode=UseOutlines,% Inhaltsverzeichnis anzeigen beim 
            %pdfdisplaydoctitle=true,%Dokumenttitel statt Dateiname 
            pdflang=en%Sprache des Dokuments.


            colorlinks=true,%        Aktivieren von farbigen Links im Dokument (keine Rahmen)
            linkcolor=LinkColor,%    Farbe festlegen.
            citecolor=LinkColor,%    Farbe festlegen.
            filecolor=LinkColor,%    Farbe festlegen.
            menucolor=LinkColor,%    Farbe festlegen.
            urlcolor=LinkColor,%     Farbe von URL's im Dokument.
            bookmarksnumbered=true%  Überschriftsnummerierung im PDF Inhalt anzeigen.
        %Zeilenabstand 1.2
        %Kopf- und Fusszeile
        %Kopfzeile links bzw. innen
        %Kopfzeile rechts bzw. aussen
        %Linie oben
        %Fusszeile links bzw. innen
        %Fusszeile rechts bzw. aussen
        %Linie unten

        %Setup for listings.










 \begin{tabular}{ | p{4cm} | p{5cm} | p{5cm} | p{4.5cm} |}

My table


 \begin{tabular}{ | p{4cm} | p{5cm} | p{5cm} | p{4.5cm} |}
\hiderowcolors \textbf{Examples} & \textbf{How it works} & \textbf{Technologies} & \textbf{On the market} \\ \hline \showrowcolors


 \\ \hline
    \caption{Examples of IoT.}

share|improve this question
If you want it in a particular position just use tabular wrapping that tabular in \begin{table} tells latex to move it to somewhere convenient for page breaking. If you don't tell LaTeX to move it, it won't move. –  David Carlisle Jan 23 '13 at 15:26
@DavidCarlisle I am using Tabular, and it didn't bring any luck. –  Kishore pandey Jan 23 '13 at 15:47
The idea is that you generate a minimal small (but complete) example that shows the problem. But as I said in the first comment the only reason for using begin{table} is to allow latex to move the table. In particular using [h] makes it highly likely that the float goes to the end as it's main effect is to stop latex using t top ppage float or b bottom. –  David Carlisle Jan 23 '13 at 15:58
Please fix your example if you run it it produces ! Undefined control sequence. `l.117 \afterpage {! LaTeX Error: Environment landscape undefined. l.119 \begin{landscape} ? ! Undefined control sequence. l.122 \rowcolors {1}{thistle}{lightblue} ? –  David Carlisle Jan 23 '13 at 16:04
Related (duplicate?): tex.stackexchange.com/q/9485/21591 –  mafp Jan 23 '13 at 16:12
show 5 more comments

1 Answer

The boxhandler package can do what you want. [Note I edited this one day after the first post, offering an improved version that requires no user intervention other than defining in advance on which pages the figures should appear.] In this MWE I give below, the figures will appear on pages 1, 3, and 4, as defined in the preamble to the document.

\bxfigure{Here is my caption}
  {\fbox{Here is my figure material}}
\bxfigure{Here is my another caption}
  {\fbox{Here is some more figure material}}
\bxfigure{Here is my third caption}
  {\fbox{Here is yet more figure material}}
  {\equal{\csname figpage\roman{figure}\endcsname}{\thepage}}%
The \textsf{boxhandler} package has figure (and table) deferral options.
By using \verb|\holdFigures|, figures may be defined but are not output.
They are only output with a \verb|\nextFigure| or if you want the
backlog cleared out, with \verb|\clearFigures|.

Note that in this MWE, I first create all the figures in the
preamble using the \verb|\bxfigure| command, with
\verb|\holdFigures| active.  I have created a command
\verb|\checkpage| which is automatically invoked with every
\verb|\par|.  If the page is a predefined value, the next figure is
printed.  To predefine what pages the figures will printout, the
user need merely define the variables, using a roman suffix of
(figure$- 1$)\\

\verb|\def\figpage{1}   % First  figure on page 1|\\
\verb|\def\figpagei{3}  % second figure on page 3|\\
\verb|\def\figpageii{4} % third  figure on page 4|\\

Notice in this document that nowhere, after \verb|\begin{document}|
is a figure call invoked anywhere.  Yet the figures show at their
assigned locations.

Here is text

more text

still more text


Here is a snapshot of the top of page 1

enter image description here

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.