Tag Info

Hot answers tagged

6

You can do something like this: \makeatletter \newcommand*\labelcounter[2]{\begingroup \protected@edef\@currentlabel{\csname p@#1\endcsname\csname the#1\endcsname}% \label{#2}\endgroup} \newcommand*\refsetcounter[2]{\setcounter{#1}{#2}% \protected@edef\@currentlabel{\csname p@#1\endcsname\csname the#1\endcsname}% } \makeatother The line with ...


5

Using fancyhdr with scrbook is not recommended. However, here's a solution: issue the \thesection command within \markright. Note that \markright takes only one argument (whereas \markboth needs two). \documentclass{scrbook} \usepackage[english]{babel} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} ...


3

\refstepcounter should be used before \label. \refstepcounter defines \@currentlabel that is used by \label. \documentclass{book} \usepackage{lipsum} \usepackage{mathpazo} \newcounter{exam}[chapter] \setcounter{exam}{0} \renewcommand{\theexam}{\thechapter.\arabic{exam}} % % Method 1 % ...


2

I can't provide the deep technical answer, but according to its manual section 13: The cleveref package must be loaded after all other packages that don't specifically support it, i.e. the \usepackage{cleveref} line should usually be the last \usepackage command in your document's preamble.


2

You need the chngcntr package. I stripped down the example to a minimum. \documentclass[12pt]{article} \usepackage[demo]{graphicx} % the demo option is just for the example \usepackage{chngcntr} % number figures within sections \counterwithin{figure}{section} \begin{document} \author{Aiden Strydom\\201103578} \title{Artificial Intelligence\\Deliverable ...


1

I deleted an extra {, but that wasn't the major problem. You haven't defined the second definition (\myUseCaseCTR) if you check it closely, the name is different from (\SharedCTR). I have used the \let command to define it, see line number 7. I enclose a working example and a preview. \documentclass{report} \pagestyle{empty} \begin{document} %{ % Deleted ...



Only top voted, non community-wiki answers of a minimum length are eligible