^^ see title.
I think it should be okay? Compare Should we post a catch-all question answering "What's this font?" on TeX.SX? - TeX - LaTeX Meta Stack Exchange
What's the current problem?
- Answerers keep having to repeat the explanation.
- If they don't, visitors (those who want to learn TeX-programming-language) don't understand what is going on.
- It happens quite frequently (maybe more frequently, this is not easy to search for) – see below.
Meta
- There are 3 types. (if this is made) should they be split into 3 different questions, or only 1?
- What's the duplicate close vote policy?
Immediately close questions as duplicate of the corresponding one, unless they (later edit to) mention that they already read the linked question and what exactly they don't understand.
Write separate answer that have code to solve OP's specific issue, then link to the corresponding question for the repeated explanation part.
- CW or not? (the font question above isn't CW.)
Example question.
I have a macro \innermacro{...}
, when it's used alone it typesets 123
on the document.
Then, I have another macro \outermacro
, such that \outermacro{123}
results in 456
.
Now I try to use \outermacro{\innermacro{...}}
, but it raises mysterious errors.
What is going on?
Example existing questions
Generally I think there are 3 types:
\innermacro
is catcode-changing.Example:
\innermacro
is not expandable. ("obviously" this category is the most common)Example:
- Issue with fp "missing number" macro
- \IfSubStr does not work when used as parameter of another macro
- My if condition does not work. Any idea why?
- \dim_set failed when using \str_if_in in LaTeX3
- How to extract year from date in iso 8601 format?
- What can go wrong when using macros as arguments of other macros?
Reference:
\outermacro
does not expand its arguments.Example:
\IfSubStr
cannot be used in the argument to another macro: it obviously can be. Only\outer
tokens or\par
cannot appear in the argument to a macro (the latter if the wrapping macro is not\long
). Even\verb
can appear in an argument, provided it's the last token in the replacement text.