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

Disable conceal inside specific commands/environments #2266

Closed
poscat0x04 opened this issue Dec 4, 2021 · 2 comments
Closed

Disable conceal inside specific commands/environments #2266

poscat0x04 opened this issue Dec 4, 2021 · 2 comments

Comments

@poscat0x04
Copy link
Contributor

Is your feature request related to a problem? Please describe it.
Currently, conceal is enabled in \newcommand and \renewcommand (and \providecommand and so on...), which means
this command:

\renewcommand\emph{\textbf}

will be displayed as:

\renewcommand

which is very confusing.

Describe the solution you'd like
I've noticed that conceal is disabled inside verbatim environments. I'm not sure how it's done but maybe we could
use the same method to implement an interface for users to disable conceal inside specific commands/environments.

@lervag
Copy link
Owner

lervag commented Dec 6, 2021

First, I believe this is not an issue if you use \renewcommand{\emph}... - can you confirm?

Still, I agree this is not expected, so I'll look into it!

lervag added a commit that referenced this issue Dec 6, 2021
@lervag
Copy link
Owner

lervag commented Dec 6, 2021

This should work as expected now.

@lervag lervag closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants