Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust calendar size on quarterly page #86

Open
TK0343 opened this issue Jun 30, 2023 · 6 comments
Open

Adjust calendar size on quarterly page #86

TK0343 opened this issue Jun 30, 2023 · 6 comments

Comments

@TK0343
Copy link

TK0343 commented Jun 30, 2023

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
Copy link
Owner

kudrykv commented Jun 30, 2023

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

@TK0343
Copy link
Author

TK0343 commented Jun 30, 2023

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
Copy link
Owner

kudrykv commented Jun 30, 2023

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
Copy link
Author

TK0343 commented Jun 30, 2023

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
Copy link
Owner

kudrykv commented Jul 1, 2023

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
Copy link

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} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants