Cross-references in a Master Document

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 03:06, 14 June 2007 (edit)
Lorinda (Talk | contribs)
(Step One: Defining the Reference)
← Previous diff
Revision as of 03:18, 14 June 2007 (edit) (undo)
Lorinda (Talk | contribs)
(Step Two: Using the Reference - more translation)
Next diff →
Line 147: Line 147:
====Step Two: Using the Reference==== ====Step Two: Using the Reference====
 +
 +{| cellspacing="8" cellpadding="0" width="100%"
 + !width="180" align="left"|''Action''
 + !width="*" align="left" |''Operation/Result''
 + !width="80" align="left" |''Short-cut''
 + |--------------------------------------------------------
 + |'''8. Open the sub-document <tt>abstract.odt</tt>'''
 + |Bring the master document to the front and double-clik on the link to the dub-document <tt>abstract.odt</tt>in the Navigator.
 + |---
 + |--------------------------------------------------------
 + | ||colspan="2"|''—> NeoOffice opens the document <tt>abstract.odt</tt> and/or brings it to the front.''
 + |--------------------------------------------------------
 + |'''9. Choose the place where the reference needs to be'''
 + |Select the "X" described above, which appears in the sentence "I will discuss the relationship between dolphins and seals below (pags '''X''').
 + |---
 + |--------------------------------------------------------
 + |--------------------------------------------------------
 + |'''10. Open the {{Window|Fields}} window'''
 + |Under the {{Menu|Insert}} menu, choose {{Menu|Fields}} then {{Menu|Other...}}
 + | ---
 + |--------------------------------------------------------
 + | ||colspan="2"|''—> NeoOffice opens the {{Window|Fields}} dialog box''
 + |--------------------------------------------------------
 + |'''11. Choose the Tab'''
 + |Choose the {{Section|References}} tab if necessary (if you have followed this procedure to the letter, the tab will already be active.)
 + | ---
 + |--------------------------------------------------------
 + |'''12. Prepare the Reference'''
 + |In the left-hand column, choose {{prefName|Insert Reference}} <br />In the {{prefName|Name}} field (at the bottom right of the dialog box), type the exace name that you have given to the reference, here <tt>"relDolphinsSeals" — or press Command-v If you copied the name to the clipboard.
 + |---
 + |--------------------------------------------------------
 + |'''13. Format de la référence'''
 + |Dans la colonne de droite (colonne « Format »), s'assurer que c'est le « Page » qui est sélectionné (car nous voulons le numéro de la page où se trouvera ce paragraphe).
 + |---
 + |--------------------------------------------------------
 + |'''14. Insérer la référence'''
 + |Cliquer sur le bouton « Insérer »…<br />puis refermer la boîte de dialogue « Champs » en cliquant sur le bouton « Fermer »
 + | touche Entrée
 + |--------------------------------------------------------
 + | ||colspan="2"|''—> NeoOffice/J ferme la boîte de dialogue « Champs » après avoir inséré la référence à l'endroit voulu.<br />Pour l'instant, le texte devrait être « (page 1) », ce qui est normal puisque le document ne parvient pas à trouver la définition de cette référence.''
 + |--------------------------------------------------------
 + |'''15. Sauver le sous-document'''
 + |Sauver le document (menu <tt>Fichier > Enregistrer</tt>)…<br />et le fermer si aucune autre modification n'est à effectuer.
 + | Pomme + s (et Pomme + w)
 + |}
<!--====Deuxième étape : UTILISATION DE LA RÉFÉRENCE==== <!--====Deuxième étape : UTILISATION DE LA RÉFÉRENCE====

Revision as of 03:18, 14 June 2007

This page is in the process of being translated. In time, the entire article will appear here. Until then, the full article is available in one or more other languages by clicking on the links at the bottom of the page.

Contents

Description of the Problem

Lets say that a sub-document (an inserted document) of a master document must contain a cross-reference to an element in another sub-document in the same master document. In the case, it is not possible to use the Fields window to define and insert the refrence in the "traditional" manner.


More Concretely...

Let's say that the master document contains a sub-document that details the contents of other documents. Sort of like a table of contents, but more detailed.

