2020-12-29 17:03:05 +00:00
|
|
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
2024-01-11 16:06:40 +00:00
|
|
|
\lyxformat 620
|
2008-03-04 20:48:48 +00:00
|
|
|
\begin_document
|
|
|
|
\begin_header
|
2016-01-12 21:30:37 +00:00
|
|
|
\save_transient_properties true
|
2019-03-25 15:32:27 +00:00
|
|
|
\origin /systemlyxdir/doc/fr/
|
2008-03-04 20:48:48 +00:00
|
|
|
\textclass scrartcl
|
|
|
|
\begin_preamble
|
|
|
|
\usepackage{ifpdf}
|
|
|
|
|
|
|
|
\ifpdf
|
|
|
|
|
|
|
|
\usepackage[colorlinks=true,
|
|
|
|
pdftitle=Formelnummerierung, pdfpagemode=none,
|
|
|
|
pdfpagelayout=OneColumn, pdfstartview=XYZ,
|
|
|
|
pdfauthor={Uwe Stöhr},
|
|
|
|
pdfsubject={LaTeX/LyX numbering example},
|
|
|
|
pdfkeywords={LaTeX, numbering, LyX}]{hyperref}
|
|
|
|
|
|
|
|
\else % if DVI
|
|
|
|
|
2013-10-10 06:19:28 +00:00
|
|
|
\usepackage[colorlinks=true]{hyperref}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\fi
|
|
|
|
|
|
|
|
% definit le compteur romain
|
|
|
|
\newcounter{rom}
|
|
|
|
\renewcommand{\therom}{\roman{rom}}
|
|
|
|
|
|
|
|
% se souvient du compteur origina
|
|
|
|
\newcommand{\c@org@eq}{}
|
|
|
|
\let\c@org@eq\c@equation
|
|
|
|
\newcommand{\org@theeq}{}
|
|
|
|
\let\org@theeq\theequation
|
|
|
|
|
|
|
|
% \setrom active le compteur romain
|
|
|
|
\newcommand{\setrom}{
|
|
|
|
\let\c@equation\c@rom
|
|
|
|
\let\theequation\therom}
|
|
|
|
|
|
|
|
% \setarab active le compteur arabe original
|
|
|
|
\newcommand{\setarab}{
|
|
|
|
\let\c@equation\c@org@eq
|
|
|
|
\let\theequation\org@theeq}
|
2020-12-29 17:03:05 +00:00
|
|
|
% Added by lyx2lyx
|
|
|
|
\setlength{\parskip}{\medskipamount}
|
|
|
|
\setlength{\parindent}{0pt}
|
2008-03-04 20:48:48 +00:00
|
|
|
\end_preamble
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_default_options false
|
2020-12-29 17:03:05 +00:00
|
|
|
\maintain_unincluded_children no
|
2008-03-04 20:48:48 +00:00
|
|
|
\language french
|
2011-06-13 14:57:52 +00:00
|
|
|
\language_package default
|
2019-05-08 17:59:57 +00:00
|
|
|
\inputencoding utf8
|
2020-12-29 17:03:05 +00:00
|
|
|
\fontencoding auto
|
2015-11-11 20:56:27 +00:00
|
|
|
\font_roman "default" "default"
|
|
|
|
\font_sans "default" "default"
|
|
|
|
\font_typewriter "default" "default"
|
|
|
|
\font_math "auto" "auto"
|
2008-03-04 20:48:48 +00:00
|
|
|
\font_default_family default
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_non_tex_fonts false
|
2008-03-04 20:48:48 +00:00
|
|
|
\font_sc false
|
2020-12-29 17:03:05 +00:00
|
|
|
\font_sans_osf false
|
|
|
|
\font_typewriter_osf false
|
|
|
|
\font_roman_osf false
|
2015-11-11 20:56:27 +00:00
|
|
|
\font_sf_scale 100 100
|
|
|
|
\font_tt_scale 100 100
|
2017-04-24 04:03:19 +00:00
|
|
|
\use_microtype false
|
|
|
|
\use_dash_ligatures false
|
2008-03-04 20:48:48 +00:00
|
|
|
\graphics default
|
2015-12-10 09:40:50 +00:00
|
|
|
\default_output_format pdf2
|
2011-06-13 14:57:52 +00:00
|
|
|
\output_sync 0
|
|
|
|
\bibtex_command default
|
|
|
|
\index_command default
|
2008-03-04 20:48:48 +00:00
|
|
|
\paperfontsize 12
|
|
|
|
\spacing single
|
2008-06-04 22:36:44 +00:00
|
|
|
\use_hyperref false
|
2008-03-04 20:48:48 +00:00
|
|
|
\papersize default
|
|
|
|
\use_geometry false
|
2014-03-23 14:45:15 +00:00
|
|
|
\use_package amsmath 2
|
|
|
|
\use_package amssymb 2
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package cancel 1
|
|
|
|
\use_package esint 1
|
2014-03-23 14:45:15 +00:00
|
|
|
\use_package mathdots 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package mathtools 1
|
2014-03-23 14:45:15 +00:00
|
|
|
\use_package mhchem 1
|
2017-10-19 12:47:51 +00:00
|
|
|
\use_package stackrel 1
|
|
|
|
\use_package stmaryrd 1
|
|
|
|
\use_package undertilde 1
|
2008-03-04 20:48:48 +00:00
|
|
|
\cite_engine basic
|
2014-03-23 14:45:15 +00:00
|
|
|
\cite_engine_type default
|
|
|
|
\biblio_style plain
|
2008-03-04 20:48:48 +00:00
|
|
|
\use_bibtopic false
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_indices false
|
2008-03-04 20:48:48 +00:00
|
|
|
\paperorientation portrait
|
2011-06-13 14:57:52 +00:00
|
|
|
\suppress_date false
|
2014-03-23 14:45:15 +00:00
|
|
|
\justification true
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_refstyle 0
|
2017-11-19 01:21:30 +00:00
|
|
|
\use_minted 0
|
2020-12-29 17:03:05 +00:00
|
|
|
\use_lineno 0
|
2011-06-13 14:57:52 +00:00
|
|
|
\index Index
|
|
|
|
\shortcut idx
|
|
|
|
\color #008000
|
|
|
|
\end_index
|
2008-03-04 20:48:48 +00:00
|
|
|
\secnumdepth 4
|
|
|
|
\tocdepth 3
|
2020-12-29 17:03:05 +00:00
|
|
|
\paragraph_separation indent
|
|
|
|
\paragraph_indentation default
|
2017-04-24 04:03:19 +00:00
|
|
|
\is_math_indent 1
|
2017-11-19 01:21:30 +00:00
|
|
|
\math_indentation default
|
2017-08-14 06:31:24 +00:00
|
|
|
\math_numbering_side default
|
2017-04-24 04:03:19 +00:00
|
|
|
\quotes_style english
|
2017-11-19 01:21:30 +00:00
|
|
|
\dynamic_quotes 0
|
2008-03-04 20:48:48 +00:00
|
|
|
\papercolumns 1
|
|
|
|
\papersides 1
|
|
|
|
\paperpagestyle empty
|
|
|
|
\tracking_changes false
|
2020-12-29 17:03:05 +00:00
|
|
|
\postpone_fragile_content false
|
2008-03-04 20:48:48 +00:00
|
|
|
\output_changes false
|
2011-06-13 14:57:52 +00:00
|
|
|
\html_math_output 0
|
|
|
|
\html_css_as_file 0
|
|
|
|
\html_be_strict false
|
2008-03-04 20:48:48 +00:00
|
|
|
\end_header
|
|
|
|
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Ce document illustre l'utilisation de deux catégories différentes de formules.
|
|
|
|
L'une est numérotée avec des chiffres arabes, l'autre avec des chiffres
|
|
|
|
romains.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=B\label{eq:B}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=C\label{eq:C}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setrom
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=D\label{eq:D}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=E\label{eq:E}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setarab
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=F\label{eq:F}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=G\label{eq:G}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setrom
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=H\label{eq:H}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
2011-06-13 14:57:52 +00:00
|
|
|
\begin_inset Formula
|
|
|
|
\begin{equation}
|
|
|
|
A=I\label{eq:I}
|
|
|
|
\end{equation}
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Références croisées:
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:B"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:C"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:F"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:G"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:D"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:E"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:H"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2022-12-25 17:48:19 +00:00
|
|
|
nolink "false"
|
2008-03-04 20:48:48 +00:00
|
|
|
reference "eq:I"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2011-06-13 14:57:52 +00:00
|
|
|
\noindent
|
|
|
|
\begin_inset CommandInset line
|
|
|
|
LatexCommand rule
|
|
|
|
offset "0.5ex"
|
|
|
|
width "100line%"
|
|
|
|
height "1pt"
|
|
|
|
|
|
|
|
\end_inset
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
\begin_inset VSpace medskip
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
Pour créer cet exemple, il faut d'abord définir un compteur pour les formules
|
|
|
|
numérotées avec des chiffres romains.
|
2016-01-13 00:14:48 +00:00
|
|
|
Pour le faire, on insère ce qui suit dans le préambule \SpecialChar LaTeX
|
2015-11-11 20:56:27 +00:00
|
|
|
:
|
2008-03-04 20:48:48 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcounter{rom}
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
renewcommand{
|
|
|
|
\backslash
|
|
|
|
therom}{
|
|
|
|
\backslash
|
|
|
|
roman{rom}}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset Newpage newpage
|
|
|
|
\end_inset
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
Pour enregistrer la valeur du compteur en chiffres arabes
|
|
|
|
\series bold
|
|
|
|
equation
|
|
|
|
\series default
|
|
|
|
, on ajoute ceci au préambule:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
c@org@eq}{}
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@org@eq
|
|
|
|
\backslash
|
|
|
|
c@equation
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
org@theeq}{}
|
2008-06-04 22:36:44 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-04 20:48:48 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
org@theeq
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Pour pouvoir permuter entre les deux types de numérotation dans le document,
|
|
|
|
on définit les commandes suivantes dans le préambule:
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
setrom}{
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@equation
|
|
|
|
\backslash
|
|
|
|
c@rom
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\backslash
|
|
|
|
therom}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
pour la numérotation en chiffres romains et
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
setarab}{
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@equation
|
|
|
|
\backslash
|
|
|
|
c@org@eq
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\backslash
|
|
|
|
org@theeq}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
pour la numérotation en chiffres arabes.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Chaque formule sera numérotée par défaut avec des chiffres arabes.
|
|
|
|
Pour passer aux chiffres romains, on insère la commande
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setrom
|
|
|
|
\series default
|
2016-01-13 00:14:48 +00:00
|
|
|
en code \SpecialChar TeX
|
2015-11-11 20:56:27 +00:00
|
|
|
.
|
2008-03-04 20:48:48 +00:00
|
|
|
Avec la commande
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setarab
|
|
|
|
\series default
|
|
|
|
la numérotation passe en chiffres arabes.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
\end_document
|