Skip to main content

Questions tagged [parameters]

{parameters} is predominately used for questions about arguments of macros, packages etc.

Filter by
Sorted by
Tagged with
9 votes
2 answers
401 views

To my surprise, the TeXbook (page 203) mentions that the first argument in \cs AB {\Look}C${And\$ }{look}\$ 5. where \cs is defined as \def\cs AB#1#2C$#3\$ {#3{ab#1}#1 c##\x #2} is \Look, and not [...
INEEDANSWERS's user avatar
2 votes
0 answers
70 views

I’m trying to feed an existing TeX box into a MetaPost graphic so that I can draw it as a page background. When I send the box as a parameter, MetaPost only receives the register number (e.g. 437), ...
Harry's user avatar
  • 163
9 votes
4 answers
405 views

As I update an old project to work with xparse, I am seeking to deploy \NewDocumentEnvironment in place of environ 's \NewEnviron and want to replicate the "body-capturing" functionality of ...
Mathra's user avatar
  • 91
0 votes
2 answers
211 views

Design: a (La)TeX command (maybe look like this \passresult{\outercommand}{\innercommand}{param1}{param2}), which pass the return of a dual-parameter \innercommand{param1}{param2} into another \...
谢尘竹's user avatar
4 votes
2 answers
254 views

Given this MWE: \documentclass[12pt]{report} \usepackage{fontspec} \setlength{\parindent}{0pt} \NewDocumentCommand{\testone}{m m m }{% \if\relax\detokenize{#2}\relax \textbf{#1}\dotfill#3\...
hsmyers's user avatar
  • 1,615
1 vote
1 answer
104 views

I'm defining a command which displays braced paragraphs and an isomorphism between them, but I want the command to recognize if one of the paragraphs is something purely mathematical and therefore not ...
Lorenzo Carozzo's user avatar
0 votes
2 answers
238 views

I'm trying to check if a parameter is declared/empty using lua. So far I wrote the following MWE: \documentclass{standalone} \def\var#1{\def\@var{#1}} %\var{Hello world} \begin{document} \@var --...
Levy's user avatar
  • 1,207
4 votes
2 answers
436 views

I get the error: Missing number, treated as zero. trying to pass a counter to \lipsum. I feel like I might be forgetting some basic technique here, but I've unsuccessfully scoured the site to find out ...
Geoff Pointer's user avatar
0 votes
1 answer
714 views

I'm trying to pass variables to a tex template to generate a PDF with those values via pandoc. This is my template: \documentclass[15pt]{article} \usepackage{sectsty} % Margins \topmargin=-0.45in \...
Lucas Fath's user avatar
3 votes
2 answers
395 views

Most commands use {} to receive parameters. For example $\binom{6}{2}$ typesets the binomial coefficient 6 choose 2. However \sqrt receives a [] parameter as its first parameter. For example $\sqrt[3]{...
aker9397's user avatar
0 votes
0 answers
30 views

I am trying to write a macro like this: \usePackage{xparse} \NewDocumentEnvironment{myenv}{} { \NewDocumentCommand{\myarrow}{g}{\IfNoValueTF{#1}{\to}{\xrightarrow{#1}}} \begin{enumerate} } ...
user680089's user avatar
0 votes
2 answers
171 views

I want to create a macro \verticalStep which will produce a vertical skip of fixed length, and take two optional arguments, negative and small. So for you could use \verticalStep for a standard ...
Atai Ambus's user avatar
0 votes
0 answers
72 views

I have 2 versions of TeXLive: 2020 at home (as far as I remember) 2021 at work I have a document with string: \usepackage[group-separator = \;, decimalsymbol=comma]{siunitx} It works at home, but ...
user4035's user avatar
  • 5,209
1 vote
0 answers
69 views

Im quite new to Latex and haven't found anything yet to help me with my problem. My problem is that i want to write the output of a command to another .tex file. I want to use the custom command \...
Radio's user avatar
  • 11
2 votes
2 answers
498 views

I would like to build several Pareto diagram figures using a \newcommand, like this: \documentclass[11pt]{amsart} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{xfp} \...
Angelo Aliano Filho's user avatar
1 vote
1 answer
160 views

This post refers to a two-color lettrine provided by egreg in Centering an Initfamily Letter within a Colorbox and Sizing It for Use as a Two-Color Lettrine. Consider the code \documentclass{book} \...
DDS's user avatar
  • 11.1k
3 votes
4 answers
346 views

I am using nested macros using the xparse package, my ultimate goal being to have a custom macro factory. I have simplified my current problem here. I want to give a pattern as an argument, like in ...
User9123's user avatar
  • 147
12 votes
2 answers
399 views

I'm trying to define a command \letin that should produce something that looks as follows. Note that it should support a variable number of "let" arguments and a single "in" ...
Safron's user avatar
  • 360
2 votes
1 answer
1k views

I'm searching for a way to avoid the following layout (image below) where the underscore and the lower case letters get tightened inside the tcbox : ideally, I'd like the tcbox to keep a height that ...
Etsaf's user avatar
  • 369
0 votes
1 answer
256 views

Last time I updated MiKTeX was over an year and till now the below MWE worked: \begin{filecontents*}{tst.tex} \begin{tikzpicture}[auto] % placing the nodes \node[signal] (input) {}; \...
Su-47's user avatar
  • 2,620
0 votes
1 answer
717 views

I want to outsource my preamble to a different file. So far I'm doing it with \RequirePackage. This ends up looking like this: \RequirePackage{templates} \begin{document} ... \end{document} My ...
Titanlord's user avatar
  • 561
1 vote
2 answers
431 views

So I was looking for a way to do something in latex, and I ran across the following MWE: \documentclass{article} \def\foo{1} \def\bar#1 #2{% \expandafter\def\expandafter\foo\expandafter{\foo {}#1}...
Aram Papazian's user avatar
2 votes
1 answer
279 views

I want to define a command to draw schemas of the type shown in the following figure, but for an indeterminate number of branches. The inputs will always be positive integers. The numbers of the ...
Jesús Álvarez Lobo's user avatar
2 votes
1 answer
5k views

I have written a command to put a text in bold and give a line break. It works fine for me in single line text, but if I want to pass it an argument with pair it doesn't work for me. How could I ...
A. Cedano's user avatar
  • 487
0 votes
3 answers
2k views

I've defined a newcommand to create a reusable "requirement" component for my LaTeX document. The problem I have is that it seems like I need to have the entire command on a single line, ...
Axel Kennedal's user avatar

1
2 3 4 5