Questions tagged [package-writing]
{package-writing} is about writing packages. If your question is about choosing, installing, or using packages, choose {packages} instead. If your question is related to package options, use {package-options} as tag.
607 questions
6
votes
1
answer
129
views
Issue identifying reason for slow code
I've been trying to identify the causes of a significant slowdown in my package keytheorems as the functionality has grown (I intended to avoid feature bloat, alas...), especially in comparison to the ...
2
votes
1
answer
75
views
expl3 reads values as choices for package options to execute style picker
I've been studying expl3 for building up my own package. Here I'd like to implement <option>=<value> style picker. The thing is I'd like to take value as either token list or string, then ...
1
vote
1
answer
39
views
Itch organizing styles subdirectory, ProvidesPackage, RequirePackage
I have about 15 style files now, and I need to improve the organization. I need to move them to a `./styles/' folder, and declare them and their dependencies better. (I also need to make sure my ...
5
votes
0
answers
69
views
Is there a better way to handle property references (ltproperties), some of which should be replicated in memoized code?
This is a semi-followup to How to debug/correct missing number error in plug during memoization?.
Aim: handle properties (ltproperty) in memoized code (memoize).
Specifically: A problem arises ...
2
votes
2
answers
367
views
Is there a site or forum to make a request to a dev for a new package? [closed]
I guess this could be called a soft question, but every once in a while I notice a gap in LaTeX's capabilities for something that seems pretty basic and widespread for which an enabling package would ...
1
vote
2
answers
99
views
How to invoke blackboard bold characters in an otf font file? [closed]
I create an otf font which includes blackboard bold characters, and I'd like to create an package to invoke the blackboard bold characters in the file. Then what should I do to invoke them?
Clearly it'...
2
votes
1
answer
51
views
"End of definition for ..." lines in source2e
The official source2e documentation has at the end of command definitions a line of the following form (here e.g. from p. 5 of ltdirchk.dtx):
(End of definition for \strip@prefix.)
How can I achieve ...
3
votes
2
answers
113
views
How to get the LaTeX version date to include in \NeedsTeXFormat{LaTeX2e}
How to select a good date for \NeedsTeXFormat{LaTeX2e}[date]?
I am finishing a package that uses LaTeX3 intarray, prop and seq modules. Looking into interface3.pdf, the newest functions are from ...
4
votes
2
answers
105
views
Compile index of .dtx file with latexmk correctly
How can I change a variable only if I compile a .dtx file with latexmk? In particular, I'd like to set $makeindex to use -s gind.ist:
if ( <what condition> ) { $makeindex = "makeindex -s ...
3
votes
2
answers
170
views
What are double percent signs %% in .dtx?
When documenting LaTeX packages in .dtx files with doc, I sometimes see double percentage signs %% in the code. What does that do? If I understand correctly, when running latex <pkg>.dtx to ...
0
votes
0
answers
49
views
Compile both "-doc.pdf" and "-code.pdf" documentation
Note: I'm almost certain that this is a duplicate.
Is it possible to extract to documentation versions, one with documentation and one without (using \OnlyDescription) with a single compilation of the ...
11
votes
0
answers
277
views
Recommended practices when creating CTAN archives for packages for inclusion in multiple TeX distributions?
How can I adapt the archives I upload to CTAN to avoid problems in MikTeX, while adhering to CTAN requirements and TeX Live recommendations?
Judging by the issues tracker on GitHub, I am not the only ...
3
votes
1
answer
89
views
How to submit PDF docs to CTAN with customized names?
I want to submit multiple PDF docs to CTAN for my package, including a full reference manual and a basic handbook. How to customize the names displayed on https://www.ctan.org/pkg/…?
What I want: For ...
1
vote
1
answer
94
views
How to avoid overrun in dtx macrocode environment
I'm a newbie having trouble writing a .dtx file. I'm getting an overrun in one instance of the macrocode environment and not in another and can't see the difference (I've copied and pasted the %~~~~...
1
vote
2
answers
87
views
How to get documentation from a .dtx in MikTex (avoiding hyperref error)
I'm new to package writing. I'm trying to get documentation from a .dtx file:
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2023-11-01]
%<package>\ProvidesPackage{test}
%<package> [...