Skip to main content

Questions tagged [docstrip]

The `docstrip` pack­age pre­pares a LaTeX pack­age source file for ac­tual use, by re­mov­ing the doc­u­men­ta­tion and meta-data.

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: %&...
Matthew Leingang's user avatar
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 \...
steve's user avatar
  • 2,256
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 ...
Veak's user avatar
  • 1
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 ...
gusbrs's user avatar
  • 14k
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 ...
Stephen's user avatar
  • 4,494
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.....
Jinwen's user avatar
  • 8,618
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{...
Syvshc's user avatar
  • 1,348
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{...
Jan's user avatar
  • 5,323
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 ...
Niranjan's user avatar
  • 3,415
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> \...
Jérôme LAURENS's user avatar
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 ...
Maximilian Keßler's user avatar
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} ...
Jérôme LAURENS's user avatar
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 \...
Carel's user avatar
  • 988
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 ...
Carel's user avatar
  • 988
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 % % ...
Carel's user avatar
  • 988

15 30 50 per page