mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 17:09:41 +00:00
EmbeddedObjects: allow to compile the document without having all LaTeX-packages installed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17034 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b36dd63921
commit
48bc78e39f
@ -76,10 +76,6 @@
|
||||
\let\figure\MyFigure
|
||||
\let\endfigure\MyEndfigure}
|
||||
|
||||
% use the marginnote package for margin notes
|
||||
\usepackage{marginnote}
|
||||
\let\marginpar\marginnote
|
||||
|
||||
% enables calculation of values,
|
||||
\usepackage{calc}
|
||||
|
||||
@ -107,9 +103,6 @@
|
||||
\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
|
||||
\definecolor{lightgrey}{gray}{0.8}
|
||||
|
||||
% used for tables with dashed lines
|
||||
\usepackage{arydshln}
|
||||
|
||||
% used for multirows
|
||||
\usepackage{multirow}
|
||||
%\renewcommand{\multirowsetup}{\centering}
|
||||
@ -158,6 +151,27 @@
|
||||
% redefine the greyed out note
|
||||
\renewenvironment{lyxgreyedout}
|
||||
{\textcolor{blue}\bgroup}{\egroup}
|
||||
|
||||
% ------------------------------------
|
||||
% used to check for needed LaTeX packages
|
||||
\usepackage{ifthen}
|
||||
|
||||
% check for package arydshln
|
||||
% used for tables with dashed lines
|
||||
\newboolean{arydshln}
|
||||
\IfFileExists{arydshln.sty}
|
||||
{\usepackage{arydshln}
|
||||
\setboolean{arydshln}{true}}
|
||||
{\setboolean{arydshln}{false}}
|
||||
|
||||
% check for package marginnote
|
||||
% used for margin notes
|
||||
\newboolean{marginnote}
|
||||
\IfFileExists{marginnote.sty}
|
||||
{\usepackage{marginnote}
|
||||
\let\marginpar\marginnote
|
||||
\setboolean{marginnote}{true}}
|
||||
{\setboolean{marginnote}{false}}
|
||||
\end_preamble
|
||||
\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage
|
||||
\language english
|
||||
@ -246,7 +260,7 @@ status collapsed
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
original author: Uwe Stöhr <uwestoehr@web.de>
|
||||
original author: Uwe Stöhr
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -275,19 +289,18 @@ Version 1.5.0-
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
To export this document to PDF, PS, or DVI the LaTeX-packages
|
||||
To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
|
||||
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
,
|
||||
and
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
, and
|
||||
\series bold
|
||||
prettyref
|
||||
\series default
|
||||
must be installed.
|
||||
If they are not installed you can export the document anyway but the sections
|
||||
where the packages are required won't appear in the output.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -16860,6 +16873,37 @@ name "Table Customization ! Dashed Lines"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
ifarydshln
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
The following section will only be displayed when you have the LaTeX-package
|
||||
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
is installed.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -17334,6 +17378,60 @@ reference "sec:Colored-Tables"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
else
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
The following will be displayed when the LaTeX-package
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
is not installed:
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
You need to install the package
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
to see the contents of this section in the output.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
fi
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Chapter
|
||||
@ -22789,6 +22887,44 @@ Note:
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset VSpace bigskip
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
ifmarginnote
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
The following section will only be displayed when you have the LaTeX-package
|
||||
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
is installed.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -23248,7 +23384,7 @@ myMarginpar{#1}}
|
||||
\series default
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
The margin note format is changed only for this example.
|
||||
@ -23257,6 +23393,60 @@ The margin note format is changed only for this example.
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
else
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
The following will be displayed when the LaTeX-package
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
is not installed:
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
You need to install the LaTeX-package
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
to see the following part of this section in the output.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
fi
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Chapter
|
||||
|
@ -29,10 +29,6 @@
|
||||
\let\figure\MyFigure
|
||||
\let\endfigure\MyEndfigure}
|
||||
|
||||
% use the marginnote package for margin notes
|
||||
\usepackage{marginnote}
|
||||
\let\marginpar\marginnote
|
||||
|
||||
% enables calculation of values,
|
||||
\usepackage{calc}
|
||||
|
||||
@ -97,9 +93,6 @@
|
||||
\definecolor{verdeoscuro}{cmyk}{0.5, 0, 1, 0.5}
|
||||
\definecolor{grisclaro}{gray}{0.8}
|
||||
|
||||
% used for tables with dashed lines
|
||||
\usepackage{arydshln}
|
||||
|
||||
% used for multirows
|
||||
\usepackage{multirow}
|
||||
%\renewcommand{\multirowsetup}{\centering}
|
||||
@ -158,6 +151,27 @@
|
||||
% redefine the greyed out note
|
||||
\renewenvironment{lyxgreyedout}
|
||||
{\textcolor{blue}\bgroup}{\egroup}
|
||||
|
||||
% ------------------------------------
|
||||
% used to check for needed LaTeX packages
|
||||
\usepackage{ifthen}
|
||||
|
||||
% check for package arydshln
|
||||
% used for tables with dashed lines
|
||||
\newboolean{arydshln}
|
||||
\IfFileExists{arydshln.sty}
|
||||
{\usepackage{arydshln}
|
||||
\setboolean{arydshln}{true}}
|
||||
{\setboolean{arydshln}{false}}
|
||||
|
||||
% check for package marginnote
|
||||
% used for margin notes
|
||||
\newboolean{marginnote}
|
||||
\IfFileExists{marginnote.sty}
|
||||
{\usepackage{marginnote}
|
||||
\let\marginpar\marginnote
|
||||
\setboolean{marginnote}{true}}
|
||||
{\setboolean{marginnote}{false}}
|
||||
\end_preamble
|
||||
\options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage
|
||||
\language spanish
|
||||
@ -246,7 +260,7 @@ status collapsed
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
autor original: Uwe Stöhr <uwestoehr@web.de>
|
||||
autor original: Uwe Stöhr
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
@ -287,19 +301,18 @@ status open
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
To export this document to PDF, PS, or DVI the LaTeX-packages
|
||||
To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
|
||||
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
,
|
||||
and
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
, and
|
||||
\series bold
|
||||
prettyref
|
||||
\series default
|
||||
must be installed.
|
||||
If they are not installed you can export the document anyway but the sections
|
||||
where the packages are required won't appear in the output.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -16659,6 +16672,39 @@ name "Personalización de Tablas ! Líneas de Trazos"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
ifarydshln
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The following section will only be displayed when you have the LaTeX-package
|
||||
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
is installed.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -17117,6 +17163,64 @@ reference "sec:Tablas-Coloreadas"
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
else
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The following will be displayed when the LaTeX-package
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
is not installed:
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
You need to install the package
|
||||
\series bold
|
||||
arydshln
|
||||
\series default
|
||||
to see the contents of this section in the output.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
fi
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Chapter
|
||||
@ -22184,6 +22288,46 @@ Nota:
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset VSpace bigskip
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
ifmarginnote
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The following section will only be displayed when you have the LaTeX-package
|
||||
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
is installed.
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
@ -22462,21 +22606,15 @@ key "marginnote"
|
||||
El diseño de las notas al margen puede ser redefinido.
|
||||
Por ejemplo, para crear una cabecera para todas las notas con el texto
|
||||
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
|
||||
\family sans
|
||||
\series bold
|
||||
\bar under
|
||||
¡
|
||||
\family sans
|
||||
Atención
|
||||
\family default
|
||||
!
|
||||
\series default
|
||||
\bar default
|
||||
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
, subrayado, sans-serif en negrita, añade lo siguiente en el preámbulo:
|
||||
\end_layout
|
||||
|
||||
@ -22655,6 +22793,66 @@ El formato de la nota al margen se ha cambiado solo para este ejemplo.
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
else
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\lang english
|
||||
|
||||
\begin_inset Note Note
|
||||
status open
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
The following will be displayed when the LaTeX-package
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
is not installed:
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
\lang english
|
||||
You need to install the LaTeX-package
|
||||
\series bold
|
||||
marginnote
|
||||
\series default
|
||||
to see the following part of this section in the output.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
\begin_inset ERT
|
||||
status collapsed
|
||||
|
||||
\begin_layout Standard
|
||||
|
||||
|
||||
\backslash
|
||||
fi
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Chapter
|
||||
|
Loading…
x
Reference in New Issue
Block a user