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

LaTeX: Using * as a snippet for emphasis rather than italics #405

Open
andrasbarany opened this issue Feb 19, 2024 · 2 comments
Open

LaTeX: Using * as a snippet for emphasis rather than italics #405

andrasbarany opened this issue Feb 19, 2024 · 2 comments

Comments

@andrasbarany
Copy link

\textit and \emph give the same output in many contexts in LaTeX. But \emph is a semantic markup command which can be used recursively, that is if a first call of \emph makes text italic, a second call of \emph inside it will make the text upright again. \textit simply outputs italic text in every context.

In the logic of LaTeX, \emph is preferable in many contexts. Given this, would it be an option to change the snippet * to expand to \emph rather than \textit?

@OkelleyDevelopment
Copy link
Collaborator

Hey @andrasbarany 👋

While I see your reasoning, I don't think we should modify that snippet to use \emph because some packages would cause a different behavior and not the usual italics that \textit would provide.

  • iirc the package ulem has \emph result in underlined text

That said, the \emph snippet could have it's prefix updated so that when * is typed two options are presented. Thus allowing for a quick selection of the snippet you'd like.

Let me know your thoughts and feel free to open a PR if you have other ideas!

@andrasbarany
Copy link
Author

Hey @OkelleyDevelopment,

thanks for the quick reply. I see your point, I think showing two options for * would be a good solution, too!

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