Hi Matt, 2016-04-18 21:44 GMT+02:00 Matthew Leach <[email protected]>: > Hi all, > > I have a question regarding what to do next regarding the future of the > TikZ style. The optional arguments that can be passed to TikZ commands > seem, to me, to be a very important feature. My question is whether I > should look at implementing completion for the optional arguments to a > TikZ command? > > For example, section 14.7 of the TikZ manual documents the 'arc' > command. This command is practically useless without specifying some > "optional" parameters to the command and the list of parameters that > could be specified are documented in this section. My question is: is > it too invasive for AUCTeX to be completing "optional" arguments to > commands/macros (since, AFAICT, I don't see it done anywhere else in > AUCTeX) or is this something I could look at implementing?
\usepackage is the first macro providing completion for optional argument that comes to my mind, but it isn't the best example to follow since it works in a very special way (we need to know first the name of the loaded package in order to provide completion for the optional argument, but this comes before the mandatory argument in macro's syntax). We support key-val syntax (very common in many optional arguments) with `TeX-arg-key-val' function, grep it to see some examples. Bye, Mosè _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
