Changeset 3666 for SMC4LRT/utils.tex
- Timestamp:
- 10/02/13 20:06:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SMC4LRT/utils.tex
r2703 r3666 1 1 %%%%%%%%%%%%%%% 2 2 % utils / commands 3 4 5 \usepackage{graphicx} % support the \includegraphics command and options 6 7 \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX) 8 %\usepackage[T1]{fontenc} 9 10 \usepackage{color} 3 11 4 12 \usepackage{pgf} 5 13 \usepackage{tikz} % tikz graphics 6 14 \usetikzlibrary{arrows,automata} 15 16 \usepackage{epstopdf} 17 18 \usepackage{float} 19 \usepackage{framed} 20 \usepackage{amsmath} 21 %\usepackage{tabularx} 22 \usepackage{tabu} 23 24 \usepackage[singlelinecheck=off]{caption} 25 26 %%% PACKAGES 27 \usepackage{booktabs} % for much better looking tables 28 \usepackage{array} % for better arrays (eg matrices) in maths 29 \usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.) 30 \usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim 31 %\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float 32 % These packages are all incorporated in the memoir class to one degree or another... 33 34 7 35 8 36 % disable … … 15 43 \newcommand{\concept}[1]{\textsf{#1}} 16 44 \newcommand{\code}[1]{\texttt{#1}} 17 \newcommand{\xne}[1]{\textsf{#1}} 45 \newcommand{\var}[1]{\textrm{\textit{#1}}} 46 \newcommand{\xne}[1]{\textsf{#1}} % named entity (?) 18 47 \newcommand{\furl}[1]{\footnote{\url{#1}}} 19 48 \newcommand{\ftodo}[1]{\footnote{\todoin{#1}}} 20 49 21 50 \newenvironment{note} 22 {\footnotesize \color{grey} \begin{ it}}23 { \end{ it} \normalsize}51 {\footnotesize \color{grey} \begin{textit}} 52 { \end{textit} \normalsize} 24 53 54 \floatstyle{plain} 55 \newfloat{definitionx}{htp}{lod}[chapter] 56 \floatname{definitionx}{Definition} 57 58 59 \DeclareCaptionType{defcap}[Definition][List of definitions] 60 \captionsetup[defcap]{labelformat=simple} 61 62 \newenvironment{definition}[1] 63 {\begin{defcap}[!ht]\caption{#1}\equation\notag} 64 % \begin{definitionx} 65 {\endequation\end{defcap}} 66 % \end{definitionx} 67 68 69 % environments for examples 70 % with different number of columns (1,2,3) 71 72 % \vspace{0.5\baselineskip} 73 \newenvironment{example1} 74 { 75 \begin{ttfamily}\footnotesize \begin{shaded*} \noindent 76 \begin{tabular}{l} } 77 { \end{tabular} \end{shaded*} \end{ttfamily} } 78 79 80 %@{\hspace{-2mm}} 81 \newenvironment{example2} 82 { \footnotesize 83 \begin{ttfamily} \begin{shaded*} \noindent 84 \begin{tabular}{p{0.4\textwidth} p{0.6\textwidth} } } 85 {\end{tabular} \end{shaded*} \end{ttfamily} } 86 87 88 \newenvironment{example3} 89 { \footnotesize 90 \begin{ttfamily} \begin{shaded*} \noindent 91 \begin{tabular}{@{\hspace{-1mm}} p{0.25\textwidth} p{0.25\textwidth} p{0.45\textwidth}} 92 } 93 { \end{tabular} \end{shaded*} \end{ttfamily} } 25 94 26 95 % xml syntax highlighting … … 37 106 \definecolor{code}{rgb}{1,0.8,0.8} 38 107 \definecolor{todoborder}{rgb}{0.8,0.4,0.4} 108 \definecolor{shadecolor}{rgb}{0.9,0.9,1.0} 39 109 40 110 … … 57 127 morekeywords={xmlns,version,type}% list your attributes here 58 128 } 129 130 131 %%% Fallback definitions for Docutils-specific commands 132 133 % legend environment 134 \ifthenelse{\isundefined{\DUlegend}}{ 135 \newenvironment{DUlegend}{\small}{} 136 }{} 137 138 % titlereference role 139 \providecommand*{\DUroletitlereference}[1]{\textsl{#1}}
Note: See TracChangeset
for help on using the changeset viewer.