It has probably been already answered, but I cannot find it.  If I include images as floats, LaTeX places the last one on a single page in the middle. How do I make LaTeX to put in on the top of the single page?   A similar question: if I make a new section and a large table (3/4 of the page long), LaTeX stretches the spacing between the section header and table. How do I place the table right after the section header?
20230
I just got a short algorithm on my page, and it keeps getting aligned at the center of the page. But I want to have it aligned at the top, what do I have to do?
59537
Quick question to anyone who has used this LaTeX template:    Any ideas on how to change the left margin to get more words onto one page?
65410
I use:  \documentclss{mwrep} ... \begin{figure}   \includegraphics{a.jpg} \caption[Long caption]{Caption} \label{pic-a} \end{figure}   How can I make images to be always visible on the center of page? (To be more specific: the center of the image should be between the left and right margin - I use different left and right margins). I don't want to put anything after every \begin{figure} in my document.  Important: I don't want to waste an entire page on a single image at the very center of the page. I want only horizontal alignment. (left &lt;-> right)
123853
I would like to style my document in such a way that the page is divided into four equal parts and then the text is printed in those pages: it is similar to twocolumn but I also want to have, say two rows. The reason is that I would like to cut the page into four smaller pieces, so it would be very convenient if LaTeX can do this. Thank you in advance for help!
100925
I am writing an IEEEtran article. I use graphicx for inserting .pdf images. Normally, LaTeX selects a position like A. I want LaTeX automatically find and insert the image to a position like B. How can I do that? This is my code:  \usepackage{graphicx} \begin{document} \begin{figure}   \centering   % Requires \usepackage{graphicx}   \includegraphics{Figures/Fig1.pdf}\\   \caption{hi}\label{hi} \end{figure} \end{document}
36975
I have a PDF file with multiple figures; each figure is a separate page in the PDF file.  I am using pdflatex, and I would like to use \includegraphics or equivalent to include some of the figures.  Of course I could use an external tool to split the PDF file into multiple one-page PDF files. Then I could use \includegraphics as usual. However, I would have a much simpler workflow if I could avoid this extra step. Hence the question:  How can I include, e.g., page 3 of foo.pdf as a figure?  I am aware that there is a Latex package called pdfpages, but it seems to be designed for something else: with pdfpages, each page in the input file will produce a full page in the final document, not just a box.
21811
I'm using the following command to embed images in my LaTeX document (which is then rendered as PDF)  \newcommand{\img}[4]{   \begin{figure}[!hbt]     \centering       \vspace{1ex}       \includegraphics[width=#2]{images/#1}       \caption[#4]{\label{img.#1} #3}     \vspace{1ex}   \end{figure} }   When creating a href to an image, the viewer jumps to the image caption instead of the top of the image. How do I change my \img command so it still puts the caption below the image but links to it jump to the image itself?
51501
I'd like to group two tables, one below the other, so they don't show separated ie. one in each page. What's the best way to achieve that? I've read about positioning them side by side, but not this.  Probably, I could create a custom float with \usepackage{float}, but I bet there is a simpler way (other than playing around with [htpb]).
97208
Is it possible to generate a PDF of figures and tables of a paper from LaTeX itself?  I saw Journals and Conferences asking for a separate file of tables and figures.  In  question, questioner proposed a method that uses \usepackage{endfloat} to push all the figures and tables to the last pages and then use a PDF editor to cut the last pages of PDF. This is a solution but not a good one. LaTeX should be able to do this by its own.  What I have in mind is to compile the LaTeX file and it generates a complete PDF output and beside that a separate file that contains all the figures and tables of former PDF.
111349
I want to place two or more figures on top of the two-column page next to each other (horizontally). However, for some reason I can't do this. This is the code that I use, it puts the second figure in the new line. Why is that? Btw, figures are tiny and many of them can fit in one line.  \begin{figure*}[t] \centering  \subfigure[Market revenue]{ {\epsfig{file = figures/graphs/revenue.pdf, width = 3cm}} \label{fig:evaluation:revenue} }  \subfigure[Average price]{ {\epsfig{file = figures/graphs/avgPrice.pdf, width = 3cm}} \label{fig:evaluation:avgPrice} }  \caption{Simulation results} \end{figure*}
97883
I am trying to put fancyhdr custom style on all pages except first one, but it either shows up on all of them, or on none, I can't make this style to go from second page, im new to latex, so any help is welcome.
71809
First of all I would like to thank everyone here for being so helpful this website is doing a really great job helping new people fall in love with latex. I have another question. I have to put a few tables in landscape mode since they are to big to look nice in normal portrait mode. I would also like to have my header and page numbering on that page as well. Can anyone guide me in how to do this. With a simple code. I am actually scared of ruing my current document so I am going to make it on a separate file and then add it with a PDF tool later into my original document. So i would probably need to add custom numbering to those page. I am providing the code I used from a user here for my header and number can you guys tell me how to add a custom number in here for example if the landscape table is on 23rd page. Also I am adding an image of how I want my page to look with a table in landscape. Thanks alot    and here is the code where I want to put custom numbers  \usepackage{fancyhdr} \usepackage[margin=0.75in,head=2cm,top=1.5cm,bottom=2.5cm,includehead]{geometry} \usepackage{lastpage} \usepackage{graphicx} \renewcommand{\headrule}{}% to remove the line \lhead{\includegraphics[width=6cm]{lol.png}}% use your logo \rhead{% \begin{minipage}[b]{5cm} \flushright \today\\ IND/Q-85/15 \\ Page \thepage{} of \pageref{LastPage} \vspace{6mm} \end{minipage}} \cfoot{}   I think I would need to change the '\thepage{}' with a normal 23 if it was the 23rd page I am not sure though =/. Sorry if I am asking a very easy question.
92241
My problem is that I would like to write something like in LaTeX:   But I can't seem to do it wihtout reading like:   Which is pretty anoying to do all the time, in the middle of writting. Is there a code to do it for a whole paragraph without written \hspace*{1,5 cm} in middle of a sentence
25022
I am using my school's latex . Unfortunately, since this package was last updated, we are now required to add the word 'Page' above the topmost page number on each page of the Table of Contents. This cls file includes the following bit of code, which puts 'Page' at the top of the first page, but not any subsequent pages (see attached)  \newcommand\chapteruaf{ \if@arabic\relax\else\if@chapterone\setcounter{page}{1}\else\relax\fi\fi \@chapteronefalse                     \if@openright\cleardoublepage\else\clearpage\fi                     \thispagestyle{myheadings}%                                                                                                    \global\@topnum\z@                     \@afterindentfalse                     \secdef\@chapter\@schapteruaf} \def\@schapteruaf#1{\if@twocolumn                    \@topnewpage[\@makeschapterheaduaf{#1}]%                                                                                     \else                    \@makeschapterheaduaf{#1}%                                                                                                     \@afterheading                  \fi} \def\@makeschapterheaduaf#1{%                                                                                                    {\parindent \z@ \centering     \reset@font     \normalsize \bfseries  #1\par                                                                                                  \vspace{-18.3pt}\hspace{143mm} Page                                                                                            \nobreak   }}   First page of the TOC:   second page of the TOC:   Any thoughts here? I have played with this a bit, and can't get it to work. Thanks.
5586
I have two images that I would like to appear on the same page. Each figure should appear as a separate figure with its own caption.  My problem is that LaTeX sometimes places the figures on separate pages.  I currently have achieved this by putting two \psfragfig commands consecutively within the same figure environment. This seems a simple and succesful approach, but I wonder if I am not using the figure environment correctly by doing this. Should I use the subcaption package instead?
53771
AFAIK a figure or table should always be placed after the first reference to it in the text.  So I always place the code for my figures and tables after the paragraph which contains the first reference \ref to them. When I then use the command \begin{figure}[t], it is possible that the figure is placed at the top of the same page where it is referenced, so IMHO that is against the rule mentioned above.   Is there a way to force pdflatex to place the floats after the paragraph which precedes them in the source text? (so in my example that would be at the top of the following page or later)
20313
In LyX I enter a figure/graphic at the end of a paragraph using Insert > Float > Figure.  I assume this is the command that I want since I want to include a graphic with a description (please let me know if there's a better command for this).  However, when it shows up in the PDF, (i) the figure is inside the paragraph and (ii) the spacing between the bottom of the figure and the remainder of the paragraph is abnormally large. I've tried manually editing the vertical space, but LyX either puts no space or too much space for this particular figure (I've never had this issue before).  I have a MWE below. In this case the spacing issue no longer appears but the figure appears above the paragraph instead of below. How can I put the figure below the paragraph (or precisely where I want it to appear?  (I) Source Code for Paragraph:   \noindent \begin{center}  \begin{figure}  \includegraphics[scale=0.6]{\string"Thesis/blank billard 7\string".jpg}\caption{A Billiard table $B_{\alpha}$ with a barrier of length $\alpha$}  \end{figure}   \par\end{center}   (II) Source Code for Entire Source:   \documentclass[oneside,english]{amsart}  \usepackage[T1]{fontenc}  \usepackage[latin9]{inputenc}  \usepackage{amsthm}  \usepackage{graphicx}  \usepackage{setspace}   \makeatletter  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.  \numberwithin{equation}{section}  \numberwithin{figure}{section}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.  \title[Short version]{Long version}  \usepackage{mathtools}   \makeatother   \usepackage{babel}  \begin{document}   \subsection{Veech's Examples and a Billiard Interpretation of these Examples}   \begin{doublespace}  \noindent In {[}8{]}, Veech constructs examples of minimal and not uniquely ergodic dynamical systems as follows (see {[}7{]})....  \end{doublespace}   \noindent \begin{center}  \begin{figure}  \includegraphics[scale=0.6]{\string"Thesis/blank billard 7\string".jpg}\caption{A Billiard table $B_{\alpha}$ with a barrier of length $\alpha$}  \end{figure}   \par\end{center}  \end{document}   UPDATE Here is the figure.  [![enter image description here][2]][2]