{environments} is for general questions related to (La)TeX environments. For questions about environment subcategories like {lists}, {quoting} environments, or {floats} use the appropriate tag instead.

learn more… | top users | synonyms (3)

0
votes
1answer
144 views

Alias normalbaselineskip to \\ in a tabularx environment

I'm still on my way to my key:value table, and this time, I'm trying to alias [\normalbaselineskip] to \\. I still want to use the standard \\. What I want is to consider \\ as [\normalbaselineskip] ...
2
votes
0answers
60 views

Spoilers in Web-Accessible Pdf Documents? [closed]

A highly regarded professor of mine is currently writing a graduate mathematics textbook in which he has given the book a theme of ``do it yourself'' mathematics. He has asked me to review the book ...
1
vote
1answer
28 views

Redefine an environment with options

To write a report I am using the package wrapfigure which generates figures on a side and the text flows around it. It is not news that it is very difficult to handle the spacing and positioning of ...
5
votes
3answers
152 views

newenvironment and restatable

I'm trying to create a new enviroment using restatable, but it doesn't work. What am I doing wrong? \documentclass{article} \usepackage{amsmath} \usepackage{thmtools,thm-restate} \newenvironment{...
3
votes
1answer
108 views

Theorem style: All letter uppercase

What do I have to do, the create a theorem environment, where the theorem name has a different style than the standard one? I want the name to be all capital letters. Obviously \newtheorem*{new thm*}{...
0
votes
1answer
31 views

linespacing local font environment [duplicate]

I have a multi-paragraph section of tiny-font within a larger document of normal-size text. The last paragraph within this section seems to get double spacing: I can fix the problem by putting a ...
6
votes
2answers
92 views

How can I change the behavior of single letters in an environment?

I'm working with a Ktunaxa, a First Nations language that uses the symbols ȼ and ⱡ (and the uppercase equivalents Ȼ and Ⱡ, but not c or l. How can I create an enivronment that would change all c and ...
3
votes
1answer
79 views

Defining an environment which includes a bibliography

Consider an environment which is intended to house a variety of content related to an author. Content may include name, affiliation, a paragraph which is a short biography, as well as, a series of ...
12
votes
3answers
3k views

How to start itemize on same line as text?

I've created a new environment called 'Example' like this: \newenvironment{example} {\textbf{Example:} \begin{itemize}} {\end{itemize}} The environment works fine, but the items are ...
3
votes
1answer
68 views

Producing expandable environments with only optional arguments with LaTeX3 syntax

I am trying to create a new document environment to complete the assembly of a table (simplified for MWE) but I am having a problem combining an expandable environment with an optional only argument. ...
2
votes
1answer
226 views

Chemmacros: Environments reaction and experimental undefined

I get the following errors and have no idea, why. I just updated all my packages. I am using MikTeX 2.9 on Windows 7 and TeXmaker 4.3. Just spent like an hour searching for an answer and didn't get ...
1
vote
0answers
49 views

What is an environment, really? [duplicate]

I consider myself a moderately proficient LaTeX user. Occasionally, I want to do something that is similar enough to an implementation found in a package that duplicating it seems pointless, but ...
1
vote
0answers
45 views

Replace a nested LaTeX command with multiple arguments [closed]

I'd like to replace the LaTeX command \teilseiten{left col width}{left col text}{right col text} by an nested environment. The problem is, that the second and third argument of \teilseiten contains ...
4
votes
0answers
444 views

\tikzexternalize causing problems with template

I have a large document (I'm using pdflatex with Eclispe and TeXlipse) with many (many) TikZ graphics (most of them math function plots). Hoping to reduce compilation time drastically, I read about ...
4
votes
1answer
47 views

Need two environments in table

I want to set up a table with the column headings centered, but the data right justified, without using \multicolumn for every single cell in the heading, rather I want to use a locally global ...
1
vote
0answers
54 views

Is this possible in Latex? Creating a new environment for notices in technical documents [closed]

I don't even know how to title my request. I am also not including any code, because I have absolutely no starting point. I'm writing a technical document and once in a while I need to put a notice/...
7
votes
1answer
1k views

New environment with minted

I want to create a new environment to transform this: \begin{listing} \caption{some caption} \label{code:label} \begin{minted}[options]{language} My code here \end{minted} \end{listing} ...
2
votes
1answer
57 views

Flexibly start a new page for proof environment

I would like to redefine my proof environment so that if the content of the proof environment is only, say, 3 lines or fewer, then the entire proof environment will just start on a new page. Here is a ...
3
votes
1answer
40 views

Problem with making a “new float” and using \autoref{} command

I'm trying to do a new float called "grafico" with the float package. It works fine, but when I try to do a reference, i.e. \autoref{}, it only shows the float number (e.g. If it's "Gráfico 2.1: blah ...
4
votes
1answer
475 views

New float environment in tufte-book with alternate caption placement for full width figures

I am trying to define a new environment for photographic plates in a tufte-book.cls book. The environment should: Work just as the existing figure / table environments do for non-starred uses, and ...
2
votes
1answer
18 views

Error while nesting two environments

I'm trying to nest two environments: \documentclass{article} \usepackage{environ} \NewEnviron{innerEnviron} {INNER \BODY{} INNER} \newenvironment{outerEnviron} {OUTER \begin{innerEnviron}} ...
2
votes
1answer
59 views

Optional text printed in another colour

I would like to extend the version package to print some optionally added text in a different colour. Something like in the following example: \documentclass{article} \usepackage{version} \usepackage{...
3
votes
1answer
66 views

newenvironment with braces split between start and end

I'm defining a command for placing figures in the margin. A simple version follows: \documentclass{article} \newcommand{\margin}[1]{\marginpar{#1}} \begin{document} \margin{Figure goes here} \end{...
1
vote
1answer
28 views

Issue accessing Auctex environments [closed]

I recently installed AucTex on a new computer, and am having an issue that I do not recall with regards to accessing environments. Using C-c C-e, auto-complete etc., I am only able to access a handful ...
18
votes
2answers
5k views

How do you define your environment such as to use […] for some parameter(s)?

In an environment, say \newenvironment{whatever}[3]{...}{...} you instantiante it (if that's the word for it in LaTeX) by \begin{whatever}{first}{second}{third} ... \end{whatever} But how do ...
4
votes
1answer
52 views

Indentation in newtheorem environment

I already have a personalization of the "newtheorem" environment, as follows: \documentclass[a4paper,10pt]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \...
2
votes
1answer
53 views

How to get automatic adjustment of environment names?

On one of my computers, when I start a new environment with Ctrl+E (or edit the name of a different environment), if I start typing something inside the \begin{...} it automatically gets copied to the ...
4
votes
2answers
272 views

how do I add line numbers to itemize environment?

I have an itemize environment that I use in a figure to describe, say, an algorithm or a process. I want to include line numbers, all aligned on the left most side of the figure so that I can refer to ...
2
votes
1answer
56 views

Problem with defining new environments: The first word is not shown correctly

In my Latex-file there is the following part for defining new environments for theorem, lemma and so on: Unfortunately, this produces some mistakes. When I write a new theorem, lemma etc. then the ...
9
votes
2answers
204 views

Ghost environment

I am trying to do the following. I would like a part of my source to be compiled normally by to generate no output. In particlular, I would like references made to the ghosted parts to be produce the ...
1
vote
2answers
591 views

Size of the bullet using \itemize

I was wondering what is the (standard) size of the bullets that appear using the itemize environment: \begin{itemize} \item ABC \end{itemize} Is it \small, \tiny...? Is there any way to ...
3
votes
1answer
39 views

Hide indented amsthm environment using comment package

I use amsthm to define a "Solution" environment. I want to be able to hide it. Following this comment I tried using the comment package: \documentclass{article} \usepackage{amsthm} \newtheorem*{...
4
votes
2answers
69 views

How to: print paragraph title centered, and on a shaded line across the page?

For a cheat sheet I am making I would like that \paragraph{title} does the following: Centre the text 'title', on a shaded (gray) line across the entire page ( column in my case ), start the actual ...
2
votes
1answer
30 views

How to: print paragraph title centered, and on a shaded line across the page? - Continued

This question is a continuation of: this question Consider the following document \documentclass[landscape]{article} \usepackage[a3paper, textwidth=5cm, margin=1cm,landscape]{geometry} \usepackage{...
52
votes
9answers
4k views

Where do I find out how a command/environment is defined?

Say I want to redefine the itemize environment, or make a modified version of it. I want to know how it is currently defined. Where do I find this information? If it's some particular package command, ...
1
vote
1answer
145 views

How to typeset a proof via structural induction

Structural induction differs from "mathmatical" induction in the number of cases: While mathmatical induction requires exactly two cases, structural induction may require many more. A proof via ...
2
votes
1answer
43 views

How do I wrap a macro definition in an environment?

I'm creating a style file, and want to store the body text of the abstract environment so that I can put it on my custom titlepage. I could have required that my users enter the abstract as \...
4
votes
1answer
57 views

Change environment's width

I'm writing my homework and I would like to change the environment's dimensions of \documentclass[10pt,spanish]{article} % INICIO PAQUETES \usepackage{amsmath} \usepackage{graphicx} \usepackage[...
14
votes
1answer
4k views

How can I write multi line equations with alignment in inline math mode?

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"? One such example is the align* environment. I want to keep my aligned equations inline. So ...
6
votes
2answers
613 views

Address book form

I want to create an environment (or any other command) for entering addresses. For example, I want something like this: \newaddress \home \name{John Doe} \phone{123-456-7890} \address{100 1st Street, ...
9
votes
2answers
253 views

How to assign TWO parents to LaTeX counter?

I am working on a own LaTeX (using KOMA-Script) class, based on scrartcl. The document structure is supposed to provide sections and subsections, as well as own environments (exercises, solutions, ...
5
votes
1answer
52 views

How do I pass through options when defining a new environment?

I'm trying to define a new environment that's a customized version of the itemize environment, where any options that I pass to the new environment get passed through to the underlying itemize. For ...
1
vote
0answers
34 views

Auto-create a list of conjectures from given documents

I have three mathematical documents. I want to auto-create fourth document, which should show all conjectures and problems from the first three documents. I mean that the following should be auto-...
2
votes
1answer
115 views

Don't understand error of LaTeX after creating a new environment

I'm using the minted-package to color code in a paper I'm writing. In order to change the style of the parts where my code will be displayed later down the road I defined a new enviroment. However, ...
4
votes
1answer
124 views

Customized frame with title over frame

I'm trying to have sections within titled-boxes in my document. My minimum almost-working example is: \documentclass[a4paper]{article} \usepackage{lipsum} ...
4
votes
1answer
45 views

How to nest comment and theorem in one environment?

I'm using comment and amsthm packages for comments and theorems. I'd like to skip some theorems. I've tried to create a new environment with theorem nested in a comment: \documentclass{book} \...
1
vote
1answer
196 views

How to create an environment to dump a longtable sideways after currentpage, which works under pandoc

Sorry for the long title (and even longer question), but this is a rather complex subject and requires a bit of elaboration. Goal: I want to define a pair of latex macros which I can write in the ...
4
votes
3answers
92 views

Creating rule inside environment that is same width as text

I have an environment which left and right skips are set to same value. Inside it I have a text and a rule below that text. I want rule to have exactly same width as text above it. (Similarly to what ...
2
votes
2answers
63 views

Environments theorem and proof with enumerate

How I can reproduce exactly the following text using \begin{proposition} \begin{enumerate} \item \item \end{enumerate} \end{proposition} \begin{proof} \begin{enumerate} \item \item \...
9
votes
2answers
231 views

Nested amsmath environments with \newenvironment

Using the amsmath environment, I'd like to create a short-cut for \begin{equation*} \begin{split} ... \end{split} \end{equation*} But saying \newenvironment{eqs} {\begin{equation*}\begin{...