Creating unnumbered chapters/sections (plus adding them to the ToC and/or...
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 ArticleMis-numbered sections in starred chapter and mis-hyperlinked sections in main...
While the MWE below compiles, there are two glitches whose causes I have not been able to figure out:As can already be seen in the ToC, the sections in the Epilogue are numbered 3 and 4 instead of 1...
View Article\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 ArticleAlignment tab character inside a starred command within align
Here is a minimal example of what I want to...
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 ArticleRedefine \includegraphics* (starred version)
I have this code:\setlength{\fboxsep}{0pt}\let\includegraphicsbak\includegraphics\renewcommand*{\includegraphics}[2][]{\colorbox{white}{\includegraphicsbak[#1]{#2}}}How can I make it work with the...
View ArticleTesting for \Foo vs \Foo*
This is a follow up to this post whose problem statement (roughly): create a macro that saves a macro and options (\includepdf[angle=90, scale=0.85]), such as to be able to invoke it later (presumably...
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 ArticleWhat is the difference between a figure environment compared to a figure*...
It is hard to search for this question since most search engines treat the * symbol somehow special, so sorry if that has been asked before.So, basically, I just would like to know what the difference...
View Articlexparse's 's' argument returns \Gamma and \Delta, instead of \BooleanFalse and...
The xparsedocumentation says,But that's not what I get when I test s.\documentclass{article}\usepackage{xparse}\NewDocumentCommand{\myfunc}{s}{#1}\begin{document}\myfunc % should return \BooleanFalse;...
View ArticleUsing Starred Version as Optional Argument
I have been reading this page on defining commands with *-options. I have got completely stuck, though. I'd like the following.A command with an optional argument and a star option.Optional Argument:...
View ArticleHow to enforce the position of table* (wide table)
I'm writing a paper using SIGPLAN conference2 columns format. I maintain separate .tex files per each chapters:%% main.tex \documentclass[preprint, 10pt]{sigplanconf}\usepackage{ ......
View ArticleLaTeX3 - Test string equality + Star version
I'm looking for some good advice on switching from (La)TeX to LaTeX3Here is the first questions corresponding to the toy code below.What is a good way to manage an optional argument with LaTeX3?What is...
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 ArticleRedefining \ref* along the lines of \ref to allow "local labels" in sections
I use the "local labels" hack from this answer to automatically prefix labels in order to be able to reuse the same labels in different places of the same document.Background: Why?There are two...
View ArticleHeaders 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...
View ArticleCustom section style and corresponding starred command
I need to use a custom format for a conference paper. I am asked to redefine the section, subsection and paragraph headings by the following code in the...
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 Article