aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-04-07 21:14:27 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-04-07 21:14:27 +0200
commitb9c457175f6ba4ba0641a62c1ac4422c3f39cba9 (patch)
treeb5864a2584e514f99c4c6ee549c9e9baff03db8b
parent1845085452b6fbb8f6a800e035fcd400b93ae445 (diff)
downloadekdosis-b9c457175f6ba4ba0641a62c1ac4422c3f39cba9.tar.gz
use math.tointeger() to evaluate absolute page numbers
-rw-r--r--ekdosis.dtx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 7001eac..109b3d4 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -1016,9 +1016,9 @@ function ekdosis.appout()
1016end 1016end
1017 1017
1018function ekdosis.testapparatus() 1018function ekdosis.testapparatus()
1019 if pg_ii == pg_i then 1019 if math.tointeger(pg_ii) == math.tointeger(pg_i) then
1020 return "\\boolfalse{do@app}" 1020 return "\\boolfalse{do@app}"
1021 elseif pg_ii > pg_i then 1021 elseif math.tointeger(pg_ii) > math.tointeger(pg_i) then
1022 pg_i = pg_ii 1022 pg_i = pg_ii
1023 return "\\booltrue{do@app}" 1023 return "\\booltrue{do@app}"
1024 else 1024 else