diff options
author | Karl Heuer <[email protected]> | 1998-08-27 15:08:37 +0000 |
---|---|---|
committer | Karl Heuer <[email protected]> | 1998-08-27 15:08:37 +0000 |
commit | 5a1d5766b20cbf5bdae71bd8de16fa51a6fdf603 (patch) | |
tree | 017ad57ff8765219f18c715f2e0060f8103a8089 /lisp/calendar | |
parent | 3f235494af33d1371b682ccf9d94a7a922e45d41 (diff) |
(cal-tex-cursor-filofax-daily): Don't use oddp.
Diffstat (limited to 'lisp/calendar')
-rw-r--r-- | lisp/calendar/cal-tex.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el index 2976f66eb2..c69b6b8545 100644 --- a/lisp/calendar/cal-tex.el +++ b/lisp/calendar/cal-tex.el @@ -1256,10 +1256,11 @@ Holidays are included if `cal-tex-holidays' is t." (cal-tex-cmd "\\pagestyle{empty}") (calendar-for-loop i from 1 to n do (calendar-for-loop j from 1 to 5 do - (insert (if (oddp j) "\\righthead" "\\lefthead")) - (cal-tex-arg (calendar-date-string date)) - (insert "%\n") - (insert (if (oddp j) "\\rightday" "\\leftday")) + (let ((odd (/= 0 (% j 2)))) + (insert (if odd "\\righthead" "\\lefthead")) + (cal-tex-arg (calendar-date-string date)) + (insert "%\n") + (insert (if odd "\\rightday" "\\leftday"))) (cal-tex-arg (cal-tex-latexify-list diary-list date)) (cal-tex-arg (cal-tex-latexify-list holidays date)) (cal-tex-arg (eval cal-tex-daily-string)) |