# [OS X TeX] assistance with a problem

Sergei Mariev sergei.mariev at lrz.uni-muenchen.de
Fri Dec 8 14:32:49 EST 2006

Some more information to make the issue more clear:
There are two sets of commands that the \ref{} refer two. The one set
occurs in the introduction and are defined like this:

\newcommand{\stufezwei}
{\@startsection{stufezwei}{2}{\z@}
{2\baselineskip}{\baselineskip}{\raggedright\scshape}}
\newcounter{stufezwei}
\renewcommand{\thestufezwei}{\Roman{stufezwei}.}
%\newcommand{\l at stufezwei}{\@dottedtocline{1}{1.5em}{2cm}}
\newcommand{\stufezweimark}[1]{}

The other set of commands occurs in the body of the text and is
defined like this:
\newcounter{new}
\renewcommand{\thenew}{\arabic{new}}
\newcommand{\new}{\refstepcounter{new}{ \fontencoding{T1}\fontfamily
{mdtj}\fontseries{b}\fontshape{n}\fontsize{9pt}{11.46pt}\selectfont
\thenew\nolinebreak$~$}}

So what happens is, the content of let's say \stufedrei and its
number gets mixed with the value which is the output of \new.

In my example below, III. and Zur vorliegenden Ausgabe come from the
argument of \stufezwei in the document. Number 21 comes from the
counter new as a result of the command \new{} in the body of the
document. However, in the same command, there are still words "Zur
vorliegenden Ausgabe" which come from the last call of \stufedrei{Zur
vorliegenden Ausgabe}

I can not figure out why they get mixed together....

Thanks for any suggestions!

SM

Am 08.12.2006 um 18:39 schrieb Sergei Mariev:

> Dear all,
>
>
> Some of the references in my document are working just fine, and
> some (I have not been able to discover a pattern yet) do not.
>
> I am using the memoir class.
>
> If I look at the .aux file, some reference get the correct section
> numbers assigned, and some (at irregular intervals) get the number
> of the last section of my introduction.
>
> In the following line the Roman numeral III. is a wrong reference.
>
> \newlabel{regress2}{{\M at TitleReference {III.}{\versal  {Zur
> vorliegenden Ausgabe}}}{33}}
>
> which is followed by the following line:
>
> \newlabel{lat:18}{{\M at TitleReference {21}{\versal  {Zur
> vorliegenden Ausgabe}}}{34}}
>
> where 21 is quite correct.
>
> And so the correct lines and the wrong lines are mixed, and I am
> not able to discover any pattern as to what screws some of the
> references up. And as the document I am formatting has a very
> complicated structure with some sectioning commands completely
> redefined I can not isolate the problem yet. The fact that all the
> references get the title of the last section is suspicious as well
> but I cannot explain it, either. Any suggestions as to what
> influences this \M at TitleReference or as to where I should look in
> my document to isolate the problem will be greatly appreciated!
>
> Thanks a lot in advance!
>
> SM
>
>
>
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>          & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/