m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/definitions.sty
blob: f21eb492ad29ec26bc92c7787d945b5bfcff9ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
\usepackage{ifthen}

\newtheorem{definition}{Definition}[chapter]

% #1 (optional): Fixed parameters of the problem
% #2: Name of query problem
% #3: The structure to preprocess
% #4: Queries to handle
\newcommand{\queryproblem}[4][]{
    \textsc{#2} \\
    \ifthenelse{\equal{#1}{}}{}{\textbf{Fixed:} #1 \\}
    \textbf{Given:} #3 \\
    \textbf{Queries:} #4
}