X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fdoc%2FCustomization.lyx;h=41eaf633560531a5a2771fd1767187b99c961594;hb=a264d50faae0765932485cc5caee39c20a5115da;hp=abca3e188bc170e3a3c8f6a1fe27b6d9ba9954c7;hpb=ec5c343ebd1ab5458e57ef0f590806fa76db6169;p=lyx.git diff --git a/lib/doc/Customization.lyx b/lib/doc/Customization.lyx index abca3e188b..41eaf63356 100644 --- a/lib/doc/Customization.lyx +++ b/lib/doc/Customization.lyx @@ -1,5 +1,5 @@ -#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/ -\lyxformat 381 +#LyX 2.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 474 \begin_document \begin_header \textclass scrbook @@ -31,24 +31,25 @@ \myTOC \mainmatter } -% redefine the \LyX macro for PDF bookmarks -\def\LyX{\texorpdfstring{% - L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} - {LyX}} - -% used for multi-column text -\usepackage{multicol} -\usepackage{inputenc} +% increase link area for cross-references and autoname them, +\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} +\@ifundefined{extrasenglish}{\usepackage[english]{babel}}{} +\addto\extrasenglish{% + \renewcommand*{\equationautorefname}[1]{}% + \renewcommand{\sectionautorefname}{sec.\negthinspace}% + \renewcommand{\subsectionautorefname}{sec.\negthinspace}% + \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}% +} \end_preamble -\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove +\options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading \use_default_options false \begin_modules logicalmkup \end_modules \maintain_unincluded_children false \begin_local_layout -Format 7 -InsetLayout CharStyle:MenuItem +Format 35 +InsetLayout Flex:MenuItem LyxType charstyle LabelString menu LatexType command @@ -60,22 +61,33 @@ Preamble \newcommand*{\menuitem}[1]{{\sffamily #1}} EndPreamble End +# In case we need to do with sans... +#InsetLayout CharStyle:Code +#Font +#Family Sans +#EndFont +#Preamble +#\renewcommand{\code}[1]{{\sffamily #1}} +#EndPreamble +#End \end_local_layout \language english +\language_package default \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default +\font_math auto \font_default_family default -\use_xetex false +\use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 - \graphics default \default_output_format default +\output_sync 0 \bibtex_command default \index_command default \paperfontsize 12 @@ -94,17 +106,28 @@ End \pdf_colorlinks true \pdf_backref false \pdf_pdfusetitle false -\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false, pdfpagelabels" +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" \papersize default \use_geometry false -\use_amsmath 0 -\use_esint 0 -\use_mhchem 1 +\use_package amsmath 0 +\use_package amssymb 0 +\use_package cancel 0 +\use_package esint 0 +\use_package mathdots 1 +\use_package mathtools 0 +\use_package mhchem 0 +\use_package stackrel 0 +\use_package stmaryrd 0 +\use_package undertilde 0 \cite_engine basic +\cite_engine_type default +\biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false +\justification true +\use_refstyle 0 \branch OutDated \selected 0 \filename_suffix 0 @@ -125,6 +148,7 @@ End \tracking_changes false \output_changes false \html_math_output 0 +\html_css_as_file 0 \html_be_strict true \end_header @@ -173,7 +197,7 @@ type "mailto:" \begin_inset Newline newline \end_inset -Version 2.0.x +Version 2.1.x \end_layout \begin_layout Standard @@ -218,7 +242,7 @@ on, installing new LaTeX classes and LyX layouts, etc. \begin_layout Standard \begin_inset Branch OutDated -status open +status collapsed \begin_layout Standard Information from previous versions of this document that now seems to be @@ -240,7 +264,7 @@ This chapter aims to help you to find your way through the LyX configuration files. Before continuing to read this chapter, you should find out where your LyX library and user directories are by using -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -258,7 +282,7 @@ LyX The library directory is the place where LyX places its system-wide configurati on files; the user directory is where you can place your modified versions. We will call the former -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -268,7 +292,7 @@ LyXDir \end_inset and the latter -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -283,7 +307,7 @@ UserDir \begin_layout Section What's in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -296,7 +320,7 @@ LyXDir \end_layout \begin_layout Standard -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -308,7 +332,7 @@ LyXDir and its sub-directories contain a number of files and that can be used to customize LyX's behavior. You can change many of these files from within LyX itself through the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -323,7 +347,7 @@ Preferences this dialog. However, many other inner aspects of LyX can be customized by modifying the files in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -343,7 +367,7 @@ Automatically generated files \begin_layout Standard The files, which are to be found in -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -360,7 +384,7 @@ en at any time. \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -374,7 +398,7 @@ lyxrc.defaults \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -386,7 +410,7 @@ packages.lst contains the list of packages that have been recognized by LyX. It is currently unused by the LyX program itself, but the information extracted , and more, is made available with -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -405,7 +429,7 @@ Configuration \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -415,7 +439,7 @@ textclass.lst \end_inset the list of text classes that have been found in your -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -430,7 +454,7 @@ on. \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -440,7 +464,7 @@ lyxmodules.lst \end_inset the list of layout modules found in your -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -454,7 +478,7 @@ layout/ \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -468,7 +492,7 @@ status collapsed \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -478,7 +502,7 @@ doc/LaTeXConfig.lyx \end_inset is automatically generated during configuration from the file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -497,7 +521,7 @@ Directories \begin_layout Standard These directories are duplicated between -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -507,7 +531,7 @@ LyXDir \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -518,7 +542,7 @@ UserDir . If a particular files exists in both places, the one in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -532,7 +556,7 @@ UserDir \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -542,7 +566,7 @@ bind/ \end_inset this directory contains files with the extension -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -553,7 +577,7 @@ status collapsed that define the keybindings used in LyX. If there exists an internationalized version of the bind file named -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -567,7 +591,7 @@ $LANG_xxx.bind \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -582,7 +606,7 @@ clipart/ \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -593,7 +617,7 @@ doc/ contains LyX documentation files (including the one you are currently reading). The file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -604,7 +628,7 @@ LaTeXConfig.lyx deserves special attention, as noted above. The internationalized help docs are in subdirectories -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -622,11 +646,7 @@ xx \end_inset is the ISO language code. - See chapter -\begin_inset space ~ -\end_inset - - + See \begin_inset CommandInset ref LatexCommand ref reference "cha:Internationalizing-LyX" @@ -638,7 +658,7 @@ reference "cha:Internationalizing-LyX" \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -649,7 +669,7 @@ examples/ contains example files that explain how to use some features. In the file browser, press the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -663,7 +683,7 @@ Examples \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -673,7 +693,7 @@ images/ \end_inset contains image files that are used by the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -689,7 +709,7 @@ Document \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -699,11 +719,7 @@ kbd/ \end_inset contains keyboard keymapping files. - See Chapter -\begin_inset space ~ -\end_inset - - + See \begin_inset CommandInset ref LatexCommand ref reference "sec:International-Keymap-Stuff" @@ -715,7 +731,7 @@ reference "sec:International-Keymap-Stuff" \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -724,11 +740,7 @@ layouts/ \end_inset - contains the text class and module files described in Chapter -\begin_inset space ~ -\end_inset - - + contains the text class and module files described in \begin_inset CommandInset ref LatexCommand ref reference "cha:Installing-New-Document" @@ -740,7 +752,7 @@ reference "cha:Installing-New-Document" \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -750,7 +762,7 @@ lyx2lyx \end_inset contains the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -766,7 +778,7 @@ lyx2lyx \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -776,7 +788,7 @@ scripts/ \end_inset contains some files that demonstrate the capabilities of the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -795,7 +807,7 @@ Template \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -804,11 +816,7 @@ templates/ \end_inset - contains the standard LyX template files described in Chapter -\begin_inset space ~ -\end_inset - - + contains the standard LyX template files described in \begin_inset CommandInset ref LatexCommand ref reference "sub:Creating-Templates" @@ -820,7 +828,7 @@ reference "sub:Creating-Templates" \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -830,7 +838,7 @@ ui/ \end_inset contains files with the extension -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -855,7 +863,7 @@ These files are used internally by LyX and you generally do not need to \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -866,7 +874,7 @@ CREDITS this file contains the list of LyX developers. The contents are displayed with the menu entry -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -885,7 +893,7 @@ LyX \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -900,7 +908,7 @@ chkconfig.ltx \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -909,17 +917,17 @@ configure.py \end_inset - this is the script that is used to re-configure LyX. + this is a Python script that is used to re-configure LyX. It creates configuration files in the directory it was run from. \end_layout \begin_layout Subsection -Other files needing a line or two... +Other files needing a line or two \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -934,7 +942,7 @@ encodings \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -944,7 +952,7 @@ external_templates \end_inset this file contains the templates available to the new -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -957,12 +965,19 @@ Template \end_inset - feature. + feature, see +\begin_inset CommandInset ref +LatexCommand ref +reference "chap:Including-External-Material" + +\end_inset + +. \end_layout \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -974,6 +989,57 @@ languages this file contains a list of all the languages currently supported by LyX. \end_layout +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +latexfonts +\end_layout + +\end_inset + + contains information about the supported fonts. +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +layouttranslations +\end_layout + +\end_inset + + this file contains translations for internationalized paragraph styles + (see +\begin_inset CommandInset ref +LatexCommand ref +reference "sub:I18n" + +\end_inset + +). +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +unicodesymbols +\end_layout + +\end_inset + + this file contains information about unicode-encoded glyphs and the way + they are supported by LyX via LaTeX. +\end_layout + \begin_layout Section Your local configuration directory \end_layout @@ -982,7 +1048,7 @@ Your local configuration directory Even if you are using LyX as an unprivileged user, you might want to change LyX configuration for your own use. The -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1001,7 +1067,7 @@ user directory \end_inset in -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1017,7 +1083,7 @@ LyX . This directory is used as a mirror of -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1027,7 +1093,7 @@ LyXDir \end_inset , which means that every file in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1037,7 +1103,7 @@ UserDir \end_inset is a replacement for the corresponding file in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1058,7 +1124,7 @@ To make things clearer, let's provide a few examples: \begin_layout Itemize The preferences set in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1069,7 +1135,7 @@ Preferences \end_inset dialog are saved to a file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1079,7 +1145,7 @@ preferences \end_inset in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1093,7 +1159,7 @@ UserDir \begin_layout Itemize When you reconfigure using -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1104,7 +1170,7 @@ Reconfigure \end_inset , LyX runs the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1117,7 +1183,7 @@ configure.py directory. This means that any additional text class file that you might have added in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1127,7 +1193,7 @@ UserDir/layouts \end_inset will be added to the list of classes in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1144,7 +1210,7 @@ Settings If you get some updated documentation from LyX ftp site and cannot install it because you do not have sysadmin rights on your system, you can just copy the files in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1154,7 +1220,7 @@ UserDir/doc/ \end_inset and the items in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1181,7 +1247,7 @@ The configuration freedom of the local configuration directory may not suffice \begin_layout Standard Invoking LyX with the command line switch -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1197,7 +1263,7 @@ status collapsed instructs the program to read the configuration from that directory, and not from the default directory. (You can determine the default directory by running LyX without the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1213,7 +1279,7 @@ status collapsed exactly as you would for the default directory. These directories are completely independent (but read on). Note that setting the environment variable -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1228,7 +1294,7 @@ LYX_USERDIR_VER \begin_layout Standard Having several configurations also requires more maintenance: if you want to add a new layout to -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1245,7 +1311,7 @@ NewUserDir/layouts empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration. Take care with the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1256,7 +1322,7 @@ doc/ subdirectory, however, since it contains a file written by the configuration script (also accessible through -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1300,7 +1366,7 @@ name "sec:Formats" \begin_layout Standard The first step is to define your file formats if they are not already defined. To do so, open the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1312,7 +1378,7 @@ Preferences dialog. Under -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1323,19 +1389,18 @@ File formats \end_inset press the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -New\SpecialChar \ldots{} - +New \end_layout \end_inset button to define your new format. The -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1346,7 +1411,7 @@ Format field contains the name used to identify the format in the GUI. The -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1359,7 +1424,7 @@ Short Name You will also need to enter a file extension. These are all required. The optional -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1370,21 +1435,22 @@ Shortcut field is used to provide a keyboard shortcut on the menus. (For example, pressing -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -Alt-V D +Ctrl+D \end_layout \end_inset will -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -View\SpecialChar \menuseparator +Document\SpecialChar \menuseparator +View (Other Formats)\SpecialChar \menuseparator DVI \end_layout @@ -1395,7 +1461,7 @@ DVI \begin_layout Standard A Format can have a -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1405,7 +1471,7 @@ Viewer \end_inset and an -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1416,7 +1482,7 @@ Editor associated with it. For example, you might want to use -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1431,10 +1497,11 @@ Ghostview In defining this command, you can use the four variables listed in the next section. The viewer is launched when you view an image in LyX or use the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout +Document\SpecialChar \menuseparator View \end_layout @@ -1443,7 +1510,7 @@ View menu. The editor is for example launched when you right-click on an image and choose -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1457,21 +1524,52 @@ Edit externally \begin_layout Standard The -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -Document format +MIME \end_layout \end_inset - option tells LyX that a format is suitable for document export. - If this is set and if a suitable conversion route exists (see sec. -\begin_inset space \thinspace{} + type of a format is optional, but if it is specified, it must be unique + across all formats. + It is used to detect files of this format from the file contents. + For some important file formats there is no MIME type officially registered + with the +\begin_inset CommandInset href +LatexCommand href +name "IANA" +target "http://www.iana.org/assignments/media-types/" + \end_inset +. + Therefore LyX uses the extended list of MIME types as specified by +\begin_inset CommandInset href +LatexCommand href +name "freedesktop.org" +target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec" + +\end_inset + +. +\end_layout + +\begin_layout Standard +The +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +Document format +\end_layout + +\end_inset + option tells LyX that a format is suitable for document export. + If this is set and if a suitable conversion route exists (see \begin_inset CommandInset ref LatexCommand ref reference "sec:Converters" @@ -1479,7 +1577,7 @@ reference "sec:Converters" \end_inset ), the format will appear in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1491,10 +1589,11 @@ Export menu. The format will also appear in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout +Document\SpecialChar \menuseparator View \end_layout @@ -1502,7 +1601,7 @@ View menu if a viewer is specified for the format. Pure image formats, such as -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1513,7 +1612,7 @@ png , should not use this option. Formats that can both represent vector graphics and documents like -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1527,7 +1626,7 @@ pdf \begin_layout Standard The option -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1539,7 +1638,7 @@ Vector graphics format tells LyX that a format can contain vector graphics. This information is used to determine the target format of included graphics for -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1550,7 +1649,7 @@ pdflatex export. Included graphics may need to be converted to either -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1560,7 +1659,7 @@ pdf \end_inset , -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1570,7 +1669,7 @@ png \end_inset , or -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1580,7 +1679,7 @@ jpg \end_inset , since -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1591,7 +1690,7 @@ pdflatex cannot handle other image formats. If an included graphic is not already in -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1601,7 +1700,7 @@ pdf \end_inset , -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1611,7 +1710,7 @@ png \end_inset , or -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1621,7 +1720,7 @@ jpg \end_inset format, it is converted to -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1631,7 +1730,7 @@ pdf \end_inset if the vector format option is set, and otherwise to -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1672,7 +1771,7 @@ The definitions of the copiers may use four variables: \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1690,7 +1789,7 @@ g. \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1704,7 +1803,7 @@ status collapsed \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1718,7 +1817,7 @@ $$i \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1732,7 +1831,63 @@ $$o \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +$$b +\end_layout + +\end_inset + + The base name (without filename extension) in the LyX temporary directory +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +$$p +\end_layout + +\end_inset + + The full directory path of the LyX temporary directory +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +$$r +\end_layout + +\end_inset + + The full pathname to the original LyX file being processed +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +$$f +\end_layout + +\end_inset + + The filename (without any directory path) of the LyX file. +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1759,7 +1914,7 @@ include Copiers can be used to do almost anything with output files. For example, suppose you want generated pdf files to be copied to a special directory, -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1800,7 +1955,7 @@ cp $FROMFILE /home/you/pdf/$TOFILE \end_inset Save it in your local LyX directory—say, -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1811,7 +1966,7 @@ status collapsed —and make it executable, if you need to do so on your platform. Then, in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1822,7 +1977,7 @@ Preferences \end_inset dialog, select under -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1833,7 +1988,7 @@ File formats \end_inset the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1843,7 +1998,7 @@ PDF(pdflatex) \end_inset format—or one of the other pdf formats—and enter -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -1853,7 +2008,7 @@ pdfcopier.sh $$i $$o \end_inset into the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1870,7 +2025,7 @@ Copier Copiers are used by LyX in various of its own conversions. For example, if appropriate programs are found, LyX will automatically install copiers for the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1880,7 +2035,7 @@ HTML \end_inset and -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1928,7 +2083,7 @@ This copier can be customized. \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1942,7 +2097,7 @@ LyXconv \end_inset , so HTML generated from -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1952,7 +2107,7 @@ status collapsed \end_inset will end up in -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -1984,7 +2139,7 @@ name "sec:Converters" \begin_layout Standard You can define your own Converters to convert files between different formats. This is done in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2001,7 +2156,7 @@ Converters \begin_layout Standard To define a new converter, select the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2015,7 +2170,7 @@ format \end_inset and -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2030,7 +2185,7 @@ format from the drop-down lists, enter the command needed for the conversion, and then press the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2045,7 +2200,7 @@ Add \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2059,7 +2214,7 @@ $$s \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2073,7 +2228,7 @@ $$i \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2087,7 +2242,7 @@ $$o \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2105,7 +2260,7 @@ g., without the extension) \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2119,7 +2274,7 @@ $$p \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2129,12 +2284,26 @@ $$r \end_inset The path to the original input file (this is different from $$p when a - chain of converters is called). + chain of converters is called) +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +$$e +\end_layout + +\end_inset + + The iconv name for the encoding of the document. \end_layout \begin_layout Standard In the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2152,7 +2321,7 @@ Flag \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2167,7 +2336,7 @@ latex \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2177,7 +2346,7 @@ needaux \end_inset Needs the LaTeX -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2191,7 +2360,40 @@ status collapsed \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +nice +\end_layout + +\end_inset + + Needs a +\begin_inset Quotes eld +\end_inset + +nice +\begin_inset Quotes erd +\end_inset + + file from the backend, which in practice means a LaTeX file like the one + we would export, without +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +input@path +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2206,7 +2408,7 @@ xml \begin_layout Standard The following three flags are not really flags at all because they take an argument in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2228,7 +2430,7 @@ value \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2238,7 +2440,7 @@ parselog \end_inset If set, the converter's standard error will be redirected to a file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2248,7 +2450,7 @@ infile.out \end_inset , and the script given as argument will be run as: -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2259,7 +2461,7 @@ script < infile.out > infile.log . The argument may contain -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2273,7 +2475,7 @@ $$s \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2287,7 +2489,7 @@ resultdir LyX will not create this directory, and it does not copy anything into it, though it will copy this directory to the destination. The argument may contain -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2307,7 +2509,7 @@ Note that resultdir and usetempdir make no sense together. \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2317,7 +2519,7 @@ resultfile \end_inset Determines the output file name and may, contain -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2349,9 +2551,13 @@ You do not have to define converters for all formats between which you want choose the shortest possible chain. You can, though, still define multiple conversion methods between file formats. - For example, the standard LyX configuration provides three ways to convert - LaTeX to PDF: Directly, using -\begin_inset Flex CharStyle:MenuItem + For example, the standard LyX configuration provides five ways to convert + LaTeX to PDF: +\end_layout + +\begin_layout Enumerate +Directly, using +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2360,8 +2566,12 @@ pdflatex \end_inset -; via (DVI and) PostScript, using -\begin_inset Flex CharStyle:MenuItem + +\end_layout + +\begin_layout Enumerate +via (DVI and) PostScript, using +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2370,8 +2580,12 @@ ps2pdf \end_inset -; or via DVI, using -\begin_inset Flex CharStyle:MenuItem + +\end_layout + +\begin_layout Enumerate +via DVI, using +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2380,9 +2594,40 @@ dvipdfm \end_inset -. - To define such alternate chains, you must define multiple target `file - formats', as described in section + +\end_layout + +\begin_layout Enumerate +directly using +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +XeTeX +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +directly using +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +LuaTeX +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To define such alternate chains, you must define multiple target `file formats', + as described in \begin_inset CommandInset ref LatexCommand ref reference "sec:Formats" @@ -2391,7 +2636,7 @@ reference "sec:Formats" . For example, in the standard configuration, the formats named -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2400,66 +2645,136 @@ pdf \end_inset -, -\begin_inset Flex CharStyle:MenuItem + (for +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -pdf2 +ps2pdf \end_layout \end_inset -, and -\begin_inset Flex CharStyle:MenuItem +), +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -pdf3 +pdf2 \end_layout \end_inset - are defined, all of which share the extension -\begin_inset Flex CharStyle:MenuItem + (for +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -.pdf +pdflatex \end_layout \end_inset -, and which correspond to the conversion methods just mentioned. -\end_layout +), +\begin_inset Flex MenuItem +status collapsed -\begin_layout Chapter -Internationalizing LyX -\begin_inset CommandInset label -LatexCommand label -name "cha:Internationalizing-LyX" +\begin_layout Plain Layout +pdf3 +\end_layout \end_inset - -\end_layout - -\begin_layout Standard -LyX supports using a translated interface. - Last time we checked, LyX provided text in thirty languages. - The language of choice is called your -\emph on -locale -\emph default -. - (For further reading on locale settings, see also the documentation for - locale that comes with your operating system. - For Linux, the manual page for -\begin_inset Flex CharStyle:Code + (for +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -locale(5) +dvipdfm +\end_layout + +\end_inset + +), +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +pdf4 +\end_layout + +\end_inset + + (for +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +XeTeX +\end_layout + +\end_inset + +), and +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +pdf5 +\end_layout + +\end_inset + + (for +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +LuaTeX +\end_layout + +\end_inset + +) are defined, all of which share the extension +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +.pdf +\end_layout + +\end_inset + +, and which correspond to the conversion methods just mentioned. +\end_layout + +\begin_layout Chapter +Internationalizing LyX +\begin_inset CommandInset label +LatexCommand label +name "cha:Internationalizing-LyX" + +\end_inset + + +\end_layout + +\begin_layout Standard +LyX supports using a translated interface. + Last time we checked, LyX provided text in thirty languages. + The language of choice is called your +\emph on +locale +\emph default +. + (For further reading on locale settings, see also the documentation for + locale that comes with your operating system. + For Linux, the manual page for +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +locale(5) \end_layout \end_inset @@ -2501,7 +2816,7 @@ Translating the graphical user interface (text messages). \begin_layout Standard LyX uses the GNU -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2513,7 +2828,7 @@ gettext library to handle the internationalization of the interface. To have LyX speak your favorite language in all menus and dialogs, you need a -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2524,7 +2839,7 @@ po -file for that language. When this is available, you'll have to generate a -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2534,7 +2849,7 @@ mo \end_inset -file from it and install the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2546,7 +2861,7 @@ mo -file. The process of doing all of this is explained in the documentation for GNU -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2573,7 +2888,7 @@ Check out the LyX source code. \begin_inset CommandInset href LatexCommand href name "information on the web" -target "http://www.lyx.org/devel/cvs.php" +target "http://www.lyx.org/HowToUseSVN" \end_inset @@ -2582,7 +2897,7 @@ target "http://www.lyx.org/devel/cvs.php" \begin_layout Itemize Copy the file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2592,7 +2907,7 @@ lyx.pot \end_inset to the folder of the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2603,7 +2918,7 @@ status collapsed files. Then rename it to -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2614,7 +2929,7 @@ xx.po . (If -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2624,7 +2939,7 @@ lyx.pot \end_inset doesn't exist anywhere, it can be remade with the console command -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2639,7 +2954,7 @@ make lyx.pot \begin_layout Itemize Edit -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2669,7 +2984,7 @@ KBabel Emacs \family default contains a `mode' for editing -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2689,7 +3004,7 @@ po the words and phrases of the language. You should also fill also out the information at the beginning of the new -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2708,7 +3023,7 @@ If you are just doing this on your own, then: \begin_layout Itemize Generate -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2719,7 +3034,7 @@ xx.mo . This can be done with -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2733,7 +3048,7 @@ msgfmt -o xx.mo < xx.po \begin_layout Itemize Copy the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2748,7 +3063,7 @@ mo \series default xx, and under the name -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2766,7 +3081,7 @@ g. \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2782,7 +3097,7 @@ status collapsed \begin_layout Standard As said, however, it would be best if the new -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2805,7 +3120,7 @@ Ambiguous messages Sometimes it turns out that one English message needs to be translated into different messages in the target language. One example is the message -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2832,7 +3147,7 @@ to means. GNU -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2844,7 +3159,7 @@ gettext does not handle such ambiguous translations. Therefore you have to add some context information to the message: Instead of -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2854,7 +3169,7 @@ To \end_inset it becomes -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2864,7 +3179,7 @@ To[[as in 'From format x to format y']] \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2874,7 +3189,7 @@ To[[as in 'From page x to page y']]. \end_inset Now the two occurrences of -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2884,7 +3199,7 @@ To \end_inset are different for -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2919,7 +3234,7 @@ Translating the documentation. \begin_layout Standard The online documentation (in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -2943,7 +3258,7 @@ As of March 2008, at least some of the documents have been translated into and the locale is set accordingly, these will be used automagically by LyX. LyX looks for translated versions as -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2953,7 +3268,7 @@ LyXDir/doc/xx/DocName.lyx \end_inset , where -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -2966,7 +3281,7 @@ xx If there are no translated documents, the default English versions will be displayed. Note that the translated versions must have the same filenames ( -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3005,7 +3320,7 @@ Once you get to actually translating, here's a few hints for you that may \begin_layout Itemize Join the documentation team! There is information on how to do that in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3015,7 +3330,7 @@ Intro.lyx \end_inset ( -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -3044,7 +3359,7 @@ Make a copy of the document. This will be your working copy. You can use this as your personal translated help-file by placing it in your -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3128,7 +3443,7 @@ To define key-to-key or key-to-string translation, use this command: \end_layout \begin_layout Quotation -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3140,7 +3455,7 @@ kmap \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3154,7 +3469,7 @@ key \begin_layout Standard where -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3164,7 +3479,7 @@ key \end_inset is the key to be translated and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3178,7 +3493,7 @@ outstring \end_layout \begin_layout Quotation -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3190,7 +3505,7 @@ kmod \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3204,7 +3519,7 @@ key \begin_layout Standard where -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3214,7 +3529,7 @@ key \end_inset is a keyboard key and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3428,7 +3743,7 @@ Since in many international keyboards there are exceptions to what some \end_layout \begin_layout Quotation -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3448,7 +3763,7 @@ For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o \end_layout \begin_layout Quotation -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3475,7 +3790,7 @@ to make it work correctly. Oh, and about characters: backslash is escaped, so to enter it, you'll need double backslash. Also, quotes and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3486,7 +3801,7 @@ status collapsed have different meaning. -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3497,7 +3812,7 @@ status collapsed marks comments, quotes start and end LaTeX-style commands. To enter quote, you'll need to use -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3509,7 +3824,7 @@ status collapsed \end_inset , to enter -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3519,7 +3834,7 @@ status collapsed \end_inset , use -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3544,7 +3859,7 @@ More keywords will be supported in keymap configuration file in future, \end_layout \begin_layout Itemize -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3562,7 +3877,7 @@ kinclude filename \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3575,7 +3890,7 @@ include \end_layout \begin_layout Itemize -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3593,7 +3908,7 @@ kprog program \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3607,7 +3922,7 @@ define \begin_layout Standard Also, it should look into -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3617,7 +3932,7 @@ lyxrc \end_inset file for defaults, too (for example, a -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3665,7 +3980,7 @@ In doing the revisions on this document in March 2008, I did not look over \begin_layout Standard The next two sections describe the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3677,7 +3992,7 @@ status collapsed \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3701,7 +4016,7 @@ The .kmap File A \shape up . -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3713,7 +4028,7 @@ kmap file maps keystrokes to characters or strings. As the name suggests, it sets a keyboard mapping. The -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3727,7 +4042,7 @@ status collapsed file keywords \shape up -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3745,7 +4060,7 @@ kmap \shape default -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3761,19 +4076,19 @@ kmod \shape default -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout \shape up -ksmod +kxmod \end_layout \end_inset , and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3789,7 +4104,7 @@ kcomb \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -3881,7 +4196,7 @@ must be escaped with a preceding backslash ( \begin_layout Standard An example of a -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -3893,7 +4208,7 @@ kmap \end_inset statement to cause the symbol -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -3905,7 +4220,7 @@ status collapsed \end_inset to be output for the keystroke -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -3927,7 +4242,7 @@ kmap & / \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4057,7 +4372,7 @@ followed by the other, not allowed key, as output. \family default Note that a -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4079,7 +4394,7 @@ char \family default \emph default -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4124,11 +4439,11 @@ kmod ' acute aeiouAEIOU \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -ksmod +kxmod \end_layout \end_inset @@ -4190,7 +4505,7 @@ must have been assigned a keystroke with a previous \shape default -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4272,7 +4587,7 @@ result the \shape default -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4309,7 +4624,7 @@ accent_key is the first arg \family default ument of the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4347,7 +4662,7 @@ i}" \begin_layout Labeling \labelwidthstring 00.00.0000 -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4426,7 +4741,7 @@ accent2 must have be \family default en set with a -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4459,7 +4774,7 @@ point in the \begin_layout Standard Consider this example from the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4485,7 +4800,7 @@ kcomb acute umlaut iyIY \begin_layout Standard This allows you to press -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4497,7 +4812,7 @@ status collapsed \end_inset and get the effect of -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4520,7 +4835,7 @@ A backspace \family default \shape default in this case cancels the last dead key, so if you press -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4532,7 +4847,7 @@ status collapsed \end_inset you get -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4554,7 +4869,7 @@ The .cdef File \begin_layout Standard After the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4566,7 +4881,7 @@ status collapsed \end_inset mapping is performed, a -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4582,7 +4897,7 @@ f file maps the strings that the symbols generate to characters in the current font. The LyX distribution currently includes at least the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4594,7 +4909,7 @@ iso8859-1.cdef \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4610,7 +4925,7 @@ iso8859-2.cdef \begin_layout Standard In general the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4639,7 +4954,7 @@ char_index_in_set \begin_layout Standard For example, in order to map -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4666,7 +4981,7 @@ status collapsed \begin_layout Standard with -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4678,7 +4993,7 @@ status collapsed \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4701,7 +5016,7 @@ string \family default the same character can apply to more than one string. In the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4772,7 +5087,7 @@ Suppose you happen to need the circumflex character, . You could bind the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4786,7 +5101,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4796,7 +5111,7 @@ Shift-6 \end_inset ] to the LyX command -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4806,7 +5121,7 @@ accent-circumflex \end_inset in your -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -4817,7 +5132,7 @@ lyxrc file. Now, whenever you type the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4833,7 +5148,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4860,7 +5175,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4878,7 +5193,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4893,7 +5208,7 @@ t never takes a circumflex accent. Hitting -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4906,7 +5221,7 @@ Space Please note this last point! If you bind a key to a dead-key, you'll need to rebind the character on that key to yet another key. Binding the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4920,7 +5235,7 @@ status collapsed \begin_layout Standard One common way to bind dead-keys is to use -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4930,7 +5245,7 @@ Meta- \end_inset , -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4940,7 +5255,7 @@ Ctrl- \end_inset , and -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4954,7 +5269,7 @@ Shift- \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4972,7 +5287,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -4990,7 +5305,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5005,7 +5320,7 @@ status collapsed . Another way involves using -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5015,7 +5330,7 @@ xmodmap \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5025,7 +5340,7 @@ xkeycaps \end_inset to set up the special -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5036,7 +5351,7 @@ Mode_Switch key. The -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5046,7 +5361,7 @@ Mode_Switch \end_inset acts in some ways just like -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5058,7 +5373,7 @@ Shift and permits you to bind keys to accented characters. You can also turn keys into dead-keys by binding them to something like -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5077,7 +5392,7 @@ Note from John Weiss \noun default : This is exactly what I do in my -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5087,7 +5402,7 @@ status collapsed \end_inset and my -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5098,7 +5413,7 @@ status collapsed files. I have my -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5112,7 +5427,7 @@ Lock \end_inset key set up as -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5126,7 +5441,7 @@ Mode_Shift \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5140,7 +5455,7 @@ usldead_* \end_inset symbolic keys bound such things as -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5154,7 +5469,7 @@ Lock-^ \end_inset and -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5174,7 +5489,7 @@ Lock-~ \end_inset You can make just about anything into the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5184,7 +5499,7 @@ Mode_Switch \end_inset key: One of the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5195,7 +5510,7 @@ Ctrl- keys, a spare function key, etc. As for the LyX commands that produce accents, check the entry for -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5219,7 +5534,7 @@ Saving your Language Configuration \begin_layout Standard You can edit your preferences so that your desired language environment is automatically configured when LyX starts up, via the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5241,7 +5556,7 @@ name "cha:Installing-New-Document" \end_inset -\begin_inset OptArg +\begin_inset Argument 1 status collapsed \begin_layout Plain Layout @@ -5297,7 +5612,7 @@ hardcoded \end_inset Rather, that information, even for the standard classes like -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5317,7 +5632,7 @@ You can think of the layout file for a given document class as a translation certain sorts of insets, etc---and the corresponding LaTeX, DocBook, or XHTML constructs. Almost everything LyX knows about -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5327,7 +5642,7 @@ article.cls \end_inset , for example, is contained in the file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5340,7 +5655,7 @@ article.layout For this reason, anyone intending to write layout files should plan to study the existing files. A good place to start is with -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5350,7 +5665,7 @@ stdsections.inc \end_inset , which is included in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5360,7 +5675,7 @@ article.layout \end_inset , -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5371,7 +5686,7 @@ book.layout , and many of the other layout files for document classes. This file is where sections and the like are defined: -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5384,7 +5699,7 @@ stdsections.inc etc, styles can be translated into corresponding LaTeX, DocBook, and XHTML commands and tags. The -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5394,7 +5709,7 @@ article.layout \end_inset file basically just includes several of these -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5443,7 +5758,7 @@ is be controlled separately. See \begin_inset CommandInset ref -LatexCommand prettyref +LatexCommand ref reference "sec:Tags-for-XHTML" \end_inset @@ -5466,20 +5781,23 @@ Some installations may not include a LaTeX package or class file that you \begin_inset Quotes eld \end_inset -Browse Packages +Package +\begin_inset space ~ +\end_inset + +Manager \begin_inset Quotes erd \end_inset to get a list of available packages. - To install one, right click on it or use the toolbar button to install - it. - + To install one of them, right click on it or use the corresponding toolbar + button. \end_layout \begin_layout Standard -If your LaTeX distribution doesn't provide such a `package manager', or - if the file is not available from your distribution, then you can follow - these steps to install it manually. +If your LaTeX distribution does not provide such a `package manager', or + if the package is not available from your distribution, then follow these + steps to install it manually: \end_layout \begin_layout Enumerate @@ -5495,14 +5813,54 @@ target "http://www.ctan.org/" \end_layout \begin_layout Enumerate -You can install the package in several different places. - If you want it to be available for all users on your system, then you should - install it in your `local' TeX tree; if you want (or need) it to be available - just for you, then you can install it in your own `user' TeX tree. +If the package contains a file with the ending +\begin_inset Quotes eld +\end_inset + + +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +.ins +\end_layout + +\end_inset + + +\begin_inset Quotes erd +\end_inset + + (is the case for FoilTeX) then open a console, change to the folder of + this file and execute the command +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +latex foiltex.ins +\end_layout + +\end_inset + +. + You have now unpacked the package and have all files to install it. + Most LaTeX-packages are not packed and you can skip this step. +\end_layout + +\begin_layout Enumerate +Now you need to decide if the package should be available for all users + or only for you. +\end_layout + +\begin_deeper +\begin_layout Enumerate +On *nix systems (Linux, OSX, etc.), if you want the new package to be available + for all users on your system, then install it in your `local' TeX tree, + otherwise install it in your own `user' TeX tree. Where these trees should be created, if they do not already exist, depends - upon the details of your system. - To find out where they are, look in the file -\begin_inset Flex CharStyle:Code + on your system. + To find this out, look in the file +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5516,8 +5874,8 @@ texmf.cnf status collapsed \begin_layout Plain Layout -This usually lives in the directory -\begin_inset Flex CharStyle:Code +This is usually in the directory +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5526,8 +5884,8 @@ $TEXMF/web2c \end_inset -, though you can run -\begin_inset Flex CharStyle:Code +, though you can execute the command +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5542,7 +5900,7 @@ kpsewhich texmf.cnf \end_inset The location of the `local' TeX tree is defined by the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5552,19 +5910,18 @@ TEXMFLOCAL \end_inset variable; this is usually somewhere like -\begin_inset Flex URL +\begin_inset Flex Code status collapsed \begin_layout Plain Layout - -/usr/local/share/texmf/ +/usr/local/share/texmf \end_layout \end_inset . The location of the `user' TeX tree is defined by -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5574,280 +5931,338 @@ TEXMFHOME \end_inset and is commonly -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -$HOME/texmf/ +$HOME/texmf \end_layout \end_inset . - (If these variables are not predefined, you can define them.) You'll probably - need root permissions to create or modify the `local' tree, but your `user' - tree shouldn't have such limitations. + (If these variables are not predefined, you have to define them.) You'll + probably need root permissions to create or modify the `local' tree, but + not for your `user' tree. +\begin_inset Newline newline +\end_inset + +In general, it is recommended to install in the user tree because your user + will not be modified or even overwritten when you upgrade your system. + It will typically also be backed up together with everything else when + you backup your home directory (which, of course, you do on a regular basis). \end_layout \begin_layout Enumerate -Make sure -\begin_inset Flex CharStyle:Code +On Windows, if you want the new package to be available for all users on + your system, change to the folder where LaTeX is installed and then change + to the subfolder +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -TEXMF +~ +\backslash +tex +\backslash +latex \end_layout \end_inset - includes the -\begin_inset Flex CharStyle:Code +. + (For MiKTeX, this would be by default the folder +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -TEXMFLOCAL +~: +\backslash +Programs +\backslash +MiKTeX +\backslash +tex +\backslash +latex \end_layout \end_inset - and -\begin_inset Flex CharStyle:Code +.) +\begin_inset Foot +status open + +\begin_layout Plain Layout +Note that this will be the correct path only on English installations. + On a German one, it would be +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -TEXMFHOME +~: +\backslash +Programme +\backslash +MiKTeX +\backslash +tex +\backslash +latex \end_layout \end_inset - variables; e. -\begin_inset space \thinspace{} -\end_inset +, and similarly for other languages. +\end_layout -g. -\begin_inset Newline newline \end_inset - -\begin_inset Flex CharStyle:Code + Create there a new folder +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -TEXMF = {$TEXMFHOME,!!$TEXMFLOCAL,!!$TEXMFMAIN} +foiltex \end_layout \end_inset + and copy all files of the package into it. + +\begin_inset Newline newline +\end_inset + +If the package should only available for you or you don't have admin permissions +, do the same, but in the local LaTeX folder. + E. +\begin_inset space \thinspace{} +\end_inset + +g., for MiKTeX +\begin_inset space ~ +\end_inset +2.8 under Windows XP, this would be the folder: \begin_inset Newline newline \end_inset -It probably does. -\end_layout -\begin_layout Enumerate -Your local and user trees -\emph on -must -\emph default - have the same sort of directory structure as your main existing -\begin_inset Flex CharStyle:Code +\family sans + +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -texmf +~: +\backslash +Documents and Settings +\backslash + +\backslash +Application Data +\backslash + \end_layout \end_inset - directory, which will be found at -\begin_inset Flex CharStyle:Code -status collapsed + +\begin_inset Newline newline +\end_inset + + +\family default + +\begin_inset Phantom HPhantom +status open \begin_layout Plain Layout -TEXMFMAIN + +\family sans +~: +\backslash + \end_layout \end_inset - (commonly, -\begin_inset Flex CharStyle:Code + +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -/usr/share/texmf/ +MiKTeX +\backslash +2.8 +\backslash +tex +\backslash +latex \end_layout \end_inset -.) For example, latex packages should go under -\begin_inset Flex CharStyle:Code -status collapsed -\begin_layout Plain Layout -$TEXMFLOCAL/tex/latex/ -\end_layout +\begin_inset Newline newline +\end_inset +On Vista, it would be: +\begin_inset Newline newline \end_inset - or -\begin_inset Flex CharStyle:Code + +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -$TEXMFHOME/tex/latex/ +~: +\backslash +Users +\backslash + +\backslash +AppData +\backslash +Roaming +\backslash +2.8 +\backslash +MiKTeX +\backslash +tex +\backslash +latex \end_layout \end_inset -. - If you do not put them here, they probably will not work. + +\end_layout + +\end_deeper +\begin_layout Enumerate +Now one only need to tell LaTeX that there are new files. + This depends on the used LaTeX-Distribution: \end_layout +\begin_deeper \begin_layout Enumerate -Once your tree is properly set up, you can install the package into an appropria -te location. - If you are lucky, your package will have been provided as a so-called `TDS' - (TeX Directory Structure) zip file. - To install it, you want to unzip it from the top of your tree. - So, for example, you can copy the file -\begin_inset Flex CharStyle:Code +For TeXLive execute the command +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -newpkg.zip +texhash \end_layout \end_inset - to -\begin_inset Flex CharStyle:Code -status collapsed - -\begin_layout Plain Layout -/home/yourname/texmf/ + from a console. + If you installed the package for all users, then you will probably need + to have root permissions for that. \end_layout +\begin_layout Enumerate +For MiKTeX, if you have installed the package for all users, start the program + +\begin_inset Quotes eld \end_inset - and then, from inside that directory, just run: -\begin_inset Flex CharStyle:Code -status collapsed +Settings +\begin_inset space ~ +\end_inset -\begin_layout Plain Layout -unzip newpkg.zip -\end_layout +(Admin) +\begin_inset Quotes erd +\end_inset + + and press the button marked +\begin_inset Quotes eld +\end_inset +Refresh FNDB +\begin_inset Quotes erd \end_inset . - This will extract the needed files and copy them where they need to be. -\begin_inset Newline newline + Otherwise start the program +\begin_inset Quotes eld \end_inset -If you do not have a TDS file, then you have to do this manually. - For example, you might install the FoilTeX files into -\begin_inset Flex URL +Settings +\begin_inset Quotes erd +\end_inset + + and do the same. +\end_layout + +\end_deeper +\begin_layout Enumerate +Finally, you need to tell LyX that there are new packages available. + So, in LyX, use the menu +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout +Tools +\family sans +\SpecialChar \menuseparator +Reconfigure +\end_layout -$TEXMFLOCAL/tex/latex/contrib/foiltex +\end_inset + + and then restart LyX. \end_layout +\begin_layout Standard +Now the package is installed. + In our example, the document class +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +Slides +\begin_inset space ~ \end_inset -. - Why there? The CTAN download directories are themselves organized much - like a TeX tree, and it isn't a bad idea to follow its structure when you - install your own files. - FoilTeX, as it happens, is found at -\begin_inset Flex URL +(FoilTe +\begin_inset ERT status collapsed \begin_layout Plain Layout -http://ctan.org/texarchive/macros/latex/contrib/foiltex/ +{} \end_layout \end_inset -. - +x) \end_layout -\begin_layout Enumerate -Finally, you must update the database TeX uses to find files. - On MiKTeX, this is done by pressing the button -\family sans -Refresh -\begin_inset space ~ \end_inset -FNDB -\family default - that you find in MiKTeX's -\begin_inset Quotes eld -\end_inset - -Settings -\begin_inset Quotes erd -\end_inset - - program. - -\begin_inset Flex CharStyle:Code + will now be available under +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout -$TEXMFLOCAL/tex/latex/ +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Document Class \end_layout \end_inset . - Under TeXLive and the like, you should run -\begin_inset Flex CharStyle:Code -status collapsed - -\begin_layout Plain Layout -texhash -\end_layout - -\end_inset - - from a terminal, with root permissions if necessary. \end_layout \begin_layout Standard -Your package is now installed and available to LaTeX. - You can verify this from a terminal by typing ` -\begin_inset Flex CharStyle:Code -status collapsed - -\begin_layout Plain Layout -kpsewhich yourfile.ext -\end_layout - -\end_inset - -'. - To make LyX aware of it, however, you will need to reconfigure ( -\begin_inset Flex CharStyle:MenuItem -status collapsed - -\begin_layout Plain Layout -Tools\SpecialChar \menuseparator -Reconfigure -\end_layout - -\end_inset - -) and then restart LyX. - If the new package was a document class, such as FoilTeX again, you will - now see it available under -\begin_inset Flex CharStyle:MenuItem +If you would like to use a LaTeX document class that is not even listed + in the menu +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -5858,23 +6273,7 @@ Document Class \end_inset -, in this case as -\begin_inset Flex CharStyle:MenuItem -status collapsed - -\begin_layout Plain Layout -slides (FoilTeX) -\end_layout - -\end_inset - -. -\end_layout - -\begin_layout Standard -What if there isn't a layout file is available for your new document class? - Then, unfortunately, LyX will know nothing about it until you create a - layout file yourself (or get someone else to do it). +, then you need to create a `layout' file for it. That is the topic of the next section. \end_layout @@ -5922,7 +6321,7 @@ status collapsed \begin_layout Plain Layout Note that LyX is licensed under the General Public License, so any material - that is contribued to LyX must be similarly licensed. + that is contributed to LyX must be similarly licensed. \end_layout \end_inset @@ -5945,7 +6344,7 @@ name "sub:Layout-modules" We have spoken to this point about `layout files'. But there are different sorts of files that contain layout information. Layout files, strictly so called, have the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5955,13 +6354,12 @@ status collapsed \end_inset extension and provide LyX with information about document classes. - As of LyX 1.6, however, layout information can also be contained in layout - + Since LyX 1.6 layout information can also be contained in layout \emph on modules \emph default , which have the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5973,7 +6371,7 @@ status collapsed extension. Modules are to LaTeX packages much as layouts are to LaTeX classes, and some modules—such as the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -5982,14 +6380,14 @@ endnotes \end_inset - module—specifcally provide support for one package. + module—specifically provide support for one package. In a sense, layout modules are similar to included \begin_inset Foot status collapsed \begin_layout Plain Layout These can have any extension, but by convention have the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6004,7 +6402,7 @@ status collapsed \end_inset files—files like -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6016,7 +6414,7 @@ stdsections.inc —in that modules are not specific to a given document class but may be used with many different classes. The difference is that using an included file with -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6027,7 +6425,7 @@ article.cls requires editing that file. Modules, by contrast, are selected in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6049,11 +6447,11 @@ Building modules is the easiest way to get started with layout editing, \begin_layout Standard After creating a new module and copying it to the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -layout/ +layouts/ \end_layout \end_inset @@ -6062,7 +6460,7 @@ layout/ to appear in the menu. However, changes you make to the module will be seen immediately, if you open -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6096,9 +6494,101 @@ usly working on actual documents syntax errors and the like in your module file could cause strange behavior. \end_layout +\begin_layout Subsubsection +Local Layout +\end_layout + +\begin_layout Standard +Modules are to LyX as packages are to LaTeX. + Sometimes, however, you find yourself wanting a specific inset or character + style just for one document and writing a module that will also be available + to other documents makes little sense. + What you need is LyX's +\begin_inset Quotes eld +\end_inset + +Local Layout +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\begin_layout Standard +You will find it under +\family sans +Document\SpecialChar \menuseparator +Settings\SpecialChar \menuseparator +Local Layout +\family default +. + The large text box allows you to enter anything that you might enter in + a layout file or module. + You can think of a document's local layout, in fact, as a module that belongs + just to it. + So, in particular, you must enter a +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +Format +\end_layout + +\end_inset + + tag. + Any format is acceptable, but one would normally use the format current + at the time. + (In LyX 2.1, the current layout format is 48.) You should be aware that local + layout is not supported by versions of LyX prior to 1.6, so you should not + use it if you want to be able to export your document to LyX 1.5 or earlier + (without, that is, losing the local layout information). + If you wish to be able to export to 1.6---local layout is supported in 1.6, + though there is no UI for it---then you should use format 11 and, of course, + use only layout constructs that were available in LyX 1.6. +\end_layout + +\begin_layout Standard +When you have entered something in the +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +Local Layout +\end_layout + +\end_inset + + pane, LyX will enable the +\begin_inset Quotes eld +\end_inset + +Validate +\begin_inset Quotes erd +\end_inset + + button at the bottom. + Clicking this button will cause LyX to determine whether what you have + entered is valid layout information for the chosen format. + LyX will report the result but, unfortunately, will not tell you what errors + there might have been. + These will be written to the terminal, however, if LyX is started from + a terminal. + You will not be permitted to save your local layout until you have entered + something valid. +\end_layout + +\begin_layout Standard +The warnings at the end of the previous section apply here, too. + Do not play with local layout while you are actually working, especially + if you have not saved your document. + That said, using local layout with a test document can be a very convenient + way to try out layout ideas, or even to start developing a module. +\end_layout + \begin_layout Subsection Layout for -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6112,27 +6602,27 @@ status collapsed \begin_layout Standard There are two situations you are likely to encounter when wanting to support - a new LaTeX document class, involving LaTeX2e class ( -\begin_inset Flex CharStyle:Code + a new LaTeX document class, involving style ( +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -.cls +.sty \end_layout \end_inset -) and style ( -\begin_inset Flex CharStyle:Code +) files and LaTeX2e class ( +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -.sty +.cls \end_layout \end_inset -) files. +) . Supporting a style file is usually fairly easy. Supporting a new class file is a bit harder. We'll discuss the former in this section and the latter in the next. @@ -6146,7 +6636,7 @@ The easier case is the one in which your new document class is provided document class. For the sake of the example, we'll assume that the style file is called -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6156,7 +6646,7 @@ myclass.sty \end_inset and that it is meant to be used with -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6178,7 +6668,7 @@ status collapsed Of course, which directory is your local directory will vary by platform, and LyX allows you to specify your local directory on startup, too, using the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6201,7 +6691,7 @@ cp report.layout ~/.lyx/layouts/myclass.layout \begin_layout Standard Then edit -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6253,7 +6743,7 @@ near the top of the file. \begin_layout Standard Start LyX and select -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6266,7 +6756,7 @@ Reconfigure . Then restart LyX and try creating a new document. You should see " -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6276,7 +6766,7 @@ report (myclass) \end_inset " as a document class option in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6289,7 +6779,7 @@ Settings dialog. It is likely that some of the sectioning commands and such in your new class will work differently from how they worked in the base class— -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6301,7 +6791,7 @@ report in this example—so you can fiddle around with the settings for the different sections if you wish. The layout information for sections is contained in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6313,7 +6803,7 @@ stdsections.inc , but you do not need to copy and change this file. Instead, you can simply add your changes to your layout file, after the line -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6323,7 +6813,7 @@ Input stdclass.inc \end_inset , which itself includes -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6379,7 +6869,7 @@ reference "sec:TextClass" \begin_layout Standard If -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6409,7 +6899,7 @@ DeclareLyXModule{My Package} \end_layout \begin_layout LyX-Code -#DescriptionEnd +#DescriptionEnd \begin_inset Newline newline \end_inset @@ -6417,7 +6907,7 @@ DeclareLyXModule{My Package} \end_layout \begin_layout LyX-Code -Format 21 +Format 35 \begin_inset Newline newline \end_inset @@ -6453,7 +6943,7 @@ reference "sec:TextClass" \begin_layout Subsection Layout for -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6469,7 +6959,7 @@ status collapsed There are two possibilities here. One is that the class file is itself based upon an existing document class. For example, many thesis classes are based upon -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6492,7 +6982,7 @@ LoadClass{book} in the file. If so, then you may proceed largely as in the previous section, though the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6503,7 +6993,7 @@ DeclareLaTeXClass line will be different. If your new class is -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6513,7 +7003,7 @@ thesis \end_inset and it is based upon -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6528,7 +7018,7 @@ status collapsed \begin_layout Plain Layout And it will be easiest if you save the file to -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6601,7 +7091,7 @@ Templates are created just like usual documents: using LyX. for such parameters. For that reason, the designer of a template should remove the corresponding commands like -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6613,7 +7103,7 @@ font_roman \end_inset or -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6626,7 +7116,7 @@ papersize from the template LyX file. This can be done with any simple text-editor, for example -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6636,7 +7126,7 @@ vi \end_inset or -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6646,12 +7136,11 @@ notepad \end_inset . - \end_layout \begin_layout Standard Put the edited template files you create in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6661,7 +7150,7 @@ UserDir/templates/ \end_inset , copy the ones you use from the global template directory in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6671,7 +7160,7 @@ LyXDir/templates/ \end_inset to the same place, and redefine the template path in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6688,7 +7177,7 @@ Paths \begin_layout Standard Note, by the way, that there is a template which has a particular meaning: -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6699,7 +7188,7 @@ defaults.lyx . This template is loaded every time you create a new document with -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6712,7 +7201,7 @@ New in order to provide useful defaults. To create this template from inside LyX, all you have to do is to open a document with the correct settings, and use the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6731,9 +7220,9 @@ Upgrading old layout files \begin_layout Standard The format of layout files changes with each LyX release, so old layout files need to be converted to the new format. - This process has been automated since LyX 1.4: If LyX reads a layout file - in an older format, it automatically calls the script -\begin_inset Flex CharStyle:Code + If LyX reads a layout file in an older format, it automatically calls the + script +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6749,17 +7238,51 @@ layout2layout.py To do this, you can call the converter manually: \end_layout -\begin_layout LyX-Code -mv myclass.layout myclass.old +\begin_layout Enumerate +rename the file +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +myclass.layout \end_layout -\begin_layout LyX-Code +\end_inset + + to +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +myclass.old +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +Call the command +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout python LyXDir/scripts/layout2layout.py myclass.old myclass.layout \end_layout -\begin_layout Standard -You need to replace -\begin_inset Flex CharStyle:Code +\end_inset + + +\begin_inset Newline newline +\end_inset + +where +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6768,7 +7291,7 @@ LyXDir \end_inset - with the name of your LyX system directory, of course. + is the name of your LyX system directory. \end_layout \begin_layout Standard @@ -6787,20 +7310,18 @@ The layout file format \end_layout \begin_layout Standard -When it's finally time to get your hands dirty and create or edit your own - layout file, the following sections describe what you're up against. - Our advice is to go slowly, save and test often, listen to soothing music, - and enjoy one or two of your favorite adult beverages; more if you are - getting particularly stuck. - It's really not that hard, except that the multitude of options can become - overwhelming if you try to do too much in one sitting. - Go have another adult beverage, just for good measure. +The following sections describe how layout files are structured and written. + Our advice is to go slowly, save and test often. + It is really not that hard, except that the multitude of options can become + overwhelming, especially if you try to check out too many at once. + It becomes easier if you use existing layouts of LyX as examples/reference + or if you modify an existing layout to your needs. \end_layout \begin_layout Standard Note that all the tags used in layout files are case-insensitive. This means that -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6810,7 +7331,7 @@ Style \end_inset , -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6820,7 +7341,7 @@ style \end_inset and -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6830,10 +7351,9 @@ StYlE \end_inset are really the same tag. - The possible values are printed in brackets after the feature's name. - The default value if a feature isn't specified inside a text class-description - is typeset -\begin_inset Flex CharStyle:Code + The possible arguments are printed in brackets after the tag's name. + The default argument is typeset +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6862,7 +7382,7 @@ float \end_inset , the default is shown like this: -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6877,12 +7397,12 @@ default \end_layout \begin_layout Subsection -The document class declaration +The document class declaration and classification \end_layout \begin_layout Standard Lines in a layout file which begin with -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6894,7 +7414,7 @@ status collapsed are comments. There is one exception to this rule. All -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6903,7 +7423,7 @@ status collapsed \end_inset - files should begin with a line like: + files should begin with lines like: \end_layout \begin_layout LyX-Code @@ -6917,13 +7437,36 @@ status collapsed \size small # \backslash -DeclareLaTeXClass{article} +DeclareLaT +\size default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\size small +eXClass{Article (Standard Class)} +\end_layout + +\begin_layout LyX-Code + +\size small +# +\backslash +DeclareCategory{Articles} \end_layout \begin_layout Standard -The second line is used when you (re)configure LyX. +The second and third lines are used when you (re)configure LyX. The layout file is read by the LaTeX script -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6933,7 +7476,7 @@ chkconfig.ltx \end_inset , in a special mode where -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6943,10 +7486,11 @@ status collapsed \end_inset is ignored. - The first line is just a LaTeX comment, and the second one contains the - declaration of the text class. + The first line is just a LaTeX comment, the second one contains the mandatory + declaration of the text class and the third line contains the optional + classification of the class. If these lines appear in a file named -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6956,7 +7500,7 @@ article.layout \end_inset , then they define a text class of name -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6966,7 +7510,7 @@ article \end_inset (the name of the layout file) which uses the LaTeX document class -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -6980,12 +7524,12 @@ article.cls \begin_inset Quotes eld \end_inset -article +Article (Standard Class) \begin_inset Quotes erd \end_inset that appears above is used as a description of the text class in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -6996,11 +7540,89 @@ Settings \end_inset dialog. + The category ( +\begin_inset Quotes eld +\end_inset + +Articles +\begin_inset Quotes erd +\end_inset + + in the example) is also used in the +\begin_inset Flex MenuItem +status collapsed + +\begin_layout Plain Layout +Document\SpecialChar \menuseparator +Settings +\end_layout + +\end_inset + + dialog: the text classes are grouped by these categories (which are usually + genres, so typical categories are +\begin_inset Quotes eld +\end_inset + +Articles +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +Books +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +Reports +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +Letters +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +Presentations +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +Curricula Vitae +\begin_inset Quotes erd +\end_inset + + etc.). + If no category has been declared, the class will be put in the +\begin_inset Quotes eld +\end_inset + +Uncategorized +\begin_inset Quotes erd +\end_inset + + group. \end_layout \begin_layout Standard Let's assume that you wrote your own text class that uses the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7011,7 +7633,7 @@ article.cls document class, but where you changed the appearance of the section headings. If you put it in a file -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7034,12 +7656,35 @@ myarticle.layout \size small # \backslash -DeclareLaTeXClass[article]{article (with my own headings)} +DeclareLaT +\size default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\size small +eXClass[article]{Article (with My Own Headings)} +\end_layout + +\begin_layout LyX-Code + +\size small +# +\backslash +DeclareCategory{Articles} \end_layout \begin_layout Standard This declares a text class -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7049,7 +7694,7 @@ myarticle \end_inset , associated with the LaTeX document class -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7062,7 +7707,7 @@ article.cls \begin_inset Quotes eld \end_inset -article (with my own headings) +Article (with My Own Headings) \begin_inset Quotes erd \end_inset @@ -7081,23 +7726,46 @@ article (with my own headings) \size small # \backslash -DeclareLaTeXClass[article,foo.sty]{article (with my own headings)} -\end_layout +DeclareLaT +\size default -\begin_layout Standard -This indicates that your text class uses the -\begin_inset Flex CharStyle:Code +\begin_inset ERT status collapsed \begin_layout Plain Layout -foo.sty + +{} \end_layout \end_inset - package. - Finally, it is also possible to declare classes for DocBook code. - Typical declarations will look like: + +\size small +eXClass[article,foo.sty]{Article (with My Own Headings)} +\end_layout + +\begin_layout LyX-Code + +\size small +# +\backslash +DeclareCategory{Articles} +\end_layout + +\begin_layout Standard +This indicates that your text class uses the +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +foo.sty +\end_layout + +\end_inset + + package. + Finally, it is also possible to declare classes for DocBook code. + Typical declarations will look like: \end_layout \begin_layout LyX-Code @@ -7111,7 +7779,15 @@ foo.sty \size small # \backslash -DeclareDocBookClass[article]{SGML (DocBook article)} +DeclareDocBookClass[article]{SGML (DocBook Article)} +\end_layout + +\begin_layout LyX-Code + +\size small +# +\backslash +DeclareCategory{Articles (DocBook)} \end_layout \begin_layout Standard @@ -7128,20 +7804,43 @@ So, to be as explicit as possible, the form of the layout declaration is: \size small # \backslash -DeclareLaTeXClass[class,package.sty]{layout description} +DeclareLaT +\size default + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\size small +eXClass[class,package.sty]{layout description} +\end_layout + +\begin_layout LyX-Code + +\size small +# +\backslash +DeclareCategory{category} \end_layout \begin_layout Standard The class need only be specified if the name of the LaTeX class file and - the name of the layout file are different; if the name of the class file - is not specified, then LyX will simply assume that it is the same as the - name of the layout file. + the name of the layout file are different or if there are packages to load. + If the name of the class file is not specified, then LyX will simply assume + that it is the same as the name of the layout file. \end_layout \begin_layout Standard When the text class has been modified to your taste, all you have to do is to copy it either to -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7151,7 +7850,7 @@ LyXDir/layouts/ \end_inset or to -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7161,7 +7860,7 @@ UserDir/layouts \end_inset , run -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -7192,7 +7891,7 @@ In versions of LyX prior to 1.6, this was not true. You can force a reload of the current layout by using the LyX function -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -7215,7 +7914,7 @@ r. Warning \emph default : -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -7281,18 +7980,30 @@ A module must begin with a line like the following: \begin_layout LyX-Code # \backslash -DeclareLyXModule[endnotes.sty]{Endnotes} +DeclareL +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + +yXModule[endnotes.sty]{Endnotes} \end_layout \begin_layout Standard The mandatory argument, in curly brackets, is the name of the module, as it should appear in -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout Document\SpecialChar \menuseparator -Settings +Settings\SpecialChar \menuseparator +Modules \end_layout \end_inset @@ -7300,20 +8011,8 @@ Settings . The argument in square brackets is optional: It declares any LaTeX packages on which the module depends. - Please note that only packages about which LyX knows should be listed in - the square brackets. -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -The list of such packages is documented only in the source code. -\end_layout - -\end_inset - - LyX will not check for arbitrary packages. It is also possible to use the form -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -7324,7 +8023,7 @@ from->to as an optional argument, which declares that the module can only be used when there exists a conversion chain between the formats ` -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7334,7 +8033,7 @@ from \end_inset ' and ` -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7347,7 +8046,19 @@ to \end_layout \begin_layout Standard -The module declaration should then be followed by lines like the following: +The module declaration should then be followed by lines like the following +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Preferably in English if the module should be published with LyX. + This description will appear in the list of messages to be translated and + will be thus translated with the next interface update. +\end_layout + +\end_inset + +: \end_layout \begin_layout LyX-Code @@ -7384,19 +8095,20 @@ theendnotes in TeX code where you \begin_layout Standard The description is used in -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout Document\SpecialChar \menuseparator -Settings +Settings\SpecialChar \menuseparator +Modules \end_layout \end_inset to provide the user with information about what the module does. The -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7407,7 +8119,7 @@ Requires line is used to identify other modules with which this one must be used; the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7429,12 +8141,8 @@ at least one no \emph default excluded module may be used. - Note that modules are identified here by their -\emph on -filenames -\emph default - without the -\begin_inset Flex CharStyle:Code + Note that modules are identified here by their filenames without the +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7445,7 +8153,7 @@ status collapsed extension. So -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7455,7 +8163,7 @@ somemodule \end_inset is really -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7468,7 +8176,7 @@ somemodule.module \end_layout \begin_layout Subsection -File format +Format number \end_layout \begin_layout Standard @@ -7481,7 +8189,7 @@ must \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7491,7 +8199,7 @@ Format \end_inset [ -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7500,20 +8208,36 @@ int \end_inset -] The format of the layout file. +] The format number of the layout file. \end_layout \begin_layout Standard -This tag was introduced with LyX 1.4.0. - Layout files from LyX 1.3.x and earlier don't have an explicit file format - and are considered to be of format 1. - The format for the present version of LyX is format 21. +This tag was introduced with LyX +\begin_inset space ~ +\end_inset + +1.4.0. + Layout files from older LyX versions do not have an explicit file format + and are considered to have +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +Format +\begin_inset space ~ +\end_inset + +1 +\end_layout + +\end_inset + +. + The format for the present version of LyX is format 35. But each version of LyX is capable of reading earlier versions' layout files, just as they are capable of reading files produced by earlier versions of LyX. There is, however, no provision for converting to earlier formats. - So LyX 1.6.x will not read layout files in format 21 but only files in format - 11 or earlier. \end_layout \begin_layout Subsection @@ -7534,7 +8258,7 @@ These are general parameters that govern the behavior of an entire document not \emph default mean that they must appear in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7548,7 +8272,7 @@ status collapsed \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7558,7 +8282,7 @@ AddToHTMLPreamble \end_inset Adds information that will be output in the -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7567,10 +8291,10 @@ status collapsed \end_inset - block when this document class is output to XHTML. + block when the document is output to XHTML. Typically, this would be used to output CSS style information, but it can be used for anything that can appear in -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7585,7 +8309,7 @@ status collapsed \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7602,7 +8326,7 @@ EndPreamble \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7612,12 +8336,16 @@ AddToPreamble \end_inset Adds information to the document preamble. - Must end with + Must end with +\begin_inset Newline newline +\end_inset + + \begin_inset Quotes eld \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7634,7 +8362,7 @@ EndPreamble \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7644,7 +8372,7 @@ CiteFormat \end_inset Defines formats for use in the display of bibliographic information. - See Section + See \begin_inset CommandInset ref LatexCommand ref reference "sub:Citation-format-description" @@ -7657,7 +8385,7 @@ reference "sub:Citation-format-description" \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7674,7 +8402,7 @@ End \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7684,11 +8412,7 @@ ClassOptions \end_inset Describes various global options supported by the document class. - See Section -\begin_inset space ~ -\end_inset - - + See \begin_inset CommandInset ref LatexCommand ref reference "sub:ClassOptions" @@ -7701,7 +8425,7 @@ reference "sub:ClassOptions" \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7718,7 +8442,7 @@ End \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7728,7 +8452,7 @@ Columns \end_inset [ -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7739,8 +8463,12 @@ status collapsed \end_inset -, -\begin_inset Flex CharStyle:Code +, +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7755,7 +8483,7 @@ default \emph default to having one or two columns. Can be changed in the -\begin_inset Flex CharStyle:MenuItem +\begin_inset Flex MenuItem status collapsed \begin_layout Plain Layout @@ -7769,7 +8497,7 @@ Settings \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7779,7 +8507,7 @@ Counter \end_inset [ -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7796,7 +8524,7 @@ string \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7813,11 +8541,7 @@ End \begin_inset Newline newline \end_inset -See Section -\begin_inset space ~ -\end_inset - - +See \begin_inset CommandInset ref LatexCommand ref reference "sub:Counters" @@ -7828,7 +8552,7 @@ reference "sub:Counters" \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7838,11 +8562,7 @@ DefaultFont \end_inset Sets the default font used to display the document. - See Section -\begin_inset space ~ -\end_inset - - + See \begin_inset CommandInset ref LatexCommand ref reference "sub:Font-description" @@ -7855,7 +8575,7 @@ reference "sub:Font-description" \end_inset -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7872,7 +8592,7 @@ EndFont \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7882,18 +8602,18 @@ DefaultModule \end_inset [ -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -string] + \end_layout \end_inset - Specifies a module to be included by default with this document class. - The module should be specified by filename without the -\begin_inset Flex CharStyle:Code +] Specifies a module to be included by default with this document class. + The module is specified as filename without the +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7909,7 +8629,7 @@ status collapsed \end_layout \begin_layout Description -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout @@ -7919,17 +8639,17 @@ DefaultStyle \end_inset [ -\begin_inset Flex CharStyle:Code +\begin_inset Flex Code status collapsed \begin_layout Plain Layout -string +