Skip to content

math bold letters are not bolded in the arxiv-pdf #5

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

Closed
huizezhang-sherry opened this issue Nov 21, 2022 · 8 comments
Closed

math bold letters are not bolded in the arxiv-pdf #5

huizezhang-sherry opened this issue Nov 21, 2022 · 8 comments

Comments

@huizezhang-sherry
Copy link

Thanks for the arxiv template! I'm trying to use Math bold letters in the template qmd with the following:

This is what rendered by \mathbf{v}: $\mathbf{v}$

but the v is not bolded in the rendered pdf:

Screen Shot 2022-11-21 at 2 28 11 pm

Maybe I'm missing something obvious here!

@mikemahoney218
Copy link
Owner

Hmm, not 100% sure what's going on here. That said, any chance the \symbf{} command works?

image

Based off a thread in the Pandoc discussion group, if you like the output from \symbf then I think that's the ideal way to do this -- I think (but am not sure) that \mathbf has challenges with certain latex rendering engines.

@mikemahoney218
Copy link
Owner

(Also: hi Sherry! Not sure if you remember, but I believe we spoke in the same timeslot at useR 2021 -- hope you're well 😄 )

@mikemahoney218
Copy link
Owner

mikemahoney218 commented Nov 21, 2022

One last note: I think (based off this StackExchange: https://tex.stackexchange.com/a/38631 ) that the core issue comes from the unicode-math package, which is attached by the default Pandoc template:
https://github.com/jgm/pandoc/blob/4b4771f062a227153109d0ba2f9d125c82f411a8/data/templates/default.latex#L94-L102

@huizezhang-sherry
Copy link
Author

\symbf{} is good enough for me at this stage.

I reckon one issue with \mathbf{} is that Latin Modern Math doesn't have a bold typeface.

And yes! I remember you and I think we both speak at useR 2022 as well!

@mikemahoney218
Copy link
Owner

Ah, that's it! In version 0.2.1 (which I'm about to release), \mathbf now works as expected:

image

Thanks for pointing out the missing bold typeface -- wouldn't have caught that.

@Doktorandahl
Copy link

Hi Mike,
Thanks so much for this quarto template, it's really great and easy to use!

I'm still having problem with boldface math letters though, specifically greek letters. I've tried a wide range of combinations of options with \mathbf{\beta}, \symbf{\beta}, adding the bm package to the prelude and \bm{\beta} etc, but can't seem to find a solution. Any suggestions?

@mikemahoney218
Copy link
Owner

@Doktorandahl -- have you tried using pmb? I also seem to get a (subtly) bolded output from \symbf:

image

@Doktorandahl
Copy link

Thanks Mike, \pmb{} worked

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