2020-12-29 17:03:05 +00:00
|
|
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
|
|
|
\lyxformat 600
|
2008-03-01 14:50:42 +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/es/
|
2008-03-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
|
|
|
|
\fi
|
|
|
|
|
|
|
|
% define Roman counter
|
|
|
|
\newcounter{rom}
|
|
|
|
\renewcommand{\therom}{\roman{rom}}
|
|
|
|
|
|
|
|
% remember the original counter
|
|
|
|
\newcommand{\c@org@eq}{}
|
|
|
|
\let\c@org@eq\c@equation
|
|
|
|
\newcommand{\org@theeq}{}
|
|
|
|
\let\org@theeq\theequation
|
|
|
|
|
|
|
|
% \setrom activates the Roman counter
|
|
|
|
\newcommand{\setrom}{
|
|
|
|
\let\c@equation\c@rom
|
|
|
|
\let\theequation\therom}
|
|
|
|
|
|
|
|
% \setarab activates the original Arabic counter
|
|
|
|
\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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
\language spanish
|
2011-06-13 14:57:52 +00:00
|
|
|
\language_package default
|
2019-04-20 14:27:58 +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-01 14:50:42 +00:00
|
|
|
\font_default_family default
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_non_tex_fonts false
|
2008-03-01 14:50:42 +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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
\paperfontsize 12
|
|
|
|
\spacing single
|
2008-06-04 22:30:26 +00:00
|
|
|
\use_hyperref false
|
2008-03-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
\cite_engine basic
|
2014-03-23 14:45:15 +00:00
|
|
|
\cite_engine_type default
|
|
|
|
\biblio_style plain
|
2008-03-01 14:50:42 +00:00
|
|
|
\use_bibtopic false
|
2011-06-13 14:57:52 +00:00
|
|
|
\use_indices false
|
2008-03-01 14:50:42 +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 Índice
|
|
|
|
\shortcut idx
|
|
|
|
\color #008000
|
|
|
|
\end_index
|
2008-03-01 14:50:42 +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-01 14:50:42 +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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
\end_header
|
|
|
|
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Este documento muestra el uso de dos categorías diferentes de ecuaciones.
|
|
|
|
Una está numerada en arábigos, la otra en romanos.
|
|
|
|
\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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-03-01 14:50:42 +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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-03-01 14:50:42 +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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\begin_inset ERT
|
|
|
|
status collapsed
|
|
|
|
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_layout Plain Layout
|
2008-03-01 14:50:42 +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-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Referencias cruzadas:
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:B"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:C"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:F"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:G"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:D"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:E"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +00:00
|
|
|
reference "eq:H"
|
|
|
|
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
,
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset CommandInset ref
|
|
|
|
LatexCommand eqref
|
2008-03-01 14:50:42 +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-01 14:50:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
\begin_inset VSpace medskip
|
|
|
|
\end_inset
|
|
|
|
|
|
|
|
Para escribir este ejemplo, primero hay que definir un contador para las
|
|
|
|
fórmulas numeradas en romanos.
|
2016-01-13 00:14:48 +00:00
|
|
|
Para ello se inserta lo siguiente en el preámbulo \SpecialChar LaTeX
|
2015-11-11 20:56:27 +00:00
|
|
|
:
|
2008-03-01 14:50:42 +00:00
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcounter{rom}
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-01 14:50:42 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
renewcommand{
|
|
|
|
\backslash
|
|
|
|
therom}{
|
|
|
|
\backslash
|
|
|
|
roman{rom}}
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset Newpage newpage
|
|
|
|
\end_inset
|
2008-03-01 14:50:42 +00:00
|
|
|
|
|
|
|
Para guardar el valor del contador arábigo
|
|
|
|
\series bold
|
|
|
|
equation
|
|
|
|
\series default
|
|
|
|
, se añade al preámbulo lo siguiente
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
c@org@eq}{}
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-01 14:50:42 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
c@org@eq
|
|
|
|
\backslash
|
|
|
|
c@equation
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-01 14:50:42 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
newcommand{
|
|
|
|
\backslash
|
|
|
|
org@theeq}{}
|
2008-06-04 22:30:26 +00:00
|
|
|
\begin_inset Newline newline
|
|
|
|
\end_inset
|
|
|
|
|
2008-03-01 14:50:42 +00:00
|
|
|
|
|
|
|
\backslash
|
|
|
|
let
|
|
|
|
\backslash
|
|
|
|
org@theeq
|
|
|
|
\backslash
|
|
|
|
theequation
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Para poder alternar en el documento entre ambos esquemas de numeración,
|
|
|
|
se definen los siguientes comandos en el preámbulo:
|
|
|
|
\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
|
|
|
|
para la numeración romana y
|
|
|
|
\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
|
|
|
|
para la numeración arábiga.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\begin_layout Standard
|
|
|
|
Cada fórmula será numerada en arábigos por defecto.
|
|
|
|
Para cambiar a numeración en romanos, se inserta el comando
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setrom
|
|
|
|
\series default
|
2016-01-13 00:14:48 +00:00
|
|
|
en modo \SpecialChar TeX
|
2015-11-11 20:56:27 +00:00
|
|
|
.
|
2008-03-01 14:50:42 +00:00
|
|
|
Con el comando
|
|
|
|
\series bold
|
|
|
|
|
|
|
|
\backslash
|
|
|
|
setarab
|
|
|
|
\series default
|
|
|
|
la numeración retorna a números arábigos.
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
\end_document
|