I am writing a paper and have included a separate section at the end called &quot;Tables and Graphs&quot; but when I insert an image below the \section{ }, it pushes the title of the section below it. My code is: \newpage \renewcommand{\thesection}{} \section{Tables and Graphs}  \begin{figure} \includegraphics[width=\textwidth]{&quot;Provincial Time Series growth&quot;.png} \caption{Natural Logarithm of Provincial Real GDP per capita, 1960-2016} \end{figure}  Which produces the following image:  Not sure why it is doing this. When I don't include the image the title just appears at the top of the page. Anyone see a clear issue with my code or is there something more I need to do?
9972
I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left?
111938
How to layout images like the attached picture? Should I arrange them as tables or subfigure or some other layout? Thanks.    This is my latex code:  \begin{figure} \centering \subfloat[]{\includegraphics[width=\dimexpr(\textwidth-15pt+3pt*2)/2\relax]{fish}}% \hfill \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&amp;#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}&amp;   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}&amp;   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&amp;#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&amp;#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \caption{Test images} \end{figure}   The result is:    How to put "(d)" to the right of "(c)"?  Update: Thank Johannes_B, subcaption is the easiest way to meet my requirement. My code is:   \begin{figure}     \begin{subfigure}[b]{.237\textwidth}         \centering         \includegraphics[width=\textwidth]{image_a}         \caption{Our}\label{fig:1a}     \end{subfigure}     \hfill         \begin{subfigure}[b]{.237\textwidth}         \centering         \includegraphics[width=\textwidth]{image_b}         \caption{Adaptive order selection}\label{fig:1b}     \end{subfigure}     \hfill         \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_c_1}         \includegraphics[width=\textwidth]{image_c_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill     \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_d_1}         \includegraphics[width=\textwidth]{image_d_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill     \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_e_1}         \includegraphics[width=\textwidth]{image_e_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill \caption{A figure}\label{fig:1} \end{figure}
118164
I defined a table in LaTeX : \begin{tabular}....\end{tabular}.  Now i want to export that table to an image (PNG or something}.  It is possible? How can i do that?
91611
I'm using the graphics package and I can insert my graphic into the document without any difficulty, apart from the fact that it's huge!  I am using the following command:  \documentclass{article}  \usepackage{graphics}    \begin{document}    \begin{figure}[b]    \centering    \includegraphics{cinema}    \caption{Fig. 1: Simple Past}   \end{figure}  \end{document}   But when I insert the scaling option: [scale=0.75] etc. It won't work and I get the message   Runaway argument? scale=0.75]{cinema} \caption {Fig. 1: Simple Past} \end {figure}  ! Paragraph ended before \Gin@iii was complete. &lt;to be read again&gt;                     \par
7598
I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}
108496
I am trying to use the titlesec package to achieve this but I'm not certain as to what the syntax should be...  \usepackage{titlesec}  \newcommand{\centeredsection}{\titleformat{\section}{\centering}}   Thanks for your help.
40640
I am working on a project and i want to slim it down a litle so please help me with the following. I have a document structure like this:  /DocumentRoot  |-main.tex  |-title.tex  |  |-/chapter-1  |  |-/images  |  |-chapter-1.tex  |  |-/chapter-2     |-/images     |-chapter-2.tex   My document is like this:  \begin{document} \include{./title} \include{./chapter-1/chapter-1} \include{./chapter-2/chapter-2} \include{./chapter-3/chapter-3} \end{document}   in my chapters i use both some images and some heavy tikz plots so i use externalize and  draft options for quicker compilation. But i want the images to be placed in the respective chapter folders but for example in chapter 3 this works:  \includegraphics[width=\linewidth]{./chapter-3/images/img.jpg}   and this doesn't  \includegraphics[width=\linewidth]{./images/img.jpg}   for some reason xelatex has problems with the relative paths of included chapters. I also want to control the location output and the naming of the externalized tikz documents. Any help with that? I am working with miktex and texworks.
36428
A continuation of .  I'm fighting a page-limit in a single-column layout and I need to put a Figure and a Table side-by-side and provide them with independent captions. However, the style guide for the publishers (LNCS) wants Figure captions below and Table captions above (probably something to do with ).   =======================================================  If I adapt @lockstep's floatrow example from  accordingly to have a Table caption above ...  \documentclass{article}  \usepackage{floatrow} % Table float box with bottom caption, box width adjusted to content  %% ********************************** %% just adding \captop to original example %% ********************************** \newfloatcommand{capbtabbox}{table}[\captop][\FBwidth]  \usepackage{blindtext}   \begin{document}  \blindtext  \begin{figure} \begin{floatrow} \ffigbox{%   \rule{3cm}{3cm}% }{%   \caption{A figure}% } \capbtabbox{%   \begin{tabular}{cc} \hline   Author &amp; Title \\ \hline   Knuth &amp; The \TeX book \\   Lamport &amp; \LaTeX \\ \hline   Knuth &amp; The \TeX book \\   Lamport &amp; \LaTeX \\ \hline   Knuth &amp; The \TeX book \\   Lamport &amp; \LaTeX \\ \hline   \end{tabular} }{%   \caption{A table}% } \end{floatrow} \end{figure}  \end{document}   =======================================================  The problem becomes clear ...    =======================================================  The floatrow doesn't correctly line up the Table and Caption. I reluctantly tried to use vspace to solve the problem, but it didn't work out.  Any suggestions on how to get these two to align? I'm happy to accept any alignment that ensures that the Table and Figure fit within the same "box".  (A similar-ish question was , but specific for subfig and with a very localised problem it seems.)
117210
I know I'm not supposed to use subsubsections, but I have this hierarchical structure that I need to describe so I have to use them. I want to define a subsubsection page that looks like the picture, basically Section Title/Subsection title - Subsubsection title. I've played with the section title to generate the image. How can I achieve that result?    \documentclass{beamer} \usetheme[sectionpage=none, progressbar=frametitle, numbering=fraction]{metropolis}  \begin{document} \section{Section Title} \subsection{Subsection Title - Subsubsection title} \subsubsection{Subsubsection title} \frame{\subsectionpage} %ideally I'd have a \subsubsectionpage command \end{document}
61857
Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else).      \documentclass[12pt]{article} \usepackage[utf8]{inputenc}  \usepackage[english]{babel} \usepackage[titles]{tocloft} \usepackage{titlesec} \usepackage{titletoc}  \addto\captionsenglish{ \renewcommand*\contentsname{\centerline{TABLE OF CONTENTS}}}  %\renewcommand{\thesection}{CHAPTER} %\renewcommand{\cftsecpresnum}{Chapter \thesection} \titleformat{\section}[display]% {\null\vskip1em\sffamily\bfseries\filcenter}{Chapter \thesection}{0em}{}[] \titlespacing*{\section}{0em}{1em}{1em}  \titlecontents{section} [1.5em] % ie, 1.5em (chapter) + 2.3em {} {\contentslabel{1em}} {\hspace*{-1.5em}} {\titlerule*[0.5pc]{.}\contentspage}  \begin{document} \newpage \tableofcontents \newpage  \section{Section One} \section{Section Two} Content \end{document}   The commented out code is what I've already tried. The first one just changes the number to "CHAPTER" and doesn't move the text in the ToC (so it just overlays on top of the name of the section), and if I include "\thesection" after "CHAPTER" it creates an infinite loop definition error. The second one causes no differences, and the code still compiles.  Thanks!
26505
I think I'm not going to solve my problem with the Floats and positioning of figures. I have 4 diagramms and I need to place them on two pages and at the end of the second page the caption for all 4 figures. So two figures on each page. For the the diagramms on the second page I need to place the upper image near to the top because I need some place for the caption. On the page before I need both figures to be centered in the middle with some spacing between them. So this is my code:   \begin{figure}[c] \centering \includegraphics[width=\linewidth]{45.pdf} \end{figure} \begin{figure}[c] \centering \includegraphics[width=\linewidth]{46.pdf} \end{figure} \makeatletter \setlength{\@fptop}{0pt} \makeatother \begin{figure}[t!] \centering \includegraphics[width=\linewidth]{47.pdf} \captionsetup[figure]{font=small,skip=0pt} \includegraphics[width=\linewidth]{48.pdf} \caption{Konzentrationsprofile von Al, Re, Ta und W entlang der &lt;110&gt;-Richtung in der UC. } \end{figure}   The problem for the secong page was solved, but the figures on the first page were also forced to the top which I don't want!
772
I'm writing a document which contains a lot of big figures and tables. Usually I use [htb] for the float position, however, when the float occupies an entire page, it's placed in the next page, O.K!, but when I continue writing, the float jumps to the last page, E. G.:  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{blindtext} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \blindtext \begin{table}[htb] \centering \caption{Example table} \begin{tabularx}{\textwidth}{X} \toprule \blindtext \blindtext \blindtext\\ \bottomrule \end{tabularx} \end{table} \Blindtext \end{document}      Why the table is placed in the last page intead of the second page and continues the text in the last page? how can I avoid this?
53044
I want to put a table and a figure side-by-side. The table should fill two third of the text width, and the figure the last third.  So I'd like to achieve one of the following effects (which are equivalent in my case):   One table with 3 columns. The first two columns contain text, the third column contains a lengthy image. The height of the image should be determined by the height of the whole table, if that's possible Or, a divided page like in newspapers. On the left side I have the table, on the right side the image.   What I have tried:  \begin{multicols}{2} \begin{tabular}{ l l } Text &amp; Text \\ Text &amp; Text \\ ... &amp; ... \\ \end{tabular} \vfill \begin{figure}[H]     \includegraphics[]{images/image} \end{figure} \end{multicols}   But this places the picture directly on top of the table.  I also tried using \usepackage[export]{adjustbox} and \includegraphics[right]{images/image} but the caption is still in the center of the page and therefor on top of the table.
1618
I have the simple following document:  \documentclass[10pt,a4paper]{report} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \usepackage{algorithm,algcompatible} \begin{document}     \tableofcontents     \listoffigures     \listoftables     \listofalgorithms  \chapter{Chapter First} This is my chapter first.  \chapter{Chapter Two}    This is my chapter two.  \section{sec 1}  \begin{table}     \centering     \caption{my table}     \label{tab1}     \begin{tabular}{|c|c|}         \hline 1 &amp; 2 \\          \hline 3 &amp; 4 \\          \hline      \end{tabular}  \end{table}  \subsection{subsec 1}  \begin{algorithm}     \caption{(\textit{The EGl-FOM})}     \label{myalg}     \begin{algorithmic}[1]         \STATE Choose          \STATE Use the          \STATE Compute $\alpha_m$         \STATE Compute $\lVert R_m\rVert_F=h_{m, m+1}|e_m^T\alpha_m|$.     \end{algorithmic} \end{algorithm}  \subsubsection{subsubsec 1}  \end{document}   I am going to hide chapter, section, subsection and subsubsection titles about chapter two from table of contents. Furthermore, I want to hide tables, figures and algorithms titles about chapter two from list of tables, figures and algorithms. Is there a proper way to do these things?
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*}
75189
In Lyx I'm using float figures.   I have to put three pictures one after the other, so three different float figures.   When I output a pdf, the floats all appear at the top of three different pages.  Why is this happening?
118966
I am using the . To make an appendix with tables and figures I am using the command \appendix. After it, I simply continue using \section to make sections.  I noticed that if I use \appendix, then a period is added after the number of the section, say "A.1. Sample section", which is good according to the Koma Script manual. On the other hand, this dot is added also to the preceding sections, i.e. those before \appendix was called. Indeed I get something like "1. Introduction" which I don't want.  For the sake of clarity, there is no dot after the section number if \appendix is not at all called.