Thanks for writing this package; I had a need for a dashed underline, and this package produced much more pleasing results than the ulem package or the various snippets I could find on Stack Exchange.
However, it doesn't work in figure captions (the issue appears to apply to all floats). For underlines in captions, the intermediate output is written to the log / console instead of writing to the *.upa file. Here's a minimum example:
I'm able to fix the part about not writing to the *.upa file by adding \immediate to the start of line 24 of soulpos.sty, changing it from \openout\ulp@out=\jobname.upa\relax to \immediate\openout\ulp@out=\jobname.upa\relax. After the change, the intermediate output is now written to file, but the underlines are drawn in the incorrect order:
It seems that when writing the *.upa file, the underlines from the float are written first, but when drawing the underlines, the underline from outside the float is drawn first.
There's another issue where underlines are not drawn in captions if the caption spans more than one line.
Thanks for writing this package; I had a need for a dashed underline, and this package produced much more pleasing results than the
ulem
package or the various snippets I could find on Stack Exchange.However, it doesn't work in figure captions (the issue appears to apply to all floats). For underlines in captions, the intermediate output is written to the log / console instead of writing to the
*.upa
file. Here's a minimum example:that produces:
I'm able to fix the part about not writing to the
*.upa
file by adding\immediate
to the start of line 24 ofsoulpos.sty
, changing it from\openout\ulp@out=\jobname.upa\relax
to\immediate\openout\ulp@out=\jobname.upa\relax
. After the change, the intermediate output is now written to file, but the underlines are drawn in the incorrect order:It seems that when writing the
*.upa
file, the underlines from the float are written first, but when drawing the underlines, the underline from outside the float is drawn first.There's another issue where underlines are not drawn in captions if the caption spans more than one line.