Joe(theWordy)Philbrook wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm using lyx 1.3.7 on kubuntu linux (Dapper)
I started with the included letter template which I modified the margins
etc... for a NON business letter to my brother.
Then I used it to play with the fancy header example in the Extended
features manual. It took me a while to figure out that I couldn't use
\lhead{Section \thesection} in the letter if I wanted stable results...
Question 1 of 3
Why is the header/footer suppressed on page 1? That is how can I get
headers and/or footers to output on the first page???
Because you changed the "page style" for normal pages,
and the first page isn't normal in this case.
Usually, the first page is either a chapter page (if
your document style support chapters) or a title
page. Lyx does not suppot changing the chapter/title
page styles directly. You may use ERT
to set \chapterpagestyle to fancy if you wish.
Note that some document styles don't use
chapterpagestyle or titlepagestyle, they have other ways.
Usually, \thispagestyle{fancy} will do the trick though.
Make sure you put this ERT somewhere on the page you want changed.
Question 2 of 3
Evidently "\rhead{Page \thepage}" yields: "Page $currentpage"
But how would I get "Page $currentpage of $pagecount"???
That is "page 1 of 3", "page 2 of 3", "Page 3 of 3" etc...
Simple approach: put a label at the end of the document.
Then, use a reference to that label for getting the last page number.
There are also latex packages for doing this sort of thing, but no
support in LyX. Try this in the preamble:
\lhead{My pagenumber: \thepage{} of \pageref{last}}
Question 3 of 3
Is there a list of {key words?} that can be used to insert values into
header/footers such as
/thepage current output page number
/today Today's date
etc...
Sure, any latex reference manual should do. Also, search
the web. The LyX homepage have some pointers.
Helge Hafting