Questions tagged [latex-base]
{latex-base} is about the inner workings of the LaTeX kernel. Do not use this tag for general questions about LaTeX or {macros}.
223 questions
8
votes
1
answer
248
views
Why adding `\usepackage{mathtools}` gives latex error in this example?
I am trying the solution given in How to get paragraph spacing within table to be same as outside when using parskip package?
Which works fine except when I added \usepackage{mathtools} it gives error....
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}
...
1
vote
1
answer
72
views
oProvide error and warning code numbers? Modified binaries
If this is off-topic, or otherwise useless here, then I apologize. Just say so in comments, so I can remove it after a couple of days.
Problem: As many (including myself) have noted, (La)TeX often ...
5
votes
3
answers
1k
views
How would you recode this LaTeX example, to code it in the most primitive TeX-Code?
Please do compare the following codes.
The first code is LaTeX, the second is PDFTeX.
Question: How would you recode the LaTeX example, to code it in the most primitive TeX-Code you can think of?
...
10
votes
1
answer
308
views
How can I determine current font attributes and/or determine if the current font has been substituted by the kernel?
This question concerns two attributes of fonts in LaTeX: series (e.g. bold extended) and shape (e.g. italic small-caps). The problem does not arise for encoding (e.g. T1) or family (e.g. yesjw).
How ...
0
votes
1
answer
95
views
Installation of TeX Live 2007 ends up with error messages, saying it fails to build some formats
Upon installing TeX Live 2007 from https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2007/texlive2007-live-20070212.iso.bz2 on Debian 12 in a local user's home directory, we get a bunch of ...
4
votes
2
answers
182
views
How can I do the equivalent of \DeclareFontShapeChangeRule which tests 4 targets rather than 3?
If you don't care why I'm asking, skip the first section ....
Problem:
No small-caps italic shape was defined in LaTeX 2e.
\textsc{\textit{small-caps italic}} did not produce small-caps italic even ...
3
votes
1
answer
270
views
LaTeX rollback - unexpected behavior
Typesetting this mwe
\RequirePackage[2015/01/01]{latexrelease}
\documentclass{article}
\begin{document}
Hello World
\end{document}
I expect it to be indicated the LaTeX version 2015/01/01 into the ...
3
votes
1
answer
198
views
Is there a command something like \NeedsTeXFormatAtLeast{LaTeX2e}[date]
I know about the command \NeedsTeXFormat, as in such as \NeedsTeXFormat{LaTeX2e}[2023/11/01]. But:
does this automatically allow a later LaTeX format to be used?
if not, is there some similar command ...
3
votes
1
answer
174
views
`section` is reset upon changing a chapter?
The amsthm documentation states:
If any theorem elements are numbered by section, and (in a book) the first such element in a chapter comes before the first section, numbering will continue from the ...
8
votes
1
answer
315
views
Why do I get "unused global options warning" for options forwarded to a package except for the first option?
I am working on a custom package for my macros and shortcuts, and a custom class for my preferred style of the document. I am using DeclareKeys to define key-value options in my package, and then my ...
0
votes
1
answer
162
views
why is ispackageloaded named with an @? [duplicate]
I suppose there is some reason why the command \@ifpackageloaded
is not just called \ifpackageloaded
But with the @ one has some additional work:
\makeatletter
\@ifpackageloaded{geometry}
{ ...
3
votes
1
answer
438
views
Adding to package hook after it's been loaded
It was my understanding of kernel hooks that adding to a hook only affects instances that follow that addition. This seems true for in-document hooks. For example, with
\begin{quote}
some text
\end{...
0
votes
1
answer
172
views
How to make a specific environment disappear? [duplicate]
I have got several Tikz pictures whose compilation takes up much time. More generally, I am wondering whether there is a switch that can make a specific environment foo disappear as if the code would ...
2
votes
1
answer
999
views
Page breaks still occur in samepage
I cannot find any documentation at all on the samepage environment (aside from a cryptic comment on p229 of the LaTeX book that "The \samepage command still works, but is now of little use", ...