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

learn more… | top users | synonyms

3
votes
1answer
32 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
53 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
35 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
37 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
99 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 ...
3
votes
1answer
59 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
50 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
62 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 ...
4
votes
1answer
116 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
42 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
156 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
170 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
109 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
186 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 ...
2
votes
1answer
75 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
192 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
113 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
153 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
115 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
61 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 ...
3
votes
1answer
92 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
60 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 ...
6
votes
1answer
86 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
931 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
55 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
81 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 ...
2
votes
1answer
2k 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
277 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 ...
19
votes
3answers
294 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
486 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 ...
7
votes
1answer
74 views

Is there any reason against changing the starredness of a command upon redefinition?

If an original definition of a command used \newcommand, is there an obligation for me to redefine it with \renewcommand instead of \renewcommand*? If an original definition of a command used ...
11
votes
2answers
126 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 ...
4
votes
2answers
476 views

New command and the corresponding star counterpart with xparse

The following works as expected: \newcommand{\engl}[2]{#1 (en. \textsl{#2})\index{en-ro}{#2}} However, what I want to achieve would be a * version of it which only adds to the indices, without the ...
1
vote
2answers
135 views

Add a hrule to only chapter not numbered

I am thinking of adding a hrule to only chapters that are not numbered, in other words the chapters created using chapter*{}. I thought of using the titlesec package- My problem is that I cannot find ...
3
votes
1answer
104 views

Convenient way to pass package options and \setup like commands

I want to be organized in my code. In order to pass options to packages, i developped my own macros : \makeatletter \newcommand*\Option{% \@ifstar{\@Option}{}} \newcommand*\@Option[3]{% ...
19
votes
1answer
11k views

\hspace vs. \hspace*

After trying both commands, I noticed that \hspace* opposite to \hspace will insert a space over the end of the line. So I was wondering if someone could explain how that works and also when to use ...
16
votes
1answer
335 views

What is the difference between \newenvironment and \newenvironment*?

I vaguely seem to recall reading that \newenvironment* gives better spacing than \newenvironment, but I don't recall any details and I can't seem to find a reference by searching. What is the ...
1
vote
0answers
45 views

How to define command with * [duplicate]

Possible Duplicate: Defining starred versions of commands I have some user command: \newcommand{\mysection}[1]{\section{#1}} Now I need to use command: \mysection*{name of section} ...
3
votes
1answer
78 views

starred version of DeclareRobustCommand

I generally use \newcommand* instead \newcommand whenever it makes sense, to ease error checking if the command doesn't sensibly take multi-paragraph arguments. Is there a starred version of ...
15
votes
1answer
758 views

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

Is there any difference between \paragraph{} and \paragraph*{}? When it's used (if nothing has been modified before, i.e. like in this post: Paragraph header), there's no difference in the created ...
4
votes
1answer
130 views

Tabular* Alignment of Columns

I've read about the tabular* environment, and the same example pops up over and over again. What I'd like to know is when the example is converted, why do columns 2 and 3 lose their centering? I've ...
8
votes
3answers
657 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} ...
6
votes
1answer
266 views

Headers of \chapters* take the headers of their previous \chapter

When using book.cls and using \chapter* after a \chapter, the header used in \chapter* is wrong. An example is pasted below. Is there any known workaround for that? I have tried quite some tricks ...
12
votes
1answer
777 views

Redefining the section command, keeping the starred definition

Currently, I'm working with a document based on the standard book.cls. I redefined the section command (unstarred) to get a more fancy heading. But while doing this, I ran into some walls. ...
1
vote
1answer
116 views

table numbers are wrong for double column table

My: \begin{table*}[t] \begin{minipage}{\textwidth} \begin{tabular} \end{tabular} \CaptionType{table} \caption{...} \label{tab:res2} \end{minipage} \\ ...
9
votes
1answer
5k views

Reset section numbering between unnumbered chapters

The document I'm writing using report class has 2 unnumbered chapters. The sections of the 2nd chapter are numbered following the numbering of the sections of the 1st chapter, like this: MY FIRST ...
9
votes
3answers
624 views

Proper way to include unnumbered chapters in a per-chapter bibliography using biblatex

I've been using example 3.11.4 of the biblatex documentation to generate a per-chapter bibliography at the end of my thesis. It works great, until I try to make my introduction into an unnumbered ...
4
votes
1answer
3k views

How to set font size for \caption* (but not \caption)

I need to change the font size from \caption* to 10pt.However, using \captionsetup the \caption font size changes as well. How can I solve that?
7
votes
1answer
84 views

Ignoring asterisks * in the whole document

When using * to remove headlines from the toc, there might be times when you would like to see all the headlines in the toc -- including the removed ones. But you would like to see the headlines just ...
9
votes
1answer
149 views

Removing Subordinated Headline Levels From The ToC Automatically When Using `*`

Usually, when you use section*{}only the section will be removed from the toc. In order to remove subordinated subsections you have to add the *. Is it possible to define a command that removes ...