From: Thibaut Cuvelier Date: Fri, 27 Nov 2020 19:24:09 +0000 (+0100) Subject: DocBook: improve naming of test files. X-Git-Tag: 2.4.0-alpha3~648 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7ebe2f435119c3c779af41ccdebbbc9475954a2b;p=lyx.git DocBook: improve naming of test files. First, the kind of issue that the file tests for. Then, its source, if it's been extracted from the rest of the test suite. --- diff --git a/autotests/export/docbook/Additional_lyxcode.lyx b/autotests/export/docbook/Additional_lyxcode.lyx deleted file mode 100644 index 797e315e87..0000000000 --- a/autotests/export/docbook/Additional_lyxcode.lyx +++ /dev/null @@ -1,535 +0,0 @@ -#LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 598 -\begin_document -\begin_header -\save_transient_properties true -\origin unavailable -\textclass scrbook -\begin_preamble -% DO NOT ALTER THIS PREAMBLE!!! -% -% This preamble is designed to ensure that the manual prints -% out as advertised. If you mess with this preamble, -% parts of the manual may not print out as expected. If you -% have problems LaTeXing this file, please contact -% the documentation team -% email: lyx-docs@lists.lyx.org - -% the pages of the TOC are numbered roman -% and a PDF-bookmark for the TOC is added -\pagenumbering{roman} -\let\myTOC\tableofcontents -\renewcommand{\tableofcontents}{% - \pdfbookmark[1]{\contentsname}{} - \myTOC - \cleardoublepage - \pagenumbering{arabic}} - -% extra space for tables -\newcommand{\extratablespace}[1]{\noalign{\vskip#1}} -\end_preamble -\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading -\use_default_options false -\begin_modules -logicalmkup -theorems-ams -theorems-ams-extended -multicol -shapepar -\end_modules -\maintain_unincluded_children no -\language english -\language_package default -\inputencoding utf8 -\fontencoding auto -\font_roman "lmodern" "default" -\font_sans "lmss" "default" -\font_typewriter "lmtt" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_roman_osf false -\font_sans_osf false -\font_typewriter_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures true -\graphics default -\default_output_format pdf2 -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_title "LyX's Additional Features manual" -\pdf_author "LyX Team" -\pdf_subject "LyX's additional features documentation" -\pdf_keywords "LyX, Documentation, Additional" -\pdf_bookmarks true -\pdf_bookmarksnumbered true -\pdf_bookmarksopen false -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder false -\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" -\papersize a4 -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\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 -\use_minted 0 -\use_lineno 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 1 -\math_indentation default -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 2 -\paperpagestyle headings -\tablestyle default -\tracking_changes false -\output_changes false -\change_bars false -\postpone_fragile_content false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict true -\docbook_table_output 0 -\end_header - -\begin_body - -\begin_layout Title -Additional \SpecialChar LyX - Features -\end_layout - -\begin_layout Subtitle -Version 2.3.x -\end_layout - -\begin_layout Author -by the \SpecialChar LyX - Team -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -\noindent -Principal maintainer of this file is -\noun on - Richard Heck -\noun default -. - If you have comments or error corrections, please send them to the \SpecialChar LyX - Documentati -on mailing list, -\begin_inset Flex Code -status collapsed - -\begin_layout Plain Layout - -\end_layout - -\end_inset - -. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset CommandInset toc -LatexCommand tableofcontents - -\end_inset - - -\end_layout - -\begin_layout Chapter -\begin_inset CommandInset label -LatexCommand label -name "sec:Inserting-TeX-Code" - -\end_inset - -Inserting \SpecialChar TeX - Code into \SpecialChar LyX - Documents -\end_layout - -\begin_layout Standard -Anything you can do in \SpecialChar LaTeX - you can do in \SpecialChar LyX -, for a very simple reason: You can - always insert \SpecialChar TeX - code into any \SpecialChar LyX - document. - \SpecialChar LyX - cannot, and will never be able to, display every possible \SpecialChar LaTeX - construct. - If ever you need to insert \SpecialChar LaTeX - commands into your \SpecialChar LyX - document, you can use the - -\begin_inset Flex Code -status collapsed - -\begin_layout Plain Layout -\SpecialChar TeX - Code -\end_layout - -\end_inset - - box, which you can insert into your document with -\begin_inset Flex Noun -status collapsed - -\begin_layout Plain Layout -Insert\SpecialChar menuseparator - -\family sans -TeX -\family default - Code -\end_layout - -\end_inset - - or the keyboard shortcut -\begin_inset Info -type "shortcut" -arg "ert-insert" -\end_inset - -. -\end_layout - -\begin_layout Standard -Here's an example of inserting \SpecialChar LaTeX - commands in a \SpecialChar LyX - document. - The code looks like this: -\end_layout - -\begin_layout LyX-Code - -\backslash -begin{tabular}{ll} -\begin_inset Newline newline -\end_inset - - -\backslash -begin{minipage}{5cm} -\begin_inset Newline newline -\end_inset - -This is an example of a minipage environment. - You -\begin_inset Newline newline -\end_inset - -can put nearly everything in it, even (non-floating) -\begin_inset Newline newline -\end_inset - -figures and tables. - -\begin_inset Newline newline -\end_inset - - -\backslash -end{minipage} -\begin_inset Newline newline -\end_inset - -& -\begin_inset Newline newline -\end_inset - - -\backslash -begin{minipage}{5cm} -\begin_inset Newline newline -\end_inset - - -\backslash -begin{verbatim} -\begin_inset Newline newline -\end_inset - - -\backslash -begin{minipage}{5cm} -\begin_inset Newline newline -\end_inset - -This ... - -\begin_inset Newline newline -\end_inset - - -\backslash -end{minipage} -\begin_inset Newline newline -\end_inset - - -\backslash -end{verbatim} -\begin_inset Newline newline -\end_inset - - -\backslash -end{minipage} -\begin_inset Newline newline -\end_inset - - -\backslash -end{tabular} -\end_layout - -\begin_layout Section -Cross-References Between Files -\end_layout - -\begin_layout Standard -\begin_inset Box Shadowbox -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "100col%" -special "none" -height "1in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -This section is somewhat out of date. - Need to describe default master documents and how children are opened when - the master is. - [[FIXME]] -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -AMS \SpecialChar LaTeX - -\end_layout - -\begin_layout Standard -These same environments are provided only in the starred versions by the - -\begin_inset Flex Code -status collapsed - -\begin_layout Plain Layout -Theorems (Starred) -\end_layout - -\end_inset - - module: -\end_layout - -\begin_layout Theorem -This is typically used for the statements of major results. - -\end_layout - -\begin_layout Corollary* -This is used for statements which follow fairly directly from previous statement -s. - Again, these can be major results. - -\end_layout - -\begin_layout Lemma -These are smaller results needed to prove other statements. -\end_layout - -\begin_layout Proposition -These are less major results which (hopefully) add to the general theory - being discussed. -\end_layout - -\begin_layout Conjecture -These are statements provided without justification, which the author does - not know how to prove, but which seem to be true (to the author, at least). -\end_layout - -\begin_layout Definition* -Guess what this is for. - The font is different for this environment than for the previous ones. - -\end_layout - -\begin_layout Example* -Used for examples illustrating proven results. -\end_layout - -\begin_layout Problem -It's not really known what this is for. - You should figure it out. -\end_layout - -\begin_layout Exercise* -Write a description for this one. -\end_layout - -\begin_layout Remark -This environment is also a type of theorem, usually a lesser sort of observation. -\end_layout - -\begin_layout Claim* -Often used in the course of giving a proof of a larger result. -\end_layout - -\begin_layout Case -Generally, these are used to break up long arguments, using specific instances - of some condition. - -\end_layout - -\begin_layout Case -The numbering scheme for cases is on its own, not together with other numbered - statements. - -\end_layout - -\begin_layout Proof -At the end of this environment, a QED symbol (usually a square, but it can - vary with different styles) is placed. - If you want to have other environments within this one—for example, Case - environments—and have the QED symbol appear only after them, then the other - environments need to be nested within the proof environment. - See the section -\emph on -Nesting Environments -\emph default - of the -\emph on -User's Guide -\emph default - for information on nesting. -\end_layout - -\begin_layout Standard -And these environments are provided by -\begin_inset Flex Code -status collapsed - -\begin_layout Plain Layout -Theorems (AMS-Extended) -\end_layout - -\end_inset - -: -\end_layout - -\begin_layout Criterion* -A required condition. -\end_layout - -\begin_layout Algorithm* -A general procedure to be used. -\end_layout - -\begin_layout Axiom* -This is a property or statement taken as true within the system being discussed. -\end_layout - -\begin_layout Condition* -Sometimes used to state a condition assumed within the present context of - discussion. -\end_layout - -\begin_layout Note* -Similar to a Remark. -\end_layout - -\begin_layout Notation* -Used for the explanation of, yes, notation. -\end_layout - -\begin_layout Summary -Do we really need to tell you? -\end_layout - -\begin_layout Acknowledgement* -Acknowledgement. -\end_layout - -\begin_layout Conclusion* -Sometimes used at the end of a long train of argument. -\end_layout - -\begin_layout Fact -Used in a way similar to Proposition, though perhaps lower on the scale. -\end_layout - -\begin_layout Standard -In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX - and AMS fonts - packages. - They need to be available on your system in order to use these environments. -\end_layout - -\end_body -\end_document diff --git a/autotests/export/docbook/Additional_lyxcode.xml b/autotests/export/docbook/Additional_lyxcode.xml deleted file mode 100644 index f42ac9fb2c..0000000000 --- a/autotests/export/docbook/Additional_lyxcode.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - -Additional LyX Features -Version 2.3.x - -by the LyX Team -Principal maintainer of this file is Richard Heck. If you have comments or error corrections, please send them to the LyX Documentation mailing list, <lyx-docs@lists.lyx.org>. - - - - -Inserting TeX Code into LyX Documents -Anything you can do in LaTeX you can do in LyX, for a very simple reason: You can always insert TeX code into any LyX document. LyX cannot, and will never be able to, display every possible LaTeX construct. If ever you need to insert LaTeX commands into your LyX document, you can use the TeX Code box, which you can insert into your document with Insert⇒TeX Code or the keyboard shortcut Ctrl+L. -Here's an example of inserting LaTeX commands in a LyX document. The code looks like this: -\begin{tabular}{ll} -\begin{minipage}{5cm} -This is an example of a minipage environment. You -can put nearly everything in it, even (non-floating) -figures and tables. -\end{minipage} -& -\begin{minipage}{5cm} -\begin{verbatim} -\begin{minipage}{5cm} -This ... -\end{minipage} -\end{verbatim} -\end{minipage} -\end{tabular} -
-Cross-References Between Files - -This section is somewhat out of date. Need to describe default master documents and how children are opened when the master is. [[FIXME]] - -
-
-AMS LaTeX -These same environments are provided only in the starred versions by the Theorems (Starred) module: -This is typically used for the statements of major results. -This is used for statements which follow fairly directly from previous statements. Again, these can be major results. -These are smaller results needed to prove other statements. -These are less major results which (hopefully) add to the general theory being discussed. -These are statements provided without justification, which the author does not know how to prove, but which seem to be true (to the author, at least). -Guess what this is for. The font is different for this environment than for the previous ones. - -Used for examples illustrating proven results. - -It's not really known what this is for. You should figure it out. -Write a description for this one. - -This environment is also a type of theorem, usually a lesser sort of observation. - -Often used in the course of giving a proof of a larger result. -Generally, these are used to break up long arguments, using specific instances of some condition. The numbering scheme for cases is on its own, not together with other numbered statements. -At the end of this environment, a QED symbol (usually a square, but it can vary with different styles) is placed. If you want to have other environments within this one—for example, Case environments—and have the QED symbol appear only after them, then the other environments need to be nested within the proof environment. See the section Nesting Environments of the User's Guide for information on nesting. -And these environments are provided by Theorems (AMS-Extended): -A required condition. -A general procedure to be used. -This is a property or statement taken as true within the system being discussed. -Sometimes used to state a condition assumed within the present context of discussion. - -Similar to a Remark. - -Used for the explanation of, yes, notation. -Do we really need to tell you? -Acknowledgement. -Sometimes used at the end of a long train of argument. -Used in a way similar to Proposition, though perhaps lower on the scale. -In addition, the AMS classes automatically provide the AMS LaTeX and AMS fonts packages. They need to be available on your system in order to use these environments. -
-
-
\ No newline at end of file diff --git a/autotests/export/docbook/Development.lyx b/autotests/export/docbook/Development.lyx deleted file mode 100644 index 996e96f464..0000000000 --- a/autotests/export/docbook/Development.lyx +++ /dev/null @@ -1,524 +0,0 @@ -#LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 598 -\begin_document -\begin_header -\save_transient_properties true -\origin unavailable -\textclass scrartcl -\options BCOR8mm,captions=tableheading -\use_default_options false -\begin_modules -logicalmkup -\end_modules -\maintain_unincluded_children no -\language english -\language_package default -\inputencoding utf8 -\fontencoding auto -\font_roman "lmodern" "default" -\font_sans "lmss" "default" -\font_typewriter "lmtt" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_roman_osf false -\font_sans_osf false -\font_typewriter_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures true -\graphics default -\default_output_format pdf2 -\output_sync 1 -\bibtex_command default -\index_command default -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_title "LyX's Development manual" -\pdf_author "LyX Team" -\pdf_subject "LyX's development documentation" -\pdf_keywords "LyX, Documentation, Development" -\pdf_bookmarks true -\pdf_bookmarksnumbered true -\pdf_bookmarksopen true -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder false -\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" -\papersize a4 -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\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 -\use_minted 0 -\use_lineno 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 4 -\tocdepth 4 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 2 -\paperpagestyle headings -\tablestyle default -\tracking_changes false -\output_changes false -\change_bars false -\postpone_fragile_content false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict true -\docbook_table_output 0 -\end_header - -\begin_body - -\begin_layout Title -Developing \SpecialChar LyX - -\end_layout - -\begin_layout Subtitle -Version 2.3.x -\end_layout - -\begin_layout Section -File formats -\end_layout - -\begin_layout Subsection -When is an update of the .lyx file format number needed? -\begin_inset CommandInset label -LatexCommand label -name "sec:When-is-an" - -\end_inset - - -\end_layout - -\begin_layout Standard -When you are working on a new feature you may ask yourself whether it needs - an update of the .lyx file format number. - Whether an update is needed or not is not always obvious. - Rule of thumb: -\end_layout - -\begin_layout Quote -Whenever there is the danger that a previous version of LyX cannot open - a file using the new feature, a file format update is needed. -\end_layout - -\begin_layout Standard -The file format change allows lyx2lyx rules to implement backwards compatibility. - Below you can find a list of reasons for file format updates with explanations: -\end_layout - -\begin_layout Description -New -\begin_inset space ~ -\end_inset - -document -\begin_inset space ~ -\end_inset - -setting Whenever you introduce a new setting that is stored in the document - header, a file format update is needed. -\end_layout - -\begin_layout Description -Removed -\begin_inset space ~ -\end_inset - -document -\begin_inset space ~ -\end_inset - -setting If a certain setting becomes obsolete and gets removed, a file format - update is needed. -\end_layout - -\begin_layout Description -New -\begin_inset space ~ -\end_inset - -valid -\begin_inset space ~ -\end_inset - -value -\begin_inset space ~ -\end_inset - -for -\begin_inset space ~ -\end_inset - -an -\begin_inset space ~ -\end_inset - -existing -\begin_inset space ~ -\end_inset - -setting, e. -\begin_inset space \thinspace{} -\end_inset - -g. -\end_layout - -\begin_deeper -\begin_layout Description -\paragraph_spacing single -Automatically -\begin_inset space ~ -\end_inset - -loaded -\begin_inset space ~ -\end_inset - -math -\begin_inset space ~ -\end_inset - -package The reason for this is that there is no true ERT inset for math - formulas: Each command is parsed, and if a user happens to define a local - command with the same name as a command that triggers an automatic load - of a package, they need to be able to switch off the automatic loading - of that package. - This switch is stored by the -\begin_inset Flex Code -status collapsed - -\begin_layout Plain Layout -use_package -\end_layout - -\end_inset - - header setting. -\end_layout - -\begin_layout Description -New -\begin_inset space ~ -\end_inset - -language that is stored in -\begin_inset Flex Code -status collapsed - -\begin_layout Plain Layout - -\backslash -language -\end_layout - -\end_inset - -. - -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -This requirement is under discussion. -\end_layout - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Description -New -\begin_inset space ~ -\end_inset - -inset Of course a new inset requires a file format update. -\end_layout - -\begin_layout Description -New -\begin_inset space ~ -\end_inset - -style If a new style or inset layout is added to any layout file or module - shipped with \SpecialChar LyX -, then a new file format is needed in the master (development) - branch. - It is possible to backport new styles to the stable version without a file - format change. -\end_layout - -\begin_layout Description -Removed -\begin_inset space ~ -\end_inset - -style If a style or inset layout is removed in any layout file or module - shipped with \SpecialChar LyX -, a new file format is required. -\end_layout - -\begin_layout Standard -However, -\series bold -new -\series default - layouts and modules do -\series bold -not -\series default - require a file format update (changed 03/16). - -\end_layout - -\begin_layout Standard -If you are still unsure, please ask on the development list. -\end_layout - -\begin_layout Paragraph -\begin_inset CommandInset label -LatexCommand label -name "par:export-test-output-formats" - -\end_inset - -Output formats -\end_layout - -\begin_layout Standard -The following output formats are currently tested for each sample document: -\end_layout - -\begin_layout Labeling -\labelwidthstring 00.00.0000 -LyX: -\end_layout - -\begin_deeper -\begin_layout Labeling -\labelwidthstring 00.00.0000 -lyx16 LyX 1.6 file format (lyx2lyx) -\end_layout - -\begin_layout Labeling -\labelwidthstring 00.00.0000 -lyx21 LyX 2.1 file format (lyx2lyx) -\end_layout - -\begin_layout Labeling -\labelwidthstring 00.00.0000 -xhtml LyXHTML (native LyX HTML export) -\end_layout - -\end_deeper -\begin_layout Labeling -\labelwidthstring 00.00.0000 -LyX -\begin_inset space ~ -\end_inset - -+ -\begin_inset space ~ -\end_inset - -LaTeX: -\end_layout - -\begin_deeper -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -dvi DVI (8-bit latex) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -dvi3_texF DVI (LuaTeX with 8-bit TeX fonts) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -dvi3_systemF DVI (LuaTeX with Unicode fonts) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf2 PDF (pdflatex) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf4_texF PDF (XeTeX with 8-bit TeX fonts) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf4_systemF PDF (XeTeX with Unicode fonts) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf5_texF PDF (LuaTeX with 8-bit TeX fonts) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf5_systemF PDF (LuaTeX with Unicode fonts) -\end_layout - -\end_deeper -\begin_layout Labeling -\labelwidthstring 00.00.0000 -LyX -\begin_inset space ~ -\end_inset - -+ -\begin_inset space ~ -\end_inset - -LaTeX -\begin_inset space ~ -\end_inset - -+ -\begin_inset space ~ -\end_inset - -postprocessing: -\end_layout - -\begin_deeper -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf DVI -> PS (dvips) -> PDF (ps2pdf) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdf3 DVI -> PDF (dvipdfm) -\end_layout - -\end_deeper -\begin_layout Labeling -\labelwidthstring 00.00.0000 -not -\begin_inset space ~ -\end_inset - -tested: (or only if set as default output format in the document source) -\end_layout - -\begin_deeper -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -latex LaTeX (plain) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -luatex LaTeX (LuaTeX) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -dviluatex LaTeX (dviluatex) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -pdflatex LaTeX (pdflatex) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -platex LaTeX (pLaTeX) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -xetex LaTeX (XeTeX) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -eps3 EPS (encapsulated Postscript) (cropped) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -ps DVI -> Postscript (dvips) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -odf -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -text (nor text2, ..., text4) -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -textparagraph -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -word -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -word2 -\end_layout - -\begin_layout Labeling -\labelwidthstring pdf5msystemFM -wordhtml -\end_layout - -\end_deeper -\end_body -\end_document diff --git a/autotests/export/docbook/Development.xml b/autotests/export/docbook/Development.xml deleted file mode 100644 index 9ec891d0b3..0000000000 --- a/autotests/export/docbook/Development.xml +++ /dev/null @@ -1,272 +0,0 @@ - - -
-Developing LyX -Version 2.3.x -
-File formats -
-When is an update of the .lyx file format number needed? -When you are working on a new feature you may ask yourself whether it needs an update of the .lyx file format number. Whether an update is needed or not is not always obvious. Rule of thumb: -
-Whenever there is the danger that a previous version of LyX cannot open a file using the new feature, a file format update is needed. -
-The file format change allows lyx2lyx rules to implement backwards compatibility. Below you can find a list of reasons for file format updates with explanations: - - -New document setting - -Whenever you introduce a new setting that is stored in the document header, a file format update is needed. - - - -Removed document setting - -If a certain setting becomes obsolete and gets removed, a file format update is needed. - - - -New valid value for an existing setting, - -e. g. - - -Automatically loaded math package - -The reason for this is that there is no true ERT inset for math formulas: Each command is parsed, and if a user happens to define a local command with the same name as a command that triggers an automatic load of a package, they need to be able to switch off the automatic loading of that package. This switch is stored by the use_package header setting. - - - -New language - -that is stored in \language. - - - - - - -New inset - -Of course a new inset requires a file format update. - - - -New style - -If a new style or inset layout is added to any layout file or module shipped with LyX, then a new file format is needed in the master (development) branch. It is possible to backport new styles to the stable version without a file format change. - - - -Removed style - -If a style or inset layout is removed in any layout file or module shipped with LyX, a new file format is required. - - - -However, new layouts and modules do not require a file format update (changed 03/16). -If you are still unsure, please ask on the development list. -
-Output formats -The following output formats are currently tested for each sample document: - - -LyX: - - - - -lyx16 - -LyX 1.6 file format (lyx2lyx) - - - -lyx21 - -LyX 2.1 file format (lyx2lyx) - - - -xhtml - -LyXHTML (native LyX HTML export) - - - - - - -LyX + LaTeX: - - - - -dvi - -DVI (8-bit latex) - - - -dvi3_texF - -DVI (LuaTeX with 8-bit TeX fonts) - - - -dvi3_systemF - -DVI (LuaTeX with Unicode fonts) - - - -pdf2 - -PDF (pdflatex) - - - -pdf4_texF - -PDF (XeTeX with 8-bit TeX fonts) - - - -pdf4_systemF - -PDF (XeTeX with Unicode fonts) - - - -pdf5_texF - -PDF (LuaTeX with 8-bit TeX fonts) - - - -pdf5_systemF - -PDF (LuaTeX with Unicode fonts) - - - - - - -LyX + LaTeX + postprocessing: - - - - -pdf - -DVI -> PS (dvips) -> PDF (ps2pdf) - - - -pdf3 - -DVI -> PDF (dvipdfm) - - - - - - -not tested: - -(or only if set as default output format in the document source) - - -latex - -LaTeX (plain) - - - -luatex - -LaTeX (LuaTeX) - - - -dviluatex - -LaTeX (dviluatex) - - - -pdflatex - -LaTeX (pdflatex) - - - -platex - -LaTeX (pLaTeX) - - - -xetex - -LaTeX (XeTeX) - - - -eps3 - -EPS (encapsulated Postscript) (cropped) - - - -ps - -DVI -> Postscript (dvips) - - - -odf - - - - - -text - -(nor text2, ..., text4) - - - -textparagraph - - - - - -word - - - - - -word2 - - - - - -wordhtml - - - - - - - - -
-
-
-
\ No newline at end of file diff --git a/autotests/export/docbook/acknowledgments_jasa.lyx b/autotests/export/docbook/acknowledgments_jasa.lyx new file mode 100644 index 0000000000..88d5f4f4e4 --- /dev/null +++ b/autotests/export/docbook/acknowledgments_jasa.lyx @@ -0,0 +1,105 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 599 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass jasatex +\options showkeys +\use_default_options false +\maintain_unincluded_children no +\language english +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\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 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\docbook_table_output 0 +\end_header + +\begin_body + +\begin_layout Title +Manuscript Title +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +Bla bla. +\end_layout + +\begin_layout Acknowledgments +Acknowledgments go here +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/acknowledgments_jasa.xml b/autotests/export/docbook/acknowledgments_jasa.xml new file mode 100644 index 0000000000..4c29bc7373 --- /dev/null +++ b/autotests/export/docbook/acknowledgments_jasa.xml @@ -0,0 +1,13 @@ + + +
+Manuscript Title +
+Introduction +Bla bla. +
+ +Acknowledgments go here + +
\ No newline at end of file diff --git a/autotests/export/docbook/doc_de_Math.lyx b/autotests/export/docbook/doc_de_Math.lyx deleted file mode 100644 index a0e9bf2dcc..0000000000 --- a/autotests/export/docbook/doc_de_Math.lyx +++ /dev/null @@ -1,324 +0,0 @@ -#LyX 2.4 created this file. For more info see https://www.lyx.org/ -\lyxformat 599 -\begin_document -\begin_header -\save_transient_properties true -\origin unavailable -\textclass scrartcl -\begin_preamble -% DO NOT ALTER THIS PREAMBLE!!! -% -% This preamble is designed to ensure that the file prints -% out as advertised. If you mess with this preamble, -% parts of this document may not print out as expected. If you -% have problems LaTeXing this file, please contact -% the documentation team -% email: lyx-docs@lists.lyx.org - -% Folgendes Problem lösen: -% Besteht die Kapitelnummer aus zu vielen Ziffern, wird die -% Kapitelüberschrift im Inhaltsverzeichnis direkt an oder über -% die Kapitelnummer geschrieben. -% Als Lösung wird mehr Platz zwischen Nummer und -% Überschrift eingefügt. -\renewcommand{\l@subsection}{\@dottedtocline{2}{1.5em}{2.8em}} -\renewcommand{\l@subsubsection}{\@dottedtocline{3}{4.3em}{3.6em}} - -% Linkfläche für Querverweise vergrößern und automatisch benennen, -\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\@ifpackageloaded{babel}{ - \addto\extrasngerman{% - \renewcommand*{\equationautorefname}[1]{}% - \renewcommand{\sectionautorefname}{Kap.\negthinspace}% - \renewcommand{\subsectionautorefname}{Kap.\negthinspace}% - \renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}% - } -}{} - -% Makros damit Pakete nicht doppelt geladen werden. -% siehe erste Fußnote in Kap. 9.3 -\@ifundefined{textcolor}{\usepackage{color}}{} - -% Die Seiten des Inhaltsverzeichnisses werden römisch numeriert, -% ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt -\pagenumbering{roman} -\let\myTOC\tableofcontents -\renewcommand{\tableofcontents}{% - \vspace{1cm} - \pdfbookmark[1]{\contentsname}{} - \myTOC - \cleardoublepage - \pagenumbering{arabic}} - -% add 0.5 mm vertical space for table rows -\@ifundefined{extrarowheight} {\usepackage{array}}{} -\setlength{\extrarowheight}{0.5mm} - -% Damit die Fußnoten einen zusätzlichen vertikalen Abstand von 1,5 mm haben, -\let\myFoot\footnote -\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}} - -% macht Beschriftungen fett -\setkomafont{captionlabel}{\bfseries} - -% enables calculation of values -\usepackage{calc} - -% für Mehrfachzeilen, benutzt in Kap. 24.7 -\usepackage{multicol} - -% benutzt in Kap. 19.4 -\usepackage{remreset} - -% für das Fourier-Transformationssymbol -\usepackage{mathrsfs} - -% Farbdefinition aus Kap. 9.3 -\definecolor{dunkelgruen}{cmyk}{0.5, 0, 1, 0.5} - -% Operatoren deklarieren (siehe Kap. 10.4 und 15.2) -\DeclareMathOperator*{\Raute}{\blacklozenge} -\DeclareMathOperator{\sgn}{sgn} - -% Beispielbefehle aus Kap. 20.1 -\newcommand{\gr}{\Longrightarrow} -\newcommand{\us}[1]{\underline{#1}} -\newcommand{\fb}[3]{\framebox#1#2{$#3$}} -\newcommand{\cb}[3][white]{\fcolorbox{#2}{#1}{$#3$}} -\newcommand{\fracS}[3][]{\genfrac{}{}{#1}{}{#2}{#3}} - -% Beispielmakro aus Kap. 19.4 -%\AtBeginDocument{ -%\def\tagform@#1{\maketag@@@{|#1|}} -%} - -\@ifpackageloaded{babel}{ - % Damit der Index einen anderen Namen erhält. - \addto\captionsngerman - {\renewcommand{\indexname} - {Stichwort- und Befehlsverzeichnis}} -}{} - -% ------------------------------------ -% used to check for needed LaTeX packages -\usepackage{ifthen} - -% testen ob das Paket undertilde installiert ist -% wird benutzt für den Befehl \utilde -\newboolean{undertilde} -\IfFileExists{undertilde.sty} - {\usepackage{undertilde} - \setboolean{undertilde}{true}} - {\setboolean{undertilde}{false}} - -% testen ob das Paket eurosym installiert ist -% wird benutzt für das Euro-Symbol -\newboolean{eurosym} -\IfFileExists{eurosym.sty} - {\usepackage[gennarrow]{eurosym} - \setboolean{eurosym}{true}} - {\setboolean{eurosym}{false}} - -% testen ob Paket braket installiert ist -% benötigt für physikalische Vektoren -\newboolean{braket} -\IfFileExists{braket.sty} - {\usepackage{braket} - \setboolean{braket}{true}} - {\setboolean{braket}{false}} - -% testen ob Paket cancel installiert ist -\newboolean{cancel} -\IfFileExists{cancel.sty} - {\usepackage{cancel} - \setboolean{cancel}{true}} - {\setboolean{cancel}{false}} - -% testen ob Paket upgreek installiert ist -\newboolean{upgreek} -\IfFileExists{upgreek.sty} - {\usepackage{upgreek} - \setboolean{upgreek}{true}} - {\setboolean{upgreek}{false}} - -% benötigt für Kommas in Formeln, siehe Kap. 22.3 -\IfFileExists{icomma.sty} - {\usepackage{icomma}}{} -% Added by lyx2lyx -\setlength{\parskip}{\medskipamount} -\setlength{\parindent}{0pt} -\end_preamble -\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading -\use_default_options false -\begin_modules -subequations -\end_modules -\maintain_unincluded_children no -\language ngerman -\language_package default -\inputencoding utf8 -\fontencoding auto -\font_roman "lmodern" "default" -\font_sans "lmss" "default" -\font_typewriter "lmtt" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_roman_osf false -\font_sans_osf false -\font_typewriter_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format pdf2 -\output_sync 0 -\bibtex_command default -\index_command makeindex -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_title "LyXs Mathehandbuch" -\pdf_author "LyX Team, Uwe Stöhr" -\pdf_subject "LyX-Dokumentation der Mathefunktionen" -\pdf_keywords "LyX, Mathed" -\pdf_bookmarks true -\pdf_bookmarksnumbered true -\pdf_bookmarksopen true -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder false -\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" -\papersize a4 -\use_geometry false -\use_package amsmath 2 -\use_package amssymb 2 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 2 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\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 -\use_minted 0 -\use_lineno 0 -\notefontcolor #0000ff -\index Stichwortverzeichnis -\shortcut idx -\color #008000 -\end_index -\secnumdepth 4 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 0 -\math_numbering_side default -\quotes_style german -\dynamic_quotes 0 -\papercolumns 1 -\papersides 2 -\paperpagestyle plain -\tablestyle default -\bullet 1 0 6 -1 -\bullet 2 2 35 -1 -\bullet 3 2 7 -1 -\tracking_changes false -\output_changes false -\change_bars false -\postpone_fragile_content false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\docbook_table_output 0 -\end_header - -\begin_body - -\begin_layout Title -\SpecialChar LyX -' detailliertes Mathe Handbuch -\end_layout - -\begin_layout Section -Grundlegende Funktionen -\end_layout - -\begin_layout Subsection -Fortsetzungspunkte -\end_layout - -\begin_layout Standard -Z. -\begin_inset space \thinspace{} -\end_inset - -B. - ergibt der Befehl -\series bold -A -\backslash -dotfill -\begin_inset space \textvisiblespace{} -\end_inset - -B -\end_layout - -\begin_layout Standard -\begin_inset Formula $A\dotfill B$ -\end_inset - - -\end_layout - -\begin_layout Standard -Analog dazu gibt es für eine Linie den Befehl -\series bold - -\backslash -hrulefill -\series default - -\begin_inset Index idx -status collapsed - -\begin_layout Plain Layout -Befehle ! H ! -\backslash -hrulefill -\end_layout - -\end_inset - -: -\end_layout - -\begin_layout Standard -\begin_inset Formula $A\hrulefill B$ -\end_inset - - -\end_layout - -\begin_layout Standard -Um die Befehle für Text zu verwenden, müssen sie im \SpecialChar TeX --Modus eingegeben werden. -\end_layout - -\end_body -\end_document diff --git a/autotests/export/docbook/doc_de_Math.xml b/autotests/export/docbook/doc_de_Math.xml deleted file mode 100644 index 5f4a24065e..0000000000 --- a/autotests/export/docbook/doc_de_Math.xml +++ /dev/null @@ -1,23 +0,0 @@ - - -
-LyX' detailliertes Mathe Handbuch -
-Grundlegende Funktionen -
-Fortsetzungspunkte -Z. B. ergibt der Befehl A\dotfill␣B - -A\dotfill B -MathML export failed. Please report this as a bug. - -Analog dazu gibt es für eine Linie den Befehl \hrulefillBefehleH\textbackslash hrulefill: - -A\hrulefill B -MathML export failed. Please report this as a bug. - -Um die Befehle für Text zu verwenden, müssen sie im TeX-Modus eingegeben werden. -
-
-
\ No newline at end of file diff --git a/autotests/export/docbook/list_labeling_Development.lyx b/autotests/export/docbook/list_labeling_Development.lyx new file mode 100644 index 0000000000..996e96f464 --- /dev/null +++ b/autotests/export/docbook/list_labeling_Development.lyx @@ -0,0 +1,524 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 598 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass scrartcl +\options BCOR8mm,captions=tableheading +\use_default_options false +\begin_modules +logicalmkup +\end_modules +\maintain_unincluded_children no +\language english +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format pdf2 +\output_sync 1 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "LyX's Development manual" +\pdf_author "LyX Team" +\pdf_subject "LyX's development documentation" +\pdf_keywords "LyX, Documentation, Development" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\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" +\papersize a4 +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\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 +\use_minted 0 +\use_lineno 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 4 +\tocdepth 4 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle headings +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true +\docbook_table_output 0 +\end_header + +\begin_body + +\begin_layout Title +Developing \SpecialChar LyX + +\end_layout + +\begin_layout Subtitle +Version 2.3.x +\end_layout + +\begin_layout Section +File formats +\end_layout + +\begin_layout Subsection +When is an update of the .lyx file format number needed? +\begin_inset CommandInset label +LatexCommand label +name "sec:When-is-an" + +\end_inset + + +\end_layout + +\begin_layout Standard +When you are working on a new feature you may ask yourself whether it needs + an update of the .lyx file format number. + Whether an update is needed or not is not always obvious. + Rule of thumb: +\end_layout + +\begin_layout Quote +Whenever there is the danger that a previous version of LyX cannot open + a file using the new feature, a file format update is needed. +\end_layout + +\begin_layout Standard +The file format change allows lyx2lyx rules to implement backwards compatibility. + Below you can find a list of reasons for file format updates with explanations: +\end_layout + +\begin_layout Description +New +\begin_inset space ~ +\end_inset + +document +\begin_inset space ~ +\end_inset + +setting Whenever you introduce a new setting that is stored in the document + header, a file format update is needed. +\end_layout + +\begin_layout Description +Removed +\begin_inset space ~ +\end_inset + +document +\begin_inset space ~ +\end_inset + +setting If a certain setting becomes obsolete and gets removed, a file format + update is needed. +\end_layout + +\begin_layout Description +New +\begin_inset space ~ +\end_inset + +valid +\begin_inset space ~ +\end_inset + +value +\begin_inset space ~ +\end_inset + +for +\begin_inset space ~ +\end_inset + +an +\begin_inset space ~ +\end_inset + +existing +\begin_inset space ~ +\end_inset + +setting, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\end_layout + +\begin_deeper +\begin_layout Description +\paragraph_spacing single +Automatically +\begin_inset space ~ +\end_inset + +loaded +\begin_inset space ~ +\end_inset + +math +\begin_inset space ~ +\end_inset + +package The reason for this is that there is no true ERT inset for math + formulas: Each command is parsed, and if a user happens to define a local + command with the same name as a command that triggers an automatic load + of a package, they need to be able to switch off the automatic loading + of that package. + This switch is stored by the +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +use_package +\end_layout + +\end_inset + + header setting. +\end_layout + +\begin_layout Description +New +\begin_inset space ~ +\end_inset + +language that is stored in +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout + +\backslash +language +\end_layout + +\end_inset + +. + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +This requirement is under discussion. +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Description +New +\begin_inset space ~ +\end_inset + +inset Of course a new inset requires a file format update. +\end_layout + +\begin_layout Description +New +\begin_inset space ~ +\end_inset + +style If a new style or inset layout is added to any layout file or module + shipped with \SpecialChar LyX +, then a new file format is needed in the master (development) + branch. + It is possible to backport new styles to the stable version without a file + format change. +\end_layout + +\begin_layout Description +Removed +\begin_inset space ~ +\end_inset + +style If a style or inset layout is removed in any layout file or module + shipped with \SpecialChar LyX +, a new file format is required. +\end_layout + +\begin_layout Standard +However, +\series bold +new +\series default + layouts and modules do +\series bold +not +\series default + require a file format update (changed 03/16). + +\end_layout + +\begin_layout Standard +If you are still unsure, please ask on the development list. +\end_layout + +\begin_layout Paragraph +\begin_inset CommandInset label +LatexCommand label +name "par:export-test-output-formats" + +\end_inset + +Output formats +\end_layout + +\begin_layout Standard +The following output formats are currently tested for each sample document: +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +LyX: +\end_layout + +\begin_deeper +\begin_layout Labeling +\labelwidthstring 00.00.0000 +lyx16 LyX 1.6 file format (lyx2lyx) +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +lyx21 LyX 2.1 file format (lyx2lyx) +\end_layout + +\begin_layout Labeling +\labelwidthstring 00.00.0000 +xhtml LyXHTML (native LyX HTML export) +\end_layout + +\end_deeper +\begin_layout Labeling +\labelwidthstring 00.00.0000 +LyX +\begin_inset space ~ +\end_inset + ++ +\begin_inset space ~ +\end_inset + +LaTeX: +\end_layout + +\begin_deeper +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +dvi DVI (8-bit latex) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +dvi3_texF DVI (LuaTeX with 8-bit TeX fonts) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +dvi3_systemF DVI (LuaTeX with Unicode fonts) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf2 PDF (pdflatex) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf4_texF PDF (XeTeX with 8-bit TeX fonts) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf4_systemF PDF (XeTeX with Unicode fonts) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf5_texF PDF (LuaTeX with 8-bit TeX fonts) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf5_systemF PDF (LuaTeX with Unicode fonts) +\end_layout + +\end_deeper +\begin_layout Labeling +\labelwidthstring 00.00.0000 +LyX +\begin_inset space ~ +\end_inset + ++ +\begin_inset space ~ +\end_inset + +LaTeX +\begin_inset space ~ +\end_inset + ++ +\begin_inset space ~ +\end_inset + +postprocessing: +\end_layout + +\begin_deeper +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf DVI -> PS (dvips) -> PDF (ps2pdf) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdf3 DVI -> PDF (dvipdfm) +\end_layout + +\end_deeper +\begin_layout Labeling +\labelwidthstring 00.00.0000 +not +\begin_inset space ~ +\end_inset + +tested: (or only if set as default output format in the document source) +\end_layout + +\begin_deeper +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +latex LaTeX (plain) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +luatex LaTeX (LuaTeX) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +dviluatex LaTeX (dviluatex) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +pdflatex LaTeX (pdflatex) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +platex LaTeX (pLaTeX) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +xetex LaTeX (XeTeX) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +eps3 EPS (encapsulated Postscript) (cropped) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +ps DVI -> Postscript (dvips) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +odf +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +text (nor text2, ..., text4) +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +textparagraph +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +word +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +word2 +\end_layout + +\begin_layout Labeling +\labelwidthstring pdf5msystemFM +wordhtml +\end_layout + +\end_deeper +\end_body +\end_document diff --git a/autotests/export/docbook/list_labeling_Development.xml b/autotests/export/docbook/list_labeling_Development.xml new file mode 100644 index 0000000000..9ec891d0b3 --- /dev/null +++ b/autotests/export/docbook/list_labeling_Development.xml @@ -0,0 +1,272 @@ + + +
+Developing LyX +Version 2.3.x +
+File formats +
+When is an update of the .lyx file format number needed? +When you are working on a new feature you may ask yourself whether it needs an update of the .lyx file format number. Whether an update is needed or not is not always obvious. Rule of thumb: +
+Whenever there is the danger that a previous version of LyX cannot open a file using the new feature, a file format update is needed. +
+The file format change allows lyx2lyx rules to implement backwards compatibility. Below you can find a list of reasons for file format updates with explanations: + + +New document setting + +Whenever you introduce a new setting that is stored in the document header, a file format update is needed. + + + +Removed document setting + +If a certain setting becomes obsolete and gets removed, a file format update is needed. + + + +New valid value for an existing setting, + +e. g. + + +Automatically loaded math package + +The reason for this is that there is no true ERT inset for math formulas: Each command is parsed, and if a user happens to define a local command with the same name as a command that triggers an automatic load of a package, they need to be able to switch off the automatic loading of that package. This switch is stored by the use_package header setting. + + + +New language + +that is stored in \language. + + + + + + +New inset + +Of course a new inset requires a file format update. + + + +New style + +If a new style or inset layout is added to any layout file or module shipped with LyX, then a new file format is needed in the master (development) branch. It is possible to backport new styles to the stable version without a file format change. + + + +Removed style + +If a style or inset layout is removed in any layout file or module shipped with LyX, a new file format is required. + + + +However, new layouts and modules do not require a file format update (changed 03/16). +If you are still unsure, please ask on the development list. +
+Output formats +The following output formats are currently tested for each sample document: + + +LyX: + + + + +lyx16 + +LyX 1.6 file format (lyx2lyx) + + + +lyx21 + +LyX 2.1 file format (lyx2lyx) + + + +xhtml + +LyXHTML (native LyX HTML export) + + + + + + +LyX + LaTeX: + + + + +dvi + +DVI (8-bit latex) + + + +dvi3_texF + +DVI (LuaTeX with 8-bit TeX fonts) + + + +dvi3_systemF + +DVI (LuaTeX with Unicode fonts) + + + +pdf2 + +PDF (pdflatex) + + + +pdf4_texF + +PDF (XeTeX with 8-bit TeX fonts) + + + +pdf4_systemF + +PDF (XeTeX with Unicode fonts) + + + +pdf5_texF + +PDF (LuaTeX with 8-bit TeX fonts) + + + +pdf5_systemF + +PDF (LuaTeX with Unicode fonts) + + + + + + +LyX + LaTeX + postprocessing: + + + + +pdf + +DVI -> PS (dvips) -> PDF (ps2pdf) + + + +pdf3 + +DVI -> PDF (dvipdfm) + + + + + + +not tested: + +(or only if set as default output format in the document source) + + +latex + +LaTeX (plain) + + + +luatex + +LaTeX (LuaTeX) + + + +dviluatex + +LaTeX (dviluatex) + + + +pdflatex + +LaTeX (pdflatex) + + + +platex + +LaTeX (pLaTeX) + + + +xetex + +LaTeX (XeTeX) + + + +eps3 + +EPS (encapsulated Postscript) (cropped) + + + +ps + +DVI -> Postscript (dvips) + + + +odf + + + + + +text + +(nor text2, ..., text4) + + + +textparagraph + + + + + +word + + + + + +word2 + + + + + +wordhtml + + + + + + + + +
+
+
+
\ No newline at end of file diff --git a/autotests/export/docbook/lyxcode_Additional.lyx b/autotests/export/docbook/lyxcode_Additional.lyx new file mode 100644 index 0000000000..797e315e87 --- /dev/null +++ b/autotests/export/docbook/lyxcode_Additional.lyx @@ -0,0 +1,535 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 598 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass scrbook +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +% This preamble is designed to ensure that the manual prints +% out as advertised. If you mess with this preamble, +% parts of the manual may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +% the pages of the TOC are numbered roman +% and a PDF-bookmark for the TOC is added +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand{\tableofcontents}{% + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic}} + +% extra space for tables +\newcommand{\extratablespace}[1]{\noalign{\vskip#1}} +\end_preamble +\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading +\use_default_options false +\begin_modules +logicalmkup +theorems-ams +theorems-ams-extended +multicol +shapepar +\end_modules +\maintain_unincluded_children no +\language english +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "LyX's Additional Features manual" +\pdf_author "LyX Team" +\pdf_subject "LyX's additional features documentation" +\pdf_keywords "LyX, Documentation, Additional" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\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" +\papersize a4 +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\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 +\use_minted 0 +\use_lineno 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 1 +\math_indentation default +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle headings +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true +\docbook_table_output 0 +\end_header + +\begin_body + +\begin_layout Title +Additional \SpecialChar LyX + Features +\end_layout + +\begin_layout Subtitle +Version 2.3.x +\end_layout + +\begin_layout Author +by the \SpecialChar LyX + Team +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\noindent +Principal maintainer of this file is +\noun on + Richard Heck +\noun default +. + If you have comments or error corrections, please send them to the \SpecialChar LyX + Documentati +on mailing list, +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Chapter +\begin_inset CommandInset label +LatexCommand label +name "sec:Inserting-TeX-Code" + +\end_inset + +Inserting \SpecialChar TeX + Code into \SpecialChar LyX + Documents +\end_layout + +\begin_layout Standard +Anything you can do in \SpecialChar LaTeX + you can do in \SpecialChar LyX +, for a very simple reason: You can + always insert \SpecialChar TeX + code into any \SpecialChar LyX + document. + \SpecialChar LyX + cannot, and will never be able to, display every possible \SpecialChar LaTeX + construct. + If ever you need to insert \SpecialChar LaTeX + commands into your \SpecialChar LyX + document, you can use the + +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +\SpecialChar TeX + Code +\end_layout + +\end_inset + + box, which you can insert into your document with +\begin_inset Flex Noun +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator + +\family sans +TeX +\family default + Code +\end_layout + +\end_inset + + or the keyboard shortcut +\begin_inset Info +type "shortcut" +arg "ert-insert" +\end_inset + +. +\end_layout + +\begin_layout Standard +Here's an example of inserting \SpecialChar LaTeX + commands in a \SpecialChar LyX + document. + The code looks like this: +\end_layout + +\begin_layout LyX-Code + +\backslash +begin{tabular}{ll} +\begin_inset Newline newline +\end_inset + + +\backslash +begin{minipage}{5cm} +\begin_inset Newline newline +\end_inset + +This is an example of a minipage environment. + You +\begin_inset Newline newline +\end_inset + +can put nearly everything in it, even (non-floating) +\begin_inset Newline newline +\end_inset + +figures and tables. + +\begin_inset Newline newline +\end_inset + + +\backslash +end{minipage} +\begin_inset Newline newline +\end_inset + +& +\begin_inset Newline newline +\end_inset + + +\backslash +begin{minipage}{5cm} +\begin_inset Newline newline +\end_inset + + +\backslash +begin{verbatim} +\begin_inset Newline newline +\end_inset + + +\backslash +begin{minipage}{5cm} +\begin_inset Newline newline +\end_inset + +This ... + +\begin_inset Newline newline +\end_inset + + +\backslash +end{minipage} +\begin_inset Newline newline +\end_inset + + +\backslash +end{verbatim} +\begin_inset Newline newline +\end_inset + + +\backslash +end{minipage} +\begin_inset Newline newline +\end_inset + + +\backslash +end{tabular} +\end_layout + +\begin_layout Section +Cross-References Between Files +\end_layout + +\begin_layout Standard +\begin_inset Box Shadowbox +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +This section is somewhat out of date. + Need to describe default master documents and how children are opened when + the master is. + [[FIXME]] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +AMS \SpecialChar LaTeX + +\end_layout + +\begin_layout Standard +These same environments are provided only in the starred versions by the + +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +Theorems (Starred) +\end_layout + +\end_inset + + module: +\end_layout + +\begin_layout Theorem +This is typically used for the statements of major results. + +\end_layout + +\begin_layout Corollary* +This is used for statements which follow fairly directly from previous statement +s. + Again, these can be major results. + +\end_layout + +\begin_layout Lemma +These are smaller results needed to prove other statements. +\end_layout + +\begin_layout Proposition +These are less major results which (hopefully) add to the general theory + being discussed. +\end_layout + +\begin_layout Conjecture +These are statements provided without justification, which the author does + not know how to prove, but which seem to be true (to the author, at least). +\end_layout + +\begin_layout Definition* +Guess what this is for. + The font is different for this environment than for the previous ones. + +\end_layout + +\begin_layout Example* +Used for examples illustrating proven results. +\end_layout + +\begin_layout Problem +It's not really known what this is for. + You should figure it out. +\end_layout + +\begin_layout Exercise* +Write a description for this one. +\end_layout + +\begin_layout Remark +This environment is also a type of theorem, usually a lesser sort of observation. +\end_layout + +\begin_layout Claim* +Often used in the course of giving a proof of a larger result. +\end_layout + +\begin_layout Case +Generally, these are used to break up long arguments, using specific instances + of some condition. + +\end_layout + +\begin_layout Case +The numbering scheme for cases is on its own, not together with other numbered + statements. + +\end_layout + +\begin_layout Proof +At the end of this environment, a QED symbol (usually a square, but it can + vary with different styles) is placed. + If you want to have other environments within this one—for example, Case + environments—and have the QED symbol appear only after them, then the other + environments need to be nested within the proof environment. + See the section +\emph on +Nesting Environments +\emph default + of the +\emph on +User's Guide +\emph default + for information on nesting. +\end_layout + +\begin_layout Standard +And these environments are provided by +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +Theorems (AMS-Extended) +\end_layout + +\end_inset + +: +\end_layout + +\begin_layout Criterion* +A required condition. +\end_layout + +\begin_layout Algorithm* +A general procedure to be used. +\end_layout + +\begin_layout Axiom* +This is a property or statement taken as true within the system being discussed. +\end_layout + +\begin_layout Condition* +Sometimes used to state a condition assumed within the present context of + discussion. +\end_layout + +\begin_layout Note* +Similar to a Remark. +\end_layout + +\begin_layout Notation* +Used for the explanation of, yes, notation. +\end_layout + +\begin_layout Summary +Do we really need to tell you? +\end_layout + +\begin_layout Acknowledgement* +Acknowledgement. +\end_layout + +\begin_layout Conclusion* +Sometimes used at the end of a long train of argument. +\end_layout + +\begin_layout Fact +Used in a way similar to Proposition, though perhaps lower on the scale. +\end_layout + +\begin_layout Standard +In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX + and AMS fonts + packages. + They need to be available on your system in order to use these environments. +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/lyxcode_Additional.xml b/autotests/export/docbook/lyxcode_Additional.xml new file mode 100644 index 0000000000..f42ac9fb2c --- /dev/null +++ b/autotests/export/docbook/lyxcode_Additional.xml @@ -0,0 +1,75 @@ + + + + +Additional LyX Features +Version 2.3.x + +by the LyX Team +Principal maintainer of this file is Richard Heck. If you have comments or error corrections, please send them to the LyX Documentation mailing list, <lyx-docs@lists.lyx.org>. + + + + +Inserting TeX Code into LyX Documents +Anything you can do in LaTeX you can do in LyX, for a very simple reason: You can always insert TeX code into any LyX document. LyX cannot, and will never be able to, display every possible LaTeX construct. If ever you need to insert LaTeX commands into your LyX document, you can use the TeX Code box, which you can insert into your document with Insert⇒TeX Code or the keyboard shortcut Ctrl+L. +Here's an example of inserting LaTeX commands in a LyX document. The code looks like this: +\begin{tabular}{ll} +\begin{minipage}{5cm} +This is an example of a minipage environment. You +can put nearly everything in it, even (non-floating) +figures and tables. +\end{minipage} +& +\begin{minipage}{5cm} +\begin{verbatim} +\begin{minipage}{5cm} +This ... +\end{minipage} +\end{verbatim} +\end{minipage} +\end{tabular} +
+Cross-References Between Files + +This section is somewhat out of date. Need to describe default master documents and how children are opened when the master is. [[FIXME]] + +
+
+AMS LaTeX +These same environments are provided only in the starred versions by the Theorems (Starred) module: +This is typically used for the statements of major results. +This is used for statements which follow fairly directly from previous statements. Again, these can be major results. +These are smaller results needed to prove other statements. +These are less major results which (hopefully) add to the general theory being discussed. +These are statements provided without justification, which the author does not know how to prove, but which seem to be true (to the author, at least). +Guess what this is for. The font is different for this environment than for the previous ones. + +Used for examples illustrating proven results. + +It's not really known what this is for. You should figure it out. +Write a description for this one. + +This environment is also a type of theorem, usually a lesser sort of observation. + +Often used in the course of giving a proof of a larger result. +Generally, these are used to break up long arguments, using specific instances of some condition. The numbering scheme for cases is on its own, not together with other numbered statements. +At the end of this environment, a QED symbol (usually a square, but it can vary with different styles) is placed. If you want to have other environments within this one—for example, Case environments—and have the QED symbol appear only after them, then the other environments need to be nested within the proof environment. See the section Nesting Environments of the User's Guide for information on nesting. +And these environments are provided by Theorems (AMS-Extended): +A required condition. +A general procedure to be used. +This is a property or statement taken as true within the system being discussed. +Sometimes used to state a condition assumed within the present context of discussion. + +Similar to a Remark. + +Used for the explanation of, yes, notation. +Do we really need to tell you? +Acknowledgement. +Sometimes used at the end of a long train of argument. +Used in a way similar to Proposition, though perhaps lower on the scale. +In addition, the AMS classes automatically provide the AMS LaTeX and AMS fonts packages. They need to be available on your system in order to use these environments. +
+
+
\ No newline at end of file diff --git a/autotests/export/docbook/math_not_recognised_doc_de_Math.lyx b/autotests/export/docbook/math_not_recognised_doc_de_Math.lyx new file mode 100644 index 0000000000..a0e9bf2dcc --- /dev/null +++ b/autotests/export/docbook/math_not_recognised_doc_de_Math.lyx @@ -0,0 +1,324 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 599 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass scrartcl +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +% This preamble is designed to ensure that the file prints +% out as advertised. If you mess with this preamble, +% parts of this document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +% Folgendes Problem lösen: +% Besteht die Kapitelnummer aus zu vielen Ziffern, wird die +% Kapitelüberschrift im Inhaltsverzeichnis direkt an oder über +% die Kapitelnummer geschrieben. +% Als Lösung wird mehr Platz zwischen Nummer und +% Überschrift eingefügt. +\renewcommand{\l@subsection}{\@dottedtocline{2}{1.5em}{2.8em}} +\renewcommand{\l@subsubsection}{\@dottedtocline{3}{4.3em}{3.6em}} + +% Linkfläche für Querverweise vergrößern und automatisch benennen, +\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} +\@ifpackageloaded{babel}{ + \addto\extrasngerman{% + \renewcommand*{\equationautorefname}[1]{}% + \renewcommand{\sectionautorefname}{Kap.\negthinspace}% + \renewcommand{\subsectionautorefname}{Kap.\negthinspace}% + \renewcommand{\subsubsectionautorefname}{Kap.\negthinspace}% + } +}{} + +% Makros damit Pakete nicht doppelt geladen werden. +% siehe erste Fußnote in Kap. 9.3 +\@ifundefined{textcolor}{\usepackage{color}}{} + +% Die Seiten des Inhaltsverzeichnisses werden römisch numeriert, +% ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand{\tableofcontents}{% + \vspace{1cm} + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic}} + +% add 0.5 mm vertical space for table rows +\@ifundefined{extrarowheight} {\usepackage{array}}{} +\setlength{\extrarowheight}{0.5mm} + +% Damit die Fußnoten einen zusätzlichen vertikalen Abstand von 1,5 mm haben, +\let\myFoot\footnote +\renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}} + +% macht Beschriftungen fett +\setkomafont{captionlabel}{\bfseries} + +% enables calculation of values +\usepackage{calc} + +% für Mehrfachzeilen, benutzt in Kap. 24.7 +\usepackage{multicol} + +% benutzt in Kap. 19.4 +\usepackage{remreset} + +% für das Fourier-Transformationssymbol +\usepackage{mathrsfs} + +% Farbdefinition aus Kap. 9.3 +\definecolor{dunkelgruen}{cmyk}{0.5, 0, 1, 0.5} + +% Operatoren deklarieren (siehe Kap. 10.4 und 15.2) +\DeclareMathOperator*{\Raute}{\blacklozenge} +\DeclareMathOperator{\sgn}{sgn} + +% Beispielbefehle aus Kap. 20.1 +\newcommand{\gr}{\Longrightarrow} +\newcommand{\us}[1]{\underline{#1}} +\newcommand{\fb}[3]{\framebox#1#2{$#3$}} +\newcommand{\cb}[3][white]{\fcolorbox{#2}{#1}{$#3$}} +\newcommand{\fracS}[3][]{\genfrac{}{}{#1}{}{#2}{#3}} + +% Beispielmakro aus Kap. 19.4 +%\AtBeginDocument{ +%\def\tagform@#1{\maketag@@@{|#1|}} +%} + +\@ifpackageloaded{babel}{ + % Damit der Index einen anderen Namen erhält. + \addto\captionsngerman + {\renewcommand{\indexname} + {Stichwort- und Befehlsverzeichnis}} +}{} + +% ------------------------------------ +% used to check for needed LaTeX packages +\usepackage{ifthen} + +% testen ob das Paket undertilde installiert ist +% wird benutzt für den Befehl \utilde +\newboolean{undertilde} +\IfFileExists{undertilde.sty} + {\usepackage{undertilde} + \setboolean{undertilde}{true}} + {\setboolean{undertilde}{false}} + +% testen ob das Paket eurosym installiert ist +% wird benutzt für das Euro-Symbol +\newboolean{eurosym} +\IfFileExists{eurosym.sty} + {\usepackage[gennarrow]{eurosym} + \setboolean{eurosym}{true}} + {\setboolean{eurosym}{false}} + +% testen ob Paket braket installiert ist +% benötigt für physikalische Vektoren +\newboolean{braket} +\IfFileExists{braket.sty} + {\usepackage{braket} + \setboolean{braket}{true}} + {\setboolean{braket}{false}} + +% testen ob Paket cancel installiert ist +\newboolean{cancel} +\IfFileExists{cancel.sty} + {\usepackage{cancel} + \setboolean{cancel}{true}} + {\setboolean{cancel}{false}} + +% testen ob Paket upgreek installiert ist +\newboolean{upgreek} +\IfFileExists{upgreek.sty} + {\usepackage{upgreek} + \setboolean{upgreek}{true}} + {\setboolean{upgreek}{false}} + +% benötigt für Kommas in Formeln, siehe Kap. 22.3 +\IfFileExists{icomma.sty} + {\usepackage{icomma}}{} +% Added by lyx2lyx +\setlength{\parskip}{\medskipamount} +\setlength{\parindent}{0pt} +\end_preamble +\options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading +\use_default_options false +\begin_modules +subequations +\end_modules +\maintain_unincluded_children no +\language ngerman +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command makeindex +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "LyXs Mathehandbuch" +\pdf_author "LyX Team, Uwe Stöhr" +\pdf_subject "LyX-Dokumentation der Mathefunktionen" +\pdf_keywords "LyX, Mathed" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\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" +\papersize a4 +\use_geometry false +\use_package amsmath 2 +\use_package amssymb 2 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 2 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\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 +\use_minted 0 +\use_lineno 0 +\notefontcolor #0000ff +\index Stichwortverzeichnis +\shortcut idx +\color #008000 +\end_index +\secnumdepth 4 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style german +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle plain +\tablestyle default +\bullet 1 0 6 -1 +\bullet 2 2 35 -1 +\bullet 3 2 7 -1 +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\docbook_table_output 0 +\end_header + +\begin_body + +\begin_layout Title +\SpecialChar LyX +' detailliertes Mathe Handbuch +\end_layout + +\begin_layout Section +Grundlegende Funktionen +\end_layout + +\begin_layout Subsection +Fortsetzungspunkte +\end_layout + +\begin_layout Standard +Z. +\begin_inset space \thinspace{} +\end_inset + +B. + ergibt der Befehl +\series bold +A +\backslash +dotfill +\begin_inset space \textvisiblespace{} +\end_inset + +B +\end_layout + +\begin_layout Standard +\begin_inset Formula $A\dotfill B$ +\end_inset + + +\end_layout + +\begin_layout Standard +Analog dazu gibt es für eine Linie den Befehl +\series bold + +\backslash +hrulefill +\series default + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +Befehle ! H ! +\backslash +hrulefill +\end_layout + +\end_inset + +: +\end_layout + +\begin_layout Standard +\begin_inset Formula $A\hrulefill B$ +\end_inset + + +\end_layout + +\begin_layout Standard +Um die Befehle für Text zu verwenden, müssen sie im \SpecialChar TeX +-Modus eingegeben werden. +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/math_not_recognised_doc_de_Math.xml b/autotests/export/docbook/math_not_recognised_doc_de_Math.xml new file mode 100644 index 0000000000..5f4a24065e --- /dev/null +++ b/autotests/export/docbook/math_not_recognised_doc_de_Math.xml @@ -0,0 +1,23 @@ + + +
+LyX' detailliertes Mathe Handbuch +
+Grundlegende Funktionen +
+Fortsetzungspunkte +Z. B. ergibt der Befehl A\dotfill␣B + +A\dotfill B +MathML export failed. Please report this as a bug. + +Analog dazu gibt es für eine Linie den Befehl \hrulefillBefehleH\textbackslash hrulefill: + +A\hrulefill B +MathML export failed. Please report this as a bug. + +Um die Befehle für Text zu verwenden, müssen sie im TeX-Modus eingegeben werden. +
+
+
\ No newline at end of file diff --git a/autotests/export/docbook/table_float_regression_Intro.lyx b/autotests/export/docbook/table_float_regression_Intro.lyx new file mode 100644 index 0000000000..c777391b62 --- /dev/null +++ b/autotests/export/docbook/table_float_regression_Intro.lyx @@ -0,0 +1,676 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 599 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +%This preamble is designed to ensure that the document prints +% out as advertised. If you mess with this preamble, +% parts of the document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +% the pages of the TOC is numbered roman +% and a pdf-bookmark for the TOC is added +\pagenumbering{roman} +\let\myTOC\tableofcontents +\renewcommand\tableofcontents{% + \pdfbookmark[1]{\contentsname}{} + \myTOC + \cleardoublepage + \pagenumbering{arabic} } +\end_preamble +\use_default_options false +\maintain_unincluded_children no +\language french +\language_package default +\inputencoding utf8 +\fontencoding auto +\font_roman "palatino" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc true +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Introduction à LyX" +\pdf_author "L'équipe LyX, Traduction: Adrien Rebollo et Siegfried Meunier-Guttin-Cluzel" +\pdf_subject "Documentation Introduction" +\pdf_keywords "LyX, documentation" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 2 +\pdf_breaklinks true +\pdf_pdfborder false +\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" +\papersize a4 +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\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 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style swiss +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\docbook_table_output 0 +\end_header + +\begin_body + +\begin_layout Title +Introduction à \SpecialChar LyX + +\end_layout + +\begin_layout Section +La philosophie de \SpecialChar LyX + +\end_layout + +\begin_layout Standard +Le tableau +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:Unités" + +\end_inset + + décrit les unités utilisées dans \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:Unités" + +\end_inset + +Unités +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +unité +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nom/description +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +mm +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +millimètre +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +cm +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +centimètre +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +in +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +inch/pouce (1 +\begin_inset space \thinspace{} +\end_inset + +in = 2.54 +\begin_inset space \thinspace{} +\end_inset + +cm) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +pt +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +point (72.27 +\begin_inset space \thinspace{} +\end_inset + +pt = 1 +\begin_inset space \thinspace{} +\end_inset + +in) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +pc +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +pica (1 +\begin_inset space \thinspace{} +\end_inset + +pc = 12 +\begin_inset space \thinspace{} +\end_inset + +pt) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +sp +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +scaled point/point divisé (65536 +\begin_inset space \thinspace{} +\end_inset + +sp = 1 +\begin_inset space \thinspace{} +\end_inset + +pt) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +bp +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +big point/point arrondi (72 +\begin_inset space \thinspace{} +\end_inset + +bp = 1 +\begin_inset space \thinspace{} +\end_inset + +in) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +dd +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +didot (72 +\begin_inset space \thinspace{} +\end_inset + +dd +\begin_inset Formula $\approx$ +\end_inset + + 37.6 +\begin_inset space \thinspace{} +\end_inset + +mm) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +cc +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +cicero (1 +\begin_inset space \thinspace{} +\end_inset + +cc = 12 +\begin_inset space \thinspace{} +\end_inset + +dd) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Scale% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% largeur originale +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +text% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% largeur du texte +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +col% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% largeur de la colonne +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +page% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% largeur du papier +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +line% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% de la ligne +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +theight% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% hauteur du texte +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +pheight% +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +% hauteur du papier +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +ex +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +hauteur de la lettre +\emph on +x +\emph default + dans la police courante +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +em +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +largeur de la lettre +\emph on +M +\emph default + dans la police courante +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +mu +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +unité mathématique (1 +\begin_inset space \thinspace{} +\end_inset + +mu = 1/18 +\begin_inset space \thinspace{} +\end_inset + +em) +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/table_float_regression_Intro.xml b/autotests/export/docbook/table_float_regression_Intro.xml new file mode 100644 index 0000000000..28ddb2ecb0 --- /dev/null +++ b/autotests/export/docbook/table_float_regression_Intro.xml @@ -0,0 +1,107 @@ + + +
+Introduction à LyX +
+La philosophie de LyX +Le tableau  décrit les unités utilisées dans LyX. + + +unité +nom/description + + +mm +millimètre + + +cm +centimètre + + +in +inch/pouce (1 in = 2.54 cm) + + +pt +point (72.27 pt = 1 in) + + +pc +pica (1 pc = 12 pt) + + +sp +scaled point/point divisé (65536 sp = 1 pt) + + +bp +big point/point arrondi (72 bp = 1 in) + + +dd +didot (72 dd +\approx + + + + + + 37.6 mm) + + +cc +cicero (1 cc = 12 dd) + + +Scale% +% largeur originale + + +text% +% largeur du texte + + +col% +% largeur de la colonne + + +page% +% largeur du papier + + +line% +% de la ligne + + +theight% +% hauteur du texte + + +pheight% +% hauteur du papier + + +ex +hauteur de la lettre x dans la police courante + + +em +largeur de la lettre M dans la police courante + + +mu +unité mathématique (1 mu = 1/18 em) + + + + + + +This figure is empty. + + +
Unités
+
+
\ No newline at end of file