Skip to content
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

How to align first line of captions? #6

Open
augustebaum opened this issue May 3, 2024 · 3 comments
Open

How to align first line of captions? #6

augustebaum opened this issue May 3, 2024 · 3 comments

Comments

@augustebaum
Copy link

Hi,

I'm really excited about subpar, I jumped on it as soon as I saw the first version was released!

I'm trying it out on a project of mine and I see the figure captions are aligned nicely, but the result looks a bit off to my taste:

2024-05-03T13_23_53_screenshot

In this case it would make more sense to me if the captions' first lines were aligned.

Do you have any suggestions on how I could achieve this, or would it have to be integrated into subpar?

@augustebaum augustebaum changed the title Option to align first line of caption How to align first line of captions? May 3, 2024
@tingerrr
Copy link
Owner

tingerrr commented May 3, 2024

In your specific case (where the images appear to be of similar size), you could try setting supbar.grid(align: top, ...).

This is one of the issues I'm not yet sure how to solve easily.

@iandol
Copy link

iandol commented May 23, 2024

Both figures and captions may be different sizes:

image

@tingerr — why can't you use grid cells for each image and caption, then you can align images to bottom and captions to top?

@tingerrr
Copy link
Owner

@tingerr — why can't you use grid cells for each image and caption, then you can align images to bottom and captions to top?

This is what I will eventually do, the problem is that I need to write up all the code to peer into potentially any kind of content a user passes and resolve certain styles in the correct context, especially when using references.

Currently, users don't have to do anything to use the @reference syntax, and I'd like to keep it that way, but I haven't come up with a solution that preserves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants