The question is pretty straightforward: Where (in which file) and how is the twocolumn option for latex classes defined?
This is what I found searching article.cls, just in case:
Linha 96: \DeclareOption{onecolumn}{\@twocolumnfalse}
Linha 98: \DeclareOption{twocolumn}{\@twocolumntrue}
Linha 98: \DeclareOption{twocolumn}{\@twocolumntrue}
Linha 210: \if@twocolumn
Linha 214: \twocolumn[\@maketitle]%
Linha 322: \if@twocolumn
Linha 331: \if@twocolumn
Linha 378: \if@twocolumn
Linha 387: {\if@twocolumn\else\endquotation\fi}
Linha 412: \if@twocolumn
Linha 420: {\if@restonecol\twocolumn \else \newpage \fi
Linha 425: \if@twocolumn
Linha 433: {\if@restonecol\twocolumn \else \newpage \fi
Linha 587: {\if@twocolumn
Linha 592: \twocolumn[\section*{\indexname}]%
Linha 635: \if@twocolumn
Linha 636: \twocolumn
Note: I had already searched it, of course.
What I mean is, what does \@twocolumntrue/false point to?
article.cls? Just search fortwocolumn. Twocolumn is a feature of the output routine, the classes then provides options to switch this feature on an off. – daleif Nov 28 '22 at 11:21texdoc classeswhich is mentioned in the top answer there. – user202729 Nov 28 '22 at 11:22article.cls(for example usingkpsewhich article.clsfrom a terminal), then open that file in an editor, then search for the stringtwocolumn, there you see how the option is defined and handled. – Marijn Nov 28 '22 at 11:50@twocolumnthat is being set totruewith the class option is defined inlatex.ltx(which is loaded by default when you compile withpdflatexorxelatexorlualatex, although in a precompiled form), in my version on line 15060\newif \if@twocolumn \@twocolumnfalse. Is that what you are asking about? – Marijn Nov 28 '22 at 12:17