From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- info/latex-course/Graphics/Ross-Siegel.png | Bin 0 -> 236199 bytes info/latex-course/Graphics/Thumbs.db | Bin 0 -> 18944 bytes info/latex-course/Graphics/campus3.png | Bin 0 -> 89057 bytes info/latex-course/LaTeX-Course.pdf | Bin 0 -> 625356 bytes info/latex-course/LaTeX-Course.tex | 853 +++++++++++++++++++++++++++++ info/latex-course/LaTeX-course.prj | 35 ++ info/latex-course/README | 9 + info/latex-course/beamercolorthemeross.sty | 78 +++ 8 files changed, 975 insertions(+) create mode 100644 info/latex-course/Graphics/Ross-Siegel.png create mode 100644 info/latex-course/Graphics/Thumbs.db create mode 100644 info/latex-course/Graphics/campus3.png create mode 100644 info/latex-course/LaTeX-Course.pdf create mode 100644 info/latex-course/LaTeX-Course.tex create mode 100644 info/latex-course/LaTeX-course.prj create mode 100644 info/latex-course/README create mode 100644 info/latex-course/beamercolorthemeross.sty (limited to 'info/latex-course') diff --git a/info/latex-course/Graphics/Ross-Siegel.png b/info/latex-course/Graphics/Ross-Siegel.png new file mode 100644 index 0000000000..205e252883 Binary files /dev/null and b/info/latex-course/Graphics/Ross-Siegel.png differ diff --git a/info/latex-course/Graphics/Thumbs.db b/info/latex-course/Graphics/Thumbs.db new file mode 100644 index 0000000000..ba1cd46394 Binary files /dev/null and b/info/latex-course/Graphics/Thumbs.db differ diff --git a/info/latex-course/Graphics/campus3.png b/info/latex-course/Graphics/campus3.png new file mode 100644 index 0000000000..bebb381389 Binary files /dev/null and b/info/latex-course/Graphics/campus3.png differ diff --git a/info/latex-course/LaTeX-Course.pdf b/info/latex-course/LaTeX-Course.pdf new file mode 100644 index 0000000000..e04dc409a1 Binary files /dev/null and b/info/latex-course/LaTeX-Course.pdf differ diff --git a/info/latex-course/LaTeX-Course.tex b/info/latex-course/LaTeX-Course.tex new file mode 100644 index 0000000000..6143d08242 --- /dev/null +++ b/info/latex-course/LaTeX-Course.tex @@ -0,0 +1,853 @@ +% -*- TeX:US -*- +\NeedsTeXFormat{LaTeX2e} +\documentclass[presentation,hideothersubsections,final,10pt,american]{beamer} +% LaTeX course created for the Biochemistry faculty at RUSM. The course is based on the +% /info/german/tex-kurs by Rainer Rupprecht (1988) and on /info/lshort/ by Schmidt et al., 2003. +% This material may be used under Gnu Copyleft + +% everyone: +\usepackage{babel,siunitx,hyperref,graphicx,marvosym,wasysym,isotope,chemarrow,booktabs} +\usepackage[largesmallcaps,frenchstyle,partialup,narrowiints]{kpfonts} +\usepackage{textgreek} +\usepackage{inputenc} +\usepackage[T1]{fontenc} + +\mode
{\usepackage{fullpage}} +\mode{\usetheme{Goettingen}\usecolortheme{ross}} +\mode{\setbeamercolor{background canvas}{bg=black!5}} +\beamertemplatenavigationsymbolsempty + +\newcommand{\ph}{\textit{p}H} + +\newcommand{\single}{\raisebox{0.25ex}{\ensuremath{-}}} +\newcommand{\double}{\raisebox{0.25ex}{\ensuremath{=}}} +\newcommand{\triple}{\raisebox{0.25ex}{\ensuremath{\equiv}}} +\makeatletter +\DeclareRobustCommand{\chemical}[1]{% + {\(\m@th + \edef\resetfontdimens{\noexpand\)% + \fontdimen16\textfont2=\the\fontdimen16\textfont2 + \fontdimen17\textfont2=\the\fontdimen17\textfont2\relax}% + \fontdimen16\textfont2=2.7pt \fontdimen17\textfont2=2.7pt + \mathsf{#1}% + \resetfontdimens}} +\makeatother + +\frenchspacing + +\title{The \alert{\LaTeX} document preparation system} +\institute{Department of Biochemistry, RUSM} +\author{Dr Engelbert Buxbaum} +\date{July 2008\\ \vspace{5mm} + \includegraphics[height=15mm]{Graphics/Ross-Siegel}} + +\begin{document} +\setbeamertemplate{footline} + {% + \insertframenumber + } + +\frame{\titlepage} + +\section{Introduction} + +\begin{frame} + \frametitle{Name of the game} + \begin{description} + \item[\TeX]{typesetting system developed by + \textsc{Donald E. Knuth} (Stanford University) to + create beautiful documents, especially those + containing maths. \TeX\ is free software with + copyright vested in the American Mathematical + Society.} + \item[\LaTeX]{\TeX -macroprocessor written by \textsc{Leslie + Lamport}, which implements a markup-language (similar: HTML, XML). Users can + concentrate on the structure of their document rather than on + formatting.} + \end{description} +\end{frame} + +\begin{frame} + \frametitle{Typographic design} + \begin{itemize} + \item{craft that needs to be learned} + \item{not about esthetics but about function: Books are + read, not displayed in a museum} + \end{itemize} +\end{frame} + +\subsection{Advantages and disadvantages} + +\begin{frame} + \frametitle{Advantages} + \begin{itemize} + \item{Several professional styles are available that + make documents look ``like printed''. Changing + style requires changing one single line in the + document, consistency is ensured.} + \item{High quality math typesetting} + \item{Only a few commands to define the structure of + text, no knowledge of typography or book design + required.} + \item{Complex scientific documents can be created + automatically: + \begin{itemize} + \item{bibliography} + \item{index} + \item{crossreferences} + \item{table of contents, lists of figures, + tables etc.} + \item{...} + \end{itemize} } + \item{Operating-system independent} + \item{Long-term storage of documents: ASCII rather + than binary} + \item{Free software with source code available: Errors + are corrected rapidly} + \end{itemize} +\end{frame} + +\begin{frame} + \frametitle{Disadvantages} + \begin{itemize} + \item{Learning curve} + \item{Major changes in layout may require rewriting the + style file (blessing in disguise)} + \item{One gets an eye for all the bad documents out + there} + \end{itemize} +\end{frame} + +\subsection{Resources} + +\begin{frame} + \frametitle{Resources} + \begin{description} + \item[Software]{\href{www.ctan.org}{\texttt{\alert{www.ctan.org}}}, automatically selects nearest server } + \item[Help]{Usenet: comp.text.tex (also German: de.comp.text.tex)} + \item[Introduction]{l2short available in various languages} + \item[Literature]{The \LaTeX -companion (\textsc{Mittelbach} + \textit{et al}, 2004)} + \item[Symbols]{Comprehensive symbol list from CTAN} + \end{description} +\end{frame} + +\section{Structure of a \LaTeX\ document} + +\begin{frame} + \frametitle{Boxes and glue} + \begin{itemize} + \item{Box (letter) + Glue (space) + Box + ... = larger + Box (word)} + \item{Words are treated as boxes to form lines, lines + paragraphs and paragraphs pages} + \item{Glue can shrink and expand within limits} + \end{itemize} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Structure of a \LaTeX -document} + {\color{darkgreen} \begin{verbatim} + % -*- TeX:US -*- % for text-editor + \NeedsTeXFormat{LaTeX2e} % for TeX-system + \documentclass[options]{style} + + \usepackage[latin1]{inputenc} + \usepackage[T1]{fontenc} + + \author{} + \title{} + \date{} + + \begin{document} + \maketitle + + \chapter{} + ... + \end{document} + \end{verbatim} } +\end{frame} + +\subsection{classes} + +\begin{frame} + \frametitle{Document classes} + \begin{tabular}{llp{0.5\textwidth}} + \toprule + \LaTeX & Koma-Script & purpose \\ + \midrule + article & scrartcl & journal papers, short reports \\ + report & scrreprt & longer text with several chapters, e.g. thesis \\ + book & scrbook & books \\ + letter & scrlttr2 & letters \\ + beamer & & slide presentations \\ + sciposter & & conference posters \\ + \bottomrule + \end{tabular} + + Apart from Koma-Script another alternative style package is + \alert{memoir}. Also publisher-specific styles (e.g. + Springer, Elsevier, Teubner etc.) +\end{frame} + +\begin{frame} + \frametitle{Class options} + \begin{description} + \item[Font size]{10pt | 11pt | 12pt...} + \item[Paper size]{a4paper | legalpaper...} + \item[equations]{fleqn, leqno } + \item[title]{titlepage | notitlepage} + \item[columns]{onecolumn | twocolumn} + \item[printing]{oneside | twoside} + \end{description} +\end{frame} + +\section{Basic commands} + +\subsection{Special characters} + +\begin{frame}[fragile] + \frametitle{Input characters} + Some characters have special meaning in \TeX , if you need + them they have to be entered as \TeX -commands: + + \vspace{5mm} + \begin{tabular}{lll} + $\backslash$~~ & start command & {\color{darkgreen}\verb+$\backslash$+} \\ + & & note: {\color{darkgreen}\verb+\\+} = newline \\ + \$ & toggle math modus & {\color{darkgreen}\verb+\$+} \\ + \& & tabulator & {\color{darkgreen}\verb+\&+} \\ + \% & rest of line comment & {\color{darkgreen}\verb+\%+} \\ + \# & & {\color{darkgreen}\verb+\#+} \\ + \textasciitilde & & {\color{darkgreen}\verb+\textasciitilde+} \\ + \textbar & vert. lines in table & {\color{darkgreen}\verb+\textbar+} \\ + \_ & start subscript & {\color{darkgreen}\verb+\_+} \\ + \textasciicircum & start superscript & {\color{darkgreen}\verb+\textasciicircum+}\\ + \{ \} & command delimiter & {\color{darkgreen}\verb+\{ \}+} \\ + $[\ ]$ & optional arguments & {\color{darkgreen}\verb+$[ ]$+} \\ + `` '' & quotation marks & {\color{darkgreen}\verb+`` ''+} \\ + $> <$ & tabbing & {\color{darkgreen}\verb+$> <$+} \\ + \end{tabular} +\end{frame} + +\subsection{Hypens \& Cie} + +\begin{frame}[fragile] + \frametitle{Hypen, minus ...} + A horizontal line can mean a lot of things, depending on + length and thickness: + + \vspace{5mm} + \begin{tabular}{lll} + O-legs & {\color{darkgreen}\verb+O-legs+} \\ + 10--18 o'clock & {\color{darkgreen}\verb+10--18 o'clock+} \\ + ja -- oder nein? & {\color{darkgreen}\verb+ja -- oder nein?+} \\ + yes---or no? & {\color{darkgreen}\verb+yes---or no?+} \\ + 0, 1 and --1 & {\color{darkgreen}\verb+0, 1 and --1+} \\ + \end{tabular} +\end{frame} + +\section{Structuring text} + +\subsection{Sectioning} + +\begin{frame}[fragile] + \frametitle{Sectioning commands} + \begin{itemize} + \item{\alert{$\backslash$part\{\}}} + \item{\alert{$\backslash$chapter\{\}}} + \item{{\color{darkgreen}$\backslash$section\{\}}} + \item{{\color{darkgreen}$\backslash$subsection\{\}}} + \item{{\color{darkgreen}$\backslash$subsubsection\{\}}} + \item{{\color{darkgreen}$\backslash$paragraph\{\}}} + \end{itemize} +\end{frame} + +\begin{frame} + \frametitle{Breaking down large documents} + Use separate files for, say, each chapter. One main file with + limbo and commands to include the others: + \begin{description} + \item[{\color{darkgreen}$\backslash$input\{\}}]{reads file ``as is''} + \item[{\color{darkgreen}$\backslash$include\{\}}]{equiv. to + {\color{darkgreen}$\backslash$clearpage $\backslash$input\{\} + $\backslash$clearpage}} + \item[{\color{darkgreen}$\backslash$includeonly\{\}}]{used in limbo to + limit files {\color{darkgreen}$\backslash$included} } + \end{description} +\end{frame} + +\begin{frame} + \frametitle{What is where?} + \begin{itemize} + \item{{\color{darkgreen}$\backslash$tableofcontents}} + \item{{\color{darkgreen}$\backslash$listoffigures}} + \item{{\color{darkgreen}$\backslash$listoftables}} + \item{} + \item{{\color{darkgreen}$\backslash$bibliographystyle\{plainnat\}}} + \item{{\color{darkgreen}$\backslash$bibliography\{references\}}} + \item{} + \item{{\color{darkgreen}$\backslash$printindex}} + \end{itemize} +\end{frame} + +\subsection{Fonts} + +\begin{frame} + \frametitle{Emphasizing} + \begin{description} + \item[{\color{darkgreen}$\backslash$textit\{\}}]{italics, used for + foreign words, species names etc: \textit{Staph. + aureus}} + \item[{\color{darkgreen}$\backslash$textsl\{\}}]{\textsl{slanted}} + \item[{\color{darkgreen}$\backslash$emph\{\}}]{used for emphasizing: + this is \emph{not} the case} + \item[{\color{darkgreen}$\backslash$textsc\{\}}]{small caps, used for + persons: \textsc{Neil Armstrong} was the first man on the moon.} + \item[{\color{darkgreen}$\backslash$textbf\{\}}]{bold face: used to + make something really \textbf{stick out}.} + \item[{\color{darkgreen}$\backslash$textsf\{\}}]{sans serif, often used + as base font on slides. Also used for chemical + equations.} + \item[{\color{darkgreen}$\backslash$texttt\{\}}]{typewriter, used for + computer code or URLs: \texttt{http://www.rossmed.edu.dm/}} + \end{description} + \alert{Note:} Slides use sanserif font: slanted instead of italics! +\end{frame} + +\begin{frame}[fragile] + \frametitle{Font sizes} + {\begin{tabbing} \texttt{xfootnotesizexx}\= und dann der Text + \kill + {\color{darkgreen}\verb|\tiny|} \> \tiny microscopic font \\ + {\color{darkgreen}\verb|\scriptsize|} \> \scriptsize very tiny font (subscripts)\\ + {\color{darkgreen}\verb|\footnotesize|} \> \footnotesize tiny font (footnotes) \\ + {\color{darkgreen}\verb|\small|} \> \small small font \\ + {\color{darkgreen}\verb|\normalsize|} \> \normalsize normal font \\ + {\color{darkgreen}\verb|\large|} \> \large large font \\ + {\color{darkgreen}\verb|\Large|} \> \Large larger font \\ + {\color{darkgreen}\verb|\LARGE|} \> \LARGE very large font \\[3pt] + {\color{darkgreen}\verb|\huge|} \> \huge huge font \\[3pt] + {\color{darkgreen}\verb|\Huge|} \> \Huge very huge font + \end{tabbing}} + Note: \alert{not} a command: {\color{darkgreen}\verb+{\small foo bar}+} +\end{frame} + +\subsection{Lists} + +\begin{frame}[fragile] + \frametitle{Simple lists} + Please believe me: + \begin{itemize} + \item{Few swallows can turn winter into summer.} + \item{Inside it's colder than in the night. + \begin{itemize} + \item{In the morning it pulls.} + \item{At noon he pushes.} + \item{In the evening she goes.} + \end{itemize} } + \item{Every nonsense must find an end.} + \end{itemize} + {\color{darkgreen}\small \begin{verbatim} +Please believe me: +\begin{itemize} + \item{Few swallows can turn winter into summer.} + \item{Inside it's colder than in the night. + \begin{itemize} + \item{In the morning it pulls.} + \item{At noon he pushes.} + \item{In the evening she goes.} + \end{itemize} } + \item{Every nonsense must find an end.} +\end{itemize} + \end{verbatim} } +\end{frame} + +\begin{frame}[fragile] + \frametitle{Descriptive lists} + Three animals you should know about are: + \begin{description} + \item[gnat:]{A small animal, found in the North + Woods, that causes no end of trouble.} + \item[gnu:]{A large animal, found in crossword + puzzles, that causes no end of trouble.} + \item[armadillo:]{A medium-sized animal, named + after a medium-sized Texas city which causes no + end of trouble.} + \end{description} + {\color{darkgreen}\small \begin{verbatim} +\begin{description} + \item[gnat:]{A small animal, found in the North + Woods, that causes no end of trouble.} + \item[gnu:]{A large animal, found in crossword + puzzles, that causes no end of trouble.} + \item[armadillo:]{A medium-sized animal, named + after a medium-sized Texas city which causes + no end of trouble.} +\end{description} +\end{verbatim} } +\end{frame} + +\begin{frame}[fragile] + \frametitle{Enumerated lists} + These are the main points: + \begin{enumerate} + \item{first item} + \item{second item} + \item{third item + \begin{enumerate} + \item{first sub-item} + \item{second sub-item} + \end{enumerate} } + \end{enumerate} + {\color{darkgreen}\small \begin{verbatim} +These are the main points: +\begin{enumerate} + \item{first item} + \item{second item} + \item{third item + \begin{enumerate} + \item{first sub-item} + \item{second sub-item} + \end{enumerate} } +\end{enumerate} +\end{verbatim} } +\end{frame} + +\subsection{Tables and stuff} + +\begin{frame}[fragile] + \frametitle{Tabbing} + \begin{tabbing} + If \= it's raining \\ + \> then \= put on boots, \\ + \> \> take hat; \\ + \> else \> smile. \\ + Leave house. + \end{tabbing} + {\color{darkgreen}\small \begin{verbatim} +\begin{tabbing} + If \= it's raining \\ + \> then \= put on boots, \\ + \> \> take hat; \\ + \> else \> smile. \\ + Leave house. +\end{tabbing} + \end{verbatim} } +\end{frame} + +\begin{frame}[fragile] + \frametitle{Tabular} + \begin{tabular}{|r||c|p{2.5in}|} + \hline + \multicolumn{3}{|c|}{\sc GG\&A Hoofed Stock} \\ + \hline + \hline + \multicolumn{1}{|c||}{\bf Year} & \bf Price & \multicolumn{1}{c|}{\bf Comments} \\ + \hline + 1971 & 97--245 & Bad year for farmers in the west. \\ \hline + 72 & 245--245 & Light trading due to a heavy winter. \\ \hline + 73 & 245--2001 & No gnus was very good gnus this year. \\ \hline + \end{tabular} + {\color{darkgreen}\scriptsize \begin{verbatim} +\begin{tabular}{|r||c|p{2.5in}|} + \hline + \multicolumn{3}{|c|}{\sc GG\&A Hoofed Stock} \\ + \hline + \hline + \multicolumn{1}{|c||}{\bf Year} & \bf Price & \multicolumn{1}{c|}{\bf Comments} \\ + \hline + 1971 & 97--245 & Bad year for farmers in the west. \\ + \hline + 72 & 245--245 & Light trading due to a heavy winter. \\ + \hline + 73 & 245--2001 & No gnus was very good gnus this year. \\ + \hline +\end{tabular} + \end{verbatim} } + Note: this is a very bad example of a table! +\end{frame} + +\begin{frame}[fragile] + \frametitle{Table (a float: not used on slides)} + {\color{darkgreen}\small \begin{verbatim} +\begin{table} + \caption{The fastest man in the world: + Some of his possibilities} + \label{tab:fast} + \centering + \begin{tabular}{|l|c|r|} + \toprule + Disciplin & distance (m) & time (min) \\ + \midrule + Running & 100 & 5 \\ + Swimming & 50 & 30 \\ + Cycling & 1000 & 20 \\ + \bottomrule + \end{tabular} +\end{table} + \end{verbatim} } + In the text the table can be referenced with: see table + {\color{darkgreen}\verb+\ref{tab:fast}+} on page {\color{darkgreen}\verb+\pageref{tab:fast}+}. +\end{frame} + +\subsection{Graphics} + +\begin{frame}[fragile] + \frametitle{Graphics} + \includegraphics[height=0.3\textheight]{Graphics/Campus3} + + {\color{darkgreen}\footnotesize \begin{verbatim} +\includegraphics[height=0.3\textheight]{Graphics/Campus3} + \end{verbatim} } + \begin{itemize} + \item{Requires \verb+\usepackage{graphicx}+} + \item{Several file formats possible depending on + dvi-driver. For pdfLaTeX pdf, png, jpg. } + \item{Convert other formats \textit{e.g.}, with IrfanView or + Gimp.} + \item{other optional arguments like width, angle, + size} + \end{itemize} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Figures } + {\color{darkgreen}\scriptsize \begin{verbatim} +\begin{figure} + \caption{A view of our campus. } + \label{fig:Campus} + \centering + \includegraphics[height=0.3\textheight]{Graphics/Campus3} +\end{figure} + \end{verbatim} } + Like table, figure is a floating environment that has no + meaning in slides. Cross-referencing works as with tables. +\end{frame} + +\section{Maths} + +\subsection{Math environments} + +\begin{frame}[fragile] + \frametitle{Text maths} + if $a$ and $b$ are legs of a + right-angled triangle and $c$ the hypotenuse, then + $c^2=a^2+b^2$ (Theorem of Pythagoras). + + {\color{darkgreen}\small \begin{verbatim} +if $a$ and $b$ are legs of a right-angled triangle +and $c$ the hypotenuse, then $c^2=a^2+b^2$ (Theorem +of Pythagoras). + \end{verbatim} } +\end{frame} + +\begin{frame}[fragile] + \frametitle{Display maths} + if $a$ and $b$ are legs of a + right-angled triangle and $c$ the hypotenuse, then + \begin{equation} + c^2=a^2+b^2 + \end{equation} + (Theorem of Pythagoras). + + {\color{darkgreen}\small \begin{verbatim} +if $a$ and $b$ are legs of a right-angled triangle +and $c$ the hypotenuse, then +\begin{equation} + c^2=a^2+b^2 +\end{equation} +(Theorem of Pythagoras). + \end{verbatim} } +\end{frame} + +\subsection{Basic math commands} + +\begin{frame}[fragile] + \frametitle{Formulas} + \begin{displaymath} + x^5 \qquad \qquad x_1 \qquad \qquad \sqrt{x^2+\sqrt[3]{y}} + \end{displaymath} + {\color{darkgreen}\begin{verbatim} +x^5 x_1 \sqrt{x^2+\sqrt[3]{y}} + \end{verbatim}} + + \begin{displaymath} + \frac{1}{\frac{x^2+y^2+z^2}{x+y}} \qquad \qquad {n\choose {n-k}} + \end{displaymath} + {\color{darkgreen}\begin{verbatim} +\frac{1}{\frac{x^2+y^2+z^2}{x+y}} {n\choose {n-k}} + \end{verbatim}} + + \begin{displaymath} + \int \limits_{-\infty}^{\infty}x^3 \qquad \qquad \sum_{i=1}^{n}a_i + \end{displaymath} + {\color{darkgreen}\begin{verbatim} +\int \limits_{-\infty}^{\infty}x^3 \sum_{i=1}^{n}a_i + \end{verbatim}} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Aligning equations} + \begin{align} + f(x) & = \cos x \\ + f'(x) & = -\sin x \\ + \int_{0}^{x} f(y)dy & = \sin x + \end{align} + {\color{darkgreen}\small \begin{verbatim} +\begin{align} + f(x) & = \cos x \\ + f'(x) & = -\sin x \\ + \int_{0}^{x} f(y)dy & = \sin x +\end{align} + \end{verbatim} } +\end{frame} + +\section{Changing the layout} + +\subsection{Counters and parameters} + +\begin{frame}[fragile] + \frametitle{Internal Counter + parameters} + Change parameters: + {\color{darkgreen}\begin{verbatim} +\setlength{\parindent}{0pt} +\setlength{\parskip}{5pt plus 2pt minus 1pt} +\addtolength{\textwidth}{60pt} + \end{verbatim}} + + Set counters: + {\color{darkgreen}\begin{verbatim} +\setcounter{page}{0} +\addtocounter{page}{10} + \end{verbatim}} + + Output counter content: This is page \thepage.\\ + {\color{darkgreen}\verb+This is page \thepage.+} +\end{frame} + +\subsection{Distances} + +\begin{frame}[fragile] + \frametitle{Horizontal distance} + Here we have \hspace{2cm} \SI{2}{cm} distance. + + {\color{darkgreen}\begin{verbatim} +Here we have \hspace{2cm} \SI{2}{cm} distance. + \end{verbatim}} + + left\hfill right + {\color{darkgreen}\begin{verbatim} +left\hfill right + \end{verbatim}} + \begin{tabbing} + \texttt{xenspace}\qquad \= \kill + {\color{darkgreen}\verb|\,|} \> very small distance \\ + {\color{darkgreen}\verb|\enspace|} \> as wide as a number \\ + {\color{darkgreen}\verb|\quad|} \> as wide as a letter is heigh \\ + {\color{darkgreen}\verb|\qquad|} \> twice as wide as \verb|\quad| \\ + {\color{darkgreen}\verb|\hfill|} \> a distance that can expand from 0\\ + \> to $\infty$ \\ + \end{tabbing} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Vertical distance} + Here + + \vspace{2cm} + + is \SI{2}{cm} distance. + {\color{darkgreen}\begin{verbatim} +Here + +\vspace{2cm} + +is \SI{2}{cm} distance. + \end{verbatim}} + + \begin{tabbing} + \texttt{xsmallskip}\qquad \= \kill + {\color{darkgreen}\verb|\smallskip|} \> about $1/4$ line \\ + {\color{darkgreen}\verb|\medskip|} \> about $1/2$ line \\ + {\color{darkgreen}\verb|\bigskip|} \> about 1 line \\ + {\color{darkgreen}\verb|\vfill|} \> distance that can expand from 0\\ + \> to $\infty$ \\ + \end{tabbing} +\end{frame} + +\subsection{Text position} + +\begin{frame}[fragile] + \frametitle{Centering text} + \begin{center} + In\\ + the\\ + middle I don't\\ + feel\\ + so marginalized\\ + \end{center} + {\color{darkgreen}\begin{verbatim} +\begin{center} + In\\ + the\\ + middle I don't\\ + feel\\ + so marginalized\\ +\end{center} + \end{verbatim}} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Flushright text} + \begin{flushright} + This is not a political statement + \end{flushright} + {\color{darkgreen}\begin{verbatim} +\begin{flushright} + This is not a political statement +\end{flushright} + \end{verbatim}} +\end{frame} + +\section{Specialties} + +\subsection{The index} + +\begin{frame}[fragile] + \frametitle{Indexing commands} + \begin{description} + \item[simple]{\color{darkgreen}\verb+gnat\index{gnat}+} + \item[subtopics]{\color{darkgreen}\verb+gnat\index{gnat!size of}+} + \item[page range]{\color{darkgreen}\verb+\index{gnat|(}...\index{gnat|)}+} + \item[reference]{\color{darkgreen}\verb+\index{gnat|see{mosquito}}+} + \item[font]{\color{darkgreen}\verb+gnat\index{gnat@\textit{gnat}}+} + \end{description} + After first \LaTeX\ run, start \alert{makeindx} to sort the index. +\end{frame} + +\subsection{List of acronyms} + +\begin{frame}[fragile] + \frametitle{Acronyms} + Assume the following list of acronyms: + {\color{darkgreen}\begin{verbatim} +\begin{acronym} + \acro{nfkb}[NF-\textkappa B]{nuclear factor + \textkappa B}, protein in gene regulation +\end{acronym} + \end{verbatim}} + This will print as\\ + NF-\textkappa B: nuclear factor \textkappa B, protein in gene regulation + + Then + \begin{description} + \item[{\color{darkgreen}$\backslash$acf\{nfkb\}}]{nuclear factor \textkappa B (NF-\textkappa B)} + \item[{\color{darkgreen}$\backslash$acs\{nfkb\}}]{NF-\textkappa B} + \item[{\color{darkgreen}$\backslash$acl\{nfkb\}}]{nuclear factor \textkappa B} + \end{description} +\end{frame} + +\subsection{Bibliography} + +\begin{frame}[fragile] + \frametitle{BibTeX} + Database for literature references in ASCII-format. Can be + produced from many programs like \texttt{EndNote} or \texttt{RefMan}, also from \href{http://www.ncbi.nlm.nih.gov/pubmed/}{\texttt{\alert{PubMed}}}, \href{http://scholar.google.com/advanced_scholar_search?hl=en&as_sdt=2000}{\texttt{\alert{Google Scholar}}} (set preferences!) etc. + {\color{darkgreen}\small \begin{verbatim} +@article{Alb-76, + AUTHOR= {W.J. Albery and J.R. Knowles}, + TITLE= {Evolution of enzyme function and the + development of catalytic efficiency}, + JOURNAL= {Biochemistry}, + VOLUME= {15}, + YEAR= {1976}, + PAGES= {5631-5640}, + ABSTRACT= {Catalytic efficiency constant kcat/Km + defined }, + DOI= {10.1021/bi00670a032}, + LANGUAGE= {engl} +} + \end{verbatim} } + Similar for books, chapters, reports, thesis etc. In the text + use {\color{darkgreen}$\backslash$cite\{Alb-76\}}. After first \LaTeX + -run start \alert{bibtex} to create the bibliography. +\end{frame} + +\subsection{Slide presentations} + +\begin{frame} + \frametitle{Beamer-slides} + {\color{darkgreen}$\backslash$begin\{frame\} \\ + \hspace{2em}$\backslash$frametitle\{\} \\ + \hspace{2em}... \\ + $\backslash$end\{frame\}} +\end{frame} + +\subsection{TeX-ing} + +\begin{frame} + \frametitle{\TeX ing} + Always use the sequence: + \begin{description} + \item[\LaTeX]{produces the necessary intermediate + files} + \item[makeindx]{sort the index} + \item[bibtex]{create the bibliography} + \item[\LaTeX]{include bibliography and index, resolve + cross-references} + \item[\LaTeX]{resolve remaining cross-references} + \end{description} + Note: using pdf\LaTeX\ instead of \LaTeX\ produces pdf-files + directly. +\end{frame} + +\section{The departmental handout} + +\begin{frame}[fragile] + \frametitle{Packets used in dept. handout} + \begin{tabular}{lp{0.6\textwidth}} + acronym & administration of acronyms \\ + booktabs & professional looking tables \\ + chemarrow & various types of arrows for equations \\ + color & colored text \\ + eufrak & font for arrays + vectors \\ + graphicx & inclusion of diagrams \\ + hyperref & use cross-referencing facilities of pdf \\ + isodate & standard conform dates \\ + isotope & {\color{darkgreen}$\backslash$isotope[13]{C}} = \isotope[13]{C}\\ + kpfonts & works better than the original fonts \\ + makeidx & index generation \\ + natbib & clean handling of bibliography \\ + siunitx & {\color{darkgreen}$\backslash$SI{}{}, $\backslash$num{}, $\backslash$ang{}} \\ + thumb & chapter thumbs \\ + upgreek & {\color{darkgreen}$\backslash$textalpha} = \textalpha\ instead of $\alpha$ \\ + wasysym,marvosym & special symbols like \Male , \Female \\ + \end{tabular} +\end{frame} + +\begin{frame}[fragile] + \frametitle{Getting consistent output} + \begin{itemize} + \item{{\color{darkgreen}$\backslash$chemical\{CH\_2$\backslash$double + CH$\backslash$single OH\}} = \chemical{CH_2\double + CH\single OH} } + \item{{\color{darkgreen}$\backslash$ph} = \ph , similar for + {\color{darkgreen}$\backslash$pkw, $\backslash$pka, $\backslash$poh, + $\backslash$pI}} + \item{{\color{darkgreen}$\backslash$Name\{Maude Leonora Menten\}} = + \textsc{Maude Leonora Menten}} + \item{{\color{darkgreen}$\backslash$skalar\{x\}} = $x$, similar for + {\color{darkgreen}$\backslash$array, $\backslash$vektor, + $\backslash$set}. Note the list of variables used in + the appendix.} + \item{{\color{darkgreen}$\backslash$SI\{1\}\{cm\}} = + \SI{1}{cm}, + {\color{darkgreen}$\backslash$num\{10000\}} = + \num{10000}, + {\color{darkgreen}$\backslash$ang\{1;2;3\}} = + \ang{1;2;3}.} + \end{itemize} +\end{frame} + +\end{document} diff --git a/info/latex-course/LaTeX-course.prj b/info/latex-course/LaTeX-course.prj new file mode 100644 index 0000000000..f7aa59ceaf --- /dev/null +++ b/info/latex-course/LaTeX-course.prj @@ -0,0 +1,35 @@ +277 Patch Control + +0 +0 +1 +LaTeX-Course.tex +6 +3 +1 + + + + + + +LaTeX-Course.tex +TeX:US +152055803 1 4 3 4 96 44 44 796 414 0 1067 88 -1 -1 0 0 17 0 0 17 1 0 96 4 0 +README +TeX +269496315 0 4 32 4 34 44 44 796 414 0 385 88 -1 -1 0 0 14 2 2 14 1 0 34 4 0 +beamercolorthemeross.sty +TeX:DTX:UNIX +5353467 0 0 1 0 1 88 88 840 458 0 22 0 -1 -1 0 0 68 0 0 68 1 0 1 0 0 +E:\My Documents\TeX-Files\2012\Caroline-Paul.tex +TeX:DE +286273531 0 0 1 0 1 130 130 1199 667 0 22 0 -1 -1 0 0 -1 -1 -1 -1 1 0 1 0 0 +C:\Program Files\MiKTeX 2.9\tex\latex\marvosym\marvosym.sty +TeX:DTX:UNIX +273788923 0 0 1 0 1 0 0 1069 537 0 22 0 -1 -1 0 0 -1 -1 -1 -1 1 0 1 0 0 +E:\My Documents\teaching\Ross Vortraege\Lipids\FA-ExampleQuestions.tex +TeX:US +286273531 1 7 1 12 1 234 234 1303 771 0 22 264 -1 -1 0 0 -1 -1 -1 -1 1 0 1 12 0 + +*LaTeX-Course.tex diff --git a/info/latex-course/README b/info/latex-course/README new file mode 100644 index 0000000000..1a908b7d47 --- /dev/null +++ b/info/latex-course/README @@ -0,0 +1,9 @@ +LaTeX course is a brief, Beamer-based slide presentation on LaTeX, based on the CTAN/info/german/tex-kurs by Rainer Rupprecht (1988) and on CTAN/info/lshort/ by Schmidt et al., 2003 + +This material may be used freely under the LaTeX project licence. + +History: + +2008: original version +2012: update, several minor corrections, use of kp-fonts + diff --git a/info/latex-course/beamercolorthemeross.sty b/info/latex-course/beamercolorthemeross.sty new file mode 100644 index 0000000000..a0942e62af --- /dev/null +++ b/info/latex-course/beamercolorthemeross.sty @@ -0,0 +1,78 @@ +% Copyright 2008 by Dr Engelbert Buxbaum +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/licenses/LICENSE for more details. + +\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/color/beamercolorthemeross.sty,v 1.0 2008/04/09 11:00 Buxbaum Exp $ + +\mode + +\definecolor{darkross}{rgb}{0.016,0.404,0.667} % blue of Ross Seal +\definecolor{middleross}{rgb}{0.020,0.522,0.859} +\definecolor{lightross}{rgb}{0.094,0.624,0.980} + +\definecolor{darkblue}{rgb}{0.016,0.078,0.667} +\definecolor{middleblue}{rgb}{0.020,0.102,0.856} +\definecolor{lightblue}{rgb}{0.094,0.180,0.980} + +\definecolor{darkpurple}{rgb}{0.604,0.016,0.667} +\definecolor{middlepurple}{rgb}{0.776,0.020,0.895} +\definecolor{lightpurple}{rgb}{0.894,0.094,0.980} + +\definecolor{darkbrown}{rgb}{0.961,0.514,0.071} +\definecolor{middlebrown}{rgb}{0.725,0.557,0.271} +\definecolor{lightbrown}{rgb}{0.933,0.890,0.773} % beige of Ross-Seal + +\definecolor{darkolive}{rgb}{0.667,0.604,0.016} +\definecolor{middleolive}{rgb}{0.859,0.776,0.020} +\definecolor{lightolive}{rgb}{0.980,0.894,0.094} + +\definecolor{darkgreen}{rgb}{0.078,0.667,0.016} +\definecolor{middlegreen}{rgb}{102,0.859,0.020} +\definecolor{lightgreen}{rgb}{180,0.980,0.094} + +\setbeamercolor{normal text}{fg=black,bg=white} +\setbeamercolor{structure}{fg=darkross} \setbeamercolor{local +structure}{parent=structure} + +\setbeamercolor{alerted text}{fg=middlebrown} +\setbeamercolor{example text}{fg=darkgreen} +\setbeamercolor{math text}{fg=black} + +\setbeamercolor*{palette primary}{fg=darkross,bg=lightross} +\setbeamercolor*{palette secondary}{fg=darkbrown,bg=lightbrown} +\setbeamercolor*{palette tertiary}{fg=darkpurple,bg=lightpurple} +\setbeamercolor*{palette quaternary}{fg=darkgreen,bg=lightgreen} + +\setbeamercolor*{palette sidebar primary}{fg=darkross,bg=lightbrown} +\setbeamercolor*{palette sidebar secondary}{fg=middleblue,bg=lightblue} +\setbeamercolor*{palette sidebar tertiary}{fg=darkpurple,bg=lightpurple} +\setbeamercolor*{palette sidebar quaternary}{fg=darkgreen,bg=lightgreen} + +\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black} +\setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!75!black} +\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!75!black} + +\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg} +\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!10!bg} +\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!10!bg} + +\setbeamercolor*{titlelike}{parent=palette primary} +\setbeamercolor*{sidebar}{parent=palette sidebar primary} +\setbeamercolor{title}{bg=white} +\setbeamercolor{author in sidebar}{fg=darkross} +\setbeamercolor{title in sidebar}{fg=darkross} +\setbeamercolor{section in sidebar}{parent=palette sidebar primary} +\setbeamercolor{section in sidebar shaded}{use=section in sidebar,fg=section in sidebar.fg!40!bg} +\setbeamercolor{subsection in sidebar}{parent=palette sidebar primary} +\setbeamercolor{subsection in sidebar shaded}{use=subsection in sidebar,fg=subsection in sidebar.fg!40!bg} +\setbeamercolor{frametitle}{bg=white} + +\setbeamercolor*{separation line}{} +\setbeamercolor*{fine separation line}{} + +\mode -- cgit v1.2.3