-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmypackage.dtx
94 lines (93 loc) · 2.59 KB
/
mypackage.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
% \iffalse meta-comment
%
%% Copyright (C) 2024--2024 by AUTHORNAME
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%
%<*batch>
%<*gobble>
\ifx\jobname\relax\let\documentclass\undefined\fi
\ifx\documentclass\undefined
\csname fi\endcsname
%</gobble>
\input l3docstrip.tex
\keepsilent
\preamble
\endpreamble
\generate{\file{mypackage.sty}{\from{mypackage.dtx}{package}}}
\endbatchfile
%</batch>
%<*gobble>
\fi
\expandafter\ifx\csname @currname\endcsname\empty
\csname fi\endcsname
%</gobble>
%<*driver>
% \RequirePackage[dependency-file=DEPENDS.txt]{depp}% Uncomment to determine package needed in .github/tl_packages
\documentclass[full]{l3doc}
\usepackage{mypackage}
\usepackage{csquotes}
\MakeShortVerb{\|}
\begin{document}
\DocInput{mypackage.dtx}
\PrintIndex
\PrintChanges
\end{document}
%</driver>
%<*gobble>
\fi
%</gobble>
% \fi
%
% \GetFileInfo{mypackage.dtx}
% \title{The \pkg{mypackage} package\thanks{This document
% corresponds to \pkg{mypackage}~\fileversion, dated~\filedate.}}
% \author{Some Author \\ \href{mailto:author@example.com}{author@example.com}}
%
% \maketitle
%
% \begin{documentation}
% \section{The Bestest Package Of All Times}
% For most packages writing awesome documentation is hard because they have a lot of functionality,
% so we just try to avoid functionality in this package to make it simpler.
%
% There is only one user-facing command:
% \begin{function}{\TheAnswer}
% With \cmd\TheAnswer\ is a fully expandable command which does not need any arguments
% and uses a highly optimized and efficient AI algorithm to predict the question you are
% currently thinking about and provides the corresponding answer.
%
% For example:
% \begin{verbatim}
% What is the answer to the ultimate question of Life, the Universe and Everything?
%
% Answer: \TheAnswer
% \end{verbatim}
% What is the answer to the ultimate question of Life, the Universe and Everything?
%
% Answer: \TheAnswer
% \end{function}
% \end{documentation}
% \begin{implementation}
% \section{The implementation}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{mypackage}
[2024-07-14 v0.1 my package]
% \end{macrocode}
% \begin{macro}{\TheAnswer}
% \begin{macrocode}
\NewExpandableDocumentCommand \TheAnswer {} {42}
% \end{macrocode}
% \end{macro}
% \end{implementation}
\endinput