summaryrefslogtreecommitdiff
path: root/tex/context/modules
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-08-19 13:10:04 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-08-19 13:10:04 +0200
commit7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3 (patch)
tree8a2e1e9bfba18c3ee1897eda50f76f4726bdd108 /tex/context/modules
parent0fcb576f359edfdd50c2b13615a03b966a9073df (diff)
downloadcontext-7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3.tar.gz
2018-08-19 13:00:00
Diffstat (limited to 'tex/context/modules')
-rw-r--r--tex/context/modules/mkiv/s-youless.mkiv8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/modules/mkiv/s-youless.mkiv b/tex/context/modules/mkiv/s-youless.mkiv
index d8b6e2ff6..662025484 100644
--- a/tex/context/modules/mkiv/s-youless.mkiv
+++ b/tex/context/modules/mkiv/s-youless.mkiv
@@ -43,6 +43,7 @@
end
local year = tonumber(specification.year) or os.today().year
+ local month = tonumber(specification.month)
local years = data.years
local variant = data.variant
local unit = specification.unit
@@ -60,16 +61,19 @@
end
end
+ local firstmonth = month or 1
+ local lastmonth = month or 12
+
local max = max
local delta = round(max/10)
local scale = round(delta/20)
local mark = 3
for y=year,year do
- local year = years[y]
+ local year = years[y]
if year then
local grand = 0
- for m=1,12 do
+ for m=firstmonth,lastmonth do
local month = year.months[m]
if month then
context.startMPpage { offset = "10pt" }