\nameref not working with starred sections
I have an appendix in my document which I want to reference by its name in the text. I use the starred \section* command here, because I do not want the appendix to appear in the TOC. However, \nameref...
View ArticleDefining 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 guess I...
View Article\parttoc does not appear when used in starred \part*
I am trying to create mini-ToC at the begenning of a part level utilizing minitoc package. It works fine for numbered \part, however, it is not rendered when using starred \part*. According to the...
View ArticleHow to refer to a subsection of a starred section?
In How to \label-\ref an un-numbered section, Nathan Grigg pointed out that one could use the \hyperref commmand to create a link to a starred section as...
View ArticleShow unnumbered sections anywhere in Beamer TOC
Section 10.5 of the LaTeX Beamer manual specifies the different options for generating a table of contents. One of them is:firstsection=⟨section number⟩ specifies which section should be numbered as...
View ArticleCreating unnumbered parts/chapters/sections (plus adding them to the ToC...
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 if...
View Article\pdfstringdefDisableCommands with starred and non starred commands
The following MCE:\documentclass{article}\usepackage{hyperref}\ExplSyntaxOn\NewDocumentCommand { \foo } { s m } { \IfBooleanTF {#1}{ Foo~ #2 }{ #2 }}\pdfstringdefDisableCommands{ \def\foo*#1{Foo~ #1} %...
View ArticleGenerate command definitions that take arguments
I want to define a command \NewSmartOp such that:\NewSmartOp \MYOP \myopwould produce the following code (or anything equivalent):\makeatletter \def\MYOP{\@ifstar\MYOP@star\MYOP@nostar}...
View ArticleDefining 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...
View ArticleHow to \label-\ref an un-numbered section
I'm trying to 'reference' the \section*{Introduction} of my article. I can quite easily reference the \section{InsertSectionName} with a \label{} and a \ref{} (taking this as my definition of...
View ArticleHow to improve maintenance of starred/non starred versions of commands or...
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 List of TeX...
View ArticleHow 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?
View ArticleDo 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...
View ArticleHow 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 results...
View Article--- Article Not Found! ---
*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***
View ArticleMake a simple command to generate a starred variant of a command
Based on the method indicated in this post, I want to make a \starredvariant command that would take a command and output the definition of its starred variant.The point is to be able to use a syntax...
View ArticleWhy does \WithSuffix\providecommand overwrite command already defined by...
Consider the outputof this MWE:\documentclass{book}\usepackage{amsthm}\usepackage{thmtools}\usepackage{suffix}\declaretheorem[numberwithin=chapter,...
View ArticleSplitting m Argument in a Starred Command
I have been trying to use \SplitArgument onto a command with also contains an s-type argument. I have tried everything, but the star is not taken into account, and on top of that, I get a parasitic...
View ArticleTitlesec issue with table of contents and starred chapters
I would like to know why the following code prints the header "CONTENTS" after chapter 1 (Intro) starts, instead of writing the correct chapter name "Intro" in the header (as it does for chapter 2...
View ArticleChange color of starred chapter headings
I want to make chapter headings colorful in a memoir. I've tried the approach proposed here. The only problem with this solution is that the unnumbered chapters remain unchanged. Is there a starred...
View ArticleWrong TOC page number with starred part + \addcontentsline
When using an unnumbered part (\part*), added to TOC using \addcontentsline, the page number for the part page is wrong.See this MWE :\documentclass{book}\begin{document} \tableofcontents \part*{First...
View Article\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...
View ArticleLocally redefine figure environment as figure* for automated export
I'm using a workflow based on pandoc and Latex to produce papers with my companies layout. Part of the formatting are captions set inside the margin and sometimes using images that span text and margin...
View ArticleSwap star and non-star versions of DeclarePairedDelimiter without breaking...
I use \DeclarePairedDelimiter from the mathtools package a lot, and I almost always want the delimiters to be automatically resized. Therefore, I switch the definitions of the star and non-star...
View ArticleUsing \protect to generalise definitions of starred commands?
This very helpful answer led me to define my own starred commands. However, in order to use my commands in, for example, headings, after a round of strange almost frightening thoughts, I managed to...
View ArticleIn(de)finite number of Boolean arguments
I would like to know if it is possible to program a function that would accept a given symbol an infinite number of times. The application I have in mind is the following. I would like, if possible, a...
View ArticleTrouble with header with \chapter*{} [duplicate]
UPDATE: edit the question and the code, as I've been asked to do.How can I set it up so "Anexos" or "Tablas" appears in my header, whith this code?\begin{document}\chapter{Referencias...
View ArticleHow to efficiently reference starred sections in bookmarks
In the book I'm writing I make a lot of use of \chapter*, \section*, \subsection* and so on. I want those sections to appear in the PDF boomarks, though. And here I am, two days later, still trying to...
View ArticleSwap 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...
View Article`\let\solution\hide` not hiding theorem if * version of theorem is used
I have the following code:\documentclass{article}\usepackage{tcolorbox}\tcbuselibrary{theorems}\newtcbtheorem{solution}{Solution}{colback=orange!10, colframe=orange!40!black, fonttitle=\bfseries}{sn}%...
View Article