3
votes
2answers
36 views

How to align the new environment

I have to define the new environment, similar to the proof environment. I learned on our site how to define it, but I do not know how to customize it. In particular, I design a book by using gsm ...
1
vote
1answer
54 views

Theorem style - define indentation

I have a real issue with defining my theorem style. I need indentation after the theorem, but cannot achive it. I google for hours and didn't find a solution. Hope you can help me. By the way, I'm ...
2
votes
1answer
34 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 ...
11
votes
1answer
124 views

Defining a particular environment in LaTeX

I need help writing an Example environment. I just want it to look like the figure below which I took from an old book I have in my library. This is what I have done. ...
8
votes
2answers
105 views

Setting the left margin of a trivlist in an environment?

I'm working on defining an environment that's further indented than the rest of the page. This is my document so far: \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} ...
4
votes
2answers
266 views

Little indentation despite \noindent after tabu custom-environment

this question is about a (to me) mysterious little indent (looks like an ordinary blank...) after a custom-environment using the tabu-environment. Please compile this MWE: \documentclass[a4paper, ...
4
votes
0answers
92 views

Indentation of Lists in Environments

Based on the answer of Markus Scharrer, I am using the custom lstnewenvironment to get code and Section with my environment. Since I use an environment in an environment (I know it may not be the best ...
5
votes
1answer
121 views

How to set lengths only for a specific environment (parindent for paracol in this case)?

Is it possible to set a length specifically for an environment? I know it is possible to change lengths for parts of the document only, by placing the \setlength command between {}, but when using an ...
20
votes
2answers
890 views

Reliable code for automatic \noindent after specific environments?

This question led to a new package: noindentafter There are a number of environments which I never want to follow up with an indented paragraph. itemize, enumerate, theorem, definition, etc. I ...
5
votes
1answer
536 views

How to prevent indent on second line with packed itemize?

How to prevent indent on second line with packed itemize instead of itemize? In other words I dont want "Major" to be indented. \documentclass[letterpaper]{article} \usepackage[empty]{fullpage}% ...
8
votes
1answer
316 views

Custom environment with fancy text indentation

I am trying to typeset text by breaking it into smaller cameos, numbering each cameo, and putting a heading. See below for an example of how I want the typeset text to look. The code with which I ...
2
votes
1answer
124 views

How to remove indents for the initial list but indent all nested lists?

I'm trying to use enumitem to modify my lists so that they're flush to the left side of the paper but so that any nested lists are properly indented. This is what I've tried: ...
3
votes
1answer
80 views

How to indent part of line to certain amount?

I apologize if this is a basic question, but I'm new to LaTeX and typography in general, and I'm not sure how to articulate my question properly. I have a document which looks like this: ...
4
votes
1answer
251 views

more margin before block

I have the following: \documentclass{beamer} \usepackage{graphicx} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{xcolor} %\usepackage{colordef} ...
10
votes
3answers
559 views

Creating a new environment for multiple choice questions

I am trying to create a new environment for multiple choice test questions. I want to make sure that every question has a number and has a constant indentation: 1. Lorem ipsum dolor sit amet. ...
8
votes
1answer
2k views

Usage of \hskip \labelsep while creating an environment with trivlist

I am trying to learn how to create a theorem like environment from http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html To keep the code below simple, I am not really defining a new ...
2
votes
1answer
183 views

Equation labels in the block environment of beamer class are too close to the right boder

I am using bearmer to write a poster. In the block environment, I have same labeled equations. The problem is the labels are too close to the block border. Is it possible to move the label a little ...
3
votes
1answer
333 views

Difference in behaviour between tabular and flushleft environments

In response to my earlier question the following working code has been provided: \documentclass{article} \usepackage{showframe} \begin{document} \hfill \begin{tabular}{l@{}} some text\\ some other ...
5
votes
1answer
347 views

Equivalent of \@afterheading for LaTeX3

I want to define an environment with LaTeX3 where I can supress the indention in the first line. For LaTeX2e you can use \@afterindentfalse\@afterheading. The example use this combination. But I want ...
4
votes
2answers
393 views

Paragraph indenting in an mdframed environment

I'm using the mdframed package and I've defined my own environment. But it seems that paragraph indentation doesn't work inside a mdframed environment. I've used the settings option of mdframed to ...
2
votes
2answers
649 views

Environment for text to run into margins

After posting this closed question, I found a good solution for memoir on this page. However, my margins settings are different then the ones he uses, and as a result, the widematter environment only ...
17
votes
2answers
346 views

Why do I have to put the center environment in a group for \@afterindentfalse\@afterheading to suppress indentation?

Consider the following two macros, the only difference being that one has the environment inside a group: \documentclass{article} \makeatletter \newcommand\thisworks{% {\begin{center} $\ast$ ...
1
vote
1answer
870 views

Automatic indentation/framing of nested theorems/proofs

I'm a fan of python, and in the sadly common case where one creates new theorems, definitions, etc within the actual proofs of other theorems, I would like the "inner theorems" to be indented. To ...
8
votes
3answers
368 views

How can I indent all text after the label in my example environment

I have built my own example environment for a paper I am working on. I have created a counter to label the resulting blocks of text. Now I want to indent the Text after the label, like so: (1) ...
5
votes
1answer
157 views

Testing for a blank line (“paragraph”) immediately after \begin{document}

(With this question, I hope to resolve an edge case relevant for my quoting package.) Suppose I define a customized environment for displayed text. It resembles the standard LaTeX environment quote ...
8
votes
1answer
866 views

The abstract environment changes the \linewidth for the whole document

In the article class, it seems that using the abstract environment has an effect to the rest of the document. More precisely, it seems that it redefines the \linewidth, which equals \textwidth without ...
3
votes
3answers
956 views

newenvironment, label, indentation

I have a custom environment that I reference. It seems that the indentation changes if I do not include a space before \label (see MWE below). So, I have a few questions: Should it matter where ...
9
votes
1answer
232 views

Suppressing indentation of the next paragraph

I'm trying to define an environment/command, with the following property: The immediate paragraph after the environment must not be indented. The following shows my attempt at defining such ...
6
votes
2answers
686 views

Insert a paragraph into a list that uses the whole text width

I want to insert a paragraph or possibly even a box with a background color into a list that uses the whole \textwidth. Something like this: 1st item a subitem 1 b subitem 2 2nd item a ...
9
votes
2answers
14k views

Changing default width of blocks in beamer

I use a custom Beamer theme for my presentations. In my presentations I'd like to use blocks (\begin{block}…\end{block}). These blocks are rendered slightly too wide to fit into my theme. Is there a ...
7
votes
3answers
2k views

No indentation at the beginning of environment

I am using the common approach of having indentations for new paragraphs and no indentation directly after a headline. I have an environment for 'information boxes' defined like this: ...
18
votes
4answers
2k views

How to prevent paragraph breaks after theorem environments?

By default, the list environments (such as itemize) have the nice property that if you add a blank line after it, it starts a new paragraph, and if you don't, the paragraph continues. So The ...