summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2018-05-14 13:43:20 +0200
committerSébastien Dailly <sebastien@chimrod.com>2018-05-14 13:43:20 +0200
commit19e874918d3c3997f7ea483fecfd1342dc3ba8e4 (patch)
treefbcbd1c9512259dc47f11f910039e7dc64fc4006 /resources
parentbabc4d757f3122f9d0c0e02c67ac6ea980cd2843 (diff)
New float env
Diffstat (limited to 'resources')
-rw-r--r--resources/admonitions.tex2
-rw-r--r--resources/figures.tex11
2 files changed, 12 insertions, 1 deletions
diff --git a/resources/admonitions.tex b/resources/admonitions.tex
index 5ab78ca..b57437f 100644
--- a/resources/admonitions.tex
+++ b/resources/admonitions.tex
@@ -17,7 +17,7 @@
\let\oldttfamily\ttfamily
-\newenvironment{DUCLASScode}{%
+\newenvironment{DUCLASSprogram}{%
\begin{mdframed}[topline=false,%
bottomline=false,%
rightline=false,%
diff --git a/resources/figures.tex b/resources/figures.tex
index 57e4587..a574a1f 100644
--- a/resources/figures.tex
+++ b/resources/figures.tex
@@ -26,3 +26,14 @@
% \end{mdframed}%
\end{legacyFigure}%
}
+
+% Float environment for programs
+
+\floatstyle{ruled}
+\newfloat{fprogram}{htbp}{lop}
+\floatname{fprogram}{Programme}
+
+\newcommand\DUadmonitionfloatprogram[1]{\begin{fprogram}#1\end{fprogram}}
+\newcommand\DUtitlefloatprogram[1]{\caption{#1}}
+
+