All Questions
8 questions
1
vote
1
answer
79
views
Defining a Set of Keys in Terms of Another Set of Keys
If I have 2 macros, one inside the other, while the top-most one has a bit more parameters, I would like to be able to set the top-most macro's keys as an extension of the bottom one, something ...
1
vote
1
answer
78
views
Can you not pass argments to commands using keys?
I use my own LaTeX preamble for university, so I am fairly used to creating macros using tools such as xparse. However, I am unsure why I cannot do something that will choose between two images on my ...
1
vote
1
answer
146
views
Is it safe to use \globaldefs for setting global pgf key-value pairs?
With the help of this post (Is there a way to set a *global* key value using `pgfkeys`?), I found a simpler way to implement a solution to my own question (How can I create commands using multiple ...
0
votes
3
answers
169
views
How can I create commands using multiple arguments with pgfkeys in custom environments with tabulars? [duplicate]
I am trying to create my own template package.
In this package, there are several custom environments defined. One of those environments starts and ends a table, i.e:
\newenvironment{customenvtab}{\...
1
vote
2
answers
89
views
Passing #1 to \pgfkeys
I have the following setup to apply macros to certain data of a command:
\makeatletter
\def\myqu@rck{\myqu@rck}
\pgfkeys{/mykeys/macro/.code=\mykeys@defmacro{#1}}
\def\mykeys@defmacro#1{\mykeys@@...
3
votes
3
answers
259
views
Misplaced \noalign when trying to define a command for cmidrules
When trying to maintain large tables with \cmidrules, I find them tedious to use, so I thought I'd define my own shortcut. Instead of writing \cmidrule{1-3} \cmidrule{4-5} I would simply write \...
1
vote
1
answer
55
views
pgfkeys: Read one key and ignore the others
In my own command \includegraphicsextended I want to add a caption to the pdf page containing
File [filename] Page [pagenumber]
therefore from the keys in %1 I want to just read the page=... key ...
8
votes
3
answers
405
views
Is there a way to retrieve the “source code” and the argument pattern from a macro for reuse (i.e. what \show shows)?
I want to concatenate the “source code” of two macros which share the same argument signature. How do I grab (i.e. expand once) the macro without TeX searching for the arguments which the macro ...