Tagged Questions

{floats} is about the floating environments figure, table and other, custom-defined floats, and concerns issues such as positioning, labelling, captioning, indexing and listing of said floats. For questions specifically about formatting a float caption, consider using {captions}.

learn more… | top users | synonyms (2)

1
vote
1answer
11 views

How to modify default parameters in the Algorithmic Environment module using LyX?

I'm using LyX together with the Springer Journal LaTeX template to write a document. I'm also using the Algorithmic Environment module to create an algorithm layout within my document. The problem is ...
0
votes
0answers
18 views

Reserve whole page for text then whole page for figure

Are there any LaTeX packages that allow you to have alternating whole pages of text and images? I have quite bit of text in my report with large figures that take up almost a whole A4 page. I would ...
1
vote
1answer
40 views

Listing for TeX : how to add every tex command as keywords?

I'm looking for a way to color all LaTeX commands in a listing. I'm currently using a bad way to do it : \lstset{ language=TeX, ...
1
vote
1answer
29 views

caption close to the table in caption of figure

I need guidance for making the picture below. I can't see to put the caption to the right of the small table (a,b,c), as in the picture below. Any ideas? This is my code: \begin{figure*} ...
4
votes
1answer
30 views

Subfigures appear on different lines when one doesn't have caption

I've got three subfigures in a row, and am setting their heights explicitly, as the first two are different widths, but need to appear the same height. The third subfigure needs to caption (it's just ...
1
vote
0answers
28 views

increase margins of floats page

I have several sections in my article, each with a sizable (~22 lines) code listing explaining the concept of that specific section. I do want to float my listings, as they look nasty if broken off ...
4
votes
1answer
37 views

Probsoln customization of solution environment (set as marginpar)

I'm using probsoln, and I want to put the solution as a marginpar and with footnotesize. Please look at the MWE below. Writelatex won't compile, spitting out LaTeX Error: \begin{solutionnew} on ...
0
votes
0answers
19 views

images are after the references

Images are coming after the references (due to confidentiality i cannot upload the code or snapshots). I am using the elsarticle in documentclass with 2 columns. Using Multicols package. used [!ht] ...
1
vote
1answer
27 views

How to make the pdf file that inserted stayed the position I give?

I'd like to typeset the Mathematica code.My solution is Select it (by clicking on the right square bracket ]). Then, following the menu's File>Save Selection As... and saving as a PDF ...
1
vote
1answer
30 views

Add figures to a minipage

I've been trying to add figures to a minipage in lyx but couldn't really find a way. Does someone know how this is done in lyx?
4
votes
1answer
54 views

Insert page of current document as figure

I'm trying to insert a page (that was already typeset, i.e. page < currentpage) of the current document as a figure. Obviously, one could use something like ...
1
vote
1answer
38 views

Tables with the same height but with different number of rows

I want to put two tables side by side. Each table has its own caption and the two have a common caption. I can do that with subfloat: \begin{table} \centering ...
3
votes
2answers
41 views

Is there a way to put subheadings(for maps) in the list of figures?

In my thesis I am going to have a couple of maps and some pictures. All the files are image files so my plan was to enter them with the\begin{figure} coding. This means that they would all show up on ...
2
votes
2answers
34 views

How do I use \bmatrix in a subfigure?

I am trying to put two matrices next to each other with the same caption, but I am having trouble using \bmatrix in the subfigure environment. Here is the code of what I am trying to do: ...
2
votes
1answer
41 views

Insert tables and graph from Excel

I'm writing a report in LaTeX and I'm using excel to calculate, make graphs and tables. What would you recommend me to do to import it to latex? I have tried taking print-screen and import as ...
0
votes
0answers
12 views

Specifying the default behaviour of floats in Koma-Script [duplicate]

I want to specify the default behavior of floats to be htbp and I want to do this in a class definition for the whole document. I already found floatpos in the documentation, but this does not affect ...
1
vote
1answer
24 views

Control the height and the length of a frame

By using the following code, I draw a framed figure that contains an array of 3 rows: \usepackage{framed} \usepackage{float} \begin{document} \begin{figure}[h] \begin{framed} \[ ...
3
votes
1answer
26 views

Floats lost error

I tried to combine this answer: http://tex.stackexchange.com/a/73983/4011 with minipage but got an error: ERROR: LaTeX Error: Float(s) lost. \documentclass{article} \usepackage{showframe}% ...
0
votes
0answers
27 views

New float and \listof command error

I am trying to create a catalogue of photographs using the float package to define a new float called photo. That part worked beautifully. The problem is with the \listof command. When it hits the ...
6
votes
1answer
39 views

Problem with wrapfig and itemize

If I use an image with wrapfig into or near an itemized list, the result is the image overlapped to the text (see picture). I red a lot of posts related to wrapfig and itemize incompatibility but no ...
1
vote
1answer
54 views

Table of tables with captions?

Minimal example: \documentclass{scrreprt} \begin{document} \begin{figure} \centering \begin{tabular}{cc} \begin{figure} \begin{tabular}{cc} 0 & 1 \\ 2 & 3 \\ \end{tabular} ...
1
vote
1answer
26 views

Get the caption of figures to build a personalized list of figures

I would like to build a very simple list of figures (as required by Cambridge Journals). They should be ordered to have a progressive number, thus in order of appearance. First all the figures and ...
1
vote
2answers
17 views

Reference list of figures with autoref in continuous text

How can I create a reference with \autoref{} to the list of figures (or glossary, list of tables, etc.) within continuous text? Minimal Example \documentclass{article} \usepackage{caption} ...
1
vote
1answer
21 views

How to force caption above a custom text float?

I am trying to make a supplementary information text, which I would input to my main document. I want to have the caption above the text and use caption package for formatting of the caption (required ...
2
votes
1answer
40 views

LaTeX keeps putting my figure alone in last page [duplicate]

everyone. I'm writing my thesis and I'm having some trouble with \subfigure package. I have this code below in some part of my text: Some big text with a few explanations here... \begin{figure}[!h] ...
2
votes
1answer
28 views

two spanning figures in one page

I am using acm template and have two figures that need to span both columns. I put them like the following: \begin{figure*} \begin{subfigure} \includegraphics{fig1} % size is 6.4cm x 4cm ...
0
votes
0answers
54 views

Table and longtable centering and caption alignment

I want to format table and longtable in a special way: 1) table/longtable should be positioned to the center of the page 2) table/longtable caption should be positioned between left and right ...
0
votes
1answer
55 views

PdfLatex - images does not appear in pdf document

I'm compiling my .tex file with pdflatex. I've included graphicx package to insert some images, but the figures don't appear in the resulting pdf file. I've tried first to include a pdf file, then an ...
0
votes
0answers
28 views

Split algorithm over two pages, inside a for loop [duplicate]

I have found questions similar to mine, but none of the solutions given solves my problem. Because my algorithm is too long to fit on one page, I want it to be split on two pages. Solutions I've ...
2
votes
2answers
68 views

How to insert image in conference paper?

I'm learning latex now in college, and I've tried everything I found on the internet but it is not working. I'm making a conference paper, that has two columns. I want to insert image that will ...
0
votes
0answers
19 views

Multicolumn custom float

I use these package and bunch of instruction to get a custom ruled float named "example" \usepackage{float} \floatstyle{ruled} \newfloat{example}{tbh}{exam} \floatname{example}{\textsc{Exemple}} ...
2
votes
1answer
36 views

how can i give a figure an extended caption without it going in my table of figures? [duplicate]

I am writing my minor thesis which includes a number of tikz figures, which are all listed in a table of figures. the table of figures gives the figure number, and then the title of the figure, as ...
0
votes
0answers
24 views

LaTeX keeps placing floats above section headlines

I followed the accepted answer to the question on how to Start new page with each section but LaTeX still puts a float object on the top of a page, above the section headline. Instead, I want this ...
3
votes
2answers
35 views

Footcite in Float Caption

Is there an easy workaround for using \footcite{...} command in figure/table captions, to produce the same citation formatting in the footer as if the citation was used outside of the float. At the ...
2
votes
1answer
32 views

Distance between caption and figure

I have used this code but there is unsuitable distance between caption and figure. Can anyone help me? \documentclass{article} \usepackage{graphics} \begin{document} \begin{figure} \centering ...
1
vote
1answer
39 views

Problem with adding figure

I am trying to add a figure. the code is compiled without any error, but in output file figure is not fitted well and is placed over text and in two column. Can anyone help me? \begin{figure} ...
1
vote
1answer
46 views

How to decrease horizontal and vertical space between figures?

I want to insert 24 figures each two of them side by side. I'm doing this through \minipage but I'm not satisfied with the result because although figures appear small but I can have just 4 of them in ...
3
votes
1answer
117 views

Tikz - code suggestion?

Tikz: I would like to draw a figure in optics, a laser. See image. Can anybody help me? Any suggestion for code? Here's the MWE: \begin{figure}[htb] \centering % ...
2
votes
0answers
47 views

How to print a table and figure side-by-side in knitr

I see a lot of posts on putting figures side by side with tables without knitr, and posts about putting tables next to tables and figures next to figures in knitr, but nothing on how to put a figure ...
0
votes
0answers
25 views

How do I include figure or equation references inside algorithm environment in Lyx?

I would like to cross reference figures (and also maybe equations) inside the algorithm environment in Lyx but could not figure out how to do this. Help please?
2
votes
1answer
108 views

Is it ok to use vbox instead of figure for floating elements?

I started using vbox instead of the figure command for tikz drawings and for text that I do not want to be over the next page like so: \documentclass[oneside, pdftex, a4paper, 12pt]{scrbook} ...
2
votes
2answers
33 views

Full-page figure with preceding caption

I have a large figure that takes up a full page in my dissertation, leaving not enough room on that page for its caption. The figure must be a fixed size, I can't scale it down. The caption must ...
0
votes
0answers
20 views

Switch a vertical Letter size frame to a horizontal Letter size frame at a specific page

Is there a way to change a vertical Letter size frame to a horizontal Letter size frame in the revtex4? I have a huge figure which suits better in a horizontal Letter size frame. For example, in ...
0
votes
1answer
58 views

Replicating a figure in Latex

I am a beginner in Latex and i need to replicate the following image, but I am having trouble doing it and I don't know what packages I need in order to replicate it properly. I tried the TikZ package ...
0
votes
0answers
28 views

Add text to a specific page at a specific position

Well in our style guide we have the "\makecover" to create a cover page - we're not allowed to actually change this as it should adhere to standards. However this coverpage includes already a ...
3
votes
2answers
44 views

Problem in putting figures in 2X2 using subfigure

I used this code: \begin{figure*} \centering \begin{subfigure}[t]{0.45\textwidth} \centering \includegraphics[width=0.45\textwidth]{Figs/fig7.eps} \caption[Network2]% ...
0
votes
0answers
22 views

Border around image is clipped

I want to add a border around a PNG image so I followed the steps here: How to add border for an image? My resulting code is: \begin{figure} \centering {% \setlength{\fboxsep}{0pt}% ...
0
votes
0answers
17 views

Full width landscape image in koma script [duplicate]

I need an image the biggest possible and then show it in landscape. I use koma options in a classic thesis flavour. I don't find any solution to have it bigger than the textwidth but staying in the ...
2
votes
1answer
42 views

Massive gap between text when I force my figures to appear where I wanted it to be in a two-column report

I want the text to fill up the massive gap shown in the picture below: This is to code I used: \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{float} ...
3
votes
1answer
92 views

Package `fixltx2e` conflicts with `float` and cannot be resolved in Lyx

The latex package fixltx2e conflicts with float and prevents using the option H for floats. This can be solved in LaTeX if fixltx2e is loaded prior to float. However, this doesn't work in Lyx, and an ...