Dear LyX users,

I did a revision of my a0poster layout and came up with 2 variants:

1. Simple layout, using the plain a0poster class leaving the
   structuring to the user:

     a0poster.layout 
     poster-test.lyx
 
2. Advanced layout, using the a0poster class and an a0poster-kh.sty package
   (derived from a0poster-kh.tex) with additional commands for poster
   generation (using pstricks).
   
     a0poster-kh.layout
     a0poster-kh.sty
     poster-kh-test.lyx


The format of the layout files is for LyX >= 1.5.

Feedback welcome.

For further improvement, I'd like to know:
Is there a description on how to define new floats in a layout file?
Is it possible, to define new box types in a layout file?


Guenter     
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[a0poster]{poster (a0poster)}
# Wrapper layout for the a0poster-kh poster class

Format 4

# Author : Guenter Milde

# Recognized Options
# ------------------

# landscape   landscape format, is default
# portrait    portrait format
# a0b         "DIN A0 big" - that's a somewhat widened DIN A0 format that uses
#             the full width of an HP Designjet 650C. This is also default.
# a0          DIN A0
# a1          DIN A1
# a2          DIN A2
# a3          DIN A3
# posterdraft reduces the postscript output to DIN A4 size, so test printings
#             can be made with ordinary DIN A4 printers.
# draft       obsolete­does the same as posterdraft, but while options are
#             passed to other packages, this can lead to collisions with other
#             packages (e. g. graphics).
# final       makes postscript output in original size; is default.

# Input general definitions
Input stdclass.inc

# There are no chapters in a poster.
NoStyle Chapter
NoStyle Chapter*
# Nor are there parts
NoStyle Part
NoStyle Part*

SecNumDepth             3
TocDepth                3

Attachment: poster-test.lyx
Description: application/lyx

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[a0poster, a0poster-kh.sty]{poster (a0poster-kh)}
# Wrapper layout for the a0poster poster class with package a0poster-kh

Format 4

# Author : Guenter Milde
#
# a0poster-kh.sty is an extension to the "standard" a0poster LaTeX class
# based on ``a0poster-kh.tex`` from Karten Held
# 
http://www.physik.uni-augsburg.de/theo3/Comp/hp750c/computing_hp750c_A0.de.shtml

Preamble
\usepackage{a0poster-kh}
EndPreamble

# Recognized Options
# ------------------

# landscape   landscape format, is default
# portrait    portrait format
# a0b         "DIN A0 big" - that's a somewhat widened DIN A0 format that uses
#             the full width of an HP Designjet 650C. This is also default.
# a0          DIN A0
# a1          DIN A1
# a2          DIN A2
# a3          DIN A3
# posterdraft reduces the postscript output to DIN A4 size, so test printings
#             can be made with ordinary DIN A4 printers.
# draft       obsolete­does the same as posterdraft, but while options are
#             passed to other packages, this can lead to collisions with other
#             packages (e. g. graphics).
# final       makes postscript output in original size; is default.

# Input general definitions
Input stdclass.inc

# There are no chapters in a poster.
NoStyle Chapter
NoStyle Chapter*
# Nor are there parts
NoStyle Part
NoStyle Part*

SecNumDepth             3
TocDepth                3

# Header  (framed box, 0.9 * \textwidth)
Style Header
  CopyStyle     --Separator--
  OptionalArgs  1  # colour
  LatexType     Environment
  NextNoIndent  1
  # LabelType   Top_Environment
  LatexName     header
  LabelString   "--- Header ---"
End

# Poster box (framed box, 0.96 * \linewidth)
Style PosterBox
  CopyStyle     Header
  LatexName     pbox
  LabelString   "--- Poster Box ---"
End

# Environment Separator
Style Separator
        ObsoletedBy           --Separator--
End

# !!!Attention: Must be closed with EndEnvironment!!!
# Begin an environment
Style BeginEnvironment
  LatexType     Command
  LatexName     begin
  NextNoIndent  1
  PassThru      1
  TopSep                0.5
  # BottomSep             0.5
  Margin        First_Dynamic
  LabelType     Static
  LabelString   "Begin Environment:"
  LabelSep      x
  Font
    # Family    Sans
    # Size      small
    Color       latex
  EndFont
End

# !!! Attention: Use only for environments started with BeginEnvironment!!!
# End an environment
Style EndEnvironment
  CopyStyle     BeginEnvironment
  LatexName     end
  TopSep                0
  BottomSep             0.5
  LabelString   "End Environment:"
End

Style NewColumn
  CopyStyle     BeginEnvironment
  KeepEmpty     1
  LatexName     "end{pcolumn} \begin{pcolumn}"
  LabelString   "new column"
