kudrykv / latex-yearly-planner

Digital planner for Supernote and ReMarkable // Support Ukraine 🇺🇦 https://savelife.in.ua/en
https://github.com/kudrykv/latex-yearly-planner/discussions
MIT License
1.11k stars 162 forks source link

Adjust calendar size on quarterly page #86

Open TK0343 opened 1 year ago

TK0343 commented 1 year ago

I successfully changed the font and everything seems to behave except the monthly calendars on the quarterly page. They're all slightly different in size and overlap the adjacent lines to some extent. What edits would one make to keep the calendars a consistent size and correct this?

quarterly

kudrykv commented 1 year ago

What else did you change? It looks like latex code was updated and something sent off.

TK0343 commented 1 year ago

I had changed to lines, Sunday start of the week, and changed some capitalization on the daily pages but that's all. I cloned the repo again and added into document.tpl these lines and get the same behavior.

\usepackage[T1]{fontenc}
\usepackage{librefranklin}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
kudrykv commented 1 year ago

Hm. Changing the font is enough to make it misalign, although it's interesting that table lines went off, too.

Calendars on the left and lines on the right are independent. You'll need to tweak the latex to align those. You might want to add some space on the top to lines to align them with the calendar on the left first, and then add additional spacing between calendars to align the following calendars with note lines.

You may try making the right column narrower to address the overlap issue.

Overall, latex is fragile. Updating it is a nightmare if you rarely work with it.

TK0343 commented 1 year ago

Which of the files control the calendar and lines spacing? Unfortunately I have no LaTex experience and this is the one issue I'm having with setting up my ideal planner. In the end I might have to forego a different font if it's too much trouble.

kudrykv commented 1 year ago

There are few.

Quarterly template is _common_02_quarterly.tpl. The \myLenTriColSep (line #8) can be set via config file, though then it would affect the whole planner. You can put an actual value to the template directly, such as 5mm, and then adjust the notes column length (next line in the same file). Line 10 to adjust the vertical skip — currently, it subtracts a little value (\vskip-\myLenLineHeightButLine gets converted to something like \vskip-4.99mm, which pushes notes column back to the top some distance up).

Trying to adjust calendar is much more trouble. If we're talking about spacing on the quarterly page between calendars, then it's the same _common_02_quarterly.tpl. Otherwise, there is a little monthTabularV2.tpl template and a load chunk of go code smugged over many lines of populating values for the template.

I would suggest tweaking quarterly pages directly a bit if that's the only formatting issue you have.

benninkcorien commented 11 months ago

You can add a different amount of horizontal space between the calendars and the notes section (I changed my font to Open Sans)

\end{minipage}%
\hspace{8mm}%
\begin{minipage}[t][\remainingHeight]{\dimexpr2\myLenTriCol+\myLenTriColSep}