]> git.lyx.org Git - lyx.git/blob - lib/ui/stdmenus.ui
Fix bug 2901: Add menu entry for numbered formulas
[lyx.git] / lib / ui / stdmenus.ui
1 # -*- text -*-
2
3 # file stdmenus.ui
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author Jean-Marc Lasgouttes
8 # author John Levon
9 # author Michael Gerz
10
11 # Full author contact details are available in file CREDITS.
12
13 # The interface is designed (partially) following the KDE Human Interface
14 # Guidelines (http://usability.kde.org/hig/)
15
16 Menuset
17
18         Menubar
19 # Make the first 4 menus be as much as expected as possible
20                 Submenu "File|F" "file"
21                 Submenu "Edit|E" "edit"
22                 Submenu "View|V" "view"
23                 Submenu "Insert|I" "insert"
24                 Submenu "Navigate|N" "navigate"
25                 Submenu "Document|D" "document"
26                 Submenu "Tools|T" "tools"
27                 Submenu "Help|H" "help"
28         End
29
30 #
31 # FILE MENU
32 #
33
34         Menu "file"
35                 Item "New|N" "buffer-new"
36                 Item "New from Template...|m" "buffer-new-template"
37                 Item "Open...|O" "file-open"
38                 Submenu "Open recent|t" "file_lastfiles"
39                 Separator
40                 Item "Close|C" "buffer-close"
41                 Item "Save|S" "buffer-write"
42                 Item "Save As...|A" "buffer-write-as"
43                 Item "Revert|R" "buffer-reload"
44                 Submenu "Version Control|V" "file_vc"
45                 Separator
46                 Submenu "Import|I" "file_import"
47                 Submenu "Export|E" "file_export"
48                 Item "Print...|P" "dialog-show print"
49                 OptItem "Fax...|F" "buffer-export fax"
50                 Separator
51                 Item "Exit|x" "lyx-quit"
52         End
53
54         Menu "file_lastfiles"
55                 Lastfiles
56         End
57
58         Menu "file_vc"
59                 OptItem "Register...|R" "vc-register"
60                 OptItem "Check In Changes...|I" "vc-check-in"
61                 OptItem "Check Out for Edit|O" "vc-check-out"
62                 OptItem "Revert to Last Version|L" "vc-revert"
63                 OptItem "Undo Last Check In|U" "vc-undo-last"
64                 OptItem "Show History|H" "dialog-show vclog"
65         End
66
67         Menu "file_import"
68                 ImportFormats
69         End
70
71         Menu "file_export"
72                 ExportFormats
73                 Item "Custom...|C" "buffer-export custom"
74         End
75
76 #
77 # EDIT MENU
78 #
79
80         Menu "edit"
81                 Item "Undo|U" "undo"
82                 Item "Redo|R" "redo"
83                 Separator
84                 Item "Cut" "cut"
85                 Item "Copy" "copy"
86                 Item "Paste" "paste"
87                 Submenu "Paste Recent" "edit_pasterecent"
88                 Submenu "Paste External Clipboard/Selection" "edit_paste"
89                 Separator
90                 Item "Find & Replace...|F" "dialog-show findreplace"
91                 Separator
92                 Item "Move Paragraph Up|o" "paragraph-move-up"
93                 Item "Move Paragraph Down|v" "paragraph-move-down"
94                 Separator
95                 Submenu "Text Style|S" "edit_textstyles"
96                 Item "Paragraph Settings...|P" "layout-paragraph"
97                 Separator
98 # Mathed b0rkage means these don't work properly
99                 OptSubmenu "Table|T" "edit_tabular"
100                 OptSubmenu "Math|M" "edit_math"
101                 OptSubmenu "Rows & Columns|C" "edit_tabular_features"
102                 Separator
103                 OptItem "Increase List Depth|I" "depth-increment"
104                 OptItem "Decrease List Depth|D" "depth-decrement"
105                 OptItem "Dissolve Inset|s" "inset-dissolve"
106 # This is where the context-specific stuff is supposed to go.
107 # The idea is that everything on here can disappear and should
108 # only appear when relevant (getStatus). Only stuff that needs
109 # a right-click to bring up the dialog should appear here (it is not
110 # obvious what the context is for the others)
111                 OptItem "TeX Code Settings...|C" "inset-settings ert"
112 # 'a' shortcut to match Insert entry, shouldn't clash with Table Settings
113                 OptItem "Float Settings...|a" "inset-settings float"
114                 OptItem "Text Wrap Settings...|W" "inset-settings wrap"
115                 OptItem "Note Settings...|N" "inset-settings note"
116                 OptItem "Branch Settings...|B" "inset-settings branch"
117                 OptItem "Box Settings...|x" "inset-settings box"
118 # Hey, guess what's broken ? Surprise surprise, it's tabular stuff
119 # This is in the Table submenu instead for now.
120 #       OptItem "Table Settings...|a" "inset-settings tabular"
121                 OptItem "Table Settings...|a" "layout-tabular"
122         End
123
124         Menu "edit_paste"
125                 Item "Clipboard as Lines|C" "clipboard-paste"
126                 Item "Clipboard as Paragraphs|a" "clipboard-paste paragraph"
127                 Item "Selection as Lines|L" "primary-selection-paste"
128                 Item "Selection as Paragraphs|P" "primary-selection-paste paragraph"
129         End
130
131         Menu "edit_pasterecent"
132                 PasteRecent
133         End
134
135         Menu "edit_textstyles"
136                 CharStyles
137                 Separator
138                 Item "Customized...|C" "dialog-show character"
139                 Separator
140                 Item "Capitalize|a" "word-capitalize"
141                 Item "Uppercase|U" "word-upcase"
142                 Item "Lowercase|L" "word-lowcase"
143         End
144
145 # not much we can do to help here
146         Menu "edit_tabular"
147                 Item "Multicolumn|M" "tabular-feature multicolumn"
148                 Separator
149                 Item "Top Line|T" "tabular-feature toggle-line-top"
150                 Item "Bottom Line|B" "tabular-feature toggle-line-bottom"
151                 Item "Left Line|L" "tabular-feature toggle-line-left"
152                 Item "Right Line|R" "tabular-feature toggle-line-right"
153                 Separator
154         End
155
156         Menu "edit_tabular_features"
157                 Item "Left|L" "tabular-feature align-left"
158                 Item "Center|C" "tabular-feature align-center"
159                 Item "Right|R" "tabular-feature align-right"
160                 Separator
161                 Item "Top|T" "tabular-feature valign-top"
162                 Item "Middle|M" "tabular-feature valign-middle"
163                 Item "Bottom|B" "tabular-feature valign-bottom"
164                 Separator
165                 Item "Add Row" "tabular-feature append-row"
166                 Item "Delete Row" "tabular-feature delete-row"
167                 Item "Copy Row" "tabular-feature copy-row"
168                 Item "Swap Rows" "tabular-feature swap-row"
169                 Separator
170                 Item "Add Column" "tabular-feature append-column"
171                 Item "Delete Column" "tabular-feature delete-column"
172                 Item "Copy Column" "tabular-feature copy-column"
173                 Item "Swap Columns" "tabular-feature swap-column"
174         End
175
176         Menu "edit_math"
177                 Item "Toggle Numbering|N" "math-number"
178                 Item "Toggle Numbering of Line|u" "math-nonumber"
179                 Submenu "Change Limits Type|L" "edit_math_limits"
180                 Separator
181                 Submenu "Change Formula Type|F" "edit_math_mutate"
182                 Separator
183                 Submenu "Text Style|T" "edit_math_textstyles"
184                 Separator
185                 Submenu "Use Computer Algebra System|S" "edit_math_extern"
186                 Separator
187                 Item "Split Cell|C" "cell-split"
188                 Separator
189                 Item "Add Line Above" "tabular-feature add-hline-above"
190                 Item "Add Line Below" "tabular-feature add-hline-below"
191                 Item "Delete Line Above" "tabular-feature delete-hline-above"
192                 Item "Delete Line Below" "tabular-feature delete-hline-below"
193                 Separator
194                 Item "Add Line to Left" "tabular-feature add-vline-left"
195                 Item "Add Line to Right" "tabular-feature add-vline-right"
196                 Item "Delete Line to Left" "tabular-feature delete-vline-left"
197                 Item "Delete Line to Right" "tabular-feature delete-vline-right"
198         End
199
200         Menu "edit_math_limits"
201                  Item "Default|t"  "math-limits empty"
202                  Item "Display|D"  "math-limits limits"
203                  Item "Inline|I"  "math-limits nolimits"
204         End
205
206         Menu "edit_math_textstyles"
207                 Item "Math Normal Font" "math-insert \mathnormal"
208                 Separator
209                 Item "Math Calligraphic Family" "math-insert \mathcal"
210                 Item "Math Fraktur Family" "math-insert \mathfrak"
211                 Item "Math Roman Family" "math-insert \mathrm"
212                 Item "Math Sans Serif Family" "math-insert \mathsf"
213                 Separator
214                 Item "Math Bold Series" "math-insert \mathbf"
215                 Separator
216                 Item "Text Normal Font" "math-insert \textnormal"
217                 Separator
218                 Item "Text Roman Family" "math-insert \textrm"
219                 Item "Text Sans Serif Family" "math-insert \textsf"
220                 Item "Text Typewriter Family" "math-insert \texttt"
221                 Separator
222                 Item "Text Bold Series" "math-insert \textbf"
223                 Item "Text Medium Series" "math-insert \textmd"
224                 Separator
225                 Item "Text Italic Shape" "math-insert \textit"
226                 Item "Text Small Caps Shape" "math-insert \textsc"
227                 Item "Text Slanted Shape" "math-insert \textsl"
228                 Item "Text Upright Shape" "math-insert \textup"
229         End
230
231         Menu "edit_math_extern"
232                 Item "Octave" "math-extern octave"
233                 Item "Maxima" "math-extern maxima"
234                 Item "Mathematica" "math-extern mathematica"
235                 Separator
236                 Item "Maple, simplify" "math-extern maple simplify"
237                 Item "Maple, factor" "math-extern maple factor"
238                 Item "Maple, evalm" "math-extern maple evalm"
239                 Item "Maple, evalf" "math-extern maple evalf"
240         End
241
242         Menu "edit_math_mutate"
243                 Item "Inline Formula|I" "math-mutate simple"
244                 Item "Displayed Formula|D" "math-mutate equation"
245                 Item "Eqnarray Environment|q" "math-mutate eqnarray"
246                 Item "AMS align Environment|a" "math-mutate align"
247                 Item "AMS alignat Environment|t" "math-mutate alignat"
248                 Item "AMS flalign Environment|f" "math-mutate flalign"
249                 Item "AMS gather Environment|g" "math-mutate gather"
250                 Item "AMS multline Environment|m" "math-mutate multline"
251         End
252
253 #
254 # VIEW MENU
255 #
256
257         Menu "view"
258                 Item "Open All Insets|O" "all-insets-toggle open"
259                 Item "Close All Insets|C" "all-insets-toggle close"
260                 Separator
261                 Item "Display Tooltips|i" "tooltips-toggle"
262                 Separator
263                 Item "View source|s" "dialog-show view-source"
264                 Submenu "Update|U" "view_update"
265                 ViewFormats
266                 Separator
267             Documents
268         End
269
270         Menu "view_update"
271                 UpdateFormats
272         End
273
274 #
275 # INSERT MENU
276 #
277         Menu "insert"
278 # Try and group things a little better, and percolate the most
279 # commonly used to good positions (exception being mathed, but
280 # most people using mathed learn key shortcuts quite quickly anyway)
281                 Submenu "Math|h" "insert_math"
282                 Submenu "Special Character|S" "insert_special"
283                 Submenu "Special Formatting|o" "insert_formatting"
284                 Submenu "List / TOC|i" "insert_toc"
285                 Submenu "Float|a" "insert_float"
286 # YUCK
287                 Submenu "Note|N" "insert_note"
288                 OptSubmenu "Branch|B" "insert_branches"
289                 Submenu "File|e" "insert_file"
290                 Item "Box" "box-insert Frameless"
291                 Separator
292                 Item "Citation...|C" "dialog-show-new-inset citation"
293                 Item "Cross-reference...|r" "dialog-show-new-inset ref"
294                 Item "Label...|L" "label-insert"
295                 Item "Index Entry|d" "index-insert"
296                 Item "Date" "date-insert"
297 # I'm going to kill this dumb dialog, but for now ...
298                 Separator
299                 Item "Table...|T" "tabular-insert"
300                 Item "Graphics...|G" "dialog-show-new-inset graphics"
301                 Item "URL...|U" "url-insert"
302                 Item "Footnote|F" "footnote-insert"
303                 Item "Marginal Note|M" "marginalnote-insert"
304                 Item "Short Title" "optional-insert"
305                 Item "TeX Code|X" "ert-insert"
306         End
307
308         Menu "insert_special"
309                 Item "Ellipsis|i" "dots-insert"
310                 Item "End of Sentence|E" "end-of-sentence-period-insert"
311                 Item "Ordinary Quote|Q" "self-insert \""
312                 Item "Single Quote|S" "quote-insert single"
313                 Item "Menu Separator|M" "menu-separator-insert"
314                 Item "Phonetic Symbols|y" "command-sequence math-mode on; math-insert \text\textipa ; char-forward ;"
315         End
316
317         Menu "insert_formatting"
318                 Item "Superscript|S" "command-sequence math-mode on; math-superscript; math-insert \text;"
319                 Item "Subscript|u" "command-sequence math-mode on; math-subscript; math-insert \text;"
320                 Separator
321                 Item "Protected Space|r" "space-insert protected"
322                 Item "Inter-word Space|w" "space-insert normal"
323                 Item "Thin Space|T" "space-insert thin"
324                 Item "Horizontal Fill|H" "hfill-insert"
325                 Item "Horizontal Line" "line-insert"
326                 Item "Vertical Space..." "dialog-show-new-inset vspace"
327                 Separator
328                 Item "Hyphenation Point|P" "hyphenation-point-insert"
329                 Item "Ligature Break|k" "ligature-break-insert"
330                 Item "Line Break|L" "break-line"
331                 Item "Page Break" "pagebreak-insert"
332         End
333
334         Menu "insert_math"
335                 Item "Inline Formula|I" "math-mode on"
336                 Item "Display Formula|D" "math-display"
337                 Item "Numbered Formula|N" "command-sequence math-display; math-number;"
338                 Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;"
339                 Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;"
340                 Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;"
341                 Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;"
342                 Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;"
343                 Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;"
344                 Separator
345                 Item "Array Environment|y" "math-matrix 2 2"
346                 Item "Cases Environment|C" "command-sequence math-mode on; math-insert \cases"
347                 Item "Aligned Environment" "command-sequence math-mode on; math-insert \aligned; tabular-feature append-column"
348                 Item "AlignedAt Environment" "command-sequence math-mode on; math-insert \alignedat; tabular-feature append-column"
349                 Item "Gathered Environment" "command-sequence math-mode on; math-insert \gathered"
350                 Item "Split Environment|S" "command-sequence math-mode on; math-insert \split; tabular-feature append-column"
351                 Separator
352                 Item "Math Panel|P" "dialog-show mathpanel"
353         End
354
355         Menu "insert_float"
356                 FloatInsert
357 # This has got to be better than "Wrap", anyway
358                 Item "Text Wrap Float|W" "wrap-insert figure"
359         End
360
361         Menu "insert_toc"
362                 Item "Table of Contents|C" "toc-insert"
363                 FloatListInsert
364                 Item "Index List|I" "index-print"
365                 Item "BibTeX Bibliography...|B" "dialog-show-new-inset bibtex"
366         End
367
368         Menu "insert_file"
369                 Item "LyX Document...|X" "file-insert"
370                 Item "Plain Text as Lines...|L" "file-insert-ascii"
371                 Item "Plain Text as Paragraphs...|P" "file-insert-ascii-para"
372                 Separator
373                 Item "External Material...|M" "dialog-show-new-inset external"
374                 Item "Child Document...|d" "dialog-show-new-inset include"
375         End
376
377         Menu "insert_note"
378                 Item "LyX Note|N" "note-insert Note"
379                 Item "Comment|C" "note-insert Comment"
380                 Item "Greyed Out|G" "note-insert Greyedout"
381         End
382
383         Menu "insert_branches"
384                 Branches
385         End
386
387 #
388 # DOCUMENT MENU
389 #
390
391         Menu "document"
392                 Submenu "Change Tracking|C" "document_change"
393                 OptItem "Build Program|B" "build-program"
394                 Item "LaTeX Log|L" "dialog-show latexlog"
395                 Item "Table of Contents|T" "toc-view"
396                 Item "Start Appendix Here|A" "appendix"
397                 Separator
398                 Item "Compressed|o" "buffer-toggle-compression"
399                 Item "Settings...|S" "dialog-show document"
400         End
401
402         Menu "document_change"
403                 Item "Track Changes|T" "changes-track"
404                 Item "Merge Changes...|M" "changes-merge"
405                 Item "Accept Change|A" "change-accept"
406                 Item "Reject Change|R" "change-reject"
407                 Item "Accept All Changes|c" "all-changes-accept"
408                 Item "Reject All Changes|e" "all-changes-reject"
409                 Item "Show Changes in Output|S" "changes-output"
410         End
411
412 #
413 # NAVIGATE MENU
414 #
415         Menu "navigate"
416                 Submenu "Bookmarks|B" "navigate_bookmarks"
417                 Item "Next Note|N" "note-next"
418                 Item "Next Change|C" "change-next"
419                 Item "Next Reference|R" "reference-next"
420                 Item "Go to Label|L" "label-goto"
421                 Separator
422                 Toc
423         End
424
425         Menu "navigate_bookmarks"
426                 Item "Go to Bookmark 1|1" "bookmark-goto 1"
427                 Item "Go to Bookmark 2|2" "bookmark-goto 2"
428                 Item "Go to Bookmark 3|3" "bookmark-goto 3"
429                 Item "Go to Bookmark 4|4" "bookmark-goto 4"
430                 Item "Go to Bookmark 5|5" "bookmark-goto 5"
431                 Separator
432                 Item "Save Bookmark 1|S" "bookmark-save 1"
433                 Item "Save Bookmark 2" "bookmark-save 2"
434                 Item "Save Bookmark 3" "bookmark-save 3"
435                 Item "Save Bookmark 4" "bookmark-save 4"
436                 Item "Save Bookmark 5" "bookmark-save 5"
437         End
438
439 #
440 # TOOLS MENU
441 #
442
443         Menu "tools"
444                 Item "Spellchecker...|S" "dialog-show spellchecker"
445                 OptItem "Thesaurus...|T" "thesaurus-entry"
446                 Item "Count Words|W" "words-count"
447                 OptItem "Check TeX|h" "buffer-chktex"
448                 Item "TeX Information|I" "dialog-show texinfo"
449                 Separator
450 # A LOT of applications have Tools->Prefs. Remember this
451 # should be rarely used - Edit menu is not a good place to
452 # have it.
453                 Item "Reconfigure|R" "reconfigure"
454                 Item "Preferences...|P" "dialog-show prefs"
455         End
456
457 #
458 # HELP MENU
459 #
460         Menu "help"
461                 Item "Introduction|I" "help-open Intro"
462                 Item "Tutorial|T" "help-open Tutorial"
463                 Item "User's Guide|U" "help-open UserGuide"
464                 Item "Extended Features|E" "help-open Extended"
465                 Item "Customization|C" "help-open Customization"
466                 Item "FAQ|F" "help-open FAQ"
467                 Item "Table of Contents|a" "help-open TOC"
468                 Item "LaTeX Configuration|L" "help-open LaTeXConfig"
469                 Separator
470                 Item "About LyX|X" "dialog-show aboutlyx"
471         End
472
473 #
474 #  LYX MENU - this menu is only used by LyX/Mac
475 #
476
477         Menu "LyX"
478                 Item "About LyX" "dialog-show aboutlyx"
479                 Item "Preferences..." "dialog-show prefs"
480                 Item "Quit LyX" "lyx-quit"
481         End
482
483 End