If I search on TeX - LaTeX for \cs_set_eq
, only one result is returned: "Q: Patch font with LuaTeX" whereas e.g. this answer contains code containing \cs_set_eq
.
Do you know what's going on?
If I search on TeX - LaTeX for \cs_set_eq
, only one result is returned: "Q: Patch font with LuaTeX" whereas e.g. this answer contains code containing \cs_set_eq
.
Do you know what's going on?
Searching for xyz
finds results that are listed in the text only and not the code part, unless that code part is set using the <pre>
...</pre>
tags. So, this type of search excludes code segments that are not set via the <pre>
...</pre>
tags (indented by 4 spaces).
If you want to search within those segments, you need to use code:"<code>"
. This, however, requires an exact match for a code segment. So searching for code:"xyz"
would miss code segments with xyzz
or xxyz
in it.
In-line code content (those between backticks `<code>`
) seem to fall within both categories.
The difference here stems (I guess) from the fact that there's two different versions of question content that is active in the background - a "raw" and a "baked" format. The latter is an HTML (or visual/display) format for representing content within the browser, while the latter is the content as-is.
You can't combine these searches, since the OR operator is only used for combining tags (as in, [widgets] or [geegaws]
).
Here are some choices:
It is often better to search using a site-specific Google search, as in "cs_set_eq" site:tex.stackexchange.com
. However, since questions and answers are contained within the same visible page, the search results will necessarily cover both (as opposed to having a is:question
or is:answer
operator).
Searching is definitely not perfect on the network and takes some practice getting used to. Escaping characters may also cause issues, and this is especially true on TeX.SE where the use of \
is prevalent.
Reference(s):
\cs_set_eq:NN
gives more results. Strange anyway, and I guess others could fall into the same trap as I did.\cs_set_eq:NN
is found even in code blocks and not\cs_set_eq
.expl3
syntax very elegant and better suited for programming.expl3
, after that, you like it :)