Tagged Questions
25
votes
2answers
922 views
Understanding \@ifnextchar
I understand the definitions of the \makeatletter and \makeatother commands and also \def and \newcommand somewhat. But, explained in a simple way, what is happening in the following line?
...
12
votes
2answers
166 views
\if@minipage purpose in floats
In floating environments such as the captions of figures, LaTeX has a \global\@minipagefalse, why is this necessary and what does this switch do?
\long\def\@makecaption#1#2{%
...
22
votes
1answer
950 views
Check if next char is {
Using \@ifnextchar one can detect if e.g. the next Character is a [, e.g.:
\@ifnextchar[%
{
%% code to execute if [ scanned.
}{
%% code to execute if [ scanned.
}
However, I can’t seem to ...
15
votes
3answers
296 views
What's the use of the @compatibility condition?
All of the standard LaTeX document classes (article, book and report) declare some basic functionality and parameters based on the condition @compatibility. Here's an extract from from article.cls ...
16
votes
2answers
224 views
How can I detect if I'm inside or outside of a float environment?
I am trying to detect whether I am inside or outside a float. I know the way how caption works. It uses the internal \@captype. But in the example below you see that this test failed by using ...
15
votes
1answer
392 views
What exactly does \@doendpe do?
Quoting from the LaTeX2e sources:
[\@endparenv, \@doendpe]
To suppress the paragraph indentation in text immediately following a
paragraph-making environment, \everypar is changed to remove ...
9
votes
1answer
256 views
When is \if@nobreak set to \iftrue or \iffalse?
In my answer to a question on page breaking, I used a private switch that the user had to set by hand to prevent tables which start just after a section from breaking (at the first line).
It seems ...