Linked Questions

1
vote
1answer
48 views

Same environment with different names [duplicate]

A new environment can be made with: \newenvironment{name}[1]{stuff at the beginning}{stuff at the end} In the document the environment can be created with: \begin{name} different stuff \end{name} ...
82
votes
1answer
3k views

When to use \LetLtxMacro?

Frequently I see users redefine macros using (for example) \let\oldmacro\macro% Store \macro in \oldmacro \renewcommand{\macro}{% % ...redefined \macro \oldmacro% } and other times they use \...
8
votes
1answer
3k views

Frame and background color for all figures

I want to have all my figure floats framed all through the text something like those in Wikipedia pages. A pale-coloured (grey) frame and very pale background too. I am using caption package to ...
4
votes
1answer
3k views

Copy the abstract environment for acknowledgments

I would like to create an acknowledgments environment that's simply the duplicate of the abstract environment, with two exceptions: It should print Acknowledgments as its heading, not Abstract. The ...
6
votes
2answers
3k views

Avoid recursion in \renewenvironment

I'm trying to redefine an environment in order to add a command after the \begin without having to add this command in manually everywhere. For example, I'd like to replace every instance of \begin{...
7
votes
1answer
521 views

(Re-)newenvironment that contains environment itself with an argument in LaTeX

How can I redefine an environment with an argument such as the multicols environment? The Goal is to define two sets of commands each of them based on the native multicols environment: \LetLtxMacro\...
3
votes
2answers
281 views

tabu and tabularx compatibility - for htlatex, tex4ht and migration between tabu and tabularx

Is it possible to renew the tabularx environment so that it will take the tabularx style parameters? Or the other way around? \begin{tabularx}{\textwidth}{ ... } % ... \end{tabularx} \begin{tabu} to ...
0
votes
1answer
388 views

How to rename the comment or verbatim environment?

Based on the question How to rename or "copy" a latex environment I am tried to rename the comment environment to myenvironment: \documentclass[10pt,a5paper,twoside]{memoir} \usepackage[T1]...
2
votes
1answer
148 views

How to redefine environments with \begin{xxx} … \end{xxx}, keeping the same syntax?

Say that we have an environment that is used like this: \begin{foo} ... code in here \end{foo} And, without changing the above syntax in our document, we would like to redefine what the foo ...
2
votes
1answer
190 views

Defining constant parameters

Sorry for the title, I don't know how to formulate the question in short. What I need is to define something like constant parameters, for example I have through the code this list: \begin{list}{\...
1
vote
0answers
102 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, \...