]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/UserGuide.lyx
UserGuide.lyx:
[lyx.git] / lib / doc / UserGuide.lyx
index dded19bbd900a4d64ead8c8ab42e321e6231266a..fc9cdb54a56dc29984f98aa8713766ad77ff2a2a 100644 (file)
 % macro for italic page numbers in the index
 \newcommand{\IndexDef}[1]{\textit{#1}}
 
+% for customized page headers/footers
+% only needed because they are only used in one section of the document
+\usepackage{fancyhdr}
+% change header rule width
+\renewcommand{\headrulewidth}{2pt}
+
 % workaround for a makeindex bug,
 % see sec. "Index Entry Order"
 % only uncomment this when you are using makindex
@@ -52,6 +58,9 @@
 \end_preamble
 \options intoc,bibliography=totoc,index=totoc,BCOR7.5mm,captions=tableheading
 \use_default_options false
+\begin_modules
+customHeadersFooters
+\end_modules
 \maintain_unincluded_children false
 \language english
 \language_package default
@@ -2314,13 +2323,14 @@ Alt
 
 \end_deeper
 \begin_layout Standard
-You'll learn more and more keybindings and short-cut keys as you use LyX,
+You'll learn more and more key bindings and short-cut keys as you use LyX,
  because most actions will prompt a small message in the status bar at the
  bottom of LyX's main window which describe the name of the action, you've
- just triggered, and any existing keybindings for that action.
- The LyX menus also list the defined keybindings.
- The notation for the keybindings is very similar to the notation used in
- this documentation, so you should not have any problems understanding it.
+ just triggered, and any existing key bindings for that action.
+ The LyX menus also list the defined key bindings.
+ The notation for the key bindings is very similar to the notation used
+ in this documentation, so you should not have any problems understanding
+ it.
  However, notice that Shift-modifiers are explicitly mentioned, so 
 \begin_inset Quotes eld
 \end_inset
@@ -2345,7 +2355,7 @@ A
 \end_layout
 
 \begin_layout Standard
-You can list or change the keybindings in the menu 
+You can list or change the key bindings in the menu 
 \family sans
 Tools\SpecialChar \menuseparator
 Preferences
@@ -3694,6 +3704,7 @@ Format
  The choices are
 \end_layout
 
+\begin_deeper
 \begin_layout Itemize
 
 \family sans
@@ -3703,35 +3714,31 @@ Default
 \begin_layout Itemize
 
 \family sans
-A3, A4,
-\family default
-\family sans
-A5
+A0 - A6
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-B3, B4, B5
+B0 - B6
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-US letter
+C0 - C6
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-US legal
+US letter, US legal, US executive
 \end_layout
 
 \begin_layout Itemize
 
 \family sans
-US executive
+JIS B0 - JIS B6
 \end_layout
 
 \begin_layout Itemize
@@ -3740,6 +3747,7 @@ US executive
 Custom
 \end_layout
 
+\end_deeper
 \begin_layout Labeling
 \labelwidthstring 00.00.0000
 
@@ -3823,7 +3831,7 @@ Document ! Settings
 
 \begin_layout Standard
 If you use a KOMA-Script document class, you can use the default settings.
- Because KOMA-Script calculates then the printspace automatically by taking
+ Because KOMA-Script calculates then the print space automatically by taking
  the paper format and the font size into account.
 \end_layout
 
@@ -8712,7 +8720,7 @@ arg   "depth-increment"
 \family default
 : level #2) We'll stick an encapsulated description of how we created the
  example in parentheses someplace.
- For example, the two keybindings are how we changed the depth.
+ For example, the two key bindings are how we changed the depth.
  The environment name is the name of the current environment.
  Either before or after this, we'll put in the level.
 \end_layout
@@ -9129,7 +9137,7 @@ Spaces ! Protected
 \begin_layout Standard
 The protected space: It is used to tell LyX (and LaTeX) not to break the
  line at that point.
- This may be necessary to avoid unlucky linebreaks, like in: 
+ This may be necessary to avoid unlucky line breaks, like in: 
 \end_layout
 
 \begin_layout Quote
@@ -10150,7 +10158,7 @@ phantom
 \end_inset
 
 .
- The normal phantom ouputs the width and heigth of the content as space,
+ The normal phantom outputs the width and height of the content as space,
  while the horizontal and vertical variant only outputs the corresponding
  dimension.
 \end_layout
@@ -10472,7 +10480,7 @@ name "sub:Forced-Page-Breaks"
 \end_layout
 
 \begin_layout Standard
-If you don't like the way LaTeX does the pagebreaks in your document, you
+If you don't like the way LaTeX does the page breaks in your document, you
  can force a page break where you want one.
  Normally this will not be necessary, because LaTeX is good at page breaking.
  Only if you use a lot of 
@@ -10483,7 +10491,7 @@ Floats
 \end_layout
 
 \begin_layout Standard
-We recommend not to use forced pagebreaks until the text is finished and
+We recommend not to use forced page breaks until the text is finished and
  until you have checked in the preview to see if you 
 \emph on
 really
@@ -10492,7 +10500,7 @@ really
 \end_layout
 
 \begin_layout Standard
-There are two types of pagebreaks: One that ends the page without any special
+There are two types of page breaks: One that ends the page without any special
  action.
  This can be inserted above or below a paragraph via the menu 
 \family sans
@@ -10564,7 +10572,7 @@ Page breaks ! Clear
 \end_layout
 
 \begin_layout Standard
-Rather than forced pagebreaks where the content behind the break is placed
+Rather than forced page breaks where the content behind the break is placed
  directly on the next page, you can also clear pages while breaking them.
  That means that the current paragraph is terminated and everything, including
  unprocessed floats, from the earlier part of the document are placed behind
@@ -11081,7 +11089,7 @@ status open
 Note:
 \series default
  XeTeX and especially LuaTeX, are still rather new and thus not as mature
- as traditional LaTeX or PDFLaTeX.
+ as traditional LaTeX or PDFTeX.
 \end_layout
 
 \end_inset
@@ -29542,33 +29550,34 @@ key "latexcompanion,latexguide"
 \end_inset
 
 .
 \end_layout
 
-\begin_layout Section
-Previewing Snippets of your Document
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Previewing-snippets-of"
-
+\begin_layout Standard
+\begin_inset Newpage cleardoublepage
 \end_inset
 
 
-\begin_inset Index idx
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-Instant preview
+
+
+\backslash
+pagestyle{fancy}
 \end_layout
 
 \end_inset
 
 
-\begin_inset Index idx
+\begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
-Document ! Preview
+switches temporarily to a page style with custom header and footer line
 \end_layout
 
 \end_inset
@@ -29576,183 +29585,98 @@ Document ! Preview
 
 \end_layout
 
-\begin_layout Standard
-LyX allows you to generate previews of sections of your document on the
- fly so you can see how they'll look in the final document without having
- to break your train of thought with 
-\family sans
-View\SpecialChar \menuseparator
-DVI
-\family default
-.
+\begin_layout Left Header
+\begin_inset Argument
+status open
+
+\begin_layout Plain Layout
+
 \end_layout
 
-\begin_layout Standard
-If you would for example like to see in LyX your math formulas typeset by
- LaTeX, install the LaTeX-package 
-\series bold
-preview-latex
-\series default
+\end_inset
 
-\begin_inset Index idx
+
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-LaTeX-packages ! preview-latex
+
+
+\backslash
+rightmark
 \end_layout
 
 \end_inset
 
- as explained below, and turn on 
-\family sans
-Instant
-\begin_inset space ~
-\end_inset
 
-preview
-\family default
- in the 
-\family sans
-Tools\SpecialChar \menuseparator
-Preferences 
-\family default
-dialog under Look
-\begin_inset space ~
-\end_inset
+\begin_inset Note Note
+status open
 
-and
-\begin_inset space ~
-\end_inset
+\begin_layout Plain Layout
+defines the header line as described below
+\end_layout
 
-feel\SpecialChar \menuseparator
-Display.
- The 
-\family sans
-Preview
-\begin_inset space ~
 \end_inset
 
-Size
-\family default
- is the multiplication factor for the size.
+
 \end_layout
 
-\begin_layout Standard
-Previews are generated when you load a document into LyX and when you finish
- editing an inset.
- Previews of an already loaded document are 
-\emph on
-not
-\emph default
- generated just by selecting the 
-\family sans
-Instant
-\begin_inset space ~
-\end_inset
+\begin_layout Center Header
+\begin_inset Argument
+status open
+
+\begin_layout Plain Layout
 
-preview
-\family default
- check box, you have to reopen the documents to activate the previews.
 \end_layout
 
-\begin_layout Standard
-LyX will generate previews of math insets.
- It will also generate previews of included insets if you select the 
-\family sans
-Show
-\begin_inset space ~
 \end_inset
 
-preview
-\family default
- check box in the insert dialog.
- This is useful if you wish to generate a preview of a LaTeX figure, for
- example.
+
 \end_layout
 
-\begin_layout Standard
-To get previews working, you need the LaTeX package 
-\series bold
-preview-latex
-\series default
- (on some systems named simply 
-\series bold
-preview
-\series default
-) installed.
- If it is not already installed, you will find it in the TeX Catalogue,
-\begin_inset CommandInset citation
-LatexCommand cite
-key "TeXCatalogue"
+\begin_layout Right Header
+\begin_inset Argument
+status open
 
-\end_inset
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
 
- or in the package manager of your LaTeX-system.
- You obtain prettier results if you install the program 
-\family typewriter
-pnmcrop
-\family default
- from the 
-\family typewriter
-netpbm
-\family default
- package; for LyX on Windows this program is automatically installed together
- with LyX.
+\begin_layout Plain Layout
+
+
+\backslash
+leftmark
 \end_layout
 
-\begin_layout Standard
-\begin_inset VSpace bigskip
 \end_inset
 
 
 \end_layout
 
-\begin_layout Standard
-You can furthermore preview the LaTeX source of the whole document or parts
- of it.
- Use the menu 
-\family sans
-View\SpecialChar \menuseparator
-View
-\begin_inset space ~
 \end_inset
 
-Source
-\family default
- and a window will be shown where you can see the LaTeX-source code.
- The window shows the source of the whole paragraph where the cursor is
- currently in.
- You can also select document parts in LyX's main window, then only this
- selection (when it is more than one paragraph) is shown as source code.
- To view the whole document as source, enable the corresponding option in
- the source view window.
-\end_layout
-
-\begin_layout Section
-Advanced Find and Replace
-\begin_inset CommandInset label
-LatexCommand label
-name "sec:Advanced-Find-and"
 
-\end_inset
+\end_layout
 
+\begin_layout Left Footer
+\begin_inset Argument
+status open
 
-\begin_inset Index idx
+\begin_layout Plain Layout
+\begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-Replace
+
+
+\backslash
+thepage
 \end_layout
 
 \end_inset
 
 
-\begin_inset Index idx
-status collapsed
-
-\begin_layout Plain Layout
-Find
 \end_layout
 
 \end_inset
 
 \end_layout
 
-\begin_layout Subsection
-Introduction
-\end_layout
-
-\begin_layout Standard
-The advanced find and replace feature of LyX allows for searching of complex,
- format-sensitive text segments and mathematics contents within LyX documents.
- It is an enhancement of the standard (quick) find and replace feature.
- The key-features are:
-\end_layout
+\begin_layout Center Footer
+\begin_inset Argument
+status open
 
-\begin_layout Itemize
-Both searching of text and of mathematical formulas is allowed, where the
- latter is done by entering mathematics in the usual way; not only entire
- mathematical formulas are found, but also parts occurring within more complex
- formulas
-\end_layout
+\begin_layout Plain Layout
 
-\begin_layout Itemize
-Search may be format-insensitive, so that the searched text is found in
- any context/style (standard text, section headings, notes, and even mathematics
-), or it may be format-sensitive, so that, for example, a word entered with
- a section heading will only be found within section headings
+\family sans
+\series bold
+\color red
+LyX's user guide
 \end_layout
 
-\begin_layout Itemize
-Search may be widened to a specific 
-\emph on
-scope
-\emph default
-, i.
-\begin_inset space \thinspace{}
 \end_inset
 
-e.
-\begin_inset space ~
+Magic code:
+\begin_inset Newline newline
 \end_inset
 
-a set of files which may be all the children of the document being edited,
- all the open files, or all the manuals available from the 
-\family sans
-Help
-\family default
- menu
-\end_layout
 
-\begin_layout Itemize
-Replace may optionally preserve capitalization, so that the replaced text
- capitalization is adapted to the matching text (i.
-\begin_inset space \thinspace{}
+\begin_inset Formula $\Upsilon=\frac{\sqrt[3]{\aleph}}{\spadesuit}$
 \end_inset
 
-e.
-\begin_inset space ~
-\end_inset
 
-all lowercase, all uppercase, first uppercase followed by lowercase)
 \end_layout
 
-\begin_layout Subsection
-Basic usage
+\begin_layout Right Footer
+\begin_inset Argument
+status open
+
+\begin_layout Plain Layout
+
 \end_layout
 
-\begin_layout Standard
-The advanced find and replace feature of LyX is activated through the menu
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+Roman{page}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Customized Page Headers and Footers
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Document ! Header/Footer line
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Header/Footer line
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To define custom page header and footer line for your document, you need
+ to set the headings style to 
+\family sans
+Fancy
+\family default
+ in the 
+\family sans
+Document\SpecialChar \menuseparator
+Settings
+\family default
+ dialog under 
+\family sans
+Page
+\begin_inset space ~
+\end_inset
+
+Layout
+\family default
+.
+ As second step add in the menu 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Modules
+\family default
+ the module 
+\begin_inset Quotes eld
+\end_inset
+
+Custom Header/Footerlines
+\begin_inset Quotes erd
+\end_inset
+
+.
+ This module offers the 6
+\begin_inset space ~
+\end_inset
+
+styles
+\end_layout
+
+\begin_layout Description
+Left
+\begin_inset space ~
+\end_inset
+
+Header,
+\begin_inset space ~
+\end_inset
+
+Center
+\begin_inset space ~
+\end_inset
+
+Header,
+\begin_inset space ~
+\end_inset
+
+Right
+\begin_inset space ~
+\end_inset
+
+Header
+\end_layout
+
+\begin_layout Description
+Left
+\begin_inset space ~
+\end_inset
+
+Footer,
+\begin_inset space ~
+\end_inset
+
+Center
+\begin_inset space ~
+\end_inset
+
+Footer,
+\begin_inset space ~
+\end_inset
+
+Right
+\begin_inset space ~
+\end_inset
+
+Footer
+\end_layout
+
+\begin_layout Standard
+for the different positions in the header/footer.
+\end_layout
+
+\begin_layout Standard
+Normally, headers and footers are set up in the beginning of the document.
+ but you can change them anywhere you want to.
+ Figure
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "fig:Page-layout"
+
+\end_inset
+
+ shows the page layout and where the header/footer styles will appear.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float figure
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\noindent
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="5" columns="3">
+<features tabularvalignment="middle">
+<column alignment="left" valignment="top" width="30line%">
+<column alignment="center" valignment="top" width="30line%">
+<column alignment="right" valignment="top" width="30line%">
+<row>
+<cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Left Header
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Center Header
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Right Header
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell multicolumn="1" alignment="left" valignment="top" leftline="true" rightline="true" usebox="none" width="90line%">
+\begin_inset Text
+
+\begin_layout Plain Layout
+The normal text on the page goes here.
+ The running header is above thel text, and the footer is below (including
+ footnotes).
+ Headers/footers typically contain things like the page number, title of
+ the chapter, company logo but your can use almost anything, except of floats.
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Left Footer
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Center Footer
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="right" valignment="top" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Right Footer
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "fig:Page-layout"
+
+\end_inset
+
+Page layout with custom header and footer line.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Definition
+\end_layout
+
+\begin_layout Standard
+To define your header line, add all 3
+\begin_inset space ~
+\end_inset
+
+header styles.
+ The things you add to the styles will appear on uneven pages, the things
+ in the optional arguments on even pages.
+ For single-sided documents, the optional argument will not be used and
+ can be omitted.
+ If you leave a style or its argument empty, nothing will appear in the
+ output.
+ Defining the footer line works similar.
+\end_layout
+
+\begin_layout Standard
+For the definition, you will need some LaTeX-commands that are inserted
+ as TeX-code (menu 
+\family sans
+Insert\SpecialChar \menuseparator
+Te
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\family sans
+{}
+\end_layout
+
+\end_inset
+
+X
+\begin_inset space ~
+\end_inset
+
+Code
+\family default
+):
+\end_layout
+
+\begin_layout Description
+
+\backslash
+thepage prints the current page number
+\end_layout
+
+\begin_layout Description
+
+\backslash
+Roman{page} prints the current page number with capital roman numerals
+\end_layout
+
+\begin_layout Description
+
+\backslash
+roman{page} prints the current page number with small roman numerals
+\end_layout
+
+\begin_layout Description
+
+\backslash
+leftmark prints the current section number and title.
+ In case of a book, it prints the current chapter title instead, but this
+ document is an article.
+ It is called 
+\begin_inset Quotes eld
+\end_inset
+
+leftmark
+\begin_inset Quotes prd
+\end_inset
+
+ because it usually goes in a left header.
+\end_layout
+
+\begin_layout Description
+
+\backslash
+rightmark prints the name and number of the current subsection number and
+ title.
+ If it is a book it prints the current section title.
+ It is normally used in the right header.
+\end_layout
+
+\begin_layout Subsection
+Default headers/footers
+\end_layout
+
+\begin_layout Standard
+Custom headers and footers are not empty by default.
+ The default header contains the chapter and section title and the center
+ footer has the page number.
+ In order to remove unwanted headers/footers, include the relevant header/footer
+ style in your document, but leave it blank.
+ So, if you don't want a page number in the footer, perhaps because you
+ put it int he header instead, include a blank center footer to get rid
+ of the default.
+\end_layout
+
+\begin_layout Subsection
+Appearance
+\end_layout
+
+\begin_layout Standard
+The custom headers and footers will appear on normal pages.
+ Some pages are different.
+ The title page has a style of its own, and so has any page that starts
+ a new part or chapter in your book.
+ Such pages will not have the custom headers/footers, but that is normal.
+ There is for example no need to print a header with the chapter name on
+ the chapter page where the chapter heading is in big bold letters anyway.
+\end_layout
+
+\begin_layout Subsubsection
+Header and footer decoration line
+\end_layout
+
+\begin_layout Standard
+By default, you get a 0.4
+\begin_inset space \thinspace{}
+\end_inset
+
+pt thick line below the header and no footer line.
+ This can be changed in the document preamble with the commands 
+\series bold
+
+\backslash
+headrulewidth
+\series default
+ and 
+\series bold
+
+\backslash
+footrulewidth
+\series default
+ in the following scheme:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+renewcommand{
+\backslash
+headrulewidth}{thickness}
+\end_layout
+
+\begin_layout Standard
+Where thickness is a size in standard units like 
+\family sans
+pt
+\family default
+ or 
+\family sans
+mm
+\family default
+.
+ If you don't want a line, set the thickness to 0
+\begin_inset space \thinspace{}
+\end_inset
+
+pt.
+\end_layout
+
+\begin_layout Standard
+The lines can also be colored, but this requires more knowledge of LaTeX.
+ If you really need this, have a look in the Internet or in sec.
+\begin_inset space ~
+\end_inset
+
+4.4 of the book 
+\begin_inset CommandInset citation
+LatexCommand cite
+key "Mittelbach"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Subsubsection
+Several header/footer lines
+\end_layout
+
+\begin_layout Standard
+In case that you need more than one text line as a header/footer, you can
+ do this by adding a normal line break in the style definition.
+ However, the default height of the header/footer is only the one of one
+ text line.
+ To expand the height, redefine the LaTeX length 
+\series bold
+
+\backslash
+headheight
+\series default
+ or 
+\series bold
+
+\backslash
+footheight
+\series default
+ in this scheme in your document preamble:
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+setlength{
+\backslash
+headheight}{height}
+\end_layout
+
+\begin_layout Standard
+Where height is a size in standard units.
+ If you don't know which amount of space is needed for the height, define
+ your header/footer and preview your document as PDF.
+ Then open the LaTeX logfile via the menu 
+\family sans
+Document\SpecialChar \menuseparator
+LaT
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\family sans
+{}
+\end_layout
+
+\end_inset
+
+eX Log
+\family default
+ and look via the button 
+\family sans
+Next
+\begin_inset space ~
+\end_inset
+
+Warning
+\family default
+ if you find a warning of the package 
+\series bold
+fancyhdr
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! fancyhdr
+\end_layout
+
+\end_inset
+
+.
+ If there is such a warning, it contains the space that you need at least
+ for your header/footer.
+\end_layout
+
+\begin_layout Subsection
+This example
+\end_layout
+
+\begin_layout Standard
+This example demonstrates what can be done with custom header/footers.
+ Don't use it for yor document as it is just an example.
+ This example consists of the following definition:
+\end_layout
+
+\begin_layout Description
+Left
+\begin_inset space ~
+\end_inset
+
+Header 
+\series bold
+
+\backslash
+rightmark
+\series default
+, empty optional argument
+\end_layout
+
+\begin_layout Description
+Center
+\begin_inset space ~
+\end_inset
+
+Header empty, empty optional argument
+\end_layout
+
+\begin_layout Description
+Right
+\begin_inset space ~
+\end_inset
+
+Header empty, 
+\series bold
+
+\backslash
+leftmark
+\series default
+ in the optional argument
+\end_layout
+
+\begin_layout Description
+Left
+\begin_inset space ~
+\end_inset
+
+Footer empty, 
+\series bold
+
+\backslash
+thepage
+\series default
+ in the optional argument
+\end_layout
+
+\begin_layout Description
+Center
+\begin_inset space ~
+\end_inset
+
+Footer 
+\family sans
+\series bold
+\color red
+LyX's user guide
+\family default
+\series default
+\color inherit
+, 
+\begin_inset Quotes eld
+\end_inset
+
+Magic code:
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset Formula $\Upsilon=\frac{\sqrt[3]{\aleph}}{\spadesuit}$
+\end_inset
+
+
+\begin_inset Quotes erd
+\end_inset
+
+ in the optional argument
+\end_layout
+
+\begin_layout Description
+Right
+\begin_inset space ~
+\end_inset
+
+Footer 
+\series bold
+
+\backslash
+Roman{page}
+\series default
+, empty optional argument
+\end_layout
+
+\begin_layout Description
+
+\backslash
+headrulewidth set to 2
+\begin_inset space \thinspace{}
+\end_inset
+
+pt
+\end_layout
+
+\begin_layout Standard
+In principle you can use almost everything in headers/footers, except of
+ floats.
+ For more special things like e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space ~
+\end_inset
+
+thumb-indexes, see the manual of the 
+\series bold
+fancyhdr
+\series default
+ package, 
+\begin_inset CommandInset citation
+LatexCommand cite
+key "fancyhdr"
+
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Newpage clearpage
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+pagestyle{headings}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status collapsed
+
+\begin_layout Plain Layout
+switches back to page style with the default headings
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Previewing Snippets of your Document
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Previewing-snippets-of"
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Instant preview
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Document ! Preview
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+LyX allows you to generate previews of sections of your document on the
+ fly so you can see how they'll look in the final document without having
+ to break your train of thought with 
+\family sans
+View\SpecialChar \menuseparator
+DVI
+\family default
+.
+\end_layout
+
+\begin_layout Standard
+If you would for example like to see in LyX your math formulas typeset by
+ LaTeX, install the LaTeX-package 
+\series bold
+preview-latex
+\series default
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+LaTeX-packages ! preview-latex
+\end_layout
+
+\end_inset
+
+ as explained below, and turn on 
+\family sans
+Instant
+\begin_inset space ~
+\end_inset
+
+preview
+\family default
+ in the 
+\family sans
+Tools\SpecialChar \menuseparator
+Preferences 
+\family default
+dialog under Look
+\begin_inset space ~
+\end_inset
+
+and
+\begin_inset space ~
+\end_inset
+
+feel\SpecialChar \menuseparator
+Display.
+ The 
+\family sans
+Preview
+\begin_inset space ~
+\end_inset
+
+Size
+\family default
+ is the multiplication factor for the size.
+\end_layout
+
+\begin_layout Standard
+Previews are generated when you load a document into LyX and when you finish
+ editing an inset.
+ Previews of an already loaded document are 
+\emph on
+not
+\emph default
+ generated just by selecting the 
+\family sans
+Instant
+\begin_inset space ~
+\end_inset
+
+preview
+\family default
+ check box, you have to reopen the documents to activate the previews.
+\end_layout
+
+\begin_layout Standard
+LyX will generate previews of math insets.
+ It will also generate previews of included insets if you select the 
+\family sans
+Show
+\begin_inset space ~
+\end_inset
+
+preview
+\family default
+ check box in the insert dialog.
+ This is useful if you wish to generate a preview of a LaTeX figure, for
+ example.
+\end_layout
+
+\begin_layout Standard
+To get previews working, you need the LaTeX package 
+\series bold
+preview-latex
+\series default
+ (on some systems named simply 
+\series bold
+preview
+\series default
+) installed.
+ If it is not already installed, you will find it in the TeX Catalogue,
+\begin_inset CommandInset citation
+LatexCommand cite
+key "TeXCatalogue"
+
+\end_inset
+
+ or in the package manager of your LaTeX-system.
+ You obtain prettier results if you install the program 
+\family typewriter
+pnmcrop
+\family default
+ from the 
+\family typewriter
+netpbm
+\family default
+ package; for LyX on Windows this program is automatically installed together
+ with LyX.
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+You can furthermore preview the LaTeX source of the whole document or parts
+ of it.
+ Use the menu 
+\family sans
+View\SpecialChar \menuseparator
+View
+\begin_inset space ~
+\end_inset
+
+Source
+\family default
+ and a window will be shown where you can see the LaTeX-source code.
+ The window shows the source of the whole paragraph where the cursor is
+ currently in.
+ You can also select document parts in LyX's main window, then only this
+ selection (when it is more than one paragraph) is shown as source code.
+ To view the whole document as source, enable the corresponding option in
+ the source view window.
+\end_layout
+
+\begin_layout Section
+Advanced Find and Replace
+\begin_inset CommandInset label
+LatexCommand label
+name "sec:Advanced-Find-and"
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Replace
+\end_layout
+
+\end_inset
+
+
+\begin_inset Index idx
+status collapsed
+
+\begin_layout Plain Layout
+Find
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Subsection
+Introduction
+\end_layout
+
+\begin_layout Standard
+The advanced find and replace feature of LyX allows for searching of complex,
+ format-sensitive text segments and mathematics contents within LyX documents.
+ It is an enhancement of the standard (quick) find and replace feature.
+ The key-features are:
+\end_layout
+
+\begin_layout Itemize
+Both searching of text and of mathematical formulas is allowed, where the
+ latter is done by entering mathematics in the usual way; not only entire
+ mathematical formulas are found, but also parts occurring within more complex
+ formulas
+\end_layout
+
+\begin_layout Itemize
+Search may be format-insensitive, so that the searched text is found in
+ any context/style (standard text, section headings, notes, and even mathematics
+), or it may be format-sensitive, so that, for example, a word entered with
+ a section heading will only be found within section headings
+\end_layout
+
+\begin_layout Itemize
+Search may be widened to a specific 
+\emph on
+scope
+\emph default
+, i.
+\begin_inset space \thinspace{}
+\end_inset
+
+e.
+\begin_inset space ~
+\end_inset
+
+a set of files which may be all the children of the document being edited,
+ all the open files, or all the manuals available from the 
+\family sans
+Help
+\family default
+ menu
+\end_layout
+
+\begin_layout Itemize
+Replace may optionally preserve capitalization, so that the replaced text
+ capitalization is adapted to the matching text (i.
+\begin_inset space \thinspace{}
+\end_inset
+
+e.
+\begin_inset space ~
+\end_inset
+
+all lowercase, all uppercase, first uppercase followed by lowercase)
+\end_layout
+
+\begin_layout Subsection
+Basic usage
+\end_layout
+
+\begin_layout Standard
+The advanced find and replace feature of LyX is activated through the menu
  
 \family sans
 Edit\SpecialChar \menuseparator
@@ -30250,11 +31212,7 @@ Finally, references to (sub)expressions in regexp may be used as usual,
 \begin_inset Formula $\backslash2$
 \end_inset
 
-, etc., where a 
-\begin_inset Formula $\backslash$
-\end_inset
-
- symbol is entered in regexp mode by pressing twice the backslash key.
+, etc..
  For example, try searching for the regexp 
 \begin_inset Formula $([a-z]+)[[:blank:]]\backslash1$
 \end_inset