Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dtx]

Questions about dtx, LaTeX self-documenting code system

7
votes
0answers
189 views

How to create a boilerplate dtx file for a package using LaTeX3 (similar to dtxgen for LaTeX2e)

I'm interested in making a package using LaTeX3, but I can't (a) find documentation on how to generate a new dtx file for it or (b) find a template for creating a dtx file for a package using LaTeX3 (...
4
votes
0answers
123 views

Conventions of package documentation

Are there guides on conventions when it comes to writing documentation for a package (especially one in a .dtx file as opposed to a separate document). I finished my first non-trivial package and ...
4
votes
0answers
78 views

Including compiled PDFs in documentation built by l3build

I am building a project with l3build. There are some examples I want to present in the documentation, showing their source code, annotated with DocStrip, as well as including the output they produce ...
4
votes
0answers
345 views

Makefile in packages with UNIX commands and latexmk?

What are the rules regarding writing Makefiles to be part of CTAN packages? I would like to include a Makefile in a package I wrote. The package is in .dtx format with its .ins file embedded. When I ...
3
votes
0answers
52 views

Record changes for removed macro in dtx

Following the advice in How to Package Your LATEX Package by Scott Pakin I am recording changes to a package I maintain, similar to the following: \RecordChanges \begin{macro}{\somemacro} \changes{0....
1
vote
0answers
82 views

Use latexmk on dtx file and then run it again on the tex file(s) it creates

I'm using latexmk on a dtx file that generates tex files as follows: %<*driver> \input docstrip.tex \askforoverwritefalse \generate{ \file{\jobname_allnotes.tex}{\from{\jobname.dtx}{longcalc,...
1
vote
0answers
168 views

Using .cls macros in the typesetting of the .dtx from which .cls is generated

I read some advice suggesting that when writing a package, one should use that package in one's dtx file in order to demonstrate the use of macros and environments. Presumably, the same should be true ...
0
votes
0answers
139 views

not able to find the right formatting for Elsevier double column style

I want to use a double column format for Elsevier like this paper, which basically should look like this. However I'm not able to find the right template or figure out the right settings. From their ...
0
votes
0answers
27 views

Docstrip: Suppress output of lines outside guards?

Is it possible make the docstrip utility's \generate ignore all lines, that have not been marked by the %<*guard>...%</guard> construct? This ties in to my (duplicate) question Can ...
0
votes
0answers
165 views

With R, knitr and RStudio, how do you compile a .dtx file to get the .sty file needed for a package?

Working through Stefan Kottwitz's LaTeX Cookbook, page 82, I tried to use the package pullquote. I am using R, the knitr library and the RStudio IDE. When I compiled the .Rnw script that has the ...
0
votes
0answers
63 views

References to the macro environment

Suppose I have the following in my dtx file (using ltxdoc): %\begin{macro}{\mymacro} % \label{macro:mymacro} % Example text % \begin{macrocode} \newcommand{\mymacro}[0]{An example macro} % ...
0
votes
0answers
194 views

How to run latex doc.dtx?

I am learning LaTeX from lshort. Page 12, Table 1.3: Some of the Packages Distributed with LaTeX, contains the following. doc Allows the documentation of L A TEX programs. Described in doc....