我尝试在 ConTeXT 中使用 TikZ 日历包,但运气不佳。问题是在月份和日期名称之前出现了关键字翻译在方括号之间。我该如何修复它?
代码:
\usemodule[tikz]
\usetikzlibrary[calendar]
\starttext
\tikz \calendar [dates=2012-01-01 to 2012-12-31,
month list, month label left,month yshift=1.25em]
if (Sunday) [black!50]
% GROUP 1
if (between=2012-08-09 and 2012-08-12)[orange]
if (between=2012-06-01 and 2012-06-03)[orange]
if (between=2012-04-05 and 2012-04-07)[orange]
if (between=2012-12-22 and 2012-12-27)[orange]
% GROUP 2
if (between=2012-09-10 and 2012-09-15)[blue]
if (between=2012-08-17 and 2012-08-21)[blue]
if (between=2012-06-29 and 2012-07-02)[blue]
if (between=2012-05-14 and 2012-05-21)[blue]
% GROUP 3
if (between=2012-11-02 and 2012-11-09)[darkgreen]
if (between=2012-01-01 and 2012-01-27)[darkgreen]
;
\stoptext
答案1
这是 PGF 中的一个错误,将在未来的版本中修复。您可以在此提交中看到修复:
https://sourceforge.net/u/hmenke/pgf/ci/fcba5723f1e96979942c11286f1f4d6e84355610/