{parameters} is about the meaning, and the manipulation of fundamental parameters that guide the typesetting of LaTeX.
19
votes
5answers
730 views
Spirograph, Continuous Rotations in TikZ or PSTricks
Spirograph-like drawings are obtained when one repeatedly draws a closed curve on a continuously rotated canvas. Is there a nice way to make spirograph drawings using TikZ or PSTricks? There is a nice ...
15
votes
3answers
853 views
Extract first & last characters of macro argument?
In LaTeX, how do I extract/isolate/determine the first and last characters of a macro argument?
Specifically, in the case I'm dealing with, the argument happens to be a base-10 integer (call it N). ...
2
votes
2answers
411 views
Length parameter for vertical skip space in a math environment?
I learned here that I can use \\[<len>] to explicitly set the vertical skip space between lines, e.g., <len> set to 3ex. I'd like to set <len> to, say, 2-times the normal length in ...
13
votes
2answers
192 views
TeX Parameter Processing imitating key-value pairs
I am thoroughly confused by this answer to How to generate n points on a circumference and connect all of them while having constraints on the image size as I don't understand how the parameter ...
12
votes
2answers
257 views
Macro to take a character as argument, make it active, then \def it.
I have a XeLaTeX document in which I want some unicode symbols to be auto-substituted, like ¼ → 1/4, » → >>, « → <<. But instead of a long list like
\catcode`\¼=\active\def¼{1/4}
...
6
votes
1answer
199 views
Storing unexpanded macro definitions (including #1, #2, …) for later use (now includes full usecase)
Preliminary Info
I'm working on a new LaTeX package to make scoping more flexible. To do this I'll be capturing and reintroducing user defined commands behind the scenes.
(For a comprehensive ...
4
votes
2answers
2k views
variable-name \newcommand with parameters within another \newcommand
In "Defining a newcommand, with variable name, inside another newcommand" we learned how to use \newcommand within a command definition with another \newcommand, when the name of the inner command ...
1
vote
0answers
267 views
pgfplotsinvokeforeach using parameter [closed]
The following code works in the minimal example but not in my document
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\pgfplotsinvokeforeach{1,2,...,10} {
...