End
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{a0poster-kh}[2007/11/22 a0poster extension package]

% Additional commands for the a0poster latex class 
% based on a0poster-kh.tex by Karsten Held. 
% http://www.physik.uni-augsburg.de/theo3/Comp/hp750c/computing_hp750c_A0.de.shtml

% converted to a package file by G. Milde <milde users.sf.net>
%
% * require pst-grad.sty, as commands defined there are used for bg colors
% * define the length variable \headerwidth for improved configurability
% * removed the change of length settings

% Colorfull background with a gradient via pst-grad from the pstricks suite
\RequirePackage{pst-grad}

% \setlength{\topmargin}{-10.7 mm}  % -1in +1.47cm
% \setlength{\oddsidemargin}{-21.4 mm} % -1in +0.4cm

%% Additional commands:
% \makeatletter
[EMAIL PROTECTED] [EMAIL PROTECTED]
  {-3.5ex [EMAIL PROTECTED] -1ex [EMAIL PROTECTED] -.2ex}%
  {2.3ex [EMAIL PROTECTED]
  [EMAIL PROTECTED]
[EMAIL PROTECTED]@}%
  [EMAIL PROTECTED] -1ex [EMAIL PROTECTED] -.2ex}%
  {1.5ex [EMAIL PROTECTED] .2ex}%
  [EMAIL PROTECTED]
% \makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%               Hintergrund                    %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\background}[3]{\newrgbcolor{cgradbegin}{#1}
  \newrgbcolor{cgradend}{#2} 
  \psframe[fillstyle=gradient,gradend=cgradend,
  gradbegin=cgradbegin,gradmidpoint=#3](0.,0.)(1.\textwidth,-1.\textheight)}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                Header                        %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\headerwidth}
\setlength{\headerwidth}{.9\textwidth}
\newenvironment{header}[1][1. 1. 1.] {
    \vspace{2em}

    \begin{center}
    \newrgbcolor{hcolor}{#1}
    \begin{lrbox}{\dummybox} 
    \begin{minipage}[t]{\headerwidth}
 }
 {  \end{minipage} \end{lrbox}
      \raisebox{-\depth}{\hspace{.5in}\hspace{-4mm}
       \psshadowbox[fillstyle=solid,fillcolor=hcolor,framesep=8mm]
    {\usebox{\dummybox}}} \end{center}
     \vspace{2em}
 }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                Header no shadow              %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{headerns}[1][1. 1. 1.] {
    \vspace{2em}

    \begin{center}
    \newrgbcolor{hcolor}{#1}
    \begin{lrbox}{\dummybox} 
    \begin{minipage}[t]{\headerwidth}
 }
 {  \end{minipage} \end{lrbox}
      \raisebox{-\depth}{\hspace{.5in}\hspace{-4mm}
       \psshadowbox[fillstyle=solid,fillcolor=hcolor,framesep=8mm,shadowsize=0pt]
    {\usebox{\dummybox}}} \end{center}
     \vspace{2em}
 }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                Poster                        %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newsavebox{\dummybox}
\newsavebox{\spalten}

\newenvironment{poster} {
   \vfill \begin{minipage}{\textwidth}  }
  {\end{minipage} \vfill}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                pcolumn                       %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\columnfrac}{.3}
\newenvironment{pcolumn}{%
  \hfill\begin{minipage}[t]{\columnfrac\textwidth}}{\end{minipage}\hfill%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                pbox                          %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{pbox}[1][1. 1. 1.] {
   \newrgbcolor{bcolor}{#1}
  \begin{lrbox}{\dummybox}%
    \begin{minipage}{0.96\linewidth}}%
    {\end{minipage}
  \end{lrbox}
  \raisebox{-\depth}{\hspace{-.5em} 
   \psshadowbox[fillstyle=solid,fillcolor=bcolor,framesep=1em]{\usebox{\dummybox}}} \vspace{2em} \vfill}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                pbox   no shadow              %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{pboxns}[1][1. 1. 1.] {
   \newrgbcolor{bcolor}{#1}
  \begin{lrbox}{\dummybox}%
    \begin{minipage}{0.96\linewidth}}%
    {\end{minipage}
  \end{lrbox}
  \raisebox{-\depth}{\hspace{-.5em} 
   \psshadowbox[fillstyle=solid,fillcolor=bcolor,framesep=1em,shadowsize=0pt]{\usebox{\dummybox}}} \vspace{2em} \vfill}


Attachment: poster-kh-test.lyx
Description: application/lyx

Reply via email to