This is my draft:  \appendix \section{Grafer} \begin{figure}[!h] \begin{subfigure}{.5\textwidth}   \centering   \includegraphics[width=\linewidth]{Graf_forsøk1.png}   \caption{57\textdegree C}   \label{fig:f1} \end{subfigure}% \begin{subfigure}{.5\textwidth}   \centering   \includegraphics[width=\linewidth]{Graf_forsøk2.png}   \caption{51\textdegree C}   \label{fig:f2} \end{subfigure} \begin{subfigure}{.5\textwidth} \centering \includegraphics[width=\linewidth]{Graf_forsøk3.png} \caption{49\textdegree C} \label{fig:f3} \end{subfigure} \begin{subfigure}{.5\textwidth} \centering \includegraphics[width=\linewidth]{Graf_forsøk4.png} \caption{42\textdegree C} \label{fig:f4} \end{subfigure} \caption{Grafer/Primærdata} \label{fig:fig} \end{figure} \section{Rådata} \captionof{table}{Temperaturer for blandinger ved ulike utgangstemperaturer}\label{sophisticatedtable} \centering \begin{tabular}{ |p{3cm}|p{3cm}|p{3cm}| }  \hline Forsøk nr. &amp; T ved tilsetning av TBC &amp; T etter 5 min.\\ \hline1&amp;58\textdegree C&amp;57\textdegree C\\ \hline2&amp;52\textdegree C&amp;51\textdegree C\\ \hline3&amp;50\textdegree C&amp;49\textdegree C\\ \hline4&amp;43\textdegree C&amp;42\textdegree C\\  \hline \end{tabular}   This is what is generated:   I cannot for the life of me get the figure to appear under appendix A. I've tried h,h!,!h,ht and the figure still appear at the bottom of the page. How can I get this figure to appear under the section that I've written it?
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?
120613
\begin{table}     \begin{tabular}{|l|l|l|l|}     \hline     ~                 &amp; Horns rev 1 &amp; Horns rev 2 &amp; Anholt \\ \hline     Antal møller      &amp; 80   &amp; 90 &amp; 111    \\ \hline     Effekt pr. mølle  &amp; 2 MW   &amp; 2.3 MW  &amp; 3.6 MW \\ \hline     Areal             &amp; 20km$^2$ &amp; 33km$^2$  &amp; 88km$^2$      \\ \hline     Samlede effekt    &amp; 160MW  &amp; 209MW &amp; 400MW \\ \hline     Effekt pr. areal  &amp; 0.008 MW/m$^2$ &amp; 0,0063 MW/m$^2$ &amp; 0,0045 MW/m$^2$ \\ \hline     Km kabel          &amp; 55  &amp; 72  &amp; 185 \\ \hline     kWh-pris          &amp; 48 øre &amp; 51.8 øre  &amp; 105.1 øre\\ \hline     Pris (mia. kr.)   &amp; 2  &amp; 3.5 &amp; 9     \\ \hline     Rotordiameter     &amp; 80 meter &amp; 93 meter  &amp; 120 meter \\ \hline     \setlength{\unitlength}{1mm}         \makebox (16,40)[t]{Formation} &amp; \raisebox{0mm}[42mm][1mm] {\includegraphics[width=0.3\textwidth, height=40mm]{Horns_rev_1.png}}     &amp; {\includegraphics[width=0.3\textwidth, height=40mm]{Horns_rev_2.png}}  &amp;     {\includegraphics[width=0.3\textwidth, height=40mm]{Anholt.png}}  \\ \hline     \end{tabular}  \end{table}   Insert text here  I can't seem to find an answer that is working for me
85145
I'm trying to set up a main figure containing three sub figures. The idea is to split them in such way that it shows a two columns figure where the second column is made out of two sub figures located in a row configuration. This might be hard to imagine, but the idea is to get something like this:    where each sub figure has its own label and caption.   My closest attempt consisted in an array/minipage configuration. This was:   \documentclass[11pt,a4paper,oneside]{article}     \usepackage{array}     \usepackage{caption}     \usepackage{subfigure}     \begin{document}         \begin{center} \begin{figure} \begin{array}{cc} \multirow{2}{*}{ \begin{minipage}[b]{0.45\linewidth} \centering \includegraphics[scale=0.6]{smiley.eps} \caption{Happy Smiley} \label{fig:minipage1} \end{minipage}}  &amp;  \begin{minipage}[b]{0.45\linewidth} \centering \includegraphics[scale=0.3]{smiley.eps} \caption{Happy Smiley} \label{fig:minipage1} \end{minipage}\\ &amp; \begin{minipage}[b]{0.45\linewidth} \centering \includegraphics[scale=0.3]{smiley.eps} \caption{Happy Smiley} \label{fig:minipage1} \end{minipage} \end{array} \end{figure} \end{center}     \end{document}   but the result wasn't good.    So, is this a right approach or should I try something different?   Thanks in advance.
100389
I have an article to be written with 1 inch margins, with figures of course in the figure environment. [...] I now narrowed down the problem to the use of \abstract{...}. I use  \documentclass[12pt]{article}    \usepackage[a4paper, margin=1in]{geometry} \usepackage{graphicx,authblk}     \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}    \usepackage{csquotes}  \begin{document}     \abstract{Lorem ipsum dolor sit amet, \ldots}  \section{Test}     Test  \begin{figure} \centering \includegraphics[width=0.8\textwidth]{fig_Test.pdf} \caption{This is a long sentence used as caption. It has  to be so long to illustrate my problem.} \label{fig_Test} \end{figure}  \end{document}   If I remove the \abstract directive, everything works fine. But as soon as the \abstract instruction is there, its formatting (narrower textblock than standard) is kept for the subsequent sections, and the captions are wider than the text block. What to do, if I do want to provide an abstract for the paper?
20634
Is it possible to make a 3 by three grid of plots in a latex figure and then label only the columns and rows, rather than needing captions for each? So for example, I'd like columns to be labelled A, B and C and the rows 1, 2, and 3. I'd then be able to reference square (2, B) as the middle square.   I'm using a figure environment with 9 subfigure environments  \begin{figure*}[t]     \begin{subfigure}{0.3\textwidth}         \includegraphics[width=\linewidth]{/path/to/img1}     \end{subfigure}%     \begin{subfigure}{0.3\textwidth}         \includegraphics[width=\linewidth]{/path/to/img2}     \end{subfigure}%     \begin{subfigure}{0.3\textwidth}         \includegraphics[width=\linewidth]{/path/to/img3}     \end{subfigure}      \begin{subfigure}{0.3\textwidth}     \includegraphics[width=\linewidth]{/path/to/img4} \end{subfigure}% \begin{subfigure}{0.3\textwidth}     \includegraphics[width=\linewidth]{/path/to/img5} \end{subfigure}% \begin{subfigure}{0.3\textwidth}     \includegraphics[width=\linewidth]{/path/to/img6} \end{subfigure}      \begin{subfigure}{0.3\textwidth}     \includegraphics[width=\linewidth]{/path/to/img7}     \caption{Smad7 reproduced} \end{subfigure}% \begin{subfigure}{0.3\textwidth}     \includegraphics[width=\linewidth]{/path/to/img8} \end{subfigure}% \begin{subfigure}{0.3\textwidth}     \includegraphics[width=\linewidth]{/path/to/img9} \end{subfigure}       \caption{} \end{figure*}
121933
%---------------------------------------------------------------------------------------------------------- % \documentclass[11pt,a4paper,reqno,fleqn,xcolor=x11names]{book} % %---------------------------------------------------------------------------------------------------------- % % \usepackage{amsthm,amsmath,amsfonts} % \usepackage{titlesec} % \usepackage[dotinlabels]{titletoc} % more advanced but essential here \usepackage[english]{babel} %   \titleformat{\section}[frame] % {\bfseries\itshape\fontsize{12.8}{14}\selectfont}         {}{8pt} {\;\;\thesection\hskip 0.7em}  \begin{document}  \chapter{This is Chapter No 1}  \section{A titlesec section in a frame - too tall and not shaded}  \end{document}
24303
How can I draw  this is  figure?      \documentclass[12pt]{book}  \usepackage[top=25mm,bottom=25mm,left=25mm,right=25mm]{geometry}  \usepackage[all]{background}  \usepackage{ptext,xcolor} %\usepackage{showframe}  \usepackage{tikz} \usetikzlibrary{calc}   \usepackage{changepage} \strictpagecheck   \usepackage{fancyhdr} \fancyhf{} \fancyhead[LO,RE]{\thepage} \fancyhead[LE]{عنوان کتاب} \fancyhead[RO]{\leftmark} \renewcommand{\headrulewidth}{0pt} \pagestyle{fancy}   \usepackage{xepersian} \settextfont[Scale=1.2]{Yas}  \linespread{1.5}  \newcommand*{\vsp}{2cm} \newcommand*{\hsp}{2.5cm}  \newcommand{\MyTikzLogo}{%  \begin{tikzpicture}[remember picture,overlay] \checkoddpage \ifoddpage     \draw  [color=magenta,line width=1mm] ($(\paperwidth+\hsp,-\vsp)$) --($(\hsp,-\vsp)$); \else     \draw  [color=cyan,line width=1mm] ($(0,-\vsp)$) --($(\paperwidth-\hsp,-\vsp)$); \fi  \end{tikzpicture} }  \SetBgContents{\MyTikzLogo} \SetBgPosition{current page.north west} \SetBgOpacity{1.0} \SetBgAngle{0.0} \SetBgScale{1.0}  \begin{document}  \chapter{titel}  \section{sec }  \ptext[1-40]   \end{document}
57111
\begin{figure}     %\centering         \begin{minipage}[h]{0.58\textwidth}         \centering         \includegraphics[scale=0.4,trim=12mm 15mm 12mm 15mm]{fig1}         \end{minipage}         \begin{minipage}[h]{0.38\textwidth}         \centering         \include{fig2}         \end{minipage} \end{figure}   I get the fig1 nicely placed in the center of the left side BUT fig2 'sank' at the bottom of the right side. I dont really know what's wrong with the code. Actually fig2 is a table which i store as a tex file with codes only, something like:  \begin{tabular}{|c|c|}     \hline     aa  &amp; bb  \\ \hline     0 &amp; 10 \\ \hline     1 &amp; 2 \\ \hline \end{tabular}   Hope someone will help me fix this. Thanks in advance.
58979
\documentclass[border=10pt]{standalone} \usepackage{pstricks-add,amsmath,amssymb} \begin{document} \begin{pspicture}[showgrid,arrowinset=0](0,-1)(4,2) \begin{psmatrix}[colsep=.5cm,rowsep=1.2cm] &amp; [name=A]\,\,\,\,\,\,\,\,\,\,\,\,$M_{0,4} \times \mathbb{P}^1 $\\ [name=B]$B$ &amp; [name=C]\,\,\,\,\,\,$M_{0,4}$ \end{psmatrix} \pcline[nodesep=.3]{-&gt;}(B)(C)       \nbput{$\kappa$} \pcline[nodesep=.3]{-&gt;}(A)(C)       \nbput[labelsep=.1]{$\pi$} \naput{\foreach \i in {0.1,0.25,0.4,0.55}{%     \pcline{-&gt;}(\i,-.4)(\i,.45)} \nbput[labelsep=.1]{$\sigma_i$}} \end{pspicture} \end{document}     After see all the answers, done :)   \documentclass[border=10pt]{standalone} \usepackage{pstricks-add,amsmath,amssymb} \begin{document} \begin{psmatrix}[colsep=.5cm,rowsep=1.2cm] &amp; [name=A]\qquad $M_{0,4} \times \mathbb{P}^1 $\\ [name=B]$B$ &amp; [name=C] \quad $M_{0,4}$ \end{psmatrix} \psset{arrowinset=0} \pcline[nodesep=.3]{-&gt;}(B)(C)       \nbput{$\kappa$} \pcline[nodesep=.3]{-&gt;}(A)(C)       \nbput[labelsep=.1]{$\pi$} \naput{\foreach \i in {0.1,0.25,0.4,0.55}{%     \pcline{-&gt;}(\i,-.4)(\i,.45)} \nbput[labelsep=.1]{$\sigma_i$}} \end{document}
112192
If I want to print multiple figures in figure, I'm using subfigure in the figure environment. This work quit well and is looking smart, if all figures have the similar height. Now there is this figure which is more than two times higher than the other ones. I would like to order the subfigures like its shown in the following picture:     But I don’t know how to get this into Latex.   My regular code for four subfigures:  \begin{figure} \centering \begin{subfigure}{0.32\textwidth}    \centering    \includegraphics[width=\textwidth]{highone}    \caption{}    \label{fig:a} \end{subfigure} \begin{subfigure}{0.32\textwidth}     \centering     \includegraphics[width=\textwidth]{b}     \caption{}     \label{fig:b} \end{subfigure} \begin{subfigure}{0.32\textwidth}     \centering     \includegraphics[width=\textwidth]{c}     \caption{}     \label{c} \end{subfigure} \begin{subfigure}{0.32\textwidth}     \centering     \includegraphics[width=\textwidth]{d}     \caption{}     \label{fig:d} \end{subfigure} \caption{Blabla.} \label{fig:abcd} \end{figure}   Thank you for your help!
46722
I'm trying to get the figures and labels in my appendices to have the same format as the rest of the document.  In my main thesis.tex file I use:      \backmatter % book mode only     \appendix     \include{Appendix1/appendix1}   and then in the appendix1.tex file I have:      \chapter{Appendix A - Data}     \label{ch:App1}   This produces my appendices as I wish, displaying "Appendix A - Data" in the table of contents etc.  However, it also restarts the numbering of figures and tables.  So for example I would have Figures 5.1, 5.2, ... in Chapter 5, presently I have Figures 1, 2, 3, ... in Appendix A, whereas I would rather something along the lines of Figure A.1 etc.  The same applies to Tables.  Also, when I reference the appendix in an earlier chapter using:      Appendix \ref{ch:App1}   It is referenced as "Appendix 7" (I have 6 preceding chapters) as opposed to "Appendix A" as listed in the contents.  Any help would be greatly appreciated.
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!
44163
How can I add a centered caption to the venn-diagram below the rectangle?   \documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \draw (-2,-1.5) rectangle (3.5,1.5) node[below left]{$U$}; \fill[gray] (0,0) circle (1cm); \fill[gray] (1.5,0) circle (1cm); \draw (0,0) circle (1cm) node {$A$}; \draw (1.5,0) circle (1cm) node {$B$}; \end{tikzpicture} \end{center} \end{document}
75629
Hi I am new to the forum and fairly new to Tex, if I miss anything out please let me know and I will be glad to post it. I am writing up my PhD thesis using Texmaker on a windows system. I have my document organised with a main file and a sub-directory containing chapter 1 to 5. I want to be able to use the labels I created in chapter two for example in the appendix and vice versa. Is there an easy way to do this?   I have tried following the advice of various posts of including the commands \usepackage{xr} and \externaldocument{Chapters/Chapter_2} in the individual chapters but this leads to an error when compiling.   My Preamble is as follows:  \documentclass[12pt,hidelinks,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[greek,spanish,english]{babel} \usepackage{textgreek} \usepackage[version=3]{mhchem} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage{amsmath, amsfonts, pifont, float, color, url} \usepackage[pdftex]{graphicx} \usepackage[style=numeric,backend=biber,sorting=none]{biblatex} \addbibresource{references.bib} \usepackage[pdftex, plainpages=false, pdfpagelabels, bookmarks=true]{hyperref} \usepackage{fancyhdr} \usepackage[center,font={it,small}]{caption}   I then have a section such as this in the main document:  \begin{document} %%... Title page ... \chapter{Theory and Methods} \label{chap:Theory and Methods} \include{Chapters/chapter_2} %%... Other chapters .... \end{document}   In Chapter 2 I have for example a label for a diagram which I may want to reference in other chapters:  \begin{figure}[H] \centering \includegraphics[height=10cm,width=\textwidth]{RF_colour_hi_res.pdf} \caption{Random Forest} \label{fig:2.1 Random Forest} \end{figure}   How can I have this label show up in other chapters after I type \ref ?  Many thanks in advance.  If any other information is required please let me know.   This has been answered in the comments although the references do not appear in the auto complete if they are copied and pasted in they still work.
57926
My MWE:  \documentclass{beamer} \usepackage[english]{babel} \usepackage{calc} \usepackage[absolute,overlay]{textpos} \usepackage{pdfsync} \mode&lt;presentation&gt;  \title[AAA]{AAA} %\subtitle \institute[AAA]{BBB} \author{AAA} \date{BBB}  % Define the title of each inserted pre-subsection frame \newcommand*\titleSubsec{Next Subsection} % Define the title of the "Table of Contents" frame \newcommand*\titleTOC{Outline}  \begin{document}  \section{Section 1}  \begin{frame}\frametitle{Section 1 - A}     \begin{itemize}         \item &lt;1-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}         \vspace{0.5cm}         \item &lt;2-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}     \end{itemize} \end{frame}  \begin{frame}\frametitle{Section 1 - B}     PHOTO \end{frame}  \begin{frame}\frametitle{Section 1 - A}     \begin{itemize}         \item &lt;1-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}         \vspace{0.5cm}         \item &lt;2-&gt; Blablabla:             \begin{itemize}               \item Blablabla                 \item Blablabla                 \item Blablabla                 \item Blablabla                 \item $\cdots\cdots\cdots$             \end{itemize}     \end{itemize} \end{frame}  \end{document}   What I basically want is to get rid of page 2 and page 4 of the pdf output file. That is, on the first slide I want to show item &lt;1>, then I want to show a slide with just a photo, and then I want to show item &lt;1> together with item &lt;2> on a new slide.
6110
Say I have a figure with two subfloats inserted using the subfig package.  When I reference them with \ref{myLabel} I get this     Figure 3.5a and 3.5b.     But what I want is this:     Figure 3.5(a) and 3.5(b).   How can I add the parentheses?
62360
I used some of the solution proposed in this post:    and my code is as follows:  \documentclass{standalone} \begin{document}  \begin{tabular}{c*{11}{@{\,}c}}       2&amp;:&amp;7&amp;=&amp;0&amp;,&amp;$\overline{2}$&amp;$\overline{8}$&amp;$\overline{5}$&amp;$\overline{7}$&amp; $\overline{1}$&amp;$\overline{4}$       \\       {\color{red} 2} &amp;{\color{red} 0 } &amp; &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp; \\       1 &amp; 4 &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\  \cline{1-2}        &amp; 6&amp; 0 &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\        &amp; 5 &amp; 6 &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\   \cline{2-3}        &amp;  &amp; 4 &amp; 0 &amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\        &amp;  &amp; 3 &amp; 5 &amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\  \cline{3-4}        &amp;  &amp;      &amp; 5 &amp; 0 &amp;&amp;&amp;&amp;&amp;&amp; \\        &amp;  &amp;      &amp; 4 &amp; 9 &amp;&amp;&amp;&amp;&amp;&amp;  \\  \cline{4-5}        &amp;  &amp;      &amp;   &amp; 1 &amp; 0 &amp;&amp;&amp;&amp;&amp; \\        &amp;  &amp;      &amp;   &amp;   &amp; 7 &amp;&amp;&amp;&amp;&amp; \\ \cline{5-6}        &amp;  &amp;      &amp;   &amp;   &amp; 3 &amp; 0 &amp;&amp;&amp;&amp; \\        &amp;  &amp;      &amp;   &amp;   &amp; 2 &amp; 8 &amp;&amp;&amp;&amp; \\  \cline{6-7}        &amp;  &amp;      &amp;   &amp;   &amp;   &amp; { \color{red} 2} &amp;{\color{red} 0} &amp;&amp;&amp;     \end{tabular} \end{document}   The goal is to show the repeating decimal part with overline over the repeating decimals. The code does that, but each decimal is overlined in isolation, but I want a continuous overline!  But that does seem to infer with the mechanics of tabular ...