Questions tagged [docstrip]
The `docstrip` package prepares a LaTeX package source file for actual use, by removing the documentation and meta-data.
34
questions
2
votes
0
answers
40
views
When generating files with docstrip, can I insert the output file name anywhere besides preamble and postamble?
I'm generating source files from a .dtx file using docstrip. I would like the literal file name to be placed in the argument to a \ProvidesFile command.
Right now I'm doing it something like this:
%&...
0
votes
1
answer
51
views
Use DocStrip (.dtx) with Unicode input
When I compile this file (test.dtx) with tex test.dtx && latexmk -pdflua test.tex, it doesn't support the UTF8 input.
%<*driver>
\input docstrip.tex
\keepsilent
\askforoverwritefalse
\...
1
vote
1
answer
124
views
Source generated commentary
Had a look at source2e.pdf and source3.pdf. From what I understand, the developers of latex include commentary in the source files. The source files can then be processed by some tool to make a ...
1
vote
1
answer
58
views
AUCTeX auto style files for .dtx and .tex with the same base name
In a LaTeX package using DocStrip with pretty standard structure one could have the following files:
mypackage-code.tex
mypackage.dtx
mypackage.ins
mypackage.tex
mypackage.dtx is the main file where ...
2
votes
1
answer
103
views
Guard of the docstrip
In docstrip, there is something called guard. For example, %<*install> and %</install> are used for producing the .ins installation file. %<*driver> and %</driver> are used for ...
1
vote
0
answers
27
views
Improve the undesirable empty line produced by docstrip [closed]
In my .ins file, I have this setup before \generate:
\input docstrip.tex
\keepsilent
\askforoverwritefalse
\begingroup
\catcode`\^^M=\active%
\obeyspaces%
\gdef\copyright{%
\ds@heading% This is file.....
4
votes
2
answers
85
views
vertical bar in docstrip file changes to j with unicode-math
I'm writing a .dtx file that can generate multifiles, here is my minimal working example.
% \iffalse
%<*driver>
\ProvidesFile{my.dtx}[2022/05/17 3.1a mytest]
\documentclass{ltxdoc}
\usepackage{...
2
votes
1
answer
228
views
Documentation of `l3doc` functions
By digging through some Question and Answers from here, I stumbled upon the MWE in this question. The part
% \begin{function}{\mymacro}
% \begin{syntax}
% \cs{mymacro}\marg{Arg1}
% \end{...
2
votes
1
answer
101
views
The `macrocode` environment not working in a normal use of the `l3doc` class
I am writing a package with .dtx and .ins pair. I want it's documentation to be bilingual, but I don't want to complicate my .dtx file by having the documentation to have two languages and the source ...
0
votes
0
answers
37
views
description list and macrocode indentation
With l3doc, when using macrocode inside a description list, it is displayed with an extra indentation, how to remove it ?
Here is the dtx for a MWE
% \iffalse meta-comment
%<*driver>
\...
2
votes
1
answer
140
views
Process index of l3doc file / of .dtx file
I understand that .dtx files are a way to both document and implement a package in one file together.
Also, in newer versions, usually pdflatex package.dtx should typeset the documentation.
I wanted ...
5
votes
1
answer
80
views
How to comment out a line in docstrip?
While using docstrip to write a documented package, I have difficulties in commenting lines of the doc. Here is my minimal test.dtx
% \iffalse
%<*driver>
\documentclass{l3doc}
\begin{document}
...
1
vote
2
answers
151
views
Using edef'd text with doctex pre/postamble
I'm updating my DocTeX template(s) given the model DTX file by Joseph Wright, who includes a readme guard from which the readme.txt is generated.
The \delcarepre/postamble macros from DocTeX prefix \...
0
votes
1
answer
73
views
Multiple copyright messages in ones doctex templates
I just realized that I have three copyright sections in my DocTeX templates ??? I was trying to merge my templates, generated from the DTXTut by Scott Pakin, with the model DTX file, proposed by ...
1
vote
1
answer
854
views
Templates in DocTeX : Documenting and producing code within the macrocode environment
I'm writing a DocTeX file (*.dtx) to create a family of classes. From this file I am also generating and documenting the templates that illustrate their usage.
%\iffalse
%<*template>
%\fi
%
% ...