# Tag Info

6

Here is a sample code using exam class. \documentclass[10pt,addpoints,answers]{exam} \begin{document} \uplevel{\centering\bfseries\underline{PART -- A} \\Answer all questions} \begin{questions} \pointsinrightmargin \pointsdroppedatright \marksnotpoints %\marginpointname{mark} \pointpoints{mark}{marks} \pointformat{\themarginpoints} \bracketedpoints ...

5

This is easily achieved using \numberwithin from the amsmath package. \documentclass[11pt,a4paper]{article} \usepackage{graphicx} \usepackage{amsmath} \numberwithin{figure}{section} \begin{document} \section{first section} \begin{figure}[h] \centering \rule{4cm}{4cm} % replace with image \caption{figure 1.1} \end{figure} \section{second ...

4

Assuming that these numbered quote environments are at the top level and not nested in other list environments, you can exploit the fact that, unless your equation numbers are too wide, they will fit in the available white space; in case they are wider for fitting, you should redefine quote in the first place. \documentclass{article} \usepackage{blindtext} ...

3

Although the question was about makeindex, I'll show a solution with xindy and using imakeidx for automatic numerical sorting of the index. One - column index is achieved by columns=-1, the letter group heading can be switched off by dumping \lettergroup to do do nothing after \theindex started. \documentclass{scrartcl} \usepackage{etoolbox}% ...

3

The procedure environment is a special form of the algorithm environment. Passing the option procnumbered to algorithm2e numbers procedures using the same counter as algorithms: \documentclass{article} \usepackage[procnumbered,ruled]{algorithm2e} \begin{document} \begin{procedure} \caption{myproc()} This is a procedure \end{procedure} ...

3


1

\documentclass{book} \usepackage{remreset} \makeatletter \@removefromreset{section}{chapter} \makeatother \renewcommand{\thesection}{\arabic{section}} \begin{document} \tableofcontents \chapter{First} \section{First} \section{Second} \section{Third} \chapter{Second} \section{Fourth} \section{Fifth} \section{Sixth} \end{document}

1

The cause of this behaviour as described by the OP is the resetting of section counters, thus confusing hyperref. Using hypertexnames=false as an option to hyperref will generate unique page anchor link names. \documentclass[12pt, a4paper, ngerman, oneside, bibtotoc, liststotoc, bibtotocnumbered, toctotoc]{scrartcl} \usepackage{fancyhdr} ...

1

I had to fool hyperref into thinking you were using chapters. \documentclass[12pt, a4paper, ngerman, oneside, bibtotoc, liststotoc, bibtotocnumbered, toctotoc]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{fancyhdr} \newcounter{chapter}% causes hyperref to use chapter numbers \usepackage{hyperref} \pagestyle{fancy} \fancyhf{} ...

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