[Tex/LaTex] find an online manual for low-level LaTeX commands

documentationlatex-basemacrosonline

Is there an online manual for low-level LaTeX commands I can download?

I am looking for something which would have, for example:

\newif\ifportrait
\newif\ifcustomsize
\newif\ifdebug

\makeatletter
\renewenvironment{theindex}
  {\if@twocolumn
      \@restonecolfalse
   \else
      \@restonecoltrue
   \fi
   \setlength{\columnseprule}{0pt}
   \setlength{\columnsep}{35pt}
   \begin{multicols}{3}[\section*{\indexname}]
   \markboth{\MakeUppercase\indexname}%
            {\MakeUppercase\indexname}%
   \thispagestyle{plain}
   \setlength{\parindent}{0pt}
   \setlength{\parskip}{0pt plus 0.3pt}
   \relax
   \let\item\@idxitem}%
  {\end{multicols}\if@restonecol\onecolumn\else\clearpage\fi}
\makeatother

Best Answer

The LaTeX2e kernel macros are documented in source2e. An unfinished macros2e document lists all of its macros which are deemed directly useful for package authors.

If you need help with the underlying plainTeX macros and primitives (which lie even deeper than the LaTeX kernel) then I suggest the free books TeX for the impatient and TeX by Topic which are freely available on CTAN.