Find definition of environments

Create issue
Issue #5 new
Former user created an issue

This is a feature request.

Now that definitions of commands/macros can be found using texdef, I think it will be cool if I can also find environment definitions.

Comments (1)

  1. Martin Scharrer repo owner

    Hi, you can already show the definition of environments using (la)texdef.

    LaTeX 2e defines environments as macros internally, e.g. \begin{center} is defined using \center and \end{center} as \endcenter.
    Simply use texdef -t latex center endcenter to show the complete environment definition.
    Another example texdef -t latex -s quote shows the original environment code of the quote environment.

    However, I could add a feature that checks if FOO is given if endFOO exists and shows that definitions as well automatically.

  2. Log in to comment