11 questions linked to/from Duplicating Environments
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} ...
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 \...
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 ...
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 ...
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{...
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\...
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 ...
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]...
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 ...