Here is my attached pdf file shot. When I compile my LyX document these figures go out of the window. Actually these are 10 sub figures whereas only 5 are visible in the pdf file after compiling. Please help where am I doing wrong
85494
I have three images and I want to align them in the way that one image is above the other two. Here's an example:    How can I achieve this? For my other figures I use the subcaption package, but I am not able to align the pictures that way with it.    Thanks for all your replys! The answer that is working for me is the one supposed by karlkoeller:  \documentclass{article} \usepackage{graphicx} \usepackage{subcaption}  \begin{document}  \begin{figure} \centering \begin{subfigure}[b]{.45\linewidth} \includegraphics[width=\linewidth]{example-image-a} \caption{A mouse}\label{fig:mouse} \end{subfigure}  \begin{subfigure}[b]{.45\linewidth} \includegraphics[width=\linewidth]{example-image-b} \caption{A gull}\label{fig:gull} \end{subfigure} \begin{subfigure}[b]{.45\linewidth} \includegraphics[width=\linewidth]{example-image-c} \caption{A tiger}\label{fig:tiger} \end{subfigure} \caption{Picture of animals} \label{fig:animals} \end{figure}  \end{document}
90825
I created a document in latex. The numbers of pages appears on pdf, but I printed the pdf and numbers don't appear.   Somebody can help me ?  Example of one of my pages:    my preamble code:  \documentclass[12pt,twoside,a4paper,openright]{report} \usepackage{color} \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref} \usepackage[official]{eurosym} \usepackage{gensymb} \usepackage[lmargin=3.0cm,rmargin=2.0cm,tmargin=2.0cm,bmargin=2.0cm]{geometry} \usepackage{fancyhdr} \usepackage{graphicx} \graphicspath{  {fig/} } \usepackage{mathtools} \usepackage[round]{natbib} \usepackage{xr} \usepackage{siunitx} \usepackage{booktabs, multicol, multirow} \usepackage{pdflscape} \usepackage{emptypage} \usepackage{epstopdf} \usepackage{setspace} \usepackage{nomencl} \usepackage{tabularx} \usepackage{amsmath} \usepackage{booktabs} \usepackage{ragged2e} \usepackage{tikz} \usepackage{gensymb} \usepackage{chemformula}  \onehalfspace   \pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyfoot[RO,LE]{\thepage} \fancyhead[RO]{\slshape \rightmark} \fancyhead[LE]{\slshape \leftmark}  \begin{document} \pagenumbering{roman}  \tableofcontents \listoffigures \listoftables  \cleardoublepage \clearpage \pagenumbering{arabic}  \input{Intro}  \end{document}
43779
I am trying to include a figure into LaTeX from a paper originally created using MS Word. I have already converted all the text/equations into LaTeX but I can't figure out how to get the figures over without re-drawing them using LaTeX code (which I do not want to do). The image is a plain box (like a tabular) one row by 7 columns with numbers inside each cell. Then I inserted arrows of varying length above and below the box (several short ones and one much longer).    I am trying to use the  package with the \includegraphics command.   I copied the figure (box and arrows) from my original article into a blank Word doc. The figure only takes up the first 4 or 5 lines of the blank document. I then selected/highlighted the image and printed the selection using 'PDFCreator'. This allowed me to save the image as a .eps file. I then copied and pasted the eps file into the folder where all my .tex files are saved.  When I compile the document using pdftexify there is a blank space where the image should be. In the console I get the following message when I compile the document:  [27] &lt;Fig3-eps-converted-to.pdf, id =105, 391.4625pt x 74.2774pt&gt; &lt;use Fig3-eps-converted-to.pdf&gt; Overfull \hbox 1.46153pt too wide) in paragraph at lines 511--516 []   My code looks like this:  \documentclass[12pt]{article}  \usepackage{graphicx} \usepackage{epstopdf} \begin{document}  %Text  \includegraphics{fig3.eps}  %text  \end{document}   I have read the sections on graphics in 'LaTeX: A Document Preparation System' and 'The Not So Short Introduction to LaTeX2e' but I still can't figure this out. Should I maybe use a PNG image since it is a pretty basic figure? Any advice on how to properly transfer images from a word doc to .eps format and/or how to get those .eps files into LaTeX properly would be a huge help.
17368
I have an Illustrator file that's behaving strangely when I print it to PDF. Basically, it adds small lines around shapes; I included a zoomed-in screenshot.    If I save the file as PDF, the lines don't appear but then the file itself is huge: 30MB. Has anyone seen this issue and if so, how do you solve it?  Thanks.
49348
I have a .png screenshot and I want to insert it in a  LyX document.    However, the screenshot needs scaling to fit in my column width. Downscaling (or upscaling) the image, if done wrong, gives all kinds of bad, unprofessional results.  How do you embed screenshots properly? Is there a way to change the interpolation mode, or disable it altogether (and does it acually help)?
112734
Tables, graphs and images don't show up at the same position it was inserted in the TeX file. I tried to suppress floating by using:  \usepackage{float} ... \begin{figure}[H] {15cm} \caption{}% \label{} \fbox{\includegraphics[width=\hsize]{image.jpeg}} \end{figure}   also  \begin{figure}[!htbp] {15 cm} ...  \usepackage{placeins} \FloatBarrier \begin{figure}[H] {15cm} ...   but these commands keep insisting on moving figures, tables and graphs to unexpected locations. I'm using repUERJ template available   Does anyone know why it happens?
26047
I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.  Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.  Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.    I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.  Some things I've considered:   the  documentclass; but with about 1500 figures, wouldn't this mean over-modulization?  tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before the draft option could be invoked   Here's a MWE to play with  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{axis}         \addplot {x^2};     \end{axis} \end{tikzpicture}  \end{document}
122891
The following latex code prints rows one at a time. However all the cells of the rows don't come out aligned. How can I fix it.   \documentclass{beamer}     \usepackage{tabularx}    \begin{document}  \begin{frame}{}  \begin{tabularx}{3.50in}{lXX}           \hline           &amp; Observation &amp; Conclusion \\           \hline             \uncover&lt;2-&gt;{1.} &amp; \uncover&lt;2-&gt;{Observation 1 } &amp; \uncover&lt;2-&gt;{Conclusion 1} \\   \uncover&lt;3-&gt;{2.} &amp; \uncover&lt;3-&gt;{Observation 2} &amp; \uncover&lt;3-&gt;{Conclusion 2} \\           \end{tabularx}      \end{frame}   \end{document}   The output looks as follows :    As we can see cells in first column do not align with the rest of the rows. Will appreciate any input as to how to fix this.
100699
Hi I've created figures with standalone and pgfplot package. The figures output size are different to one another but more importantly the font size are different. I would like all figures to be of same output size and font size. Should this be controlled in the individual figure files or the main.tex file? My text file of data can be found here   First figure file ...      \documentclass{standalone}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}     \providecommand{\plotdataDir}{plotdata}     \begin{tikzpicture}     \begin{loglogaxis}[xlabel={$Aspect\:Ratio$},     ylabel={$\mu_c$},ymajorgrids,xmax=1e7,     ytick={0.1,1,10,100,1e3,1e4,1e5,1e6},ymax=1e7,ytick pos=left,xtick pos=left]     % G14     \addplot[blue,thick] table[x=AspectR,y=G14] {\plotdataDir/effectivemu.txt}         node[fill=white,pos=0.85,font=\tiny]{$1,250,000$};     % G15     \addplot[blue,thick] table[x=AspectR,y=G15] {\plotdataDir/effectivemu.txt}         node[fill=white,pos=0.52,font=\tiny]{$\mu_r=\infty$};     \end{loglogaxis}     \end{tikzpicture}     \end{document}     Second figure file ...      \documentclass{standalone}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}     \providecommand{\plotdataDir}{plotdata}     \begin{tikzpicture}     \pgfplotsset{set layers}     \begin{semilogxaxis}[scale only axis,     xlabel={$turns \times I \left(n \cdot A\right)$},     ylabel={$B_z \left(T\right)$},xmin=1,ymin=0,xmax=100000,     xtick pos=left,     ytick pos=left,xmajorgrids,legend entries={$Supermendur         \:2V$,$Metallic\:Glass$},legend pos=north west]     \addplot[blue,ultra thick] table[x=nxI,y=Bfield1] {\plotdataDir/ellipbmoment.txt}         node[fill=white, fill opacity=0.7, text opacity=1,anchor=south east,font=\tiny]        {$\mu_r=80,000$};     \end{semilogxaxis}     \end{tikzpicture}     \end{document}     And the main document ...      \documentclass{article}     \usepackage{standalone}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}      \begin{document}      \providecommand{\plotdataDir}{tikdir/plotdata}     \begin{figure}[here]     \centering     \includestandalone{tikdir/effectivemu}     \caption{test}     \end{figure}      \providecommand{\plotdataDir}{tikdir/fig1}     \begin{figure}[here]     \centering     \includestandalone{tikdir/fig2}     \caption{test}     \end{figure}      \end{document}   If the main document.tex file is run as above fig1 and fig2 are different sizes. I am aware I can control the width and height of image by using \includestandalone[width=\textwidth] but doesn't solve the font size differences between the plots. You can see I adjusted the font size for nodes as \tiny but \tiny is different for both plot. Should this be adjusted globally if so how?  Ideally the preferred structure I would like is of fig2. It seems fig1 has smaller width than fig2 thereby stretching the font size.
44242
I use LyX 2.0.4 (on Mac OS 10.7) and would like it to do the following:   whenever I hit "View" it should automatically save the pdf output of the lyx file in the same folder the lyx file resides. Whenever I hit "View" again it should overwrite the older version of the pdf. Is that possible?  This is similar to the behavior I know from TeXShop.
119334
I have an article with the following figure (there are 2 small charts near each other, horizontally):  \begin{figure}[h]   \centering   \includegraphics{left-graph}   \includegraphics{right-graph}   \caption{My caption}\label{mylabel} \end{figure}   I reference the figure with:  Figure~\ref{fig:result} shows bla-bla-bla.   The rendered PDF shows ?? instead of the figure number. I tried with the reference occurring both before and after the figure (in the LaTeX source), but it didn't make a difference.  The relevant packages I'm using are below (those removed are for titling).  \usepackage[english]{babel} \usepackage{graphicx} \usepackage[letterpaper]{geometry} \geometry{top=1.0in, bottom=1.0in, left=1.5in, right=1.0in} \usepackage{flafter} % make sure figures do not appear before their text \usepackage{sidecap} % use side captions for floats \usepackage{subfig} % subfloats   I'm not sure what's wrong here, advice is appreciated. I'm using MiKTeX 2.8.  Thank you!
18945
I am just starting to use Latex to write a university report. It does feel like a steep learning curve, and is at times frustrating, but I guess it is because I'm very new to it.  I got a question regarding TOC/figures/tables.  Basically, my document structure currently gets displayed in TOC as follows:    Contributions *section*   Summary *section*   List of Figures *section*   List of Tables *section* 1 Introduction *chapter*   1.1 Background *section*   1.2 Other Section *section* 2 Other Chapter *chapter*   However, I'd like it to be displayed like this:  Contributions Summary List of Figures List of Tables 1 Introduction   1.1 Background   1.2 Other Section 2 Other Chapter   Notice, that the first four unnumbered sections are not indented, but keep the indentation of numbered sections. Also, related to this question. I'd like my Lists of Tables/Figures to be NOT indented.   For example, instead of this:  List of Figures    1. Caption ------------------------------------------ 4   Have this:  List of Figures 1. Caption --------------------------------------------- 4   Thanks for you help!  ** EDIT (added more info)  Here is the minimal working example:  \documentclass[11pt]{report}  \usepackage{graphicx}  % Remove "Chapter" from title. No break between # and name. \makeatletter \renewcommand{\@makechapterhead}[1]{% {\setlength{\parindent}{0pt} \raggedright \normalfont \bfseries\Large\thechapter.\quad\ #1 }} \makeatother  \begin{document}  \pagenumbering{roman}  \section*{Contributions} \addcontentsline{toc}{section}{Contributions}  This is a contributions sections.   \section*{Summary} \addcontentsline{toc}{section}{Summary}  This is a summary section.  \cleardoublepage \tableofcontents %TOC  \cleardoublepage \listoffigures \addcontentsline{toc}{section}{List of Figures} %List of Figures  \pagenumbering{arabic} \chapter{Introduction}  Welcome to introduction chapter.  \section{Background}  This is a background section.\ref{capt} \begin{figure} \caption{Sample Figure.} \label{capt}  %must be after caption \end{figure}   \end{document}
104733
I have a table, which seems to be too wide for my page and it pops out of the page border. In lyx, it is like  And in PDF, it looks like, it is going out of the page border.   How can I address such issue ?
88628
I have a problem that I cant solve it alone even I have read several threads here. The goal is to have 2 tables side by side with subcaption (a) and (b). However, I dont know where my mistakes are, because the tables wont appear as I would like to. Here is the code:  [![\documentclass{article} \usepackage{adjustbox} \usepackage{graphicx}  \begin{document}  \begin{table}\[!htb\]     \caption{Global caption} %   \resizebox{10cm}{!}{     \begin{minipage}{.5\textwidth}         \caption{This is a very very very long Caption}         \centering             \begin{tabular}{@{\extracolsep{1pt}}lcccc}                  \\\hline                  \hline \\                 Statistic &amp; \multicolumn{1}{c}{Mean} &amp; \multicolumn{1}{c}{St. Dev.} &amp; \multicolumn{1}{c}{Min} &amp; \multicolumn{1}{c}{Max} \\                  \hline \\                  A &amp; 1.000 &amp; 0.000 &amp; 1     &amp; 1 \\                  B &amp; 0.968 &amp; 0.76  &amp; 0.138 &amp; 1.000 \\                  C &amp; 0.969 &amp; 0.009 &amp; 0.917 &amp; 1.000 \\                  D &amp; 0.966 &amp; 0.070 &amp; 0.495 &amp; 0.83 \\                  \hline \\             \end{tabular}      \end{minipage}%      \begin{minipage}{.5\textwidth}         \centering         \caption{This is a very very very long Caption}         \begin{tabular}{@{\extracolsep{1pt}}lcccc}          \\\hline          \hline \\         Statistic &amp; \multicolumn{1}{c}{Mean} &amp; \multicolumn{1}{c}{St. Dev.} &amp; \multicolumn{1}{c}{Min} &amp; \multicolumn{1}{c}{Max} \\          \hline \\                  A &amp; 1.000 &amp; 0.000 &amp; 1     &amp; 1 \\                  B &amp; 0.968 &amp; 0.76  &amp; 0.138 &amp; 1.000 \\                  C &amp; 0.969 &amp; 0.009 &amp; 0.917 &amp; 1.000 \\                  D &amp; 0.966 &amp; 0.070 &amp; 0.495 &amp; 0.83 \\          \hline \\         \end{tabular}      \end{minipage} %}   \end{table}   \end{document}][1]][1]   Thank you so much for your time. I really appreciate.  Best, Christine
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)
25722
I want to add an image to my paper but I have a problem.  When I add the image with just \includegraphics[]{} tag, everything works fine, and the picture shows up when I compile my document.  When I use \begin{figure} \includegraphics[]{} \end{figure} - syntax the image does not appear in the compiled document.   The relevant part of my header include is :   \usepackage{graphicx}  \graphicspath{ {pics/} }   And later on I add the image with this block:  %This does not work  \begin{figure}   \centering     \includegraphics[width=.4\textwidth]{generalPolya}   \label{generalPolya} \end{figure}    %This works  \includegraphics[width=.4\textwidth]{generalPolya}   I guess it's some sort of issue in the graphics package, but I've copied the setup from a previous paper I had, so it should work. Any ideas on what's wrong? Thanks in advance.  Edit:  Thanks for all the responses. I created a minimal working example. Apparently multicols messes with the figure tag:  \documentclass[]{article} \usepackage{multicol} % Used for the two-column layout of the document \usepackage{amsmath} \usepackage{graphicx} \graphicspath{ {pics/} } \title{\vspace{-15mm}\fontsize{24pt}{10pt}\selectfont\textbf{Lorem ipsum}} % Article title \begin{document} \maketitle % Insert title \begin{multicols}{2} % %This does not show up \begin{figure}[h]     \includegraphics[width=.4\textwidth]{generalPolya} \end{figure} %This shows up. \begin{center}         \includegraphics[width=.5\textwidth]{chair} \end{center} \end{multicols} \end{document}   What shows up after compiling the document is this    What is wrong with this syntax?
91922
I'm making an ordinary table in LyX and the table is going off-page. Seems that LyX isn't wrapping text inside the cells, and having done a search here on SE I still cannot find a solution which would simply   Restrict the overall table width to page width; and Wrap text inside table cells   I've tried some of the advice offered in other answers to this question, but it seems to scale the entire table which is definitely not what I want. I just want text wrapping inside the cells. Thanks.