In this sub-document, we want the page numbers to appear, similar to a table of contents. For example, we might have the phrase "I discuss the relationship between dolphins and seals below (page X)." This "X" must correspond to a page in another sub-document of the master document (it does not matter if the other sub-document is above or below the current one). Because the document is in the process of being written, I do not know what page will be the first page of my chapter on the relationship between dophins and seals. If there is only one reference in my document, I could keep it up to date manually, then I would be treating my computer like a typewriter.

In this case, it is best to use a reference I call a global reference. Thanks to this reference, the page number will be updated with each change to the page.


Procedure

Since an illustration is more helpful than a long discourse, the following is an example of the technique;

  • My master document contains a sub-document named dolphins_and_seals.odt<tt> containing a chapter titled "The Relationship Between Dolphins and Seals."
  • my master document contains another sub-document, named <tt>abstract.odt<tt> that contains the line "I discuss the relationship between dolphinis and seals below (page X)."
  • I want want the number (X) in "page X" to always refer to the page number of my chapter on the relationship between dolphiins and seals, regardless of any changes I make in the document.


Procedure for the Creation of a "Global" Reference

To create and use this global reference, follow the three steps below:


Step One: Defining the Reference

It is assumed that a master document has been created, which contains a sub-document <tt>abstract.odt<tt>and the sub-document <tt>dolphins_and_seals.odt.
Action Operation/Result Shortcut
1. Edit the sub-documents dolphins_and_seals.odt In the Navigator, in the section "Links," double-click on the sub document dolphins_and_seals.odt ---
—> NeoOffice opens the document dolphins_and_seals.odt and places it in front.
2. Select the Text of the Reference In this document, select the title "Relationship between dolphins and seals." (or simply place the cursor at the beginning of this title.) ---
3. Open the Fields Under the Insert menu, choose Fields then Other.... ---
—> NeoOffice opens the Fields dialog
4. Choose the Tab Choose the References tab ---
5. Define the Reference In the left column, select "Define a Reference"
In the Name (in the bottom right of the dialog box), give a name to this reference, here "relDolphinsSeals"
Attention ! Make a note of the name that you have given to this reference, because it will not appear later!
Tip: select the name of the reference using the mouse, the copy it (Command-c). The name will now be on the clipboard; then you can paste it (Command-v)
6. Insert the definition of the reference Click on the Insert button...
... then close the Fields dialog box by clicking close.
—> NeoOffice closes the Fields dialog box after creating the (invisible) reference.
7. Save the Document Save the document dolphins_and_seals.odt
(And close it, if you do not have other edits to make in it).
Command-s (then Command-w)


Step Two: Using the Reference

Action Operation/Result Short-cut
8. Open the sub-document abstract.odt Bring the master document to the front and double-clik on the link to the dub-document abstract.odtin the Navigator.
—> NeoOffice opens the document abstract.odt and/or brings it to the front.
9. Choose the place where the reference needs to be Select the "X" described above, which appears in the sentence "I will discuss the relationship between dolphins and seals below (pags X).
10. Open the Fields window Under the Insert menu, choose Fields then Other... ---
—> NeoOffice opens the Fields dialog box
11. Choose the Tab Choose the References tab if necessary (if you have followed this procedure to the letter, the tab will already be active.) ---
12. Prepare the Reference In the left-hand column, choose Insert Reference
In the Name field (at the bottom right of the dialog box), type the exace name that you have given to the reference, here "relDolphinsSeals" — or press Command-v If you copied the name to the clipboard.
13. Format de la référence Dans la colonne de droite (colonne « Format »), s'assurer que c'est le « Page » qui est sélectionné (car nous voulons le numéro de la page où se trouvera ce paragraphe).
14. Insérer la référence Cliquer sur le bouton « Insérer »…
puis refermer la boîte de dialogue « Champs » en cliquant sur le bouton « Fermer »
touche Entrée
—> NeoOffice/J ferme la boîte de dialogue « Champs » après avoir inséré la référence à l'endroit voulu.
Pour l'instant, le texte devrait être « (page 1) », ce qui est normal puisque le document ne parvient pas à trouver la définition de cette référence.
15. Sauver le sous-document Sauver le document (menu <tt>Fichier > Enregistrer)…
et le fermer si aucune autre modification n'est à effectuer.
Pomme + s (et Pomme + w)



This article in other languages: Italiano Français
Personal tools