m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/definitions.sty
diff options
context:
space:
mode:
Diffstat (limited to 'definitions.sty')
-rw-r--r--definitions.sty12
1 files changed, 12 insertions, 0 deletions
diff --git a/definitions.sty b/definitions.sty
new file mode 100644
index 0000000..f6d2e94
--- /dev/null
+++ b/definitions.sty
@@ -0,0 +1,12 @@
+\newtheorem{definition}{Definition}[chapter]
+
+% #1: Name of query problem
+% #2: The structure to preprocess
+% #3: Queries to handle
+\newcommand{\queryproblem}[3]{
+ \textsc{#1}
+
+ \textbf{Given:} #2
+
+ \textbf{Queries:} #3
+}