]> git.lyx.org Git - features.git/commitdiff
Add powerdot layout and example
authorUwe Stöhr <uwestoehr@web.de>
Tue, 22 May 2007 21:35:22 +0000 (21:35 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 22 May 2007 21:35:22 +0000 (21:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18463 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_manifest.py
lib/Makefile.am
lib/chkconfig.ltx
lib/doc/LaTeXConfig.lyx.in
lib/examples/powerdot-example.lyx [new file with mode: 0644]
lib/layouts/powerdot.layout [new file with mode: 0644]

index cb794eec4987a4eb9cacbf73d6d3ef937591c3fd..2dbe469487829ce05defe282e97e3efd059a3b81 100644 (file)
@@ -2423,6 +2423,7 @@ lib_examples_files = Split('''
     modernCV.lyx
     multicol.lyx
     noweb2lyx.lyx
+    powerdot-example.lyx
     script_form.lyx
     simplecv.lyx
     splash.lyx
@@ -2646,6 +2647,7 @@ lib_layouts_files = Split('''
     mwbk.layout
     mwrep.layout
     paper.layout
+    powerdot.layout
     report.layout
     revtex.layout
     revtex4.layout
index 812b3ca008dcfb965cb9778b28fdac5ff5747d08..5b679dc72f4c8b0a26ea60d2816bb4d32f8442d0 100644 (file)
@@ -210,6 +210,7 @@ dist_examples_DATA = \
        examples/modernCV.lyx \
        examples/multicol.lyx \
        examples/noweb2lyx.lyx \
+       examples/powerdot-example.lyx \
        examples/script_form.lyx \
        examples/simplecv.lyx \
        examples/splash.lyx
@@ -956,6 +957,7 @@ dist_layouts_DATA =\
        layouts/mwbk.layout \
        layouts/mwrep.layout \
        layouts/paper.layout \
+       layouts/powerdot.layout \
        layouts/report.layout \
        layouts/revtex.layout \
        layouts/revtex4.layout \
index baf0b96ba423c54765ffa3ad296c8d5248ed9740..7b106aa17c88e38bdfc3d4f160433f0b432be1ee 100644 (file)
 \TestPackage{url}
 \TestPackage{xcolor}
 
+
 % The test for the graphics package is slightly more involved...
 \newcommand\groption{dvips}
 \TestItem{graphicx}{package}{sty}
index bbdfecaf9fe7f8e7a3f1bf5074a49bca5811ff5f..2acd2b55811fd146a0fa2ff3977a0fd036696097 100644 (file)
@@ -1,5 +1,5 @@
 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 270
+\lyxformat 271
 \begin_document
 \begin_header
 \textclass article
@@ -33,6 +33,7 @@
 \paperpagestyle plain
 \tracking_changes false
 \output_changes false
+\author "usti" 
 \author "Jürgen Spitzmüller" 
 \author "Jean-Marc Lasgouttes" 
 \end_header
@@ -1971,6 +1972,24 @@ article
  sans serif sections, headings, and more.
 \end_layout
 
+\begin_layout Subsection
+powerdot
+\end_layout
+
+\begin_layout Description
+Found: @chk_powerdot@
+\end_layout
+
+\begin_layout Description
+CTAN: 
+\family typewriter
+macros/latex/contrib/powerdot
+\end_layout
+
+\begin_layout Description
+Notes: A LaTeX class for producing presentations and slides.
+\end_layout
+
 \begin_layout Subsection
 SPIE
 \end_layout
diff --git a/lib/examples/powerdot-example.lyx b/lib/examples/powerdot-example.lyx
new file mode 100644 (file)
index 0000000..6229d2d
--- /dev/null
@@ -0,0 +1,631 @@
+#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 271
+\begin_document
+\begin_header
+\textclass powerdot
+\begin_preamble
+\usepackage{listings}
+\pdsetup{%
+  lf=left footer,
+  rf=right footer
+}
+\end_preamble
+\options nopsheader,style=fyma,display=slidesnotes
+\language english
+\inputencoding auto
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_default_family default
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
+\graphics default
+\paperfontsize size=10
+\spacing single
+\papersize letterpaper
+\use_geometry false
+\use_amsmath 1
+\use_esint 0
+\cite_engine basic
+\use_bibtopic false
+\paperorientation landscape
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\defskip medskip
+\quotes_language french
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\author "usti" 
+\end_header
+
+\begin_body
+
+\begin_layout Title
+A LyX sample
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ You must not use the view PDF button to preview this file! For viewing
+ and exporting this as PDF use in the menus the method PDF (ps2pdf) or PDF
+ (dvipdfm).
+ For more informations, please read the 
+\series bold
+powerdot
+\series default
+ manual.
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ Depending on your LaTeX-system you might have to add the option 
+\begin_inset Quotes fld
+\end_inset
+
+dvips
+\begin_inset Quotes frd
+\end_inset
+
+ to the document class options to get proper DVI output.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Author
+Mael Hilléreau 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+and
+\end_layout
+
+\end_inset
+
+ Hendri Adriaens 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+and
+\end_layout
+
+\end_inset
+
+ Christopher Ellison
+\end_layout
+
+\begin_layout Date
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+today
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Slide
+My first slide
+\end_layout
+
+\begin_layout Standard
+We use a 
+\family typewriter
+Slide
+\family default
+ style (magenta color, see above this text into LyX window) for the title
+ of each slide of a section or document.
+\end_layout
+
+\begin_layout WideSlide
+My wide slide
+\end_layout
+
+\begin_layout Standard
+\begin_inset LatexCommand label
+name "toc"
+
+\end_inset
+
+But we may also use wide slides (green color, see above this text into LyX
+ window).
+\end_layout
+
+\begin_layout Standard
+Let's have a look at the TOC:
+\begin_inset VSpace medskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset LatexCommand tableofcontents
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+This is the first section
+\end_layout
+
+\begin_layout Slide
+\begin_inset OptArg
+status collapsed
+
+\begin_layout Standard
+toc=This slide has...
+\end_layout
+
+\end_inset
+
+This slide has a very very long title
+\end_layout
+
+\begin_layout Standard
+This slide's title is different in the TOC, see slide 
+\begin_inset LatexCommand pageref
+reference "toc"
+
+\end_inset
+
+ or at the left of all slides in this section.
+\end_layout
+
+\begin_layout Note
+Important note!
+\end_layout
+
+\begin_layout Standard
+Don't forget to use 
+\family typewriter
+Insert
+\family default
+\SpecialChar \menuseparator
+
+\family typewriter
+Short title
+\family default
+ in order to specify slide options.
+\end_layout
+
+\begin_layout Slide
+Using 
+\family typewriter
+
+\backslash
+pause
+\end_layout
+
+\begin_layout Standard
+Let's make a pause! 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\SpecialChar \ldots{}
+ and then continue.
+\end_layout
+
+\begin_layout Section
+Second section
+\end_layout
+
+\begin_layout Slide
+Using 
+\family typewriter
+enumerate
+\end_layout
+
+\begin_layout Standard
+Let's enumerate things:
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout EnumerateType1
+The first thing;
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout EnumerateType1
+The second thing;
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout EnumerateType1
+The third thing;
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout EnumerateType1
+The final thing!
+\end_layout
+
+\begin_layout Slide
+Using 
+\family typewriter
+itemize
+\end_layout
+
+\begin_layout Standard
+We may also make some items and nest them:
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout ItemizeType1
+<2> The first;
+\end_layout
+
+\begin_layout ItemizeType1
+<3> The second;
+\end_layout
+
+\begin_deeper
+\begin_layout ItemizeType1
+<4> One,
+\end_layout
+
+\begin_layout ItemizeType1
+<5> Two,
+\end_layout
+
+\begin_layout ItemizeType1
+<6> Three,
+\end_layout
+
+\end_deeper
+\begin_layout ItemizeType1
+<7> The last one.
+\end_layout
+
+\begin_layout EmptySlide
+\begin_inset OptArg
+status collapsed
+
+\begin_layout Standard
+toc=,randomdots
+\end_layout
+
+\end_inset
+
+The empty slide!
+\end_layout
+
+\begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+This slide is empty\SpecialChar \ldots{}
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+It uses 
+\family typewriter
+EmptySlide
+\family default
+ style for its title (see cyan color into LyX window).
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\align center
+You may also have noticed the use of 
+\family typewriter
+randomdots
+\family default
+ slide option which
+\newline
+allows displaying those multicolor dots into the slide
+ background.
+\end_layout
+
+\begin_layout Slide
+\begin_inset OptArg
+status collapsed
+
+\begin_layout Standard
+method=direct
+\end_layout
+
+\end_inset
+
+Example of LaTeX source code
+\end_layout
+
+\begin_layout Standard
+Let's now use the 
+\family typewriter
+listings
+\family default
+ package in order to typeset some source code.
+ Here's the 
+\family typewriter
+
+\backslash
+HelloWorld
+\family default
+ LaTeX command:
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status open
+
+\begin_layout Standard
+
+
+\backslash
+lstset{language=[LaTeX]TeX}
+\end_layout
+
+\begin_layout Standard
+
+
+\backslash
+begin{lstlisting}
+\end_layout
+
+\begin_layout Standard
+
+
+\backslash
+newcommand{
+\backslash
+HelloWorld}{Hello World!}
+\end_layout
+
+\begin_layout Standard
+
+
+\backslash
+end{lstlisting}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Note that this slide uses the 
+\family typewriter
+method=direct
+\family default
+ option (see its short title options box above into LyX window).
+\end_layout
+
+\begin_layout Slide
+\begin_inset OptArg
+status collapsed
+
+\begin_layout Standard
+method=file
+\end_layout
+
+\end_inset
+
+Verbatim material with overlays
+\end_layout
+
+\begin_layout Standard
+Here's 
+\family typewriter
+HelloWorld()
+\family default
+ C function:
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language=C"
+inline false
+status open
+
+\begin_layout Standard
+
+void HelloWorld() {
+\end_layout
+
+\begin_layout Standard
+
+printf("Hello World!
+\backslash
+n");
+\end_layout
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+pause
+\end_layout
+
+\end_inset
+
+ Unlike the previous one, this slide must use 
+\family typewriter
+method=file
+\family default
+ as it employs two overlays.
+\end_layout
+
+\begin_layout Slide
+The end.
+\end_layout
+
+\begin_layout Standard
+Don't forget to put an 
+\family typewriter
+EndSlide
+\family default
+ style at the end of the document (see the black symbol below into LyX window).
+\end_layout
+
+\begin_layout Standard
+Have fun!
+\end_layout
+
+\begin_layout EndSlide
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/lib/layouts/powerdot.layout b/lib/layouts/powerdot.layout
new file mode 100644 (file)
index 0000000..493569f
--- /dev/null
@@ -0,0 +1,429 @@
+#% Do not delete the line below; configure depends on this
+#  \DeclareLaTeXClass[powerdot,enumitem.sty,pstricks.sty,xkeyval.sty]{presentation (powerdot)}
+# PowerDot textclass definition file.
+# Created: 29-Aug-05 by Mael Hilléreau
+# Last modified: 20-May-06 by Uwe Stöhr
+
+
+###
+# General textclass parameters
+###
+Format 4
+Columns         1
+Sides           1
+Provides url     1
+DefaultStyle        Standard
+
+DefaultFont
+  Family        Sans
+  Series        Medium
+  Shape         Up
+  Size          Normal
+  Color         None
+EndFont
+
+###
+# General textclass parameters
+###
+ClassOptions
+  FontSize   size=8|size=9|size=10|size=11|size=12|size=14|size=17|size=20
+  PageStyle  ""
+End
+
+###
+# Title style definition
+###
+Style Title
+  Margin        Static
+  LatexType     Command
+  InTitle       1
+  LatexName     title
+  ParSkip       0.4
+  ItemSep       0
+  TopSep        0
+  BottomSep     1
+  ParSep        1
+  Align         Center
+  AlignPossible     Center
+  LabelType     No_Label
+
+  Font
+    Series      Bold
+    Size        Largest
+    Color       Blue
+  EndFont
+End
+
+###
+# Author style definition
+###
+Style Author
+  Margin        Static
+  LatexType     Command
+  InTitle       1
+  LatexName     author
+  LabelSep      xxx
+  ParSkip       0.4
+  TopSep        1.3
+  BottomSep     0.7
+  ParSep        0.7
+  Align         Center
+  AlignPossible     Center
+  LabelType     No_Label
+
+  Font
+    Size        Large
+    Color       Blue
+  EndFont
+End
+
+###
+# Date style definition
+###
+Style Date
+  Margin        Dynamic
+  LatexType     Command
+  InTitle       1
+  LatexName     date
+  LabelSep      xxx
+  ParSkip       0.4
+  TopSep        0.9
+  BottomSep     0.5
+  ParSep        1
+  Align         Center
+  AlignPossible     Center
+  LabelType     No_Label
+
+  Font
+    Size        Large
+    Color       Blue
+  EndFont
+End
+
+###
+# Standard style definition
+###
+Style Standard
+  Margin        Static
+  LatexType         Paragraph
+  LatexName         dummy
+  ParSkip       0.4
+  Align         Block
+  AlignPossible     Block, Left, Right, Center
+  LabelType         No_Label
+End
+
+###
+# Slide styles definition
+###
+Style Slide
+  Margin        Static
+  LatexType     Command
+  LatexName     lyxend\lyxslide
+  LabelSep      xxx
+  ParSkip       0.4
+  TopSep        1.3
+  BottomSep     0.7
+  ParSep        0.7
+  Align         Center
+  AlignPossible     Center
+  LabelType     Counter
+  LabelCounter subsection
+  LabelString       "    "
+  OptionalArgs      1
+
+  Font
+    Series      Bold
+    Size        Large
+    Color       Magenta
+  EndFont
+End
+
+Style EndSlide
+  CopyStyle     Slide
+  KeepEmpty     1
+  LatexName     lyxend
+  Margin            Static
+  ParSkip           0
+  TopSep            0
+  BottomSep         1
+  ParSep            0
+  LabelType         Static
+  LabelBottomSep    0
+  LeftMargin        MMMMMMM
+  LabelString       "~=~"
+  OptionalArgs      0
+
+  Font
+    Color       None
+  EndFont
+End
+
+
+
+###
+# Wideslide style definition
+###
+Style WideSlide
+  CopyStyle     Slide
+  LatexName     lyxend\lyxwideslide
+
+  Font
+    Color       Green
+  EndFont
+End
+
+###
+# EmptySlide style definition
+###
+Style EmptySlide
+  CopyStyle     Slide
+  LatexName     lyxend\lyxemptyslide
+  LeftMargin        MMMMMMMMMMMMMM
+  LabelString       "Empty slide:"
+  LabelType         Static
+  KeepEmpty     1
+
+  Font
+    Color       Cyan
+  EndFont
+End
+
+###
+# Note style definition
+###
+Style Note
+  CopyStyle     Slide
+  LatexName     lyxend\lyxnote
+  LeftMargin        MMMMMMM
+  LabelString       "Note:"
+  LabelType         Static
+  KeepEmpty     1
+  OptionalArgs      0
+
+  Font
+    Color       Red
+  EndFont
+End
+
+###
+# Section style definition
+###
+Style Section
+  CopyStyle     Slide
+  LatexName     lyxend\section
+  LabelType     Counter
+  LabelCounter section
+  LabelString       "\arabic{section}"
+
+  Font
+    Size        Larger
+    Color       Blue
+  EndFont
+  LabelStringAppendix "\Alph{section}"
+End
+
+###
+# Itemize styles definition
+###
+Style Itemize
+  Margin        Static
+  LatexType     Item_Environment
+  LatexName     itemize
+  NextNoIndent      1
+  LeftMargin        MMN
+  LabelSep      xx
+  ItemSep       0.2
+  TopSep        0.7
+  BottomSep     0.7
+  ParSep        0.3
+  Align         Block
+  AlignPossible     Block, Left
+  LabelType     Itemize
+  LabelString       *
+End
+
+Style ItemizeType1
+  CopyStyle     Itemize
+  LatexParam        [type=1]
+End
+
+###
+# Enumerate styles definition
+###
+Style Enumerate
+  Margin        Static
+  LatexType     Item_Environment
+  LatexName     enumerate
+  NextNoIndent      1
+  LeftMargin        MMN
+  LabelSep      xx
+  ParSkip       0.0
+  ItemSep       0.2
+  TopSep        0.7
+  BottomSep     0.7
+  ParSep        0.3
+  Align         Block
+  AlignPossible     Block, Left
+  LabelType     Enumerate
+End
+
+Style EnumerateType1
+  CopyStyle     Enumerate
+  LatexParam        [type=1]
+End
+
+###
+# Bibliography style definition
+###
+Style Bibliography
+  Margin        First_Dynamic
+  LatexType     Bib_Environment
+  LatexName     thebibliography
+  NextNoIndent      1
+  LeftMargin        MM
+  ParSkip       0.4
+  ItemSep       0
+  TopSep        0.7
+  BottomSep     0.7
+  ParSep        0.5
+  Align         Block
+  AlignPossible     Block, Left
+  LabelType     Bibliography
+  LabelString       ""
+  LabelBottomSep    0
+End
+
+###
+# Quotation style definition
+###
+Style Quotation
+  Margin        Static
+  LatexType     Environment
+  LatexName     quotation
+  NextNoIndent      1
+  LeftMargin        MMM
+  RightMargin       MMM
+  ParIndent     MM
+  ParSkip       0
+  ItemSep       0
+  TopSep        0.5
+  BottomSep     0.5
+  ParSep        0
+  Align         Block
+  AlignPossible     Block, Left, Right, Center
+End
+
+###
+# Quote style definition
+###
+Style Quote
+  Margin        Static
+  LatexType     Environment
+  LatexName     quote
+  NextNoIndent      1
+  LeftMargin        MMM
+  RightMargin       MMM
+  TopSep        0.5
+  ParSep        0.5
+  BottomSep     0.5
+  Align         Block
+  AlignPossible     Block, Left, Right, Center
+  LabelType     No_Label
+End
+
+###
+# Verse style definition
+###
+Style Verse
+# LaTeX type is first dynamic because of LaTeX implementation.
+# In LyX this does not make sense.
+  LatexType     Environment
+  LatexName     verse
+  Margin        First_Dynamic
+  NextNoIndent      1
+  LeftMargin        MMMM
+  LabelIndent       MMMM
+  ParSkip       0.4
+  TopSep        0.7
+  BottomSep     0.7
+  ParSep        0.5
+  Align         Block
+  AlignPossible     Block, Left
+  LabelType     No_Label
+End
+
+###
+# Caption style definition
+###
+
+###
+# Floats definitions
+###
+Float
+  Type                  table
+  GuiName       Table
+  Extension             lot
+  NumberWithin          none
+  Style                 plain
+  ListName              "List of Tables"
+  LaTeXBuiltin          true
+End
+  
+Float
+  Type                  figure
+  GuiName               Figure
+  Extension             lof
+  NumberWithin          none
+  Style                 plain
+  ListName              "List of Figures"
+  LaTeXBuiltin          true
+End
+
+Float
+  Type                  algorithm
+  GuiName               Algorithm
+  Extension             loa
+  NumberWithin          none
+  Style                 ruled
+  ListName              "List of Algorithms"
+  LaTeXBuiltin          false
+End
+
+###
+# Counters definitions
+###
+Counter
+  Name          enumi
+End
+
+Counter
+  Name          enumii
+  Within        enumi
+End
+
+Counter
+  Name          enumiii
+  Within        enumii
+End
+
+Counter
+  Name          enumiv
+  Within        enumiii
+End
+
+Counter
+  Name          bibitem
+End
+
+Counter
+  Name          figure
+End
+
+Counter
+  Name          table
+End
+
+Counter
+  Name          algorithm
+End