I have a report with several chapters.   \documentclass[12pt,letterpaper, notitlepage]{report}  \chapter{Title of chapter 1} \label{chap:1}  \chapter{Title of chapter 2} \label{chap:2}   Now what I want is to be able to reference to each chapter using something similar to \ref{chap:1} but instead of giving me the chapter number I want it converted to "first", "second", etc.   Something along the lines of:   In the \ref{chap:1} chapter, I show that (...)   Which would become:  In the first chapter, I show that (...)
122023
Is there a macro available that will turn "1" into "first", "2" into "second", etc.  Let's call this macro "wordth".  Then, for example, if item number 2 in an enumerate environment is labeled by \label{item:blah}, I could write something like  The \wordth{\ref{item:blah}} item is problematic.   which would be formatted as "The second item is problematic."  (Bonus points for other languages, but I only need it for English.)   points to the  package for turning "1" into "1st", etc.  The  package also does this.  Neither appears to provide fully spelled out English ordinals.  In many situations only full words for ordinals, not their abbreviations, are appropriate.  This is probably a FAQ, but it's one of those things that's difficult to search.  Feel free to point to a dupe question and close.
61513
I would like to append a character to the chapter number in some cases but not everywhere. The change should also be reflected in the table of contents. The chapter numbering should look like this:  1 2a 2b 3  How can I accomplish this?
100624
I am using report document class. When I create a new chapter, it starts it on a new blank page in which only the chapter name appears.  I want to be able to start new chapters on the same page as the old chapter ends. Is there any way to do it?
49339
I have quite a lot of labels and references (around 250 labels, 600 references to those) in my document. As I need to re-arrange parts of the document, I'd like to know which labels are referenced from which parts (and, transitively, which are referenced by the referenced label etc.). In other words, I'd like to have a graphical representation of my document which only shows the names/numbers of the environments (proofs, lemmas, etc.) and the corresponding labels and references.  Example:   Lemma 2 -> Proof A, Proof B, Lemma 1 Proof B -> Proof C Lemma 3 -> Lemma 2   How can I generate such a graph? I am only interested in the information conveyed by the graph, the graph itself will not be published and does not need to look nice.
120941
Is there a way to make a cross reference to a label of a header with custom text? That is, its text should differ from the Header text, or its number or page (not like the predefined formats in Lyx). Something like the the hyperlinks or bookmarks in MS word, and in such a way that I can write the different text for each cross-reference individually. I'm not looking to define a new format for the references.  For example, if the header text is "State and Path functions", I want to make a cross reference to it with the text "state function".
2976
I have a document in which the bibliography is splitted via categories. I would like to reference to the elements by numbers [1]. Inside each bibliography, the entries should be sorted by year-name-title (ynt), but the numbers in the first bibliography should be smaller than the numbers in the second one.  MWE:  \documentclass{article}  \usepackage[sorting = ynt,bibstyle=numeric]{biblatex} \usepackage{filecontents}  \begin{filecontents}{\jobname.bib}     @book{a,         author = "I",         year = "1973"     }     @book{a2,         author = "I",         year = "1923"     }     @book{b,         author = "You",         year = "1959"     } \end{filecontents}  \addbibresource{\jobname.bib}  \DeclareBibliographyCategory{own}  \begin{document}  \nocite{a,a2} \addtocategory{own}{a,a2} \nocite{b}  \printbibliography[category=own,title={A}] \printbibliography[notcategory=own,title={B}]  \end{document}   Now, the order of the numbers in the bibliography is "[1],[3]" in the first list, and "[2]" in the second list. This looks odd and if there are more items, one has to search through both lists in order to find a reference. I would like to have "[1],[2]" in the first list and "[3]" in the second list.  An option is to add a "presort" key to the corresponding entries in the bib-file, but I would like to not touch the bib-file. Is there, e.g., any possibility to add the "presort" key afterwards in the tex-file? Or can biblatex sort by category (I searched the manual but did not found any clue)?
124132
What's the proper way to reference a section with a counter in the title? The TOC generates correctly, but the cross references aren't so lucky.  MWE:  \documentclass[letterpaper, 12pt, twoside]{exam}  \usepackage{hyperref}  \newcounter{KSRLessonNumberCounter} \setcounter{KSRLessonNumberCounter}{1} \newcommand{\KSRSection}[2][\value{KSRLessonNumberCounter}]{         \setcounter{KSRLessonNumberCounter}{#1}         \section*{Lesson \arabic{KSRLessonNumberCounter}: #2}         \addcontentsline{toc}{section}{Lesson \arabic{KSRLessonNumberCounter}: {#2}}         \stepcounter{KSRLessonNumberCounter} } \newcommand{\KSRSubsection}[1]{         \subsection*{#1}         \addcontentsline{toc}{subsection}{#1} } \newcommand{\KSRLessonNumber}{ }  \begin{document}  \KSRSection{Sample}  This is the first lesson. The second lesson is \nameref{sec:blah}.  \KSRSection{Blah} \label{sec:blah}  This is the second section  \KSRSection{Lorem Ipsum}  Dollars are Set in \nameref{sec:blah}.  \end{document}
5296
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 applied similarly. How do I add these without messing up the chapters' numbering while being picked up by the ToC in proper order and page numbering?
61857
Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else).      \documentclass[12pt]{article} \usepackage[utf8]{inputenc}  \usepackage[english]{babel} \usepackage[titles]{tocloft} \usepackage{titlesec} \usepackage{titletoc}  \addto\captionsenglish{ \renewcommand*\contentsname{\centerline{TABLE OF CONTENTS}}}  %\renewcommand{\thesection}{CHAPTER} %\renewcommand{\cftsecpresnum}{Chapter \thesection} \titleformat{\section}[display]% {\null\vskip1em\sffamily\bfseries\filcenter}{Chapter \thesection}{0em}{}[] \titlespacing*{\section}{0em}{1em}{1em}  \titlecontents{section} [1.5em] % ie, 1.5em (chapter) + 2.3em {} {\contentslabel{1em}} {\hspace*{-1.5em}} {\titlerule*[0.5pc]{.}\contentspage}  \begin{document} \newpage \tableofcontents \newpage  \section{Section One} \section{Section Two} Content \end{document}   The commented out code is what I've already tried. The first one just changes the number to "CHAPTER" and doesn't move the text in the ToC (so it just overlays on top of the name of the section), and if I include "\thesection" after "CHAPTER" it creates an infinite loop definition error. The second one causes no differences, and the code still compiles.  Thanks!
9022
Is it possible to automatically include a reference to the position of a labeled object (Table, Figure) in text? By this I mean the following:  Say I have labeled a figure in chapter 1:  \label{fig:one}   Then I refer to it in text by using:  See Figure~\ref{fig:one}   Which produces "See Figure 1.1" as desired. I'd like to be able to have it produce: "See Figure 1.1, above" or "See Figure 1.1, below", automatically detecting whether to produce "above" or "below" depending on whether the figure will be placed above that position on the final page.
16274
Currently I use a manually declared version of the chapter title. But the idea is to extend it to use specific and manually chosen number of the chapters.  I try to obtain numbers like this 1, 1b, 2, 2b, 3, 4. But for obtaining b, I want to specify it manually with for example an option in the \chapter command (something like this \chapter{...} for obtaining 1 then \chapter[b]{...} for obtaining 1b.   Do you have any ideas for obtaining this result?
16264
Possible Duplicate:          I have written my thesis in document class 'article' (don't ask me why). Now I want to number my equations by sections, i.e. in section 1 they should go 1.1, 1.2, ..., in section 2 they should go 2.1, 2.2, ...  I don't want to change the document class (e.g. to 'report') because then I would have to change all sections to chapters, subsections to sections and because I fear a lot of other unintended consequences.   How can solve this?  Thanks for any help!
121636
Is it somehow possible that I can extend the link to something which I produce by using \ref with a label by the word standing before \ref? If I write something like that: For further information, have a look into chapter \ref{chap:abc} and figure \ref{fig:def}  then the only thing being &quot;clickable&quot; are the chapter number and the figure number. Is it somehow possible to make the words &quot;chapter&quot; and &quot;figure&quot; being linked to those objects as well?
14863
When writing documents, I consider it to be necessary that all figures and tables are referenced (\ref) in the text, whether or not I've remembered to \label them. LaTeX does not currently warn if a figure or table is not referenced. Is there a way to ensure that this is flagged up as a warning?  Note that I am specifically concerned about figures and tables, not chapter or section headings; it will be no good looking just at \labels that don't have an associated \ref.  In other words, it should report boo and not report bla in the following MWE:  \documentclass{article} \begin{document} \section{BLA}\label{bla} \section{BOO}\label{boo} In Section~\ref{bla} we do something. \end{document}
89824
Sometimes I want to refer (using \ref) a \label from some other tex file. What is the right way to do it?  (It's, of course, possible to \include all files in one and then use \includeonly — but it breaks e.g. page and section numbering.)
111729
is there a way to reference the subsection part only? Example:  \documentclass{article} \begin{document}  \section{This is my section} For further information see subsection \ref{subsecthree} within this section. \subsection{One} \subsection{Two} \subsection{Three}\label{subsecthree}  \end{document}   Usually gives (without the stars):  1 This is my section For further information see subsection **1.3** within this section.   But I want:  1 This is my section For further information see subsection **3** within this section.   Is that possible?  [Edit] To make it more clear: I am looking for a command that works like \ref, but prints (the arabic number of) the value of the subsection counter at the position of the \label.  ======================= == Solution in LaTeX ==  There is another solution below. This is a different solution I came up with  (I cannot post an answer to my own question, so I put it here):  \documentclass{article}  \newcommand{\labelsubseccounter}[1]{     \renewcommand\thesubsection{\arabic{subsection}}     \addtocounter{subsection}{-1}     \refstepcounter{subsection}     \label{#1}     \renewcommand\thesubsection{\thesection.\arabic{subsection}} }  \begin{document}  \section{This is my section} For further information see subsection \ref{subsecthree} within this section,  which is called \ref{onepointthree}, not \ref{onepointfour}. \subsection{One} \subsection{Two} \subsection{Three}\label{onepointthree}\labelsubseccounter{subsecthree} \subsection{Four}\label{onepointfour}  \end{document}   (I would like to insert the compiled code, but don't know how, sorry)
76594
I am writing a report that has graphics, photos and maps. If I use the figure environment everything is labeled as a figure in the caption. However, what I would like to do is where I have a map to have the map labeled appropriately e.g. Map 1: caption text; Map 2: caption text etc and to be able to refer to it in the text Map \ref{map01}. Same as for Photographs.   I have looked at some of the FAQs but does not seem to have what I want.  Is it possible.