I think a search for \widthof
on any other command with backsalsh shows also results without considering \
. Is it true? How can I make a search for a command and not for its name?
-
(Just to clarify) Do you mean searching on this (rather, the main) site?– Andrew StaceyCommented Oct 19, 2012 at 9:56
-
I mean searching on tex.stackexchange.com– IgnasiCommented Oct 19, 2012 at 10:46
1 Answer
The closest that I know of (or actually just found out about) is code:"\widthof"
. This seems to search only for text that has been marked as code. As for its developmental status:
It's not a secret, but it's not polished either...I was interrupted in the middle of implementing it and haven't re-visited it in a while. You're welcome to use it and we won't remove it. That being said, I don't feel it's 1.0 quality at this point, so haven't added it to documentation as I expect there are bugs I'll find with more testing locally. We're doing a lot behind the scenes right now, when that settles down I'll re-visit search (we have lots of ideas/code in the pipe there). – Nick Craver♦ Sep 13 at 0:07
While I expected code:"\widthof"
to return pretty much the same results as widthof
(which shouldn't occur as non-code too often, right?), the former only returns 22 results, the latter 108. I haven't checked out where the difference comes from.
-
1Thank you. It helps a little to restrict searches but I think it's a bit strict because it searches for complete words. If I search for
code:"\includegraphics[
only 4 results are shown because they include\includegraphics[
followed by a ` ` (space) or return.– IgnasiCommented Oct 19, 2012 at 18:04 -
2That sounds like a good point for a feature request on Meta Stack Exchange, unless there already is one. A
*
wildcard might make sense here. Commented Oct 19, 2012 at 18:08