0

The following error occurs when I try to generate my documentation of a dtx file.

! Use of \next doesn't match its definition.
<argument>  
            .1 \meta {Catalog’s ID}\DTcomment {This is a unique ID}. 
l.42 % }

I have a my-documentation.ins file:

\input docstrip.tex
\preamble
\endpreamble
\generate{\file{my-documentation.tex}{\from{my-documentation.dtx}{documentation}}}
\endbatchfile

and a my-documentation.dtx file:

% \iffalse meta-comment
% This file may be distributed ...
% \fi
%
% \iffalse
%<*driver>
\documentclass{ltxdoc}
\usepackage{dirtree}
\begin{document}
    \DocInput{my-documentation.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{0}
%
% \CharacterTable
% {Upper-case     \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote \"      Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent \'      Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than \>      Question mark \?
%   Commercial at \@     Left bracket \[      Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent \`      Left brace    \{     Vertical bar \|
%   Right brace   \}     Tilde         \~}
%
%
% \changes{v0.0.1}{2018/08/08}{Initial version} %
% \DoNotIndex{} %
% \title{title}
% \author{author}
% \maketitle
% \begin{figure}[!htb]
% \dirtree{%
% .1 \meta{Catalog’s ID}\DTcomment{This is a unique ID}.
% }
% \caption{Structure of required files}
% \label{file-structure}
% \end{figure}
% \Finale
\endinput

Obviously I am missing something but the package dirtree keeps on failing when compiling with pdflatex.

1

% isn't a comment in doc files so you need

% \dirtree{^^A

not

% \dirtree{%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.