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

MD tables taking the entire column width #119

Open
drfurtado opened this issue Mar 14, 2025 · 6 comments
Open

MD tables taking the entire column width #119

drfurtado opened this issue Mar 14, 2025 · 6 comments

Comments

@drfurtado
Copy link

I currently have this table:

::: {#tbl-mytable apa-note="This is a note below the markdown table." apa-onecolumn="true"}

Default Left Right Center
12 12 12 12
123 123 123 123
1 1 1 1

Table Caption of a Markdown Table
:::

This is the rendered pdf
Image

But I would like to have the table take the entire column. Is there an easy fix for this?

Thank you so much.

@wjschne
Copy link
Owner

wjschne commented Mar 14, 2025

Try this:

::: {#tbl-mymarkdowntable apa-note="This is a note below the markdown table." onecolumn=true tbl-colwidths= "[25,25, 25, 25]"}
| Default | Left | Right | Center |
|---------|:-----|------:|:------:|
| 12      | 12   |    12 |   12   |
| 123     | 123  |   123 |  123   |
| 1       | 1    |     1 |   1    |

Table Caption of a Markdown Table
:::

@drfurtado
Copy link
Author

Try this:

::: {#tbl-mymarkdowntable apa-note="This is a note below the markdown table." onecolumn=true tbl-colwidths= "[25,25, 25, 25]"}

Default Left Right Center
12 12 12 12
123 123 123 123
1 1 1 1

Table Caption of a Markdown Table
:::

Thank you so much...
If you don't mind, may I ask you how to decrease the space between the table and the note below? I tried \vspace, but it did not work.

Image

@wjschne
Copy link
Owner

wjschne commented Mar 15, 2025

After updating to the latest version of apaquarto, try using the beforenotespace option like this:

::: {#tbl-mymarkdowntable apa-note="This is a note below the markdown table." onecolumn=true tbl-colwidths= "[25,25, 25, 25]" beforenotespace="-1em"}
| Default | Left | Right | Center |
|---------|:-----|------:|:------:|
| 12      | 12   |    12 |   12   |
| 123     | 123  |   123 |  123   |
| 1       | 1    |     1 |   1    |

Table Caption of a Markdown Table
:::

@drfurtado
Copy link
Author

I had two different installations of the extension in my dir. Once that was resolved, the beforenotespace="-1em" worked as expected.
Thank you so much!!!

@drfurtado
Copy link
Author

I see that the authors names are indented, which does not look good.
It would be nice to remove the indentation from this chunck of text.

Image

@wjschne
Copy link
Owner

wjschne commented Mar 16, 2025

I agree that it looks bad. However, this is the way that it looks in most of the APA journals. There is some variation in how ORCID links are formatted, but all the examples I found are indented. If this formatting choice has changed recently, I would be happy to offer alternatives.

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

2 participants