{package-writing} is about writing packages. If your question is about choosing, installing, or using packages, choose {package} instead.

learn more… | top users | synonyms

6
votes
0answers
299 views

Appending options to hyperref

I am trying to append options to hyperref inside a package (say append.sty) I'm writing. More precisely, in the package I load the hyperref package and I tune it: \NeedsTeXFormat{LaTeX2e}[1994/06/01]...
3
votes
0answers
52 views

Tikz version history information

I'm working on a package that works on top of tikz. It needs certain libraries (the tikz libraries quotes, positioning and intersections and the pgf library arrows.meta). Is there any way I can ...
3
votes
0answers
450 views

load tikz library from relative path

I recently externalized some of my often used TikZ commands into a library. This is as simple as writing the commands to a dedicated file and naming it tikzlibraryname.code.tex. Then it can be ...
2
votes
0answers
37 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 ...
2
votes
0answers
33 views

List of package requests?

I have recently entered the realm of package development and uploaded my first package to CTAN. Is there a master crowd-sourced list somewhere of issues/abilities that people would like to see solved/...
2
votes
0answers
168 views

Throw error if font is not defined

I need to throw an error, should a certain font not be installed. I have a font in a subfolder: /font/NinjaFont.ttf. This must be installed via certain commands (not important for this - but here: ...
2
votes
0answers
64 views

Creating an .sty file that is equivalent to \input{file}?

I'm trying to get the flashcard program Anki to accept my LaTeX shortcuts that I always include in the preamble through \input{...}. It seems like the software has now forbidden this practice as you ...
2
votes
0answers
53 views

Installation of LaTeX package: fetch external resources

I am writing a LaTeX class and aim to bundle it as .dtx. My problem is that the class uses graphics that are available for download on the internet, but the license doesn't allow me to spread them ...
2
votes
0answers
73 views

Is there a `sty2dtx` for LaTeX3 syntax?

sty2dtx is a CLI tool to convert a commented style file into a Documented TeX file (dtx). It was written and works wonderfully for LaTeX2e packages, but expl3 offers a lot of happy times for package ...
1
vote
0answers
42 views

What is this wacky definition of \@makefnmark trying to accomplish?

A journal style file that shall remain nameless contains this code: \def\thestandardf@@tnote{\@arabic\c@footnote} \def\@makefnmark{% \hbox{% \ifx\thefootnote\thestandardf@@tnote \@...
1
vote
0answers
87 views

Writing modular classes

As an OOP programmer, I am very attracted to the idea of making separate files for independent features within a class definition, where each feature I feel is too long to be included inline in the ...
1
vote
0answers
28 views

standalone: subprambles inverse

When splitting a document with the standalone class and package, the option subpreambles causes the main document to include all the preambles of the sub-files. The other way around is more difficult. ...
1
vote
0answers
213 views

How to make a package using sagetex and sage-commands

I am trying to make my own package building on sagetex. It starts with \RequirePackage{sagetex} and I want it to execute some 'sagesilent' code as for instance \newcommand{\loadsagefunction}{ \...
0
votes
0answers
30 views

Call of a package in general. Access and visibility of stylefiles

i.e. the moderncv-package has several sty-files (i.e. moderncvbodyi.sty). Apparently, I can not call \usepackage{moderncvbodyi} from another document than a moderncv-document. This means, that the ...
0
votes
0answers
35 views

A template for documentation for ctan

I got my Fill-Pages-Package (hopefully bug free) ready, which is my first package. Now I want to upload it on ctan. But first there must be a documentation. I've been searching for a template for the ...
0
votes
0answers
76 views

ComplexTable of Contents

Id like to create a table structure within my document based upon a \newlesson command for example. \newcommand{\newlesson}[1]{ \newpage \addtocounter{LessonNumber}{1}\subsubsection{{Lesson \...