]> git.lyx.org Git - lyx.git/blob - lib/ui/stdcontext.inc
documentation: the macro chapter for the Math manual
[lyx.git] / lib / ui / stdcontext.inc
1 # -*- text -*-
2
3 # file stdcontext.inc
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author The LyX Team
8
9 # Full author contact details are available in file CREDITS.
10
11 # The interface is designed (partially) following the KDE Human Interface
12 # Guidelines (http://usability.kde.org/hig/)
13
14 Menuset
15
16 #
17 # InsetMath context menu
18 #
19         Menu "insert_math_context"
20                 Item "Array Environment|y" "math-matrix 2 2"
21                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
22                 Item "Aligned Environment|l" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
23                 Item "AlignedAt Environment|v" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
24                 Item "Gathered Environment|h" "command-sequence math-mode on; math-insert \gathered"
25                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
26                 Separator
27                 Item "Delimiters...|r" "dialog-show mathdelimiter"
28                 Item "Matrix...|x" "dialog-show mathmatrix"
29                 Item "Macro|o" "math-macro newmacroname newcommand"
30         End
31
32         Menu "ams_environment"
33                 Item "AMS align Environment|a" "math-mutate align"
34                 Item "AMS alignat Environment|t" "math-mutate alignat"
35                 Item "AMS flalign Environment|f" "math-mutate flalign"
36                 Item "AMS gather Environment|g" "math-mutate gather"
37                 Item "AMS multline Environment|m" "math-mutate multline"
38         End
39         
40         Menu "context-math"
41                 Item "Inline Formula|I" "math-mutate simple"
42                 Item "Displayed Formula|D" "math-mutate equation"
43                 Item "Eqnarray Environment|E" "math-mutate eqnarray"
44                 Submenu "AMS Environment|A" "ams_environment"
45                 Separator               
46                 OptItem "Equation Label|L" "label-insert"
47                 OptItem "Toggle Labeling/Numbering|T" "math-number-toggle"
48                 Separator
49                 Item "Split Cell|C" "cell-split"
50                 Separator
51                 Submenu "Insert|n" "insert_math_context"
52                 Separator
53                 OptItem "Add Line Above|o" "tabular-feature add-hline-above"
54                 OptItem "Add Line Below|B" "tabular-feature add-hline-below"
55                 OptItem "Delete Line Above|D" "tabular-feature delete-hline-above"
56                 OptItem "Delete Line Below|e" "tabular-feature delete-hline-below"
57                 Separator
58                 OptItem "Add Line to Left" "tabular-feature add-vline-left"
59                 OptItem "Add Line to Right" "tabular-feature add-vline-right"
60                 OptItem "Delete Line to Left" "tabular-feature delete-vline-left"
61                 OptItem "Delete Line to Right" "tabular-feature delete-vline-right"
62                 Separator
63                 Item "Toggle Math Toolbar" "toolbar-toggle math toggle"
64                 Item "Toggle Math-Panels Toolbar" "toolbar-toggle math_panels toggle"
65                 Item "Toggle Table Toolbar" "toolbar-toggle table toggle"
66         End
67
68
69 #
70 # InsetRef context menu
71 #
72         Menu "context-ref"
73                 Item "Next Cross-Reference|N" "reference-next"
74                 Item "Go to Label|G" "label-goto"
75                 Separator
76                 Item "<reference>|r" "next-inset-modify changetype ref"
77                 Item "(<reference>)|e" "next-inset-modify changetype eqref"
78                 Item "<page>|p" "next-inset-modify changetype pageref"
79                 Item "on page <page>|o" "next-inset-modify changetype vpageref"
80                 Item "<reference> on page <page>|f" "next-inset-modify changetype vref"
81                 Item "Formatted reference|t" "next-inset-modify changetype prettyref"
82                 Separator
83                 Item "Settings...|S" "next-inset-toggle"
84         End
85
86 #
87 # InsetLabel context menu
88 #
89         Menu "context-label"
90                 Item "Next Cross-Reference|N" "reference-next"
91                 Item "Go back to Reference|G" "bookmark-goto 0"
92                 Separator
93                 Item "Copy as Reference|C" "copy-label-as-reference"
94                 Separator
95                 Item "Settings...|S" "next-inset-toggle"
96         End
97
98
99 #
100 # InsetCitation context menu
101 #
102         Menu "context-citation"
103                 CiteStyles
104                 Separator
105                 Item "Settings...|S" "next-inset-toggle"
106         End
107
108
109 #
110 # InsetBibtex context menu
111 #
112         Menu "context-bibtex"
113                 Item "Settings...|S" "next-inset-toggle"
114                 Separator
115                 Item "Edit Database(s) externally...|x" "inset-edit"
116         End
117
118
119 #
120 # InsetCollapsable context menu
121 #
122         Menu "context-collapsable"
123                 OptItem "Open Inset|O" "next-inset-toggle open"
124                 OptItem "Close Inset|C" "next-inset-toggle close"
125                 Separator
126                 Item "Dissolve Inset|D" "inset-dissolve"
127                 OptItem "Settings...|S" "inset-settings"
128         End
129
130         Menu "context-conglomerate"
131                 Item "Toggle Label|L" "next-inset-toggle"
132                 Item "Dissolve Inset|D" "inset-dissolve charstyle"
133                 Separator
134                 OptItem "Settings...|S" "inset-settings"
135         End
136
137 #
138 # InsetBox context menu
139 #
140
141         Menu "context-box"
142                 Item "Frameless|l" "next-inset-modify changetype Frameless"
143                 Item "Simple frame|f" "next-inset-modify changetype Boxed"
144                 Item "Simple frame, page breaks|p" "next-inset-modify changetype Framed"
145                 Item "Oval, thin|O" "next-inset-modify changetype ovalbox"
146                 Item "Oval, thick|v" "next-inset-modify changetype Ovalbox"
147                 Item "Drop Shadow|w" "next-inset-modify changetype Shadowbox"
148                 Item "Shaded background|b" "next-inset-modify changetype Shaded"
149                 Item "Double frame|D" "next-inset-modify changetype Doublebox"
150                 Separator
151                 Item "Dissolve Inset|D" "inset-dissolve"
152                 Item "Settings...|S" "inset-settings box"
153         End
154
155 #
156 # InsetNote context menu
157 #
158
159         Menu "context-note"
160                 Item "LyX Note|N" "next-inset-modify note Note Note"
161                 Item "Comment|C" "next-inset-modify note Note Comment"
162                 Item "Greyed Out|G" "next-inset-modify note Note Greyedout"
163                 Separator
164                 Item "Dissolve Inset|D" "inset-dissolve"
165         End
166
167
168 #
169 # InsetSpace context menu
170 #
171         Menu "context-space"
172                 Item "Interword Space|w" "next-inset-modify space \space{}"
173                 Item "Protected Space|o" "next-inset-modify space ~"
174                 Item "Thin Space|T" "next-inset-modify space \thinspace{}"
175                 Item "Negative Thin Space|N" "next-inset-modify space \negthinspace{}"
176                 Item "Half Quad Space (Enskip)|k" "next-inset-modify space \enskip{}"
177                 Item "Protected Half Quad Space (Enspace)|E" "next-inset-modify space \enspace{}"
178                 Item "Quad Space|Q" "next-inset-modify space \quad{}"
179                 Item "Double Quad Space|u" "next-inset-modify space \qquad{}"
180                 Item "Horizontal Fill|F" "next-inset-modify space \hfill{}"
181                 Item "Protected Horizontal Fill|i" "next-inset-modify space \hspace*{\fill}"
182                 Item "Horizontal Fill (Dots)|D" "next-inset-modify space \dotfill{}"
183                 Item "Horizontal Fill (Rule)|R" "next-inset-modify space \hrulefill{}"
184                 Item "Horizontal Fill (Left Arrow)|L" "next-inset-modify space \leftarrowfill{}"
185                 Item "Horizontal Fill (Right Arrow)|g" "next-inset-modify space \rightarrowfill{}"
186                 Item "Horizontal Fill (Up Brace)|p" "next-inset-modify space \upbracefill{}"
187                 Item "Horizontal Fill (Down Brace)|B" "next-inset-modify space \downbracefill{}"
188                 Item "Custom Length|C" "command-sequence next-inset-modify space \hspace{} \length 1in; next-inset-toggle"
189                 Separator
190                 Item "Settings...|S" "next-inset-toggle"
191         End
192
193 #
194 # InsetVSpace context menu
195 #
196         Menu "context-vspace"
197                 Item "DefSkip|D" "next-inset-modify vspace defskip"
198                 Item "SmallSkip|S" "next-inset-modify vspace smallskip"
199                 Item "MedSkip|M" "next-inset-modify vspace medskip"
200                 Item "BigSkip|B" "next-inset-modify vspace bigskip"
201                 Item "VFill|F" "next-inset-modify vspace vfill"
202                 Item "Custom|C" "command-sequence next-inset-modify vspace 1in; next-inset-toggle"
203                 Separator
204                 Item "Settings...|e" "next-inset-toggle"
205         End
206
207 #
208 # InsetInclude context menu
209 #
210         Menu "context-include"
211                 Item "Include|c" "next-inset-modify changetype include"
212                 Item "Input|p" "next-inset-modify changetype input"
213                 Item "Verbatim|V" "next-inset-modify changetype verbatiminput"
214                 Item "Verbatim (marked blanks)|b" "next-inset-modify changetype verbatiminput*"
215                 Item "Listing|L" "next-inset-modify changetype lstinputlisting"
216                 Separator
217                 Item "Settings...|S" "next-inset-toggle"
218                 Separator
219                 Item "Edit included file...|E" "inset-edit"
220         End
221
222 #
223 # InsetNewpage context menu
224 #
225         Menu "context-newpage"
226                 Item "New Page|N" "next-inset-modify newpage newpage"
227                 Item "Page Break|a" "next-inset-modify newpage pagebreak"
228                 Item "Clear Page|C" "next-inset-modify newpage clearpage"
229                 Item "Clear Double Page|D" "next-inset-modify newpage cleardoublepage"
230         End
231
232 #
233 # InsetNewline context menu
234 #
235         Menu "context-newline"
236                 Item "Ragged Line Break|R" "next-inset-modify newline newline"
237                 Item "Justified Line Break|J" "next-inset-modify newline linebreak"
238         End
239
240 #
241 # Edit context menu
242 #
243         Menu "context-edit"
244                 Item "Cut" "cut"
245                 Item "Copy" "copy"
246                 Item "Paste" "paste"
247                 Submenu "Paste Recent|e" "edit_pasterecent"
248                 Separator
249                 Item "Jump to Saved Bookmark|B" "bookmark-goto 0"
250                 Separator
251                 Item "Move Paragraph Up|o" "paragraph-move-up"
252                 Item "Move Paragraph Down|v" "paragraph-move-down"
253                 Separator
254                 OptItem "Promote Section|r" "outline-out"
255                 OptItem "Demote Section|m" "outline-in"
256                 OptItem "Move Section down|d" "outline-down"
257                 OptItem "Move Section up|u" "outline-up"
258                 OptItem "Insert Short Title|T" "optional-insert"
259                 Separator
260                 Item "Apply Last Text Style|A" "textstyle-apply"
261                 Submenu "Text Style|S" "edit_textstyles"
262                 Item "Paragraph Settings...|P" "layout-paragraph"
263                 Separator
264                 Item "Fullscreen Mode" "ui-toggle fullscreen"
265         End
266
267 #
268 # Math Macro context menu
269 #
270
271         Menu "context-math-macro-definition"
272                 Item "Append Parameter" "math-macro-add-param"
273                 Item "Remove Last Parameter" "math-macro-remove-param"
274                 Separator
275                 Item "Make First Non-Optional into Optional Parameter" "math-macro-make-optional"
276                 Item "Make Last Optional into Non-Optional Parameter" "math-macro-make-nonoptional"
277                 Item "Insert Optional Parameter" "math-macro-add-optional-param"
278                 Item "Remove Optional Parameter" "math-macro-remove-optional-param"
279                 Separator
280                 Item "Append Parameter Eating From The Right" "math-macro-append-greedy-param"
281                 Item "Append Optional Parameter Eating From The Right" "math-macro-add-greedy-optional-param"
282                 Item "Remove Last Parameter Spitting Out To The Right" "math-macro-remove-greedy-param"
283         End
284
285 #
286 # InsetListing context menu
287 #
288
289         Menu "context-listings"
290                 Item "Cut" "cut"
291                 Item "Copy" "copy"
292                 Item "Paste" "paste"
293                 Submenu "Paste Recent|e" "edit_pasterecent"
294                 Separator
295                 OptItem "Open Inset|O" "next-inset-toggle open"
296                 OptItem "Close Inset|C" "next-inset-toggle close"
297                 Separator
298                 Item "Dissolve Inset|D" "inset-dissolve"
299                 Item "Settings...|S" "inset-settings listings"
300         End
301
302 #
303 # InsetGraphics context menu
304 #
305
306         Menu "context-graphics"
307                 Item "Settings...|S" "next-inset-toggle"
308                 Separator
309                 Item "Edit externally...|x" "inset-edit"
310                 Separator
311                 GraphicsGroups
312         End
313
314 #
315 # InsetExternal context menu
316 #
317
318         Menu "context-external"
319                 Item "Settings...|S" "next-inset-toggle"
320                 Separator
321                 Item "Edit externally...|x" "inset-edit"
322         End
323
324 #
325 # InsetTabular context menu
326 #
327
328         Menu "context-tabular"
329                 Item "Multicolumn|M" "tabular-feature multicolumn"
330                 Separator
331                 Item "Top Line|T" "tabular-feature toggle-line-top"
332                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
333                 Item "Left Line|L" "tabular-feature toggle-line-left"
334                 Item "Right Line|R" "tabular-feature toggle-line-right"
335                 Separator
336                 Item "Left|L" "tabular-feature align-left"
337                 Item "Center|C" "tabular-feature align-center"
338                 Item "Right|R" "tabular-feature align-right"
339                 Separator
340                 Item "Top|T" "tabular-feature valign-top"
341                 Item "Middle|M" "tabular-feature valign-middle"
342                 Item "Bottom|B" "tabular-feature valign-bottom"
343                 Separator
344                 Item "Add Row|A" "tabular-feature append-row"
345                 Item "Delete Row|D" "tabular-feature delete-row"
346                 Item "Copy Row|o" "tabular-feature copy-row"
347                 # Item "Swap Rows|S" "tabular-feature swap-row" # currently broken
348                 Separator
349                 Item "Add Column|u" "tabular-feature append-column"
350                 Item "Delete Column|e" "tabular-feature delete-column"
351                 Item "Copy Column|p" "tabular-feature copy-column"
352                 # Item "Swap Columns|w" "tabular-feature swap-column" # currently broken
353                 Separator
354                 Item "Settings...|S" "inset-settings tabular"
355         End
356
357
358 #
359 # InsetInfo context menu
360 #
361
362         Menu "context-info"
363                 Item "Settings...|S" "inset-settings info"
364         End
365
366 End