summaryrefslogtreecommitdiff
path: root/doc/numpybook/mybook.layout
blob: 588384dd325c6d77fb59f0871e3dbaabd79a1057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{Stylish Book}
# Book textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by serveral developers.

# Input general definitions
Input stdclass.inc

# Global parameters.
Sides		2
PageStyle	Headings

# There is no abstract environment in book.cls
NoStyle	Abstract
	
# a few changes to the bibliography
Style Bibliography
  TopSep		4
  LabelString		Bibliography
  # label font definition
  LabelFont 
    Series		Bold
    Size		Huge
  EndFont
End


Style Note
  LatexType             Command
  LatexName             notel
  
  LabelType             Centered_Top_Environment
  LabelString           "NOTE"
  AlignPossible         Left
  LeftMargin            "MMMMM"
  RightMargin           "MMMMM"
  ParSkip               0.7
  ParSep                0.7
  TopSep                0.7
  BottomSep             0.7

  Font
     Shape              SmallCaps
     Color              Magenta
  EndFont
  Preamble
        \usepackage{color}
        \setlength{\fboxrule}{2pt}
        \definecolor{noteback}{rgb}{0.988235, 0.964706, 0.862745}
        \newcommand{\notel}[1]{%
                \begin{center}%
                \fcolorbox{black}{noteback}{%
                \begin{minipage}{0.8\textwidth}%
		 \includegraphics[height=0.3in]{graphics/note.eps}%
		 \vskip-0.3in\hskip1.65in{\large\bf NOTE} \\[0.2cm]%	
                #1%
                \end{minipage}%
                }%
                \end{center}%
                }
  EndPreamble
End


Style Warning
  LatexType             Command
  LatexName             warnl
  
  LabelType             Centered_Top_Environment
  LabelString           "WARNING"
  AlignPossible         Left
  LeftMargin            "MMMMM"
  RightMargin           "MMMMM"
  ParSkip               0.7
  ParSep                0.7
  TopSep                0.7
  BottomSep             0.7

  Font
     Shape              SmallCaps
     Color              Red
  EndFont
  Preamble
        \usepackage{color}
        \setlength{\fboxrule}{2pt}
        \definecolor{warnback}{rgb}{1.0, 0.8235294, 0.8235294}
        \newcommand{\warnl}[1]{%
                \begin{center}%
                \fcolorbox{black}{warnback}{%
                \begin{minipage}{0.8\textwidth}%
		 \includegraphics[height=0.3in]{graphics/warning.eps}%
		 \vskip-0.3in\hskip1.5in{\large\bf WARNING} \\[0.2cm]%	
                #1%
                \end{minipage}%
                }%
                \end{center}%
                }
  EndPreamble
End


Style Tip
  LatexType             Command
  LatexName             tipl
  
  LabelType             Centered_Top_Environment
  LabelString           "TIP"
  AlignPossible         Left
  LeftMargin            "MMMMM"
  RightMargin           "MMMMM"
  ParSkip               0.7
  ParSep                0.7
  TopSep                0.7
  BottomSep             0.7

  Font
     Shape              SmallCaps
     Color              Blue
  EndFont
  Preamble
        \usepackage{color}
        \setlength{\fboxrule}{2pt}
        \definecolor{tipback}{rgb}{0.87843, 0.95686, 1.0}
        \newcommand{\tipl}[1]{%
                \begin{center}%
                \fcolorbox{black}{tipback}{%
                \begin{minipage}{0.8\textwidth}%
		 \includegraphics[height=0.3in]{graphics/tip.eps}%
		 \vskip-0.3in\hskip1.8in{\large\bf TIP} \\[0.2cm]%
                #1%
                \end{minipage}%
                }%
                \end{center}%
                }
  EndPreamble
End

Style MyCode
  Margin		Static
  LatexType		Environment
  LatexName		mycode
  NextNoIndent		1
  LeftMargin		MMM
  RightMargin		MMM
  TopSep		0.5
  BottomSep		0.5
  Align			Left
  AlignPossible		Block, Left, Right, Center
  LabelType		No_Label
  FreeSpacing 	    	1

  # define the environment lyxcode
  Preamble
    \usepackage{color}
    \setlength{\fboxrule}{2pt}
    \definecolor{codeback}{rgb}{0.94118,0.94118,0.94118}
 \newsavebox{\mycodesavebox}
 \newenvironment{mycode}
    {\begin{lrbox}{\mycodesavebox}%
     \begin{minipage}{0.95\linewidth}%
     \begin{trivlist}
     \setlength{\itemsep}{0pt}
     \setlength{\parsep}{0pt}
     \normalfont\ttfamily
     \item[] }
    {\end{trivlist}\end{minipage}\end{lrbox}%
        \vskip 0.5em \begin{center}\fcolorbox{black}{codeback}{\usebox{\mycodesavebox}}\end{center}\par \vskip 0.5em}
  EndPreamble

  # standard font definition
  Font 
    Family  		Typewriter
  EndFont

End