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

feature request: subfigures #36

Open
joshuahhh opened this issue Sep 11, 2022 · 2 comments
Open

feature request: subfigures #36

joshuahhh opened this issue Sep 11, 2022 · 2 comments
Labels
priority: medium This isn't blocking anyone's paper, but it might someday soon

Comments

@joshuahhh
Copy link
Collaborator

As described at https://www.overleaf.com/learn/latex/How_to_Write_a_Thesis_in_LaTeX_(Part_3)%3A_Figures%2C_Subfigures_and_Tables. Pretty sure I'll want this for my paper. Might hack something in.

@joshuahhh joshuahhh added bug Something isn't working priority: high This is blocking someone's paper priority: medium This isn't blocking anyone's paper, but it might someday soon and removed bug Something isn't working priority: high This is blocking someone's paper labels Sep 11, 2022
@joshuahhh
Copy link
Collaborator Author

I was able to hack in what I need in 59f3f1f. Note that the issues I discuss in #39 arise here, since I'm nesting subfigures inside of figures. (But you can route around them by doing some pre-processing yourself, in the Markdown source.)

@joshuahhh
Copy link
Collaborator Author

Some more info, for posterity:

In addition to 59f3f1f, which hacked in LaTeX support for subfigures, I also did 379c483, which hacked in HTML support (much easier).

Using subfigures, in source, looked like:

::: figure {#notebook_vs_canvas}
:::: {.subfigure style="width: 30%" latex_width=0.3\columnwidth}
![](assets/2022-09-10-16-54-40.png)
::::
:::: {.subfigure style="width: 65%" latex_width=0.65\columnwidth}
![](assets/2022-09-10-16-58-15.png)
::::
| (a) A [Notebook]{.toolname} in which a user builds an arrow graphic for a vector. (b) A [NotebookCanvas]{.toolname} consisting of the same cells, but arranged spatially.
:::

In this example, I just use a normal caption, on the figure. You might instead want to use "subcaptions" on each subfigure, which could be made by using a | line within the subfigure. I used these at one point, so 59f3f1f handles them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium This isn't blocking anyone's paper, but it might someday soon
Projects
None yet
Development

No branches or pull requests

1 participant