LaTeX

Ultimate Reference for Symbols

While not the easiest to search, this reference contains a list of every LaTeX symbol you could ever want, as well as a lot of other advanced information about LaTeX characters and processing. It's a delightful resource put together by Scott Pakin in 2003, but it's held up well. I keep an archived copy for my purposes:

https://static.garrettmills.dev/gist/latex-commands.pdf

I have also archived a publication containing a slightly more abridged collection of math symbols and tutorials from AMS:

https://static.garrettmills.dev/gist/latex-math-guide.pdf

Show Total Pages in Footer

That is, if you want to have the footer say "Page X of XX" rather than just the current page number. This can be done like so. In the preamble of your document (before the document in LaTeX, and in Document > Settings > LaTeX Preamble in LyX), add the following:

\usepackage{lastpage}
\usepackage{fancyhdr}

Then, before the \begin call in your document, add the following:

% clear the existing header
\fancyhf{}

% Add the footer to the first page (\pageref{LastPage} is generated by the lastpage package)
\fancyfoot[C]{Page \thepage~of~\pageref{LastPage}}
\makeatletter
\let\ps@plain\ps@fancy
\makeatother

% Add the footer to the other pages
\pagestyle{fancy}
\fancyfoot[C]{Page {\thepage} of \pageref{LastPage}}

Note that you may need to dnf install texlive-lastpage texlive-fancyhdr for this to work. I'm using pdflatex.

LaTeX Vertical Tree Diagrams

First, make sure you dnf install texlive-inlinedef texlive-forest. Then, you can define a vertical tree diagram like so:

\begin{forest}
[$\lambda$, text=red
[0, text=red
[0, text=red
[0, text=red
[0, text=red] [1, text=red]
]
[1
[0] [1]
]
]
[1
[0
[0] [1]
]
[1
[0] [1]
]
]
]
[1, text=red
[0, text=red
[0, text=red
[0, text=red] [1]
]
[1
[0] [1]
]
]
[1
[0
[0] [1]
]
[1
[0] [1]
]
]
]
]
\end{forest}

For example: