Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [starred-version]

{starred-version} is about command variants that are followed by a *.

5
votes
3answers
54 views

How keep macro with \csname from gobbling up starred argument?

For purposes more involved than what's shown here, I want to test certain commands having both an ordinary form and a starred form, with the latter constructed using the suffix package. To do that, I ...
3
votes
3answers
70 views

How center the chapter* titles

I want center the title "Preface" and "Abstract" only. I do not want to centralize all the chapters. I can not and I should not delete any bookstore, I need all the libraries. \documentclass{book} \...
3
votes
1answer
27 views

How to redefine a command in terms of its starred variant?

I am writing a lab report for a class. I want to redefine \section so that \section{Analysis} has the same output that \section*{\centering Analysis} would normally have. I tried \renewcommand{\...
2
votes
1answer
77 views

Why is this \@ifstar construction not working, when both constituent \cline-like macros work?

I have a macro that makes a \cline of user-specified thickness. I want to create a * and un-* version to account for the difference between two cases depending on whether there is more than one \cline ...
1
vote
1answer
31 views

Incorrect bookmark level for unnumbered section when added to the table of contents

Following this solution, I have been able to successfully add an unnumbered chapter to a table of contents (ToC) and italicise the font. However, my unnumbered chapter consists of unnumbered sections, ...
1
vote
1answer
23 views

How can I change the footer of an unnumbered chapter inserted after a numbered chapter or an appendix?

Thank you all for your time, I just began to use LaTeX and this website so forgive me if my question has already been made, but I've searched a bit and didn't found anything that works for my ...
3
votes
0answers
70 views

Unable to use display math inside starred enumerate: Missing $ inserted / Bad math environment delimiter

Trying to use display math \[ \] inside a starred enumerate* environment gives an error Bad math environment delimiter or Missing $ inserted. I can imagine this is by design, and that the idea ...
5
votes
1answer
65 views

Starred macro with delimited arguments?

My goal is to define a starred and a non-starred version of a macro \foo that will be called as \foo arg {actual argument} or \foo* arg {actual argument}. So I tried the following: \makeatletter \...
6
votes
0answers
880 views

What is the difference between a figure environment compared to a figure* (figure star) environment

It is hard to search for this question since most search engines treat the * symbol somehow special, so sorry if that has been asked before. So, basically, I just would like to know what the ...
4
votes
1answer
50 views

Are mode/overlay specifications supported by Beamer for starred sectioning macros?

Are mode/overlay specifications unsupported by Beamer when used with the starred versions of sectioning commands? I ask, because I have code which (I am pretty, though not completely, sure) did work ...
1
vote
1answer
153 views

Error while using table* with XePersian package

When I use table* while having XePersian package, I get this error: Incomplete \iffalse; all text was ignored after line 10. A sample that returns this error is this one: \documentclass[12pt,...
2
votes
1answer
86 views

How do I construct a command name containing a star?

I defined the following command: \NewDocumentCommand \displayls {s m}{% \IfBooleanTF{#1}{\textls*[250]{#2}}{\textls[250]{#2}}% } I would like to refactor the definition to remove the duplication. ...
1
vote
1answer
172 views

How to make beforeskip and afterskip of chapters different from those of starred chapters in KOMA-Script's scrreprt?

I want to make chapters and starred chapters to have different beforeskip and afterskip. In other words, my abstract and bibliography shall have more beforeskip (about 1\baselineskip} than numbered ...
14
votes
5answers
956 views

Using \@ifstar to define a star variant

Why does the following not work at all? \documentclass{article} \makeatletter \newcommand{\foo}[1]{\@ifstar{\textbf{#1}}{\textit{#1}}} \makeatother \begin{document} \foo{test} \foo*{test} \end{...
4
votes
1answer
49 views

Patch starred environment and use it as nested environment in a new environment

For every (most?) environment \begin{X}...\end{X} there exists the macros \X and \endX that can be used inside the \newenvironment command. I.e, one can write something like this \newenvironment{Y}{\...
3
votes
1answer
122 views

How to pass starred command to \fp_eval:n

I would like to define a command that has a starred version and pass it to \fp_eval:n for some calculations. However, regardless of whether I use the starred or the regular version, I get the error ...
1
vote
1answer
63 views

math accent before starred macro, with unicode-math or without amsmath

I have a macro \makebold which takes a star and a shortcut \aaa. I'm trying to use \aaa after \bar to produce a barred, bold letter. \documentclass{standalone} \usepackage{xparse, unicode-math} \...
1
vote
2answers
237 views

Why does redefining \contentsname conflict with redefining \section when there is a \tableofcontents?

I am trying to modify the title of table of content and make every title of sections uppercase. But strange compilation errors occurred. The .tex file looks like the following one: \documentclass{...
3
votes
2answers
340 views

Defining a double star (**) for theorem environment

This is a follow-up question of QED symbol after statements without proof, and I am really not sure whether this is the right approach to solve the problem raised there. But it seems to solve all ...
1
vote
1answer
353 views

Prevent page break after multicols star environment

multicols environment of multicol package produces page break in starred version. How can we prevent this page break? \documentclass{book} \usepackage{amsmath,amssymb,amsthm} \usepackage{multicol} \...
1
vote
1answer
59 views

How to change sections numbering in starred chapter without changing document class?

My report starts with a starred chapter "Introduction". My problem is with sections' numbers. They all start with 0, so I get 0.1, 0.2 and 0.3 as shown below. I need to delete zeros and keep only 1,2 ...
4
votes
2answers
552 views

\vspace* (star) moves text above it

\documentclass{article} \begin{document} aaa \vspace*{100cm} bbb \end{document} I would expect aaa to be placed at page one, then to see 100cm of white space (distributed over many pages) and ...
3
votes
2answers
69 views

PDF plain text for a macro with a starred version

I'm typesetting a document with PDFLaTeX. In some section titles, I use a macro which has a starred version. In the PDF index (the table of contents that PDF viewers typically show in a side pane), I ...
14
votes
4answers
740 views

Defining a command to define an asterisk command

I have the following command \defmeta that defines two other commands (one starred and one unstarred) \documentclass{article} \usepackage{suffix} \newcommand{\genericcmd}[3]{#1 #3 #2 } \newcommand{\...
1
vote
1answer
122 views

Patching \l@part macro for TOC view

I have patched the standard book class macro \l@part for desirable view. I wish to add some word to the place (in code below) if macro \part unstarred, and do not add anything, if \part* . It is ...
0
votes
2answers
396 views

Problems after adding starred sections headings in table of contents

My document has both starred and non-starred version of section, and I want to add both types to my table of contents. I am using titletoc and I tried to solve it as follows: \titleformat{\section}[...
1
vote
1answer
178 views

Redefine `\section*` so it behaves *exactly* as `\section` except leaves out the number

There's any number of variations on the question "How do I get my unnumbered sections into the table of contents?" ... Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)...
4
votes
1answer
484 views

How to wrap a `\newcommand*` into a multi-paragraph environment?

As stated elsewhere, it is usually quite recommended to use the starred \newcommand* instead of \newcommand since this helps finding missing }s by disallowing paragraphs in its argument. Every now and ...
5
votes
1answer
491 views

How to ignore starred command (such as \section*) with latexdiff?

I try to ignore changes of \section* in latexdiff, and while I am able to do so for \section, the same does not work for \section*. This is a.tex: \documentclass{article} \begin{document} \...
7
votes
3answers
369 views

Cause DeclarePairedDelimiter to switch starred and nonstarred versions

I've made lots of use of the answer here, which shows how to switch the starred and nonstarred versions of a paired delimiter command (causing the regular version to automatically size the delimiters)....
2
votes
1answer
77 views

How to check if it is chapter or chapter*?

I'm customizing my own chapter, but I'm having problems when I want to test if it is \chapter or \chapter*. I don't want it to have a dot when \chapter* is applied. \titleformat{\chapter}{\sf\Huge\...
12
votes
2answers
636 views

Is `\hspace*` equivalent to `\strut\hspace`?

Is using \hspace* essentially the same as \strut\hspace? The description at \hspace vs. \hspace* seems to suggest that this may be the case, but I was wondering the cases where they might differ.
2
votes
2answers
992 views

Beamer starred section formatting in the TOC

I am writing a beamer presentation and I want the structure (and the .toc) to be: Introduction 1. Section 1 2. Section 2 3. Section 3 Conclusion Therefore, I used the starred version of ...
4
votes
1answer
468 views

Insert unnumbered headings in toc automatically

When I use a numbered heading like \section or \chapter, the heading is automatically added to the table of contents. If I use an unnumbered heading like \section* or \chapter*, I have to add another ...
2
votes
1answer
1k views

equation* environment or \[ \]? [duplicate]

So, I'm writing a mathematics paper, and let's say I have the following: \begin{equation*} 2+2=4 \end{equation*} Is this the proper way to do an unnumbered equation, or is it preferred to do the ...
3
votes
1answer
40 views

\newleadpage* compilation error in memoir

Please consider the following MWE: \documentclass[a4paper]{memoir} \newleadpage*{frontmatterpage}{Front Matter} \begin{document} \frontmatter \frontmatterpage \chapter{A} \end{document} If you try ...
6
votes
2answers
173 views

Defining a command and its starred version with different number of arguments

I want to create the commands: $\vecbi*{A}{s}$ and $\vecbi{A}$ To write bold vectors in my text. However, I have tried the following code, but I am still stucked without a solution. \makeatletter \...
2
votes
1answer
881 views

Beamer Sectionpage for \section*{} command

In Beamer one can get a section slide every time the \section{} command is called. However, I would like that not to happen when I use the \section*{} command. So in the example below, I would like ...
4
votes
3answers
475 views

Does the \bibliography command specify a \section* anywhere?

I'm using a class based off the scrartcl class. I need to include a bibliography entry in a section, but it displays it as having a * for the section title. If I use the command \section*{hello} ...
4
votes
1answer
377 views

Acro package: starred versions are not working?

As far as I understood from the documentation, the starred version of \ac command and friends shall not mark acronym as used, thus it would not appear in the acronym list. But in the example below, \...
0
votes
2answers
121 views

nested environment with a star

I want to redefine an environment that include the environment alignat*. I discovered that I can't do that : \newenvironment{variables} { \paragraph{Variables :} \begin{alignat*}{2} } { \end{...
11
votes
2answers
362 views

Macro to add starred version of command

How can one write a meta-macro that adds a starred version to a command? Intended use would be along the lines of \newcommand\foo[1]{foo is #1} \addstarred\foo[2]{foo is #1, bar is #2}
2
votes
1answer
120 views

Strange behaviour of math-mode starred command

\documentclass[a4paper]{report} \usepackage{amsmath,amsfonts,amssymb} \makeatletter \newcommand{\2}{\@ifstar{\hspace{2pt}}{\hspace{-2pt}}} \newcommand{\dd}{\@ifstar{\,}{}\mathrm{d}} \begin{document} $...
3
votes
1answer
225 views

Titlesec creates entry in ToC for a starred part

I have the following code, creating section titles starting with "Section [number].", exactly as I wish: \documentclass{article} \usepackage[hidelinks]{hyperref} \usepackage[explicit]{titlesec} \...
3
votes
1answer
147 views

Glossary heading not showing up with amsart

after getting a great solution to my problem, amsart with table of contents with "to" and "from" hyperlinks , I've now spent over a day - which is why I keep a template usually :) -...
20
votes
1answer
409 views

Is it possible to define a command taking an optional star and working in a subscript?

Note: this is more or less a cross-post from my blog. I hope this is acceptable, especially that this is a genuine question! I’m currently writing a (longish) document on mathematics. Among other ...
4
votes
2answers
566 views

Passing * arguments using xparse

In xparse I want to define a command Command-One which calls a command Command-Two and calls the *ed version if and only if the *ed version of Command-One was called. Specifically I would like to do ...
3
votes
2answers
995 views

starred chapter in header? (scrbook)

is there a possibility to show the unnumbered chapters (starred chapters) also in the headings of scrbook? Here's a little code-example: \documentclass[oneside,openright,BCOR=5mm,paper=a4,fontsize=...
4
votes
1answer
532 views

mdframed: how to change the separator between the label and the title of a non-numbered thereom?

The problem There seems to be a bug in mdframed package. With the theoremseparator key, one should be able to change the text between the "label" and the title of a theorem ("Theorem" being the label ...
4
votes
1answer
494 views

Sectioning using \titleformat results in problems with \subsection*

I am trying to write a Preface with subsections, but without sectionnumbers (since the preface is technically not really part of the report). The sections and subsections are constructed using \...