Closed fnurkla closed 10 months ago
Results are now much better: but there are misalignments when the message above the signature has descenders:
Alignments seem to be solved now:
Do you have any input, @alfredgrip? Otherwise I'll be merging this.
This looks really neat! However, I noticed that when there are multiple signatures (like 5+) and they break line, there is barely and margin between the one above and the one below. Would be nice to have.
Edit: noticed that this only occurs when the LaTeX is written like
\signature[signfile=signature.png]{För D-sektionen, dag som ovan}{Alfred Grip}{\LaTeX -fantast}
\signature{För D-sektionen}{VA. Kant}{Okänd}
\signature{För D-sektionen}{VA. Kant}{Okänd}
\signature[signfile=signature.png]{För D-sektionen}{Alfred Grip}{\LaTeX -fantast}
\signature{För D-sektionen}{VA. Kant}{Okänd}
Manually breaking the line like
\signature[signfile=signature.png]{För D-sektionen, dag som ovan}{Alfred Grip}{\LaTeX -fantast}
\signature{För D-sektionen}{VA. Kant}{Okänd}
\signature{För D-sektionen}{VA. Kant}{Okänd}
\signature[signfile=signature.png]{För D-sektionen}{Alfred Grip}{\LaTeX -fantast}
\signature{För D-sektionen}{VA. Kant}{Okänd}
does include a margin between top and bottom. Maybe we should still allow users to write like the first example and still get nice formatting, thoughts?
Good catch. I'll see what I can do.
Added a small space now:
LGTM!
This is a work in progress as it gives ugly results when the signature is too wide.