summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-11-30 15:04:49 -0500
committerBenji Dial <benji@benjidial.net>2024-11-30 15:04:49 -0500
commit01ae4b8923cfdfd7ebc23f2a5bb3ae247aa28dd5 (patch)
treecdb4a6fad0481fe145dcb277b34d71ccabe487e7
parent5b7d5be5f7718a293ff4026c70a171749ce7c852 (diff)
downloadlatex-classes-01ae4b8923cfdfd7ebc23f2a5bb3ae247aa28dd5.tar.gz
montgomery: don't put solution link in new paragraph
-rw-r--r--montgomery.cls6
1 files changed, 3 insertions, 3 deletions
diff --git a/montgomery.cls b/montgomery.cls
index e8a9f56..a5f1fd4 100644
--- a/montgomery.cls
+++ b/montgomery.cls
@@ -63,9 +63,9 @@
}
\newenvironment{solution}{%
- \stepcounter{solution}
- \label{solution-\thesolution-exercise}
- \par
+ \unskip%
+ \stepcounter{solution}%
+ \label{solution-\thesolution-exercise}%
\textit{Solution: Page \pageref{solution-\thesolution}.}
\Collect@Body\addsolution
}{}