%% Author: Tamas Biro %% (in LaTeXese: Tam\'as Bir\'o) %% %% This file contains all kind of definitions that I usually use. %% So I simply include this file into the preamble of my LaTeX sources. %% %% Magyar szoveg: \usepackage[magyar]{babel} %\usepackage[latin2]{inputenc} \usepackage[utf8]{inputenc} \usepackage{t1enc} %% mit tud?? \def\magyarOptions{defaults=hu-min} %% mit tud?? \frenchspacing % A magyar szabalyok szerint a mondat vegen nem hagyunk nagyobb szokozt. %% idezojel: ``szoveg'' ==> ,,szoveg'' -kent jelenik meg. % The famous hand-symbol for Optimality Theory: use the \hand command \font\speciala=pzdr at 12pt \newcommand{\hand}{{\speciala\char'053}} % Operators I often use: \newcommand{\opt}{\mathop{\mathrm{opt}}} \newcommand{\argopt}{\mathop{\mathrm{arg\ opt}}} \newcommand{\argmin}{\mathop{\mathrm{arg\ min}}} \newcommand{\argmax}{\mathop{\mathrm{arg\ max}}} \newcommand{\Gen}{\mathop{\mathrm{Gen}}} \newcommand{\SF}{\mathop{\mathrm{SF}}} % Parameters of SA-OT: \newcommand{\tstep}{t_{\mathrm{step}}} \newcommand{\tmin}{t_\mathrm{min}} \newcommand{\tmax}{t_\mathrm{max}} \newcommand{\Kstep}{K_\mathrm{step}} \newcommand{\Kmin}{K_\mathrm{min}} \newcommand{\Kmax}{K_\mathrm{max}} %% To have nicer header in beamer slides: \newcommand{\btsection}[1]{\section[\arabic{section}. {#1} \hskip5mm]{#1}} \newcommand{\btsectionwithshortname}[2]{\section[\arabic{section}. {#1} \hskip5mm]{#2}} %% to add shaddow in OT tableau %\usepackage[table]{xcolor} % you may need to un-comment this. % or add option "table" in: \documentclass[hyperref={pdfpagelabels=false}, table]{beamer} \newcommand{\shad}{\cellcolor[gray]{0.9}} % To have multiple columns % \usepackage{multicol} % begin{multicols}{nr_of_cols} ... \end{multicols} %%%%%%%%%%% %% TODO % Version 1: \usepackage[table]{xcolor} \newcommand\printtodos{true} % to print todo's: true or false \usepackage{ifthen} \newcommand\TODO[1]{\ifthenelse{\equal{\printtodos}{true}}{{\textbf{\color{red}\underline{TODO:}} {#1}}}{}} \newcommand\COMMENT[1]{\ifthenelse{\equal{\printtodos}{green}}{{\textbf{\color{red}\underline{COMMENT:}} {#1}}}{}} % Version 2: \usepackage[table]{xcolor} \newif\ifprinttodos \printtodosfalse % either \printtodostrue % or \newcommand\TODO[1]{\ifprinttodos{{\textbf{\color{red}\underline{TODO:}} {#1}}}} \newcommand\COMMENT[1]{\ifprinttodos{{\textbf{\color{green}\underline{COMMENT:}} {#1}}}}