Skip to main content

Questions tagged [documentclass-writing]

{documentclass-writing} is about writing document classes. If your question is about choosing, installing, or using document classes, choose {documentclass} instead.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

How to compile front matter without the document body?

In my custom class, I would like to compile separately the front matter of a document and generate the whole document itself (with the front matter in it). Is there a way to remove the content of the ...
drl's user avatar
  • 496
0 votes
2 answers
84 views

etoolbox conditionals with kvoptions string options

I'm writing my first LaTeX class. After some research I've found that kvoptions seems to be the most recommended for key value class options, and etoolbox is recommended over ifthen for conditionals. ...
jemhop's user avatar
  • 21
3 votes
0 answers
74 views

Tweaking section and body text font size in class file for conference paper [closed]

I was invited to submit conference paper for September 2025. I was instructed to follow the template / class cls file. However, it seems the class set up very small fonts which not so beautiful for ...
Fendy Sion 04's user avatar
0 votes
0 answers
78 views

How to safely define custom row macros with `&` for `tabularray` in a LaTeX class?

I'm building a LaTeX class to standardise minutes of meetings. I want to define a reusable tabular environment (based on tabularray) with a macro \person to format individual participant rows. The ...
BlueIris's user avatar
  • 369
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 ...
Gargantuar's user avatar
  • 2,426
6 votes
2 answers
251 views

\IfPackageLoadedT doesn't allow empty lines

Why doesn't \IfPackageLoadedT allow empty lines inside its argument? Suppose I have: \documentclass{article} \IfPackageLoadedT{amsmath}{ \newcommand{\foo}{} } \begin{document} a \end{document} ...
Gargantuar's user avatar
  • 2,426
2 votes
2 answers
132 views

Printing a variable list of values in title

I am creating a cls based on scrbook. I would like the user to be able to print a variable set of values in the title, where each value is on its own line. It should be possible to handle any number ...
sn8wman's user avatar
  • 33
3 votes
1 answer
112 views

How can I pass the languages to my custom documentclass?

I am creating a documentclass for which I want to be able to define the languages used in a customization section. The current approach is loading the customized languages too late so that they are ...
lukascbossert's user avatar
0 votes
1 answer
77 views

How to get the release info of a custom class?

I would like to get the release info of my custom class, so I can add this information in the PDF metadata. In other words, if I have a class that starts like this: \NeedsTeXFormat{LaTeX2e} \...
drl's user avatar
  • 496
0 votes
2 answers
103 views

How to set \baselineskip in a class file?

I want to change the length of \baselineskip for my latex documents. This is my test document: \documentclass{testlayout} \begin{document} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ...
axolotlKing0722's user avatar
1 vote
0 answers
32 views

Semantic versioning for a project of a collection of document classes?

I am planning to write some document classes for use in a company. So far, my idea is to write an article class based on scrartcl and respecting our CI/CD, and to write some specific classes for ...
ehak's user avatar
  • 45
3 votes
3 answers
153 views

How to send option to package from class option OR order of option processing with \PassOptionsToPackage?

I’m developing a combination of classes and packages, where the package is used to define a color set (that should be usable in different classes) and has an option color-mode=cmyk|rgb|gray to device ...
Tobi's user avatar
  • 58.1k
4 votes
1 answer
206 views

Why \IfPackageAtLeastTF{⟨package⟩}{⟨date⟩}{\PassOptionsToPackage{⟨option⟩}{⟨package⟩}}{} doesn't pass ⟨option⟩ to ⟨package⟩?

My current version of parskip is 2021-03-14 so: \IfPackageAtLeastTF{parskip}{2018-08-24}{\PassOptionsToPackage{indent}{parskip}}{} \usepackage{parskip} should pass the indent option to parskip. But ...
Denis Bitouzé's user avatar
0 votes
0 answers
265 views

Personal .sty and .cls files creation

I have recently been more and more interested in the LaTeX dark side (i.e. developping commands, packages, globally playing and trying stuff for fun and knowledge - so jk I know it is not that dark (: ...
Marck's user avatar
  • 177
0 votes
1 answer
86 views

Help with automatic text formatting in class files!

I'm relatively new to LaTeX (within a year or so). I found an attempt at a legal document file online, and have been modifying it to work as I'd like, and attempting to change the functionality around....
LaTeXLawyer's user avatar

15 30 50 per page
1
2 3 4 5
33