LaTeX forum ⇒ Theses, Books, Title pagesKaobook - remove space sidenotemark

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Padre Leonel
Posts: 1
Joined: Tue Oct 20, 2020 10:41 am

Kaobook - remove space sidenotemark

Postby Padre Leonel » Tue Oct 20, 2020 10:50 am

Hello, I'm using the KAOBOOK template, and cant't find a way to remove the space after the sidenotemark in the main text. This is a problem for me, specially if after the sidenotemark comes a period, or a coma, there will be an unnecessary and ugly space before the period. And if the text is at the end of the line, some times the period or the coma will go to the next line, and the new line starts with a period or a coma.

Thank you for your help.

(Sorry for my English, I'm Portuguese).

fmarotta
Posts: 1
Joined: Mon Dec 07, 2020 12:16 pm

Postby fmarotta » Mon Dec 07, 2020 12:18 pm

Hello, this problem should be fixed in the latest versions of the template that you can find on GitHub (https://github.com/fmarotta/kaobook). If you have downloaded the template from GitHub, simply downloading it again should solve the problem.
However, if you are using Overleaf, you can fix the issue yourself by opening the file `styles/kao.sty` and adding a % sign at the end of each line from line 180 to line 183. In other words, you should have the following:

\RenewDocumentCommand \@sidenotes@placemarginal { m m }
{%
\IfNoValueOrEmptyTF{#1}%
{\marginpar{#2}}%
{\marginnote[#1]{#2}}%
}


(note the % signs at the end of the lines)

Then, do the same for lines 98 to 112 of the file `styles/kaobiblio.sty`.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 5 guests