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

Unable to make math mode bold #164

Closed
Splike opened this issue May 3, 2018 · 3 comments
Closed

Unable to make math mode bold #164

Splike opened this issue May 3, 2018 · 3 comments
Labels
Res: Invalid This does not seem right, or contain any valid or useful information. It's discarded.

Comments

@Splike
Copy link

Splike commented May 3, 2018

Example: If $n$ is even then $n^2$ is even

Anything encapsulated by "$$" will not show as bold, which makes it look very weird.

@yzhang-gh
Copy link
Owner

That is because math mode is a different environment.

image

And note that bold style often has conventional meaning in math typing, such as vector rather than scalar.

@Splike
Copy link
Author

Splike commented May 4, 2018

To me, most of the bold examples in the picture look the same. So having markdown and latex syntax work together would make good sense.

I think standard behavior of using markdown syntax together with latex math syntax should be a follows.

**$n^2$** should show in the preview, as if it was written $\mathbf{n^2}$

The same goes for _$n^2$_ should show, as if it was written $mathit{n^2}$

Combining them **_$n^2$_** should show, as if it was written $mathbf{mathit{n^2}}$

Written using markdown, it's a whole lot easier to read and and a whole lot easier to write, especially with ctrl+b and ctrl+i shortcuts.

@yzhang-gh
Copy link
Owner

yzhang-gh commented May 5, 2018

And note that bold style often has conventional meaning in math typing, such as vector rather than scalar.

My point is that the bold/italic styles have different meanings between normal text and math text.

image

Do you see the differences? **bold** only changes the font weight to emphasize the text. But \mathbf{} changes the whole font, and meaning. \mathbf{x} is not meant to emphasize x.

The same for italic style

image

And you can try $\mathbf{\mathit{x + y = z}}$ on your own. Does the result look as you expect?

@yzhang-gh yzhang-gh added the Res: Invalid This does not seem right, or contain any valid or useful information. It's discarded. label May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Res: Invalid This does not seem right, or contain any valid or useful information. It's discarded.
Projects
None yet
Development

No branches or pull requests

2 participants