Skip to content

Instantly share code, notes, and snippets.

@aminophen
Created June 7, 2020 02:21
Show Gist options
  • Select an option

  • Save aminophen/7af078f67fdbad7cea805aff1b128c66 to your computer and use it in GitHub Desktop.

Select an option

Save aminophen/7af078f67fdbad7cea805aff1b128c66 to your computer and use it in GitHub Desktop.
\box\@labels and macrocode environment
% \iffalse
\documentclass{article}
\usepackage{doc}
\begin{document}
\DocInput{\jobname}
\end{document}
% \fi
%
% \makeatletter
% \tracingonline1
% \showboxdepth10000
% \showboxbreadth10000
%
% \showbox\@labels ^^A -> void
%
% \begin{macrocode}
\def\MACRO{}
% \end{macrocode}
%
% \showbox\@labels ^^A -> non-void???
%
% \begin{itemize}
% \showbox\@labels ^^A -> non-void???
% \item a
% \showbox\@labels ^^A -> void
% \item b
% \showbox\@labels ^^A -> void
% \end{itemize}
%
% \showbox\@labels ^^A -> void
%
\endinput
@aminophen
Copy link
Author

aminophen commented Jun 7, 2020

Issue with pLaTeX:

% \iffalse
\documentclass{article}
\usepackage{doc}
\usepackage{plext}
\begin{document}
  \DocInput{\jobname}
\end{document}
% \fi
%
%    \begin{macrocode}
\def\MACRO{}
%    \end{macrocode}
%
% \begin{minipage}<t>{10zw}
% The option `t' starts vertical writing.
% \begin{itemize}
% \item a
% \end{itemize}
% \end{minipage}
%
\endinput
! Incompatible direction list can't be unboxed.
\@item ...setbox \@labels \hbox {\unhbox \@labels 
                                                  \hskip \itemindent \hskip ...
l.17 % \item a
              
? 

@aminophen
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment