4
votes
1answer
68 views

Adjusting the caption of an algorithm2e code

I'd like to typeset the caption of an algorithm environment such that it is bold, fills the available width of the paper, and neither the caption nor the line numbers encroach into the margins. In ...
4
votes
2answers
70 views

Left indent for figure with program

In my document, I have some pseudocode sections created using the program environment (tried several alternatives, but liked that one most, so I want to stick to that). Now I would simply like to ...
2
votes
1answer
42 views

Indenting text and still allowing sections, pagebreaks and floats

I have a document where there are some sections with and some without subsections. When there are subsections, I want them (and all their content) to be indented. I have found several approaches to ...
4
votes
1answer
32 views

Figure caption within quote environment

In order to provide visual contrast, I have decided that I would like to have a certain section of a document I'm writing indented. To achieve this, I've simply been using the quote environment ...
7
votes
2answers
316 views

Indent further paragraphs in the caption of a table

I have a little problem how to create a caption to my table. It looks ok as of now, but I would like to indent the heading of a new paragraph. Also right now, I cannot even create a new paragraph ...
3
votes
1answer
68 views

Change the textwidth in a graphic caption?

Following a minimal code from somebody who asked why it produces a longer line for caption text of the figure, than a line in the main text. \documentclass[12pt]{article} ...
6
votes
2answers
1k views

Indenting the first line of figure captions

I want to create a small indentation in the first line of figure captions, similar to the way LaTeX indents the first line of paragraphs. The caption package does not seem to support this. Is it ...
5
votes
1answer
142 views

indent of custom float

In my preamble I defined a custom float to use it for my equations like this \newfloat{formula}{ht}{frm} \floatname{formula}{Formel} then I use it like this \begin{formula} \begin{equation} ...
8
votes
1answer
5k views

Figure with caption within an itemize list not indenting correctly

I'm trying to put an image with a caption on it within an itemize environment (within another itemize environment). When I had the image with no caption, simply using \includegraphics, it indented to ...
10
votes
3answers
854 views

When to indent a paragraph?

I use indentation of the first line for paragraphs. When a new paragraph starts after a code listing (or some other figure), this looks a bit unpleasant to me. What is the typographical convention for ...
3
votes
1answer
440 views

Indentation and floats

I usually only allow paragraphs to be indented when there's a need for them to be: only if the previous "element" could be confused and thus "merged" with the paragraph in question. In practical ...
15
votes
3answers
12k views

How to limit the figure caption width?

Figure captions seem to wrap at the page width. How could I make them wrap at the figure width instead? Currently, they can easily be mistaken for normal text. \begin{figure}[!htb] \begin{center ...
1
vote
2answers
13k views

Table caption should be left aligned

How to make table caption left-aligned. I tried \usepackage[singlelinecheck=off]{caption} but it did not work out. In other words it gives an error: \DeclareFloatFont ...
6
votes
2answers
1k views

How to give any figure a caption based on its horizontal size?

I have figures in both portrait and landscape and of various sizes. I'm trying to find a leeway to give any figure a caption based on its horizontal size. In my thesis.cls file, I've already set a ...
11
votes
4answers
2k views

Is there a general command to disable indentation of paragraphs after figures and tables?

I am typesetting a manual, that uses normal indentation for paragraphs. The pages have a lot of figures and tables and I would like to have the paragraph after tables and figures to have no ...