{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)

2
votes
1answer
56 views

Keep float out of a environment (for example definitions)

I knew that floats float around and sometimes are placed far away from where one wants them to be. With the times I learned to work with it, and there are already many posts about it. I have a kind ...
2
votes
1answer
120 views

How to change the behavior of user-defined environments using overlays?

first I have to give a link to a related question+answer. I am trying to create a beamer presentation and defined an environment. The environment has an optional parameter and I want that beamer sets ...
0
votes
1answer
78 views

Renew appendix command to remove blank pages

I'm using Steve R. Gunn's Thesis Class. My issue is that Latex insists on inserting a blank page after the first of my 4 appendices, yet at no other point in the document. I believe this is caused by ...
6
votes
0answers
287 views

How to create a framed proof attached to a theorem?

I am trying to create a customized "proof" environment attached to a theorem. It looks like this: So there is first the theorem, and then a gray bar starts on the inner margin. It ends, when the ...
5
votes
0answers
51 views

How to track a page change within an environment?

I'm trying to define an environment that can automatically detect when the material within it moves to a new page, reprint one of its arguments at the top of the new page, and change how it closes as ...
5
votes
0answers
36 views

How can I make a custom environment that wraps listings?

Thanks to this answer, I know it is possible to float and wrap text around a listing. I would like to setup an environment for mini-code snippets that always floats and wraps the same way. I can ...
4
votes
0answers
58 views

Checking environment in order to end it

I used to typeset verse with memoir package using some heavy \vspace trickery. The verse environment was too hard to control in terms of vertical space due to the immense amount of obscure glue. For ...
4
votes
0answers
105 views

Using a package only for certain tables

I am using the tabularx environment since it the X component of the columns is very useful and necessary for the tables I want to produce. However, a single one of my tables is longer that a page, and ...
4
votes
0answers
96 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 ...
4
votes
0answers
293 views

Tikz Nodes in margin gets overwritten by page-wide tikz environments

I'm trying to improve the typesetting of openly licensed books created by my company. We do the typesetting of all our books with LaTeX. The design of these books requires coloured environments that ...
3
votes
0answers
73 views

Using catcode in conjunction with lstnewenvironment and lstinputlisting

(This is related to Injecting text contained in file into custom environment, but I was asked to put this in a separate post) From regular expression in listings the following code works fine : ...
2
votes
0answers
44 views

newenvironment using pgfplotstable

I want to have a newenvironment body as an inline input argument for pgfplotstable. Is it possible to do this without using braces in the body itself? \documentclass{article} ...
2
votes
0answers
91 views

Checking if first portion of an environment's content is empty

Motivation: I am working on a very personalized Exercise/Answer package for my colleagues. The exercise, exsheets, etc. packages don't do what I need. To accomplish this, I create an exercises ...
2
votes
0answers
35 views

Remove bibliography headings with multibib and tocbibind

I use multibib which creates two families of citation commands: pri and sec. I would like to get rid of bibliography headings for the \bibliographypri and \bibliographysec commands while keeping the ...
2
votes
0answers
29 views

can I use changes package to highlight added environments, say, itemize?

I am using changes package to track modifications to a LaTeX documents, but found simply wrapping \begin{itemize}\end{itemize} with \added command doesn't work. It works fine if I wrap the contents of ...
2
votes
0answers
105 views

Package “mdframed” creating arbitrary gaps in the border

I used to define a small environment with the package "mdframed". I've included the package in the following way: \usepackage[framemethod=tikz]{mdframed} This is how I've set up the environment: ...
2
votes
0answers
155 views

TikZ externalize causing problems with template

