Latex FAQ of Kebin Wang
Put box around theorems, algorithms, etc
The code:
\framebox[0.95\linewidth]{
\begin{minipage}{0.90\linewidth}
\end{minipage}
}
When give name to itemized item, the name will go out of left boundary
The work around method. Make it into a minipage with width 0.9 of
linewidth.
\framebox[0.95\linewidth]{
\begin{minipage}{0.90\linewidth}
\begin{itemize}
\item [Step 1:]
\item [Step 2:]
\end{itemize}
\end{minipage}
}
Color text
need to use package color
\usrpackage{color}
\textcolor{blue}{
The text you want to make blue.
}
theorem counter. How to reset
To make the next theorem number 5, put the following before it.
\setcounter{theorem}{4}
It will reset the counter to 4 and make the one you want to be 5 as 5.
All theorems follows will be numbered according to this new counter.
Put algorithm in Texpoint/squish itemize environment.
\documentclass{slides}\pagestyle{empty}
\usepackage{color}
\begin{document}
\begin{minipage}{1.20\linewidth}
\textcolor{blue}{
\textbf{\large Build $k$-splitter on $k^3$ inputs}
\hrule
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
\item
Item 1.
\item
Item 2.
\begin{itemize}
\item subitem 1.
\item subitem 2.
\end{itemize}
\item
Item 3.
\end{itemize}
} %ends color
\end{minipage}
\end{document}
The text will be blue. And there will be items within items.
Set the width more than linewidth make the text wider to fit the slides.
Horizontal lines outside a table/within normal text
"\hrule" will put a horizontal line
Latex symbols
Change emacs fonts
nvoke mouse-set-font command by clicking the left mouse button in any
emacs window while holding the Shift key. This will pop-up a nice menu of
fonts you can choose new font from. Then the default emacs font will be
set to new font you choose.
tar files
* Create tar file and add all txt files from current directory
tar cvf example.tar *.txt
* Create tar file and add all content recursively from dirname
tar cvf example.tar dirname
* Extract files from tar
tar xvf example.tar
* View contents of tar file
tar tvf example.tar
tar -pczf name_of_your_archive.tar.gz /path/to/directory