Insert a field where you want it to appear with
DocInformation tab. The Type is Created and you can Select Date and Time which can be Formatted in various ways.
This is quite similar, Type is now Modified
There is no difference whether you are in the master or subdocument. These fields retrieve the information for the current document.
##Transferring date stamps to the master document
Important notice: header and footer content of a subdocument is not transferred to the master because the master uses its own page styles (even if page styles have the same name, the effective occurrence is not the same). Consequently you must regenerate the information in the master.
###First thought workaround
Since you can’t get anything from a subdocument header/footer, the information must be inserted somewhere in the body of text. I suggest a paragraph at the beginning of each chapter with a dedicated paragraph style to make Hidden (configure your view options so that the paragraph remains displayed on screen, with “decorators” warning you it is hidden and not printing. This will facilitate document maintenance.)
In the subdocument, insert the date and time fields in this special paragraph. Select it.
Bookmark to give a unique name to the selection.
In the master, where you want the subdocument timestamp to appear,
Cross-references tab, Type Bookmarks, select the required one and Insert reference to Reference to retrieve the bookmark content.
This “naive” workaround has a very big inconvenient.
Usually, you try to use a single page style for all your chapters, inserting variable content like chapter heading, with fields. Here, due to the requirement that a bookmark must be unique to uniquely identify a subdocument, the single chapter page style is defeated.
###Second thought solution
To be able to automate the header and footer in the master chapters, we must be able to use the same cross-reference for all subdocuments.
The only “dynamic” fields I know of are those related to chapter numbering. I then suggest to install a stowaway in the chapter machinery and trick Writer.
Since this indirect field reference must be present in any circumstance, the information has to be in Heading 1 paragraphs. This means you have to “offset” your chapter numbering: chapter titles are at level 2 instead of 1, sub-chapters at level 3 instead of 2, etc. Very easy: you just change the paragraph style.
Don’t forget to customise
Chapter Numbering to also “offset” the numbering, i.e. to ignore level 1.
Of course, formatting must also be offset one level: modify the Heading n paragraph style to move down one level the typographic attributes. Make Heading 1 Hidden.
Note: this tweaking on Heading n styles need to be done only in the master since you won’t print the subdocuments (at least for release).
To retrieve the timestamp,
Document tab. Type is Chapter and Format Chapter name. Make sure Level is 1.
If you have a TOC in your master, It is important to eliminate all Heading 1 paragraphs from appearing in the TOC. Modify paragraph style Contents 1 to give it attribute Hidden in its
Font Effects tab.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer) or comment the relevant answer.
(Edit 1: removed typos which contradicted the intent)
##Attaching a paragraph to the bottom of last page
When a paragraph or group of paragraphs must be positioned to a specific location in a page, these paragraphs must be typed in a frame. The good news when several frames are to be positioned identically is there exist frame styles. Consequently, styling a frame will do the job without the need to manually set the parameters again.
For your first time, let’s do it manually. You’ll appreciate the niceties of frame styles afterwards.
Add a new last paragraph into your document. This paragraph will be empty, save for the frame anchored to it. This paragraph is only a “technical” one for the sole purpose of anchoring the frame; consequently, manage to have it out of your formatting so that it does not causes uselessly a page break unintentionally. Style it with font size 2pt (the absolute minimum), no spacing above nor below. For convenience, make it a custom style (suggested name Invisible) in your template to have it available in all your documents.
You could of course attach the frame to your last paragraph but you could forget about it and your edits could either delete it or add text after it resulting in the frame no longer being on the last page.
With the cursor in the special last paragraph,
Frame. A dialog opens in its
Anchor: To paragraph (default)
Size: set Width to the effective print width (page width - horizontal margins), you’ll tune that later if you find it is too much
Paragraph area (uses space margin to margin)
Page text area (flushes it against the bottom margin)
- for better handling of corner cases, check Keep inside text boundaries
Wrap tab, select Settings None so that no other text will be set on its side (important if the frame width doesn’t span from margin to margin)
You can use Spacing (mainly Above) to force some minimum padding between text and frame.
Borders, remove the default border unless you want to emphasise this frame as not being part of main text flow.
The other tabs should be self explanatory. Enjoy.