Questions tagged [arguments]

The {argument} tag is used for specific questions about macro parameters and arguments.

The tag is used for specific questions about macro parameters and arguments.

For more general questions see

294 questions
6
votes
3 answers

Newcommand with single and double argument (probability function)

I want to define a new command such that when a first and only argument is given it does one thing and when a second argument is given it expands the first argument. The idea is to replicate the probability function. One argument is for probability…
Camilo
  • 71
3
votes
2 answers

For the life of me I can't find the runaway argument here -- but then I'm very new to all this

\documentclass[11pt, oneside]{article} \usepackage{geometry} \geometry{a4paper} \usepackage{graphicx} \usepackage{amssymb} \usepackage{arydshln} \usepackage[table]{xcolor} \usepackage{pifont} \begin{document} \begin{center}…
2
votes
1 answer

The argument specifier N and n

I am reading the documentation about Argument Specifiers in 1.1 Naming functions and variables of interfaces.pdf, where each argument is represented by a single letter. I am confused of the argument specifier N and n. The document states that N and…
Veak
  • 1
2
votes
1 answer

Followup on \def@

Trying to understand \def\def@ sintax primitives As a followup to this question, I'm currently working on a BA, using a set of definitions I found on a template's .cls file. Currently: % The year and term the thesis is submitted…
Luke X
  • 21
1
vote
1 answer

Inserting a condition in a macro with more than 9 arguments

I have an excel table with several entries describing documents in an archive. Then I wanted to convert the whole table into formatted paragraphs in which every row appears as a unit. I then produced a command with 14 arguments. From here: How to…
yacine
  • 144
0
votes
2 answers

Argument string that applies different code expressions based on the specified option

I want to pass an argument string to \NewDocumentCommand that allows me to apply different code expressions based on the specified option. For instance, consider a command named product with an argument called type , where the latter can be either…
Karl
  • 1
0
votes
1 answer

Dependency of arguments

I would like to have a secondary environment named \defin that uses a parent environment, the latter taking three arguments. \defin will call \statement with a hard-wired first argument, the rest of the arguments behaving as the parent. Would this…
Veak
  • 1