Skip to main content

Questions tagged [l3doc]

This tag is all about the class `l3doc`, LaTeX3 enhanced version of `ltxdoc`.

Filter by
Sorted by
Tagged with
4 votes
1 answer
78 views

right-to-left lists with l3doc

I've run into a couple of problems with typesetting my documentation with the l3doc class. Here's the first: When typesetting a right-to-left list with a \leftmargin, no margin is inserted. This does ...
David Purton's user avatar
  • 26.4k
4 votes
2 answers
138 views

Indexing when using the l3doc class

I am using the l3doc class for a write-up the document needs to index both macros as well as normal indices, i.e; cases with normal words not commands. \documentclass{l3doc} \usepackage{makeidx} \def\...
yannisl's user avatar
  • 118k
1 vote
0 answers
70 views

Documentation with l3doc.cls

I have been trying to convert my package documentation from ltxdoc to l3doc, and I've met several obstacles. First is getting \ProvidesExplFile to work. I tried to do something like this: % \iffalse ...
karlh's user avatar
  • 725
1 vote
0 answers
43 views

Once colors are added to the 'macrocode' environment, why does the color of the 'macrocode' environment change?

I'm working on translating some LaTeX documents, aiming to distinguish parts of the document by color for ease of reading. For instance, I'd like to assign blue color to macro commands that require ...
HZ.Zhang's user avatar
1 vote
1 answer
75 views

`easytable` package seems to conflict with `l3doc` class

I tried to use the TAB environment in a .dtx file with l3doc class, but It seems to make latex compilation fail. MWE: \documentclass{l3doc} \usepackage{xcolor} \usepackage{easytable} \begin{document} ...
samulus's user avatar
  • 25
1 vote
1 answer
52 views

How to patch `\LoadClass` in a LaTeX class to change the parent class without modifying the .cls file?

I am currently experimenting with .dtx files to develop a little style for my university documents. Doing so, I use l3doc class as a document class in the documentation counterpart of my dtx file. ...
samulus's user avatar
  • 25
0 votes
1 answer
28 views

l3doc: conditionally include debugging code between macrocodes

My package.dtx exports package.sty and package-debug.sty, which contains more material that is not typeset in package.pdf. To achieve this I use the following pattern where the package name is package-...
Jérôme LAURENS's user avatar
2 votes
1 answer
82 views

\DoNotIndex space with l3doc

Consider the following attempt: % \iffalse %<*driver> \ProvidesFile{duck.tex} %</driver> % %<*driver> \documentclass{l3doc} \begin{document} \DocInput{duck.dtx} \PrintIndex \end{...
Niranjan's user avatar
  • 3,415
3 votes
2 answers
147 views

How can I use \MakeOuterQuote{"} in combination with l3doc package?

Consider this TeX file \documentclass{l3doc} \usepackage{csquotes} \MakeOuterQuote{"} \begin{document} \enquote{hello} "hello" \end{document} I want to use " as the quote ...
user202729's user avatar
  • 7,503
1 vote
1 answer
70 views

\cs{} command in l3doc does not respect \DoNotIndex?

Consider this TeX file (yes, I know it's highly unusual to not use dtx for this.) %%! TEX program = lualatex \documentclass{l3doc} \EnableCrossrefs \CodelineIndex \RecordChanges \fvset{gobble=0,...
user202729's user avatar
  • 7,503
2 votes
1 answer
219 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
1 vote
1 answer
40 views

Why can't \textffm{} be used in the title of l3doc document class?

\textffm{} can be used in \title{} in ltxdoc document class, but l3doc can't. Why? % \documentclass{ltxdoc} \documentclass{l3doc} \usepackage{fetamont} \begin{document} \title{\textffm{TEST}} \...
Clara's user avatar
  • 6,017
0 votes
0 answers
35 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
138 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
9 votes
1 answer
2k views

Can I temporarily disable the @@ replacement in LaTeX3?

I'm trying to write my L3 packages using good practice, which I understand involves using @@ in defining command and variable names which then get replaced by the module name (Section 3.2.2 in texdoc ...
Andrew Stacey's user avatar
0 votes
0 answers
47 views

How to resolve a package conflict when the problematic pkg is loaded by the class [duplicate]

Code excerpt: \documentclass{l3doc} \usepackage{fvextra} Symptom: Package fvextra Warning: csquotes should be loaded after fvextra, to avoid a wa rning from the lineno package on input line 37 ...
Erwann's user avatar
  • 2,130
1 vote
2 answers
717 views

Referencing an entry created by \addcontentsline

How can I reference a toc entry created with \addcontentsline? \documentclass{l3doc} \usepackage{hyperref} \begin{document} \tableofcontents \addcontentsline{toc}{section}{\protect\numberline{\...
Erwann's user avatar
  • 2,130
3 votes
1 answer
162 views

StopEventually behaves differently in LtxDoc and L3Doc

I was going through two of my own *.dtx files and noticed that the content between \StopEventually and \Finale would be hidden or displayed based on the document class and not on the setting of \...
Carel's user avatar
  • 988
5 votes
1 answer
159 views

Subtleties of @@ replacement in l3doc

I'm trying to understand the exact semantics of @@ replacement in the l3doc class. What I gathered so far from the documentation is the following: No replacement happens before the %<@@=name> ...
siracusa's user avatar
  • 13.5k
1 vote
1 answer
319 views

Using minted in l3doc documentation

When using minted in a .dtx file with l3doc in any way one will lose syntax highlighting as shown below (where the first and fourth segment are minted outputs and the second and third verbatim): You ...
TeXnician's user avatar
  • 33.7k
24 votes
1 answer
635 views

How to customize `l3doc`?

As I'm currently writing a package and started to use dtx format I wondered if there are alternative classes just using doc, so I started to use l3doc (since I use expl3 syntax). I'm pretty satisfied ...
TeXnician's user avatar
  • 33.7k