Questions tagged [function]
48 questions
1
vote
1 answer
Defining functions in Latex3
Could I have some explanation. For instance, What are these Nn and nn about. Very cryptic syntax.
\cs_new_protected:Nn \piston_newteorema_define:nn
{
\NewDocumentEnvironment { #1 } {D(){#2}}
{
\tl_set:Nn…
Veak
- 1
0
votes
1 answer
Colour command showing side effect upon subsequent text
I introduced colour to a QED command, but the colour has side effect on the text that follows it. I want the colour to be restricted to the symbol…
Celest
- 1
0
votes
0 answers
Blank lines between code sections
Have seen that strange things start to happen as soon as one introduces blank lines between
code sections.
For instance, take the synopsis for \NewDocumentEnvironment
\NewDocumentEnvironment{}{}{}
If…
user305785
0
votes
1 answer
Defining functions
In LaTeX, one can declare functions in documents using the \newcommand or \newenvironment commands. Here's how one can define a simple function and an environment.
\newcommand{\myfunction}[2]{Function: #1 + #2}
In this example,…
Veak
- 1