82k views

### What is the correct way to center a \tikzpicture? [duplicate]

Possible Duplicate: Should I use center or centering for figures and tables? What is the correct way to cause a \tikzpicture to be centered? By default it appears to be aligned with the left ...
1k views

### Best way to centre figure in float [duplicate]

Possible Duplicate: Should I use center or centering for figures and tables? There are (at least) two ways of centering a single figure / graphic horizontally in a figure float: 1) using \begin{...
4k views

### Empty space after adding an image [duplicate]

After adding an image I have an empty space. How can it be reduced? I used \FloatBarrier. But it did not worked. % Following copied by Marc van Dongen from comment from OP. \documentclass[12pt,...
513 views

### How do you center graphics? [duplicate]

Possible Duplicate: Should I use center or centering for figures and tables? I am doing an assessment and as part of it have linked some graphics into my Latex report, however they are not ...
391 views

### How to center align the whole table? [duplicate]

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
456 views

### \center and \centering [duplicate]

I found that \center \begin{tabular}{...} ... \end{tabular} and \centering \begin{tabular}{...} ... \end{tabular} both make the following table centered. My questions are: Are \center and \...
18 views

### Removing new line after figure [duplicate]

We've been given a template to work with. I am adding figures with the following code: \begin{figure}[H] \begin{center} \includegraphics[scale=0.7]{Figures/System/reinf-learning.jpg} \...
18k views

### What are the most common mistakes that beginners of (La)TeX and Friends make?

I want to collect the most common mistakes, misconceptions, pitfalls, etc that (La)TeX and Friends users make. Please one answer for each mistake, misconception, pitfall, etc. I am only interested in ...
1.1m views

### Force figure placement in text

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] \...
354k views

### When should we use \begin{center} instead of \centering?

After reading this question Should I use center or centering for figures?, I want to know the answer of the following. When should we use \begin{center} instead of \centering? For example, should we ...
314k views

### Force LaTeX image to appear in the section in which it's declared [duplicate]

Possible Duplicates: How do I ensure that figures appear in the section they're associated with? Keeping tables/figures close to where they are mentioned How can I force an image in a LaTeX ...
232k views

### How do I align an image to centre?

How do I align an image to centre? In a beamer presentation I have a 2-3 items on a slide followed by an image. The image is not wide enough to cover whole slide, so it leaves around 30% space from ...
97k views

### Combine 4 cells in a table

Here is a simple table. I want to merge 4 cells. I want to combine the three "this" cells area in this table. I thought I have to use multirow and multicolum at same time. However, I could not find ...
16k views

### Scaling a TikZ figure from an external file

I would like to insert figures which were created with TikZ to my LaTeX document. I suppose that if I create the TikZ figure inside the document, that wouldn't be a problem - I'd just play with the ...
23k views

### How to do simple calculation in LaTeX?

Consider the following macro: \newcommand{\sxfigure}[4]{ \includegraphics[width=#1*#3 cm, height=#2*#3 cm]{#4} } #1 and #2 is some value to determine the width and height of the figure, #3 is to ...
3k views

### Avoid repeating [hbt] and \centering for every table

In a document I'm writing, I'm using the familiar [hbt] option for my floating tables, and I center them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add ...
33k views

### How can I get rid of the LaTeX warning: Float too large for page?

In my document, I have figures that have a rather long caption. The code I use to include them looks like this: \begin{figure} \begin{center} \includegraphics[width=\textwidth]{../fig.pdf} \...
24k views

### Align Note below table

My question concerns the "Note" below the table. This is my code: \begin{table} \begin{center} \caption{ Descriptive statistics of total sample based on modified data set}\label{table:descrtotal} \...
10k views

### How can I properly align the line numbers of a source code listing with the margin?

I want to include a code snippet in a document using the listings package. In my document, I have the following: \begin{figure}[!htbp] \setlength{\fboxsep}{0pt}% \setlength{\fboxrule}{0pt}% \begin{...
9k views

### How can I center all tables in a document?

Background Would like to center all tables within floats, without having to add \centering to each table. Ideas Tried the following: \let\originaltabular\tabular \renewcommand\tabular{\centering\...
3k views

### Difference between \begin{theorem}…\end{theorem} and {\theorem …}

I see that both attempts to display a theorem in the following code generates similar output. \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \begin{document} \begin{...
23k views

### tikzpicture alignment and centering

I have several very similar images except some have some extra graphics that enlarge them slightly. This causes some pictures to be offset and not aligned visually when it's clear they should be. How ...
7k views

### Table caption very skinny

I have a table like this: \begin{table} \centering \begin{center} \begin{tabular}{c|c|c|c} Data set & Image size & Hole size (pix) & Total time\\ \hline Mailbox & 459 $\times$ 489 &...
97k views

### Include graphics in LaTeX

I am newbie to LaTeX and I have a simple problem including graphics to the text. When I run \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{...
13k views

### How to draw a multirow table?

I am new to Latex and need help drawing tables. Here is what I have right now: and here is the code for it: \begin{center} \begin{tabular}{|c|c|c|c|} \hline Topology & Average Delay(s) & ...
23k views

### Merge columns in LaTeX

I would like to merge column in LaTeX. I can make that but this line is incomplete because it still open on the left. Perhaps you will not understand what I mean, but this is the code that I wrote \...
6k views

### Input a figure between title and body in twocolumn form

I'm using a LaTeX to write a small paper using CVPR template. I'd like to put a figure between my title+name and body(which consists with two columns) like many CVPR papers do, but I don't find the ...
8k views

### Trying to put a box around a collection of subfigures

I'm trying to have a bounding box around the following figure: \begin{figure}[htp] \begin{center} \subfigure[Process with no error]{\label{noerror}\includegraphics[width=1.5in]{noerror-process}} \...
8k views

### How to put two tables in one landscape page

I have two consecutive tables and since they are wide I want to have them in a landscape page. But it doesn't show both of them in one page. here is the code I'm using: \begin{landscape} \begin{table}...
3k views

### How to include tabularx/y in a new environment?

I am looking for a way to define a customizable environment for tables in my latex documents. This means: caption and label width of table customized column format (tabular preamble) While this ...
9k views

### tikz+matlab2tikz

I'm quite new at latex, but finding it awesome. Yet when it comes to figures things do get a bit tiresome. I'm currently linking a big amount of matlab plots with latex articles with matlab2tikz. ...
9k views

### Put a photo on the top right corner of a page

I have the following code to show a picture around by some textes. \documentclass{article} \usepackage{wrapfig} \usepackage{lipsum} \begin{document} \begin{wrapfigure}{r}{4cm} \begin{center} \...
3k views

### TikZ graph positioning

I am trying to use TikZ to include a simple graph in a short document, but I can't get to position the image properly. Sorry if it is a bit stupid, but this is the first time I am doing something like ...
5k views

### vertical aligning images in table with \adjustbox only works when not every image is in an \adjustbox

I'm trying to center all images vertically and horizontally within a table cell. Therefore I'm using the adjustbox packet. This is the code I use for my table: \begin{table}[b] \begin{center} \...
3k views

### Vertical spacing in tables with math

How can I force LaTeX to vertically center math in a table taking into account subscripts, superscripts, etc? It appears from the output below that LaTeX vertically centered the $JV$ and added the ...
7k views

### Figure breaks listing, how to avoid that?

I have a listing in my document and some lines before it I'm inserting a figure, doing the following: \begin{figure}[htbp] \begin{center} \includegraphics[scale=0.7]{filename.png} \caption{Caption} \...
5k views

### Tables and sections get misplaced

These are my tables: \section{The status of respondents} \begin{center} \begin{table} \begin{tabular}{|l|l|l|l|} \hline \textbf{Sl.No.} & \textbf{...
8k views

### LaTeX figure problems

I want to include a jpg to a LaTeX document, which I have done many times. Normally, I use put it in a figure environment, the code looks like this: \documentclass[twoside]{article} \usepackage{...
4k views

### Table - remove row lines in column to furthest right

How do I remove row lines in the column to furthest to the right. I have seen examples where they do it the left. I would like the "powers" from the table here to be on the right side instead of the ...
6k views

### Center table on landscape page

I have a rather wide table for which I have a designated page in landscape mode. The rest of the document is in portrait mode. Currently, the first row of the table begins at the very top of the page ...
1k views

### Problem with vertical space and tikz pictures

I need to include the next tikzpicture into a latex document. The final result gives me extra vertical space before and after the picture. Therefore the caption is far from the picture itself. I do ...
4k views

### Horizontally align figures using parbox

I have 6 images and I need to align them in a 2x3 matrix with 3 images on 1 line and 3 on the other. This is the code so far which vertically aligns all 6 images. How do I change it? \parbox{\...
2k views

### Creating table in LaTeX

\begin{table}[H] % \begin{landscape} \begin{center} \caption{Specifications of LTE} \label{tab:table1} %\begin{adjustbox}{max width=\textwidth} \resizebox{\...
740 views

### Problems aligning on a decimal in a table with colored rows

I'm having a problem with making a "pretty" table The intent is to have alternating light background colors with black text for normal rows to facilitate reading across, with the header having a blue ...
3k views

### Page numbering with figures and tables

I'm having a bit of trouble with my LaTeX document. I've been writing quite a bit, and have a few images and a table that I'm referring to. My first problem is, that I have some text, then image, ...
2k views

### Centering \inputminted inside a figure?

I'm using minted package to import some code and also kind of images using ASCII art. I've wrapped the \inputminted with \figure with a caption and all works fine. The only thing I can't accomplish ...
799 views

### Figures in appendix are not referenced correctly (or not the way I want them to :) )

In my document, I have some figures in my appendix I want to reference in my text but the output of \ref{} is only "Figure .2 shows...". It should be something like "Figure B.2". Here's my minimal ...
3k views

### eps files by originpro can not show properly in latex

I have incorporate EPS file in the LaTeX, but the series are not shown properly. As in attached picture, the right is correct (shown by evince) and the left is what it looks in PDF generated by LaTeX. ...