When I use Emacs calendar/diary with org-mode(however I do not think this is the reason of the problem), I encounter the following problem.
The default calendar is like this:
I add the following codes to display week number:
(copy-face font-lock-constant-face 'calendar-iso-week-face)
(set-face-attribute 'calendar-iso-week-face nil
:height 1)
(setq calendar-intermonth-text
'(propertize
(format "%2d"
(car
(calendar-iso-from-absolute
(calendar-absolute-from-gregorian (list month day year)))))
'font-lock-face 'calendar-iso-week-face))
; Title for week number
(copy-face 'default 'calendar-iso-week-header-face)
(set-face-attribute 'calendar-iso-week-header-face nil
:height 0.7)
(setq calendar-intermonth-header
(propertize "Wk" ; or e.g. "KW" in Germany
'font-lock-face 'calendar-iso-week-header-face))
After inserting these codes, the week numbers can be displayed. However, the alignment is a little bit strange like this:
The last line of the calendar is not aligned. How to deal with this problem?
Thanks.