-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
sidecite only once per page #216
Comments
Besides, documentation says you cannot change the position of citation in the margin, although I believe you already created this feature in the code. |
Changing kaobiblio.sty This works:
This does not work:
First I thought the problem was the '\' without nothing before, but it is more than that. Hope someone can help. |
Looking for this functionnality too. It would be nice if this modification could also integrate the option to sidecite a reference once per document (sidecite only the first time). So like a switch between "each time/ once per page / once per document". I have no idea if it's feasible since I have little knowledge in LaTeX prog. |
I'm looking for this feature too. But I'd like to do that selectively for each page (for pages with fewer citations, I prefer not doing that), and to control their position since I use |
@fredguth may I ask what error you encountered with your code? For me it seems to work just fine. The only change I made was to convert \iflastciteonsamepage
{%nothing here%}
{\formatmargincitation{\thefield{entrykey}}} to \iflastciteonsamepage
{}
{\formatmargincitation{\thefield{entrykey}}} such that the first closing bracket is not commented out. The only problem is that the horizontal alignment of the first line of the margin citation is slightly misaligned. This problem is probably the same as #220. |
@AlexanderZeilmann I created a PR for this feature. Although, it is breaking another feature.... /sidecite{key1, key2} does not work anymore, so I don't know if it will be merged. On the other matter... |
Summary
Currently, sidecite appears to be adding citation to the margin everytime you call sidecite.
Details
When you \sidecite{key} more than once \sidecite{key} in the same page. There should be only one citation in the margin.
See: https://tex.stackexchange.com/q/444827/157312
I am trying to fix this, if successful I will PR a change. But I am still a beginner with kaobook code.
The text was updated successfully, but these errors were encountered: