Conversation
…inpars with the margin
…used in page headers to set the chapter and section titles
|
Hello @ArquintL, Edit: Commenting out the usage of |
|
@jboillot I've attached the compiled documentation. I'm using the branch of this PR, ran
|
|
@ArquintL Thank you for your detailed answer! Indeed, I was using texlive 2023 (2023.20240207-1 which corresponds to TeX 3.141592653, the one from Ubuntu 24.04). Here is the corresponding file: main.pdf. |
|
Thank you for this modification. FYI, I had to work around a problem with TikZ externalization: the \makeatletter
% fix for excluding margin stuff in externalized pictures
\tikzifexternalizing{
\def\marginfit@marginbox{}
}{}%
\makeatother |
|
Thank you all. I'm now working on a new version which aims to solve this problem in another way, namely by allowing margin notes to "break" and continue on the next page, much like footnotes (using the package |
|
Interesting idea! However, the vast majority of my margin notes are references for which I probably wouldn‘t like them to break to the next page |
|
Good point, I'll make sure to prevent references from breaking. In any case there will also be the option to choose between a floating, fixed, or breaking note on a case-by-case basis. |
This PR adds the
marginfitpackage that shifts margin notes similarly as themarginfixwould do, however without suffering from issue #169.marginfit's documentation provides an excellent visualization ofmarginfit's behavior andmarginfix's issues.Just adding
marginfitdid not produce the desired result and, thus, I've slightly patched the package to feature\marginfit@minoffset, which is set accordingly bykao.sty.The problem that I've fixed is that if margin notes have to be shifted up (to fit into the margin) then the lowest margin note's baseline (created by
\sidecite) and the baseline of the last text line did not match. Strangely, the required offset is different for chapter-start-pages compared to non-chapter-start-pages and I took the average to be as good as possible.