]> git.lyx.org Git - features.git/commitdiff
EmbeddedObjects: allow to compile the document without having all LaTeX-packages...
authorUwe Stöhr <uwestoehr@web.de>
Sat, 3 Feb 2007 20:44:04 +0000 (20:44 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 3 Feb 2007 20:44:04 +0000 (20:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17034 a592a061-630c-0410-9148-cb99ea01b6c8

lib/doc/EmbeddedObjects.lyx
lib/doc/es_EmbeddedObjects.lyx

index 12f9468b10c0c8901d280603118cf72cf7c7717c..e7189cdba81d3bb3720c4329f5d97ff258c809d0 100644 (file)
  \let\figure\MyFigure
  \let\endfigure\MyEndfigure}
 
-% use the marginnote package for margin notes
-\usepackage{marginnote}
-\let\marginpar\marginnote
-
 % enables calculation of values,
 \usepackage{calc}
 
 \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}
 % 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
index e93b66a36f7ff0d62e753392b3fe2dc15bee9417..02f8e6d98032b7941ba1d4273138be7f2cf4dac9 100644 (file)
  \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}
 % 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