maucejo / elsearticle

MIT License
1 stars 1 forks source link

Let `subpar` package handle subfigures (until they are natively support) #3

Closed JamesxX closed 3 weeks ago

JamesxX commented 1 month ago

https://github.com/maucejo/elsearticle/blob/bd90396f1123410352107ef72b3507c5d358fe0c/src/elsearticle.typ#L39-L44

The subpar package deals with many of the edge-cases that we'd otherwise need to deal with ourselves

maucejo commented 1 month ago

Actually, I have already thought to use the subpar package. However, it doesn't seem to allow separate supplements : one for the caption and one for referencing the element. It is a common usage in my field to have caption with "Figure 1: ..." and to cite it as "Fig. 1" in the text (I have checked that in the guides for authors). That is why, I have implemented subfigure this way.

However, I agree that using the subpar package would simplify the code of the template.

maucejo commented 3 weeks ago

The new release supports subpar now ;)