COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### reseting labels

• Follow

I have a strange question.

Basically I wrote 2 long papers with almost the same labels (yes, the
papers have similar contents).

Now I have to put both files inside a big one, where each one
represents a chapter, but they are actually independent files, with no
links. However, I have lots of redefined labels....

I would like to know if there exists an option of the type "reset
labels", such that, at the beginning of one chapter, should be able to
forgot all the preceding labels.

Claudio

 0

Am Wed, 24 Mar 2010 03:42:20 -0700 (PDT) schrieb Claudio:

> I have a strange question.
>
> Basically I wrote 2 long papers with almost the same labels (yes, the
> papers have similar contents).
>
> Now I have to put both files inside a big one, where each one
> represents a chapter, but they are actually independent files, with no
> links. However, I have lots of redefined labels....
>
> I would like to know if there exists an option of the type "reset
> labels", such that, at the beginning of one chapter, should be able to
> forgot all the preceding labels.

No, all labels are written to the aux-file for the next latex run.
You could redefine \label and \ref at the start of the second
document so that they add a prefix to each label. But I think it is
much easier and faster to replace in one of the files each "\label{"
by e.g. "\label{D1-" and each "\ref{" by "\ref{D1-".

--
Ulrike Fischer

 0

On 24 mar, 14:28, Ulrike Fischer <ne...@nililand.de> wrote:
> Am Wed, 24 Mar 2010 03:42:20 -0700 (PDT) schrieb Claudio:
>
> > I have a strange question.
>
> > Basically I wrote 2 long papers with almost the same labels (yes, the
> > papers have similar contents).
>
> > Now I have to put both files inside a big one, where each one
> > represents a chapter, but they are actually independent files, with no
Thank you! It works very well...great answer...

> > links. However, I have lots of redefined labels....
>
> > I would like to know if there exists an option of the type "reset
> > labels", such that, at the beginning of one chapter, should be able to
> > forgot all the preceding labels.
>
> No, all labels are written to the aux-file for the next latex run.
> You could redefine \label and \ref at the start of the second
> document so that they add a prefix to each label. But I think it is
> much easier and faster to replace in one of the files each "\label{"
> by e.g. "\label{D1-" and each "\ref{" by "\ref{D1-". =A0
>
> --
> Ulrike Fischer


 0

2 Replies
118 Views

Similiar Articles:

7/9/2012 11:42:23 AM