Theses, Books, Title pagesKaobook - remove space sidenotemark

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

Kaobook - remove space sidenotemark

Post by Padre Leonel »

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).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Kaobook - remove space sidenotemark

Post by fmarotta »

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:

Code: Select all

\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`.
Post Reply