I have a large document (I'm using pdflatex with Eclispe and TeXlipse) with many (many) TikZ graphics (math function plots, most of them). In order to reduce (drastically I hope) compilation time I ...
2
votes
0answers
42 views

Heading being duplicated

I have a thesis.tex file that is set up as \documentclass{report} %packages \usepackage{thesis_uvm} %maketitle etc \begin{document} %abstract etc %chapters \nocite{*} \bibliographystyle{chicago} ...
2
votes
0answers
60 views

Duplicate an environment

How can I duplicate an environment? I want to create an environment which is almost exactly equal to another environment. I just want to change the heading. Right now I use ...
1
vote
0answers
32 views

Making a textpos command being transparent

I am defining my own margin notes command and I have a question about making a command "transparent". To be more clear, I have the following code : \documentclass{article} ...
1
vote
0answers
90 views

Kile syntax highlighting: A single dollar sign in the preamble

I'm using Kile to edit my LaTeX documents. I define my own custom environment to hightlight LaTeX code named lstLaTeX with the following code: \documentclass[a4paper]{scrartcl} ...
1
vote
0answers
36 views

How to store the definition of an environment? Or, how to disable locally an environment?

what? I would like to "store" the definition of the environment figure into \something so that the following logics will work: % the following line is what I am looking for store(figure, \something) ...
1
vote
0answers
89 views

frame in NewDocumentEnvironment

With beamer frames, this does not work. \newenvironment{itemframe}[1]{ \begin{frame}{#1} \begin{itemize} }{ \end{itemize} \end{frame} } Adding fragile, environment=itemframe as an ...
0
votes
0answers
32 views

LTXtable does not work in an environment

I'm trying to write an environment that gathers the content of an LTXtable writes it to an file (with predefined header/footer) and then txpesets this table. Gathering the content is no Problem and I ...
0
votes
0answers
59 views

what is interfering with the new environment here?

Basically I wanted to modify the description list so that the first word(s) are underlined and bold If you compile this file. \documentclass{article} \usepackage{soul} ...
0
votes
0answers
20 views

lilypond enviroment inside a table

While making a song book I came to a point in which I wanted to insert lilypond code inside a table (tried also a box); this was due to some placing notes around texts and similarly things. But this ...
0
votes
0answers
35 views

\newenvironment does not work

I have created a new environment using this commands: \newenvironment{eqs} {\begin{subequations}\begin{align}} {\end{align}\end{subequations} } I would like to combine subequations and ...
0
votes
0answers
36 views

Problems with Korean characters and ArXiv

Here is the minimum working example. \documentclass[12pt]{article} \title{Sample} \author{Me} \pagenumbering{gobble} ...
0
votes
0answers
24 views

How do I make a new command with author/journal/year citation in footnote

\documentclass{beamer} \usepackage[backend=bibtex]{biblatex}%backend=biber, natbib=true, style=chem-acs \bibliography{oralspaper} \DeclareCiteCommand{\citejournal}%%%creating \citejournal command ...
0
votes
0answers
38 views

Help with “environment” problem

I am new to LaTeX. I want to write a report which will contain math symbols and equations. I began like this \documentclass{article} \begin{4 week report} \ body \end{4 week report} ...
0
votes
0answers
15 views

image into framewithtitle environment (memoir class)

I need to add image or figure into boxes for my phd document, so i try using the framewithtitle environment defined in page 276 of memoir class documentation. % !TEX encoding = UTF-8 Unicode % -*- ...
0
votes
0answers
101 views

Change the color of the “remark” environment in Beamer

I would like to change the color (bg and fg) of the remark environment in a Beamer document. I have setup my document using: \usetheme{AnnArbor} \usecolortheme{crane} I read in some other question ...
0
votes
0answers
47 views

Problem with sectionning with my example

I want to number my example environments like [section]. However, example environments are numbered with chapter, not section. What should I do? This is my MWE: \newcounter{example} \makeatletter ...
0
votes
0answers
116 views

File ended while scanning the use of \@newenv

I am trying to create a diary in LaTeX. I have found a relevant question using latex to keep a diary. I believe that ferahfeza gave a prety answer however there are some points that are not working. ...
0
votes
0answers
195 views

Making boxed “problem” environment and a solution environment

I'm trying to make a template for my homework. I've been using a modification of the Harvey Mudd homework class, but there are some things I don't really like about it (functional and aesthetic). ...