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

add more uses of #d1 #3924

Merged
merged 5 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions completion/colorblind.cwl
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
# colorblind package
# Matthew Bertucci 2024/05/14 for v1.0
# Matthew Bertucci 2024/12/23 for v1.1

#include:xcolor
#include:ifthen
#include:tikz
#include:tikzlibrarymath
#include:pgfplots

#keyvals:\usepackage/colorblind#c
Tol
OkabeIto
pgf
no-tikz
keep-defaults
#endkeyvals

#ifOption:pgf
#include:pgfplots
#endif

\drawScheme{scheme}
\drawSchemeC{scheme}
\drawSchemeC[width]{scheme}

# not documented
\theColorNum#S
\theColorNum#S
6 changes: 1 addition & 5 deletions completion/exesheet.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# exesheet package
# Matthew Bertucci 2024/02/15 for v2.7
# Matthew Bertucci 2024/12/24 for v2.8

#include:kvoptions
#include:ifthen
Expand Down Expand Up @@ -130,14 +130,10 @@ mode=#unboxed,boxed
\begin{tablenuma}(cols)
\begin{tablenuma}[options%keyvals](cols)
\end{tablenuma}
\begin{tablenuma*}
\end{tablenuma*}
\begin{tablitem}
\begin{tablitem}(cols)
\begin{tablitem}[options%keyvals](cols)
\end{tablitem}
\begin{tablitem*}
\end{tablitem*}

#keyvals:\begin{tablenum1},\begin{tablenuma},\begin{tablitem}
style=#itemize,enumerate
Expand Down
4 changes: 2 additions & 2 deletions completion/tcolorbox.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ library/all
\NewTCBox[init options]{cmd}{xargs}{options%keyvals}#d1
\RenewTCBox{cmd}{xargs}{options%keyvals}
\RenewTCBox[init options]{cmd}{xargs}{options%keyvals}
\ProvideTCBox{cmd}{xargs}{options%keyvals}#d
\ProvideTCBox[init options]{cmd}{xargs}{options%keyvals}#d
\ProvideTCBox{cmd}{xargs}{options%keyvals}#d1
\ProvideTCBox[init options]{cmd}{xargs}{options%keyvals}#d1
\DeclareTotalTCBox{cmd}{xargs}{options%keyvals}{content}#d
\DeclareTotalTCBox[init options]{cmd}{xargs}{options%keyvals}{content}#d
\NewTotalTCBox{cmd}{xargs}{options%keyvals}{content%text}#d
Expand Down
24 changes: 12 additions & 12 deletions completion/tcolorboxlibraryfitting.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@

\tcboxfit{box content%text}
\tcboxfit[options%keyvals]{box content%text}
\newtcboxfit{cmd}{options%keyvals}#d
\newtcboxfit{cmd}[args]{options%keyvals}#d
\newtcboxfit{cmd}[args][default]{options%keyvals}#d
\newtcboxfit[init options]{cmd}{options%keyvals}#d
\newtcboxfit[init options]{cmd}[args]{options%keyvals}#*d
\newtcboxfit[init options]{cmd}[args][default]{options%keyvals}#*d
\newtcboxfit{cmd}{options%keyvals}#d1
\newtcboxfit{cmd}[args]{options%keyvals}#d1
\newtcboxfit{cmd}[args][default]{options%keyvals}#d1
\newtcboxfit[init options]{cmd}{options%keyvals}#d1
\newtcboxfit[init options]{cmd}[args]{options%keyvals}#*d1
\newtcboxfit[init options]{cmd}[args][default]{options%keyvals}#*d1
\renewtcboxfit{cmd}{options%keyvals}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If \renew... commands alter argument specification, then they need the d1 modifier too.

Note the current completion support for redefined commands is not perfect, see #3925.

\renewtcboxfit{cmd}[args]{options%keyvals}
\renewtcboxfit{cmd}[args][default]{options%keyvals}
\renewtcboxfit[init options]{cmd}{options%keyvals}
\renewtcboxfit[init options]{cmd}[args]{options%keyvals}#*
\renewtcboxfit[init options]{cmd}[args][default]{options%keyvals}#*
\DeclareTCBoxFit{cmd}{xargs}{options%keyvals}#d
\DeclareTCBoxFit[init options]{cmd}{xargs}{options%keyvals}#d
\NewTCBoxFit{cmd}{xargs}{options%keyvals}#d
\NewTCBoxFit[init options]{cmd}{xargs}{options%keyvals}#d
\DeclareTCBoxFit{cmd}{xargs}{options%keyvals}#d1
\DeclareTCBoxFit[init options]{cmd}{xargs}{options%keyvals}#d1
\NewTCBoxFit{cmd}{xargs}{options%keyvals}#d1
\NewTCBoxFit[init options]{cmd}{xargs}{options%keyvals}#d1
\RenewTCBoxFit{cmd}{xargs}{options%keyvals}
\RenewTCBoxFit[init options]{cmd}{xargs}{options%keyvals}
\ProvideTCBoxFit{cmd}{xargs}{options%keyvals}#d
\ProvideTCBoxFit[init options]{cmd}{xargs}{options%keyvals}#d
\ProvideTCBoxFit{cmd}{xargs}{options%keyvals}#d1
\ProvideTCBoxFit[init options]{cmd}{xargs}{options%keyvals}#d1
\DeclareTotalTCBoxFit{cmd}{xargs}{options%keyvals}{content%text}#d
\DeclareTotalTCBoxFit[init options]{cmd}{xargs}{options%keyvals}{content%text}#d
\NewTotalTCBoxFit{cmd}{xargs}{options%keyvals}{content%text}#d
Expand Down
Loading