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

learn more… | top users | synonyms

1
vote
0answers
43 views

Want \section* to change the page header?

I have several numbered sections followed by an unnumbered section. However, the page headers for the unnumbered section are continued from the last numbered section. I am using fancyhdr with the ...
1
vote
1answer
15 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
169 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
42 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 ...
13
votes
4answers
359 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
31 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
80 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}[...
2
votes
1answer
71 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 ...
4
votes
1answer
87 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 ...
4
votes
1answer
121 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} \...
6
votes
3answers
184 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
53 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
297 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.
0
votes
2answers
165 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 the section ...
3
votes
1answer
95 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 ...
1
vote
1answer
115 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 ...
4
votes
1answer
33 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
124 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 \...
3
votes
1answer
345 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 ...
5
votes
3answers
193 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} ...
5
votes
1answer
110 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, \...
1
vote
2answers
80 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
223 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
109 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
117 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
79 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 :) -...
19
votes
1answer
319 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 ...
5
votes
2answers
264 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
472 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
240 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
246 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 \...
1
vote
0answers
62 views

Why do we use a star (*) after a command in LaTeX? [duplicate]

I sometimes see some code snippets including star (*) with command such as \hspace*{.5em}, \newcommand*{}, \chapter*{}. I wonder what the star is for in latex format when collaborating with a command?...
5
votes
1answer
598 views

Removing hyperref for acronym starred commands

In the acronym package, the starred commands \ac* and \acp* omit the acronym from the list of acronyms with option "printonlyused". My problem is that acronyms inserted like this are still hyperref ...
3
votes
1answer
187 views

\chaptertitle from titleps ignored after redefinition of \chapter macro

The following MWE shows that, if the \chapter macro is redefined as in a previous question of mine: Prepend different stuffs to starred and unstarred \chapter commands, the \chaptertitle macro from ...
9
votes
1answer
149 views

Stars of macros in definition of another starred/unstarred macro look like disconnected in some circumstances

This question follows a previous question of mine: Prepend different stuffs to starred and unstarred \chapter commands. In some circumstances, a starred macro in definition of another starred/...
3
votes
1answer
154 views

Prepend different stuffs to starred and unstarred \chapter commands

For the unnumbered sections units of documents built with a personal class (which inherits from the book class), I'd like to use: not the starred form of the corresponding commands, instead the ...
2
votes
2answers
174 views

ToC-title formatting problem

I am relatively new to Latex and I came across a problem I am not able to fix myself. From a friend I got a number of commands for formatting my chapter titles, which works quite well, unfortunately ...
3
votes
1answer
291 views

latex figure figure* order

I am writing a journal which has two column. I am using {figure} as well as {figure*} to place the figures in one column as well as stretch across two columns. My problem is the order of the figures ...
6
votes
1answer
3k views

How to remove the section number from References?

I am using the following for the bibliography part: \bibliographystyle{APA} \bibliography{Bibliography/mybib} and I am getting a section number for the reference part. How can I remove it (I just ...
3
votes
1answer
57 views

Is there a way to provide a starred variant of a (xkeyval) boolean (class) option

I'd like to define, for a class I'm working on, two boolean keys rather similar and, instead of giving them different names, I'd like to let the latter be a starred variant of the former. Let me give ...
9
votes
2answers
265 views

Defining a macro with three optional arguments in the form \newmacro{a}{b}[c]{d}[e][f] and \newmacro{a}{b}[c]{d}*[f]

I am defining a macro in LaTeX2e for writing function declarations. I want that the macro has tree compulsory arguments: the name of the function (v.g f), a depiction of the type of variable it takes ...
13
votes
2answers
286 views

How to test whether the starred-version of a command is defined?

This question is similar to How to conditionally define a new command in LaTeX? but I want to test if the starred version of a command is defined. The naive thing \makeatletter \@ifundefined{ref*}{}...
3
votes
2answers
440 views

How to handle \section* with asterisk in my custom class [closed]

I've redefined sections and subsections in my .cls file in such a way that \section* results in bad behavior. For example, \section*{Introduction} These analyses were performed in my .tex file ...
10
votes
1answer
228 views

Why is it discouraged to use starred sectioning commands?

I'm currently considering to use \section* to add a nomenclature. Unfortunately I can't find the exact answer, but I've read on stackexchange that using starred versions of sectioning commands is ...
7
votes
1answer
1k views

Required package for 'starred version' of matrix environment

Whenever I am trying to compile the following code : \documentclass[11pt,twoside,a4paper]{book} \begin{document} \begin{matrix*}[r] -1 & 3 \\ 2 & -4 \end{matrix*} \end{document} shows ...
9
votes
2answers
241 views

\section* no longer hides the section number

I wanted to add a background color to my sections, but by doing so \section* no longer works properly, ie, it now shows the section number when I want to hide it. Any ideas? Here's my code: \...
8
votes
2answers
142 views

Is there a way to define starred variants for a keyvalue system?

I've created an environment for which various parameters are set through key values. Instead of creating a hornet's nest of various booleans, I would just like to have a slight variant form for some ...
4
votes
1answer
343 views

Figure order (figure and figure* environments)

I am writing a two-column article and all my figures are included with the figure environment but one using figure* so that it can be displayed page-wide. The problem is that that specific figure is ...
9
votes
2answers
138 views

How to improve maintenance of starred/non starred versions of commands or environments

All documentations I've read about starred/non starred versions of commands recommend more or less the following way of doing (following for instance the UK List of TeX FAQ): \newcommand{\mycommand}{\...
3
votes
1answer
251 views

Starred tabular environment and centered text

How to make the starred tabular to center text: \documentclass[varwidth]{standalone} \begin{document} \begin{tabular*}{\linewidth}{@{}c@{\extracolsep{\fill}}} \hline Text to ...