# Tag Info

8

\psdot expands its argument, but \numexpr is not expandable; it expands after \number or \the. In the context of a \numexpr it's better to use \value{mycnnt}, that refers to the “abstract” value, instead of \themycnt that refers to its representation. \documentclass{article} \usepackage{pst-node} \newcounter{mycnt} \setcounter{mycnt}{2} ...

8

The problem is that you have to define \@currentlabel to give the right value to your \label. So, after assigning the new value to the counter entryc through \refstepcounter, you need to add \protected@edef\@currentlabel{\thetheorem} (in this case probably \def\@currentlabel{\thetheorem} is enough). In other words, change the definition of your environment ...

6

\alph expects a counter following it. But you could resort to using clues from the internal meaning of \alph \documentclass{article} \usepackage{pgffor} \makeatletter \def\aeAlph#1{\@alph{#1}} \makeatother \begin{document} \foreach \n in {1,...,10}{ \edef\letter{\aeAlph{\n}} Letter=\letter\par } \end{document} Calling texdef -t latex alph ...

5

You are currently creating the counter \tmpR with every call to \foo. Create it once outside the definition of \foo. Also, you have to remember that the entry in \caption forms part of a moving argument, since it is written to the .aux and could end up in the LoF. So, you either need to \protect it (which prevents full expansion) or declare it as a robust ...

5

You're using \global where it's not needed and not using it where it's needed! The header is computed in a group, so \setrand always starts from the beginning and, of course, gives the same result. Use global assignments always. \documentclass{article} \usepackage[ paperheight=6cm, paperwidth=10cm, margin=.5cm, includehead, includefoot ...

4


4

This class already defines the theorem environment, but amsthm redefines some (but not all) of the internal commands used in that definition (notably \@thm). This completely messes things up. For this reason, amsthm cannot be loaded under siamltex.cls. Sometimes, loading the package before the document class works. This can be done with ...

2

Try using the bookmark package to see whether this fixes your problems. bookmark implements bookmarks in documents in a more modern (less restrictive) way, and only requires a single compile. hyperref requires at least two compiles (assuming something changes in the ToC), since it uses auxiliary files during compiles to assemble the bookmarks. If you're ...

1

You can exploit the fact that you're going to write your Introducción in Spanish, so inside an environment. \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish,english]{babel} \usepackage{hyperref,bookmark} \begin{document} \tableofcontents \begin{otherlanguage}{spanish} ...

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