Closed felix-schneider closed 6 years ago
Can you add an example in the demo document ? Just to show how one is supposed to use it.
Unfortunately, the border gets very badly messed up, just like for the other notes.
Which of the other notes have bad borders?
I've amended the example.
Here are a few examples of the misaligned boundaries: This is for the variant note, where it is the least noticeable.
This is the corner of a wide variant note. See how the top border sticks out more for the wider note. The offset actually scales with the size of the note.
This is the default note from the example as compiled by Miktex on windows.
Finally, this is a test by me showing how the offset is different for different sizes of notes.
Interesting, I can't reproduce any of these issues on my end. Could it come from your pdf reader, or from your tex distribution?
I use texlive 2017 and zathura with mupdf backend. Can you see the same artefacts on this sample document? https://drive.google.com/open?id=1XVm1a7onacZjPLqRHW4m-eDIoBTWCBh8
No, your sample document does not have this issue. Seems to be on my end then.
I would suggest moving the corners of the default note slightly outwards, so that the shadow for the main note body does not extend beyond the end of the corners. But that's just an aside, it does not relate to this PR.
I've changed to texlive, the notes now render correctly so long as they are multiline, which is fine.
Using that, I have adjusted spacing for the monster statblock note and it should now be ready for use.
I've merged your commits, thanks for the contribution!
If you want to add your name/email for copyright info in the relevant files, please do so. (I assume you're releasing the code/assets under WTFPLv2 ?)
It's based on statblock5e's appearance.
Unfortunately, the border gets very badly messed up, just like for the other notes. I tried fixing it with constant offsets, but it seems that the shifted components scale with the height of the note!
For example, the shadow on the side of the regular note and my monster note moves up further the bigger the note contents are. I kind of gave up on fixing it after that... This was tested with miktex on Windows 10.