1k views

Width of minipages inside enumerate environments [duplicate]

How can I determine the available width inside an enumerate environment? In particular, what width argument can I pass to the minipages in the example below so that the minipages take up all of the ...
118 views

Line spanning across page inside list [duplicate]

I need a horizontal line to span across the page, up to the right margin (where the text would end). This works: \rule{\hsize}{0.4pt} But, when inside a list, the line goes over the margin because ...
42 views

Horizontal alignment of multiple images [duplicate]

In the current scenario, the images are arranged in a vertical sense, however I wanted to align the subfigures in a horizontal sense. This is the code that I'm using. Also I'm working on a template, ...
361k views

Is there a way to slightly shrink a table, including font size, to fit within the column boundaries?

I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an example. ...
293k views

Scale figure to a percentage of \textwidth

I would like to change my figure's width to a precentage of my \textwidth: \textwidth /2 would scale to 50% of the \textwidth. What is the proper syntax (if any) to do this ?
39k views

Nopagebreak nopagebreak nopagebreak - why won't LaTeX listen to me?

Fun times, I'm making a (manual) index of the lecture slides for class (which are nowhere near latex, ppt files yay) and of course Latex insists on placing pagebreaks willie nillie through my items. ...
12k views

My table doesn't fit; what are my options?

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met: The table is too wide to fit within the text block or page. That is, I'm exceeding ...
62k views

How to center the minipage?

The left margin is too wide if I set 1.5\textwidth: \begin{document} \noindent\begin{minipage}{1.5\textwidth} test \end{minipage} \end{document}
43k views

Text wrap in tables (multirow package loaded)

