[OS X TeX] assistance with a problem

Sergei Mariev sergei.mariev at lrz.uni-muenchen.de
Sat Dec 9 12:49:40 CET 2006


Thank you again for the suggestions and sorry for a very confusing  
case! It is always the same problem: the find out what is wrong is  
much more difficult! Once it is done, everything becomes less  
mysterious. So it is in my case, I finally have found out what the  
problem was: in one part of the document, each page is a close  
environment, like this:

--pagebreak--  start of an environment
text text text *sectioning command* text text text
end of the environment --pagebreak-- - start of an environment
text text text +label1+ *sectioning command* +label2+ text text text
end of the environment --pagebreak--

Now the commands that trigger the counter sometimes occur on the  
previous page and thus cease to be effective at the end of the  
environment. Accrodingly, all the labels that are supposed to receive  
their values from the previous page did not work, as the envirnoment  
boundary intervened. so +label1+ in the sketch above does not work or  
gets the value from elsewhere and +label2+ works just as I  
expected.... I should have seen this obvious fact myself, but I am  
working on a huge project with some other collaborators and we have  
been doign this book for more than 3 years now, so it is not quite  
easy to see immediately the implications of everything that has been  
redefined or programmed in a different way in the past.... Anyway  
thanks to everybody who looked through the complicated examples before!



Am 09.12.2006 um 01:36 schrieb Themis Matsoukas:

> Sergei,
>
> it is difficult to understand what you are trying to do with your  
> redefinition of the sectional commands and with the counter \new.  
> You should explain what it is you're trying to do with these  
> commands. It is very possible that you can accomplish the same  
> effect through the various commands available in memoir.
>
> Themis
>
>
>
> On Dec 8, 2006, at 3:18 PM, Sergei Mariev wrote:
>
>> Thanks for the reply! I have posted more of the definitions that  
>> are likely to produce this problem. Unfortuntely I have not been  
>> able to isolate the error in a simple and short document yet,  
>> inspite all the attmpts.  Here is another description of the  
>> structure of the document:
>> ++++++++++++++
>> \stufeeins{Introduction}
>> Text Text Text Text
>> \stufezwei{Some subtitle} [the command \stufezwei{Title} is where  
>> the  Roman numeral "III." originally derives from]
>> Text Text Text
>>
>> Text \new{} Text \new{} \label{regress2} \label{lat:18} Text Text  
>> Text [the command \new produces "21" in my example]
>> Text Text
>> +++++++++++++++++++++
>>
>> The strange thing is that  "regress2" and lat:18 stand very close  
>> to each other in the text, but somehow  the wrong value "III."  
>> occurs in the .aux file for regress2 and the correct value "21"  
>> for the lat:18, where I expected "21" for both.
>>
>>
>>
>>
>>> I don't know the answer but here is a sample of a healthy aux  
>>> file using memoir:
>>>
>>> \newlabel{c:sp_topics}{{\M at TitleReference {7}{Solutions}}{69}}
>>> \newlabel{Qconf}{{\M at TitleReference {7.12}{Lattice Model for  
>>> Mixtures}}{72}}
>>> \newlabel{Qconf:2}{{\M at TitleReference {7.15}{Lattice Model for  
>>> Mixtures}}{72}}
>>>
>>> In my case, the first of these is a label for chapter  
>>> "Solutions"; the second and third are numbered equations that  
>>> appear in section "Lattice Model for Mixtures" on page 72.  
>>> Apparently, \newlabel records the title of the chapter/ 
>>> section/... in which the label appears, therefore, multiple  
>>> appearances of a title is not bu itself suspicious.
>>>
>>> If the error (the roman III) refers to the number of a section  
>>> whose sectioning command you have redefined, I would start by  
>>> looking in that re-definition.
>>>
>>> Memoir allows customization of sectioning commands. You should be  
>>> able to do a lot with this feature without the need to redefine  
>>> the sectioning macros themselves --if that's what you have done.
>>>
>>> For more precise diagnosis, you might try sending a minimal  
>>> sample that has this problem.
>>>
>>> Themis
>>>
>>>
>>> On Dec 8, 2006, at 12:39 PM, Sergei Mariev wrote:
>>>
>>>> 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/
>>>
>>
>> ------------------------- 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/
>

------------------------- 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/




More information about the macostex-archives mailing list