Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlapping environment and macro names in source2e #1526

Closed
mbertucci47 opened this issue Nov 1, 2024 · 3 comments
Closed

overlapping environment and macro names in source2e #1526

mbertucci47 opened this issue Nov 1, 2024 · 3 comments

Comments

@mbertucci47
Copy link
Contributor

Brief outline of the bug

Several environments that are defined as commands (\envname...\endenvname) have overlapping names in source2e. This happens when the dtx looks like

% \begin{environment}{list}
% \begin{macro}{\list}
%    \begin{macrocode}
\def\list#1#2{<code>}
%    \end{macrocode}
% \end{macro}
% \end{environment}

I see this happening in source2e for

  • document
  • verbatim
  • equation
  • eqnarray
  • eqnarray*
  • list
  • trivlist
  • array
  • tabular
  • picture
  • filecontents

Here's what it looks like for array and tabular:

overlap

Minimal example showing the bug

Unfortunately I can't reproduce it with a simple doc example. This looks fine:

\documentclass{article}
\usepackage{doc}

\begin{document}

\begin{environment}{list}
\begin{macro}{\list}
Stuff
\end{macro}
\end{environment}

\end{document}

But clearly there's an issue just by inspecting source2e.

@FrankMittelbach
Copy link
Member

It's a class issue (but I think there is already an issue for it somewhere). Problem is, this has lowest priority, because the whole class (and l3doc) would need to be redone which is a lot of work and there are really more important things to tackle.

@muzimuzhi
Copy link
Contributor

It's a class issue (but I think there is already an issue for it somewhere).

It's

@mbertucci47
Copy link
Contributor Author

Ah thanks @muzimuzhi. Will close here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants