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

Autocomplete entries for commands created by \newtcbox #3878

Open
muzimuzhi opened this issue Nov 16, 2024 · 0 comments
Open

Autocomplete entries for commands created by \newtcbox #3878

muzimuzhi opened this issue Nov 16, 2024 · 0 comments

Comments

@muzimuzhi
Copy link
Contributor

Describe the feature and the current behavior/state

Commands created by tcolorbox macros \newtcbox, \NewTCBox, \newtcboxfit, \NeWTCBoxFit, and their \renew..., \Renew... variants always takes one more mandatory argument than what's specified. See also T-F-S/tcolorbox#300.

For example, \newtcbox\mybox{} defines \mybox{<box content>} and \NewTCBox\myboxB{o}{#1} defines \myboxB[<options>]{<box content>}.

That extra trailing mandatory argument is missing from auto-generated autocomplete entries.

\documentclass{article}
\usepackage{tcolorbox}
\newtcbox{\mybox}[1][]{}
\begin{document}
\mybox
\end{document}

image

Current entries (incomplete syntax): \mybox[opt. arg1], \mybox

Better entries (full syntax): \mybox[opt. arg1]{<box content>}, \mybox{<box content>}

Who will benefit with this feature?

tcolorbox users who define and use new \tcbox-like commands.

Any Other info

I understand it's a edge-case.

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