Skip to content

Commit 5508a00

Browse files
jensmaurertkoeppe
authored andcommitted
[macros,numerics] Add and use numbered 'formula' environment
Fixes ISO/CS comment (C++23 proof)
1 parent 856d175 commit 5508a00

File tree

3 files changed

+239
-152
lines changed

3 files changed

+239
-152
lines changed

source/macros.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,17 @@
614614
\newcommand{\atsign}{@}
615615
\makeatother
616616

617+
%%--------------------------------------------------
618+
%% Formulae
619+
%%--------------------------------------------------
620+
621+
% usage: \begin{formula}{XREF}
622+
\newenvironment{formula}[1]
623+
{\begin{equation}\label{eq:#1}}
624+
{\end{equation}}
625+
626+
\renewcommand{\eqref}[1]{Formula \nolinebreak[3] \hyperref[eq:#1]{\ref*{eq:#1}}}
627+
617628
%%--------------------------------------------------
618629
%% Indented text
619630
%%--------------------------------------------------

0 commit comments

Comments
 (0)