I searched a bit, but I could not find a reliable way to wrap text in tables with columns spanning more than one row. Any ideas on how to fit this table in the page?: \documentclass[12pt,a4paper]{...
3k views

20k views

Customizing caption in side-by-side figures

How do I customize my caption that follows this article's setting of the captions on page 26. The following is my attempt to do that, but still doesn't work. Obviously, what I want to achieve is to ...
15k views

What is the default length of \hrule?

When used without parameters, what varfiable controls the length of \hrule? I.e., how can I change the default length of \hrule, other than adding parameters to each instance -- say, to affect ...
5k views

Best Practice for nice layout with tikzDevice

R+tikDevice+LaTex+knitr is (as I understand it) the most efficient way to get relly nice looking publications from R, with maximum layout-support from LaTeX. I'm using R+LaTex+knitr now, but would ...
10k views

Can't place figures side by side

I'm trying to place two TiKz pictures side by side in a two-column document (IEEEtrans style). I've looked at various solutions, but each one that claims to place figures side by side only manages to ...
31k views

I was trying to create a custom abstract environment with minipages and adjusted margins. Everything works fine, except for that the right margin changes according to the left. I could'n find solution....
436 views

Why is there an overfull box with $…$

\documentclass{article} \begin{document} \hsize 200pt %A wonderful serenity has taken possession of my entire soul, like these sweet %mornings of spring which I enjoy with my whole heart. \[ e=mc^2 \...
19k views

Overfull hbox warning when including graphics

I'm getting the error: Overfull \hbox (14.34999pt too wide) in paragraph at lines 374--375 [][] | when including graphics files. The files are in EPS format. Below is an example: \begin{figure} \...
666 views

Why the sum of columns width in a table is less than 1?

Tell me please, why the sum of columns width in a table is less than 1? That is my code: \begin{tabular} {p{0.15\textwidth}p{0.12\textwidth}p{0.17\textwidth}p{0.17\textwidth}p{0.27\textwidth}} ... \...
17k views

Force a block of text to be impervious to page breaks [duplicate]

Possible Duplicate: Unbreakable block I have a block of text (possibly comprising many paragraphs) near the end of a page. The page break is being inserted in the middle of this block--how do I ...
22k views

\centering not working in latex

This is my code, but my picture is on the left!!! Can anyone share a better code? thanks a lot \begin{figure}[H] \centering \includegraphics[width=25cm,height=25cm,keepaspectratio]{1.eps} \caption{...
8k views

Two subfigures in two rows

I would like to have two subfigures but on two rows. I tried with this code: \documentclass[11pt,a4paper,titlepage]{report} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{...
10k views

Subfigure widths in two-column layout

I want both figures side by side in one column of a two-column LaTeX document, but the result is both the figures are one below another. \begin{figure}[H] \begin{subfigure}[b]{0.4\textwidth} \...
4k views

Can't get this caption right (wrapfig + floatrow)

I'm trying to get a caption to span the figure width on a wrapfig environment. But for some reasons it just won't go. Here is my code and a graphical representation: \begin{wrapfigure}{R}{0.3\...
3k views

How do I typeset a table with a caption within a tabularx within another table with a caption?

Unfortunately, it keeps bugging me with forgotten \endgroup, float(s) lost, not in outer par mode and so on. In other words, why can't I do something like this (the actual table is significantly more ...
625 views

How to use the package cutout in beamer?

I am making presentations using beamer, I included the package \usepackage{cutwin}, but what does the parameters specify in \begin{cutout}{1}{2pt}{3\linewidth}{4}? I want to make the text left of a ...
1k views

Exclude listings from LoL

Is there a way to exclude a specific listing from being printed in the LoL? I put one in a figure environment for the sake of not being printed on two seperate pages. But now I have the figure as well ...
2k views

Subfigures, long caption side by side

Hello I have really big problems with positioning my sub figures. I have long caption text and I think that is the reason why they don't fit side by side. What can I do for solving this problem. [t] ...
1k views

How can I draw a line from margin to margin, if the text width has been adjusted using the changepage package?

I have a problem with drawing a line across the page (from margin to margin). I had to change default margins for title page (only for this page) and to do that I used changepage package. \...
374 views

How do I stop a table where the margin falls, rather than using the textwidth command?

I've been having some problems with nesting tables in the tabularx environment. Basically, I would like each table to stop at the margin. Ordinarily, I would achieve this with \textwidth as the width ...
3k views

Fit table in page column also some editing

I want to make the table fit into one column in a two column page. Also, I need it to look like this: Here’s my code \documentclass[twocolumn]{article} \usepackage{adjustbox} \begin{document} \...
2k views

how to put several images side by side in just one column in a two-column document

I am writing a paper which is a two-column document. Now I want to put several images side by side in just one of the columns, and I would like an illustrating text under each image which starts with (...
1k views

Center Image to Page Inside Enumerate

I am trying to post an image inside an enumerated list but the left margin it starts with is the indented margin from enumerate. Is there any way to ignore that without having to break the enumerate? ...
251 views

How to set a box to a rubber length width

Problem I'm trying to create fancy section heading using titlesec. I need to put the section name into a \parbox to have line breaks. I want the parbox to extend to the far right margin, but I don't ...
647 views

Exceeding parbox with caption package

I am trying to customize the captions of my figures, this is what I achieved so far: Which is ok, but as you can see the parbox exceeds the width, and its right margin is not precisely aligned. How ...
1k views

How many pixels, inches or centi meters is a linewidth in a two columned article?

I'm writing an article. The article consists of two columns and is created using: \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} How long is a 1.\linewidth in pixels, inches or centi meters?
767 views

How to make width of an inner table use full column width of an outer table?

When making tabularx one need to give a table width. For the outermost table, one can use \textwidth. When making one or more inner table(s) inside outer table(s), the inner table(s) also need a ...
438 views

Setting width of figure element in fbox / minipage

Following code is currently used to show a figure: \begin{figure}[ht] \lineskip=-\fboxrule \fbox{\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule} \centering \includegraphics[...
864 views

Maximum figure width when using bmcart class

I am writing a paper for a journal and have to use the bmcart class of the BioMed Central template found here (direct link to ZIP file). I am using it with two columns: \documentclass[twocolumn]{...
838 views

Automatically set the figure width depending on whether the layout is one or two column

I am wondering how do you usually deal with figure width when you are writing a paper. (use \linewidth, \textwidth ? others?) Maybe we can just define a "switch" and use it with ifelse package? (...
579 views

Use a box to fill text to right margin

I often use an eqnarray (I know it's better to use align, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of ...
940 views

Set custom page text/line width in memoir for sidepars

I wish to lay out a page using the memoir package so it has dimensions something like this: # <-- 21.6cm (Letter stock) --> # # Margin | Content | | Note | Margin # ...
808 views

Beamer-Using resizebox changes the position of an item in itemize

I am creating a presentation using beamer. In an itemize environment, I am using resizebox in particular item. When I use it, the position of the bullet changes, as seen in the next image My code is ...
347 views

Making subgraphs in tikz

I am trying to create graphs side by side in a row, but I must accept that I have no idea how to do it. Following is based on my understanding. I am using tikz package for making Bayesian graphs. \...
123 views

Amount of Enters between text, image and text? Not wanting to intercept the flow of writing

How should I have an image? I don't want to interrupt the flow of the text ie no bad intentation. How many enters? This is line, first line. \includegraphics{...
393 views

How do I access the width of text from the preamble?

I've got some macros that I want to set up in my preamble. The problem is that they need to know what the width of a typical line of text will be in the document. If I do something like, %% ...
278 views

How to use figures with latex correctly

I used the following tags to put a figure in my latex in which to has 2 figures a and b and to appear as one figure behind each other : \begin{figure}[ht] \centering \resizebox{\textwidth}{!}{% \...
342 views

Columns in sublists

Long lists of short bullet points look better when put besides using multiple columns. With top-level itemizations, this works easily with the environment columns. But when I try to use it inside a ...
312 views

Equations on two minipages should be on the same height/use the same height

I want to create an worksheet with several equations, which are enumerated. To get two columns I separated my page into two minipages. I got the same amount of equations on each minipage, but they don'...