Questions tagged [starred-version]
{starred-version} is about command variants that are followed by a *.
181
questions
3
votes
4
answers
286
views
In(de)finite number of Boolean arguments
I would like to know if it is possible to program a function that would accept a given symbol an infinite number of times. The application I have in mind is the following. I would like, if possible, a ...
0
votes
1
answer
56
views
Using \protect to generalise definitions of starred commands?
This very helpful answer led me to define my own starred commands. However, in order to use my commands in, for example, headings, after a round of strange almost frightening thoughts, I managed to ...
1
vote
1
answer
57
views
Swap star and non-star versions of DeclarePairedDelimiter without breaking other parameters
I use \DeclarePairedDelimiter from the mathtools package a lot, and I almost always want the delimiters to be automatically resized. Therefore, I switch the definitions of the star and non-star ...
2
votes
1
answer
59
views
Locally redefine figure environment as figure* for automated export
I'm using a workflow based on pandoc and Latex to produce papers with my companies layout. Part of the formatting are captions set inside the margin and sometimes using images that span text and ...
1
vote
1
answer
127
views
Wrong TOC page number with starred part + \addcontentsline
When using an unnumbered part (\part*), added to TOC using \addcontentsline, the page number for the part page is wrong.
See this MWE :
\documentclass{book}
\begin{document}
\tableofcontents
\...
0
votes
1
answer
62
views
Change color of starred chapter headings
I want to make chapter headings colorful in a memoir. I've tried the approach proposed here. The only problem with this solution is that the unnumbered chapters remain unchanged. Is there a starred ...
1
vote
2
answers
57
views
Titlesec issue with table of contents and starred chapters
I would like to know why the following code prints the header "CONTENTS" after chapter 1 (Intro) starts, instead of writing the correct chapter name "Intro" in the header (as it ...
1
vote
1
answer
35
views
Splitting m Argument in a Starred Command
I have been trying to use \SplitArgument onto a command with also contains an s-type argument. I have tried everything, but the star is not taken into account, and on top of that, I get a parasitic ...
1
vote
1
answer
64
views
Why does \WithSuffix\providecommand overwrite command already defined by instance of thmtools's restatable environment?
Consider the output
of this MWE:
\documentclass{book}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{suffix}
\declaretheorem[numberwithin=chapter, style=plain,name=Theorem,refname={theorem,...
9
votes
3
answers
507
views
Make a simple command to generate a starred variant of a command
Based on the method indicated in this post, I want to make a \starredvariant command that would take a command and output the definition of its starred variant.
The point is to be able to use a syntax ...
2
votes
2
answers
137
views
Macro factory, passing on star arguments
I want to define a set of macros, with similar behaviour but applied to different symbols. To avoid repetitions, I thought it would be a good idea to generate them programmatically from a template.
I ...
2
votes
2
answers
86
views
Generate command definitions that take arguments
I want to define a command \NewSmartOp such that:
\NewSmartOp \MYOP \myop
would produce the following code (or anything equivalent):
\makeatletter
\def\MYOP{\@ifstar\MYOP@star\MYOP@nostar}
\def\...
3
votes
1
answer
212
views
\pdfstringdefDisableCommands with starred and non starred commands
The following MCE:
\documentclass{article}
\usepackage{hyperref}
\ExplSyntaxOn
\NewDocumentCommand { \foo } { s m } {
\IfBooleanTF {#1}{
Foo~ #2
}{
#2
}
}
\pdfstringdefDisableCommands{
...
1
vote
0
answers
143
views
Custom section style and corresponding starred command
I need to use a custom format for a conference paper. I am asked to redefine the section, subsection and paragraph headings by the following code in the preamble:
\documentclass[a4paper,10pt,twocolumn]...
1
vote
1
answer
180
views
Redefining \ref* along the lines of \ref to allow "local labels" in sections
I use the "local labels" hack from this answer to automatically prefix labels in order to be able to reuse the same labels in different places of the same document.
Background: Why?
There ...