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

learn more… | top users | synonyms

170
votes
4answers
15k 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 ...
57
votes
3answers
2k 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 ...
32
votes
1answer
13k 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?
23
votes
2answers
17k views

Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)

I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful ...
24
votes
4answers
1k views

Do all starred commands have anything in common?

\section* produces an unnumbered section, align* makes the environment unnumbered, which is comparable in a way. \newcommand* doesn't accept \par in its argument, which is different. Stefan Kottwitz ...
18
votes
4answers
2k views

Centering \section* and adding them to the ToC

I'm using LaTeX and the book class and have one problem: I want that my starred sections (only starred sections) appear in the center of the pages instead of the left side of the pages and also these ...
10
votes
4answers
1k views

Swap definition of starred and non-starred command

I don't like the fact that I am required to use \abs* when I want the vertical line of the absolute value to automatically re-size. I pretty much always want it to re-size, so would like to swap the ...
6
votes
1answer
364 views

Use \csname … \endcsname to compute the starred-version of some command

I want to define some commands declaring paired delimiters using the mathtools package in LaTeX. For example, \paren{...} should result in \left(...\right), whereas \paren[Big]{...} should give ...
19
votes
1answer
17k 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 ...
3
votes
2answers
1k views

Fix for amsart.cls tableofcontents bug regarding starred sections?

The command \section* is meant to produce a section that is not listed in the table of contents. However, when using amsart.cls, such sections are still listed. I believe this is a known bug. How ...
3
votes
2answers
1k views

How do I include a \section*{} in a \tableofcontents? [duplicate]

Possible Duplicate: Centering \section* and adding them to the ToC I've got something like \documentclass{article} \begin{document} \tableofcontents \section*{About this Article} ...
3
votes
1answer
95 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 ...
12
votes
3answers
7k views

Generate table of contents when \section* (sections without numbering) has been used

Is it possible just to generate a table of contents based on sections in asterisk mode, i.e., \section*? I basically just want the table of contents without section numbers. Like a list of headings ...
25
votes
2answers
3k 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 ...
6
votes
1answer
750 views

Starred equivalent in newenvironment

Let's say I want to use the align-environment in a newenvironment like this: \newenvironment{mequation}{\align}{\endalign} This works fine. However, what if I want to use the starred version of ...
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. ...
9
votes
2answers
179 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 ...
4
votes
1answer
95 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 ...
16
votes
4answers
525 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
1answer
378 views

Defining variants of \small and \large that use \normalsize's line spacing

As a partial workaround for grid typesetting, I'd like to define variants of \small and \large that behave like their standard counterparts except that they use the line spacing of \normalsize. I know ...
5
votes
3answers
1k views

How to reset footnote numbering at \chapter* and at frontmatter chapters?

A comment to my answer to Biblatex and citation reset between chapters made me realize that, contrary to normal chapters in the book and report class, \chapter* (the starred version) does not reset ...
8
votes
3answers
784 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} ...
4
votes
1answer
1k views

header and chapter*

I find it strange that the page header in the chapter “Title2” is not updated in the example below: \documentclass[12pt]{book} \usepackage{lipsum} \begin{document} \tableofcontents \chapter{Title1} ...
17
votes
3answers
718 views

What does \\* do?

I have some code, and when I use \\*, it causes some things to become unaligned, but when I use \\, the alignment is correct. What's the difference?
10
votes
1answer
7k 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 ...
6
votes
1answer
377 views

How do I make appear no-numbered sections in the hyperlinks (bookmarks) of a PDF?

I am using \section*{} to get unnumbered sections in a document. I need to get those sections in the bookmarks of the resulting PDF but they don't show up. In addition, if the first section is ...
12
votes
2answers
184 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 ...
7
votes
2answers
2k views

What's the difference between align and align*?

After some brief searching I can't find the difference between align and align*. Google summarily ignoring the * is making it harder I think. Can you tell me the difference between these two? ...
16
votes
1answer
383 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 ...
16
votes
1answer
575 views

How to define a starred version of an environment in LaTeX

I am interested in defining a new environment in LaTeX that has a starred version. How is this done?
12
votes
1answer
1k 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. ...
11
votes
2answers
135 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 ...
9
votes
3answers
740 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 ...
9
votes
1answer
155 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 ...
8
votes
2answers
117 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 ...
6
votes
1answer
402 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 ...
4
votes
1answer
72 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 ...
2
votes
1answer
892 views

Define a custom align, and align* environment

I would like to redefine both the align and \align* environments such that the first line is shifted up to line up with the list identifier. I attempted to adapt the solution provided at Starred ...
2
votes
2answers
1k views

Starred version of “xtabular” not working

I want to insert a long table in a two-column paper. I tried "tabular" first, but the problem is that it doesn't divide the table among pages. Then people in this post suggested that I use xtab: In ...
1
vote
2answers
146 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 ...