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

learn more… | top users | synonyms

1
vote
2answers
46 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} } { ...
9
votes
2answers
155 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
95 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
45 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
40 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 :) ...
18
votes
1answer
270 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 ...
13
votes
1answer
7k views

Put a table* at the bottom of a page?

In a two column document in LaTeX, is there any way to put a table* (a table spanning both columns) at the bottom of the page? The obvious doesn't work: \begin{table*}[b] % b!, hb, hb!, etc. ...
5
votes
2answers
111 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 ...
60
votes
3answers
3k views

Defining starred versions of commands (* macro)

I would like to define a *'d version of a command, something like \newcommand{\foo}{blah} \newcommand{\foo*}{blahblah} If I try to do this, LaTeX complains that I'm trying to redefine \foo, so I ...
26
votes
2answers
4k views

Meaning of an asterisk (*) in a macro name

What does the * in the starred version of a macro "mean"? I know for \section and \section* the * controls numbering and for \newcommand and \newcommand* the * determines if the macro is long. What I ...
1
vote
2answers
138 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: ...
4
votes
1answer
93 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 ...
3
votes
1answer
112 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
56 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 ...
5
votes
1answer
167 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
100 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
131 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 ...
4
votes
3answers
1k views

Having the starred version of a theorem environment unnumbered - with ntheorem

I'm trying to switch from amsthm to ntheorem. (This is due to the incompatibility of amsthm with babel+Hebrew, see here and here; seems not to have been resolved.) I would like to have both a starred ...
3
votes
1answer
105 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
104 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
113 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 ...
5
votes
1answer
666 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 ...
181
votes
4answers
17k views

What's the difference between \newcommand and \newcommand*?

I just spotted someone use \newcommand* in an answer and realised that I'd never quite sorted out in my head what the star (asterisk) was there for. (This one is practically impossible to search for ...
3
votes
1answer
46 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
190 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 ...
12
votes
2answers
200 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 ...
3
votes
2answers
165 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
202 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 ...
4
votes
1answer
5k views

Acknowledgement page + report

I'm writing a report and I want to place the Acknowledgement page without \section because it will number it 0.1 I tried to place it in another TeX document and use \input in the main document, but ...
4
votes
1answer
212 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
217 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
121 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 ...
2
votes
1answer
239 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
121 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): ...
3
votes
1answer
105 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 ...
8
votes
3answers
896 views

How to make an environment star Exercise?

I want to create an environment star Exercise, but I can not. Please help me. \documentclass{book} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} ...
3
votes
1answer
106 views

How to make star Exercise and its environment answer?

At here How to make an environment star Exercise?, I posted make star Exercise. How to make star Exercise and its environmet answer? Example, with Exercise 1.1, we have Answer 1.1, with Exercise ...
5
votes
1answer
69 views

Use \LetLtxMacro with a \Macro* (starred variant)

If I use: \LetLtxMacro{\MacroToUse}{\FormatText} then using \MacroToUse invokes \FormatText exactly as desired. But, how do use this construct to invoke \FormatText*? The MWE below yields: but ...
12
votes
2answers
2k views

How can I place a double-wide figure float (ie, figure*) on the bottom on the first page of a two-column document

In what I would like to be a two-page, two-column document with two wide (figure*) figures, I need one to be on the bottom of the first page, and one to be on the top or bottom of the second. ...
6
votes
1answer
109 views

Temporarily undefining a “starred” command

I would like to temporarily undefine a command. The reason for this is that I need to use a specific class file which defines the equation* using \@namedef and I would also really like to use the ...
4
votes
1answer
2k views

Command \* already defined … see p.192 of the manual

My code had: \newtheorem*{theI}{Thesis I} And it gives me the error: Command \* already defined. Or name \end... illegal, see p.192 of the manual. 1.16 \newtheorem*{theI}{ ...
1
vote
1answer
945 views

How to place minitoc in right place where some chapters are with star?

I have a main.tex file. There is a part called front matter. Part of the code is, 1. \frontmatter \selectlanguage{english} \include{title} \include{dedication} \include{acknowledgements} ...
2
votes
1answer
69 views

Using \vfill* prints the asterisk

I'm using \vfill* to unbalance columns in a twocolumn environment. The columns are filled with a series of figure environments that I'm using to keep blocks of text together. I would like the ...
4
votes
1answer
120 views

How to use \section*{something} without removing it from the Table of Contents?

I am trying to insert an abstract and acknowledgement page into my report. I want to suppress the (numbers in front of): Abstract Acknowledgment part by using \section*. But by doing so, it is ...
34
votes
1answer
16k views

How to make a figure span on two columns in a scientific paper?

If I just try to set the figure's size to 0.9\textwidth my figure will just end up on the right column, sized to be two-columns wide. Has anyone done this before?
3
votes
1answer
3k views

titlesec and \section* in \titleformat

I use \titleformat (titlesec package) to make some fancy headings in my documents. But I did not find a way to know, in the \titleformat specifications, if the section is made with a \section or a ...
6
votes
3answers
360 views

Why are some characters not allowed in command sequences

From my understanding a control sequence is ended by any non-alphabetic character such that \mycsA is one token, but \mycs1 is two tokens. This means things like starred commands \mycs* are actually ...
21
votes
3answers
380 views

If I redefine a command that has a starred variant, will that always disable the starred variant?

If I redefine a command that has a starred variant, will this always effectively disable the starred variant, as a side effect of redefining the unstarred variant? A related question: Do starred ...
16
votes
4answers
590 views

Do starred commands eat up space after them?

Do starred commands eat up spaces after them, like unstarred ones do? That is, is \somecommand* nextword equivalent to \somecommand*nextword? And: Does it depend on the particular way a starred ...
11
votes
2answers
141 views

Is there any reason to define a zero-argument macro using a starred defining command?

Is there any reason to define a 0-argument (read: zero-argument) macro with a starred command (\newcommand* instead of \newcommand or \DeclareRobustCommand* instead of \DeclareRobustCommand)? After ...