TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to place a minipage on the top of a page. I use the t option, but seems not working.

\usepackage{pgfplots, pgfplotstable}

        \adjustbox{width=0.7\textwidth} {
          \begin{tikzpicture}[text centered, nodes = {draw, minimum size = 22mm}]
            \matrix at (0, 0)
                      \node {$ 1 $}; & \node {$ 1 $}; \\
                      \node {$ *1 $}; & \node {$ *1 $}; \\
        \captionof{figure}{fig 1.}
        \adjustbox{width=1.2\textwidth} {
          \begin{tikzpicture}[text centered, nodes = {draw, minimum size = 12mm}]
            \matrix at (0, 0)
                      \node {$ 2 $}; & \node {$ \forall $}; \\
                      \node {$ 2 $}; & \node {$ 2 $}; \\
        \captionof{figure}{fig 2.}
share|improve this question
Please add a complete minimal example illustrating the problem mentioned. – Gonzalo Medina Mar 13 '12 at 18:09
Perhaps you want to place the minipage above the text area? – Gonzalo Medina Mar 13 '12 at 18:26
To add to Gonzalo Medina's question, maybe he/she needs it as a watermark. – Ahmed Musa Mar 13 '12 at 18:48
Hi all, thanks for replies. I wish the final effect seems like \begin{figure}[t], not in the top margin. Because there are two figures in the minipage, I cannot use figure to wrap the minipage again. – xando Mar 13 '12 at 19:03
@Kejia柯嘉: Please provide a minimal example. – Marco Daniel Mar 13 '12 at 19:19
up vote 6 down vote accepted

The [t] option does not represent where the minipage will be placed on the page, but actually represents the internal alignment of the material.

If you want the minipage to be put at the top of a page, you can put it into a floating environment- either a figure or table (or you could even create your own if you wanted to).

So, the following would get you closer to what you want


Of course, now that your minipage is floating, it may not be in the order that you desire with respect to your other content. If you don't want it to float, then you might also look into \clearpage or \newpage

share|improve this answer

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.