Commit Graph

670 Commits

Author SHA1 Message Date
Richard Heck
070967b442 Example file for paralist module. 2016-01-19 06:50:13 -05:00
Richard Heck
1bf01a8ad3 Update format of bind and ui files. 2015-11-27 11:56:17 -05:00
Jean-Marc Lasgouttes
68217b1e4a Implement toggling for longtabular and booktabs tabular features
This is needed for the tabular context menu. This menu is updated accordingly.
2015-11-17 09:18:50 +01:00
Scott Kostyshak
d264b3d8fb Fix a shortcut conflict (#9820)
'o' is now taken by the new Pandoc export to "MS Word Office".
2015-11-17 00:25:51 -05:00
Kornel Benko
5c796730b2 Replace the translatable latexism 'longtable' with 'multi-page table' in UI. 2015-11-16 10:29:53 +01:00
Uwe Stöhr
6a4d36b51e stdcontext.inc: improvement according to the list 2015-11-13 00:28:29 +01:00
Uwe Stöhr
2230be75b3 stdcontext.inc: new context menu for tables
see the list for details
2015-11-12 01:21:21 +01:00
Georg Baum
d56980da95 Put logos in submenu as discussed on the list 2015-11-02 20:52:21 +01:00
Georg Baum
8e9f2d648c Add "LyX Documentation Tools" toolbar
People working on the documentation do probably want to switch this on. It
gives easy access to LyX and LaTeX logos (bug 9626), and the info and menu
separator insets.
2015-10-29 20:02:52 +01:00
Uwe Stöhr
f2a5dd0a1e stdmenus.inc: resolve a shortcut conflict 2015-10-28 02:42:16 +01:00
Uwe Stöhr
ce933b1e14 colored-boxes.lyx: new example file for the tcolorbox.module
- also improve the tcolorbox.module

This is a fileformat change - only to be able to revert the new styles defined in the module.
2015-10-19 07:10:09 +02:00
Jean-Marc Lasgouttes
7ac700920f Auto feature for minibuffer toolbar
Now the minibuffer toolbar is "auto" by default. It is opened by
command-execute (M-x) and closed when the command is executed without error.

* make lyx::dispatch return a DispatchResult struct

* there is a new MINIBUFFER type of toolbar, that can be used for this use.

* remove special handling of M-x in minnibuffer; Escape can be used instead. Fix focus in this case.

* when minibuffer toolbar is "auto", make the toolbar close itself after
  - a command has been executed without error
  - an empty command has been executed
  - the Escape key has been used

[this is actually commit fdcff02a, which was later reverted at dd61d8cf]
2015-07-15 17:41:09 +02:00
Jean-Marc Lasgouttes
dd61d8cf3f Revert "Auto feature for minibuffer toolbar"
This reverts commit fdcff02a31.

This was pushed too early, we are not ready yet.
2015-06-30 11:09:48 +02:00
Jean-Marc Lasgouttes
fdcff02a31 Auto feature for minibuffer toolbar
Now the minibuffer toolbar is "auto" by default. It is opened by
command-execute (M-x) and closed when the command is executed without error.

* make lyx::dispatch return a DispatchResult struct

* there is a new MINIBUFFER type of toolbar, that can be used for this use.

* remove special handling of M-x in minnibuffer; Escape can be used instead. Fix focus in this case.

* when minibuffer toolbar is "auto", make the toolbar close itself after
  - a command has been executed without error
  - an empty command has been executed
  - the Escape key has been used
2015-06-29 09:21:15 +02:00
Uwe Stöhr
2b125cc54a stdmenus.inc: replace R-S statements by H-P statements 2015-05-28 21:39:12 +02:00
Richard Heck
3c2b3e6907 Remove printing support from LyX.
This was bug #6747.
2015-05-27 18:13:08 -04:00
Juergen Spitzmueller
1175d44504 Fix shortcut conflict 2015-05-25 10:50:57 +02:00
Jean-Marc Lasgouttes
7db7a7fe4e Add menu entry Document>Disable Editing
Fixes: bug #6692
2015-05-14 20:53:47 +02:00
Uwe Stöhr
5c5877b5fa stdmenus.inc: add PDF forms example to Help menu 2015-05-11 01:13:05 +02:00
Juergen Spitzmueller
b8ed73623c Fix wrong symbol in IPA toolbar.
Richard, this shuld also go to branch.
2015-04-21 11:04:28 +02:00
Georg Baum
3e9e6e344a Replace automatic logofication with insets
Previously, LyX did replace some words with typeset logos, and there was no
way to prvent this except putting them, in ERT (bug #4752). Now we have
special insets for these words, and standard text is left alone.
2015-03-01 11:16:57 +01:00
Georg Baum
93be0e08a1 whitespace 2015-02-26 20:43:05 +01:00
Uwe Stöhr
23f9b71187 stdmenus.inc: add PDF-comment.lyx as special manual 2015-02-17 00:24:55 +01:00
Scott Kostyshak
f63146c019 Insert menu accelerator 'x' now goes to box menu
Before, 'x' would go to "TeX Code" but that already has a shortcut
in the common bind files.

Reported and discussed on lyx-devel at:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg185082.html
2014-08-22 18:46:08 -04:00
Georg Baum
5dc9568f8d Native support for \smash[t] and \smash[b]
This is a follow-up of bug #8967. The implementation is self-explaining, the
only part which needs a comment is lyx2lyx: Since a 100% correct solution is
not possible, it has been decided not to switch amsmath off in the forward
conversion if no other ams command than \smash[t] and \smash[b] is used, but
to consider it a bug that older versions do not load amsmath automatically for
these commands. In the backward direction it is easy to keep the document
compilable, so just do that.
2014-05-27 22:13:58 +02:00
Enrico Forestieri
c668ebf611 Fix bugs #8546 and #9055, and introduce new separator inset.
The algorithm used for breaking a paragraph in LaTeX export is changed
for avoiding spurious blank lines causing too much vertical space.
This change is tied to the introduction of a new inset (with two
different specializations) helping in either outputing LaTeX paragraph
breaks or separating environments in LyX. Both of the above goals were
previously achieved by the ---Separator--- layout and can now be
accomplished by the new inset in a more natural way. As an example,
after leaving an environment by hitting the Return key for two times,
a third return automatically inserts a parbreak inset, which is
equivalent to the old separator layout, i.e., it also introduces a
blank line in the output. If this blank line is not wanted, the
parbreak separator can be changed to a plain separator by a right
click of the mouse. Of course, an environment can still be separated
by the following one by using the Alt+P+Return shortcut (or the
corresponding menu key), but now the plain separator inset is used
instead of the old separator layout, such that no blank line occurs in
the LaTeX output.

Old documents are converted such that the LaTeX output remains unchanged.
As a result of this conversion, the old separator layout is replaced by
the new parbreak inset, which may also appear in places where the old
algorithm was introducing blank lines while the new one is not.
Note that not all blank lines were actually affecting the LaTeX output,
because a blank line is simply ignored by the TeX engine when it occurs
in the so called "vertical mode" (e.g., after an alignment environment).
The old ---Separator--- layout is now gone and old layout files using it
are also automatically converted.

Round trip conversions between old and new format should leave a document
unchanged. This means that the new behavior about paragraph breaking is
not "carried back" to the old format. Indeed, this would need introducing
special LaTeX commands in ERT that would accumulate in roundtrip
conversions, horribly cluttering the document. So, when converting a
modified document to old formats, the LaTeX output may slightly differ in
vertical spacing if the document is processed by an old version of LyX.
In other words, forward compatibility is guaranteed, but not backwards.
2014-05-10 23:25:11 +02:00
Uwe Stöhr
30f2c2c4e3 stdmenus.inc: add move rows/columns feature to Edit menu
fixes bug #9047
2014-04-21 11:51:58 -04:00
Vincent van Ravesteijn
7cda8f36b2 Update uifiles to latest fileformat 2014-03-20 22:11:13 +01:00
Uwe Stöhr
a780443338 stdtoolbars.inc: add icons for \xleftarrow.png
LyX supports \xleftarrow since years but an icon in the toolbar was missing
2014-02-19 23:42:40 +01:00
Uwe Stöhr
bd7dad25a2 stdtoolbars.inc: move \sideset to frame decorations
The frame decoration IconPalette contains already \overset etc. and \sideset has the same logic like \over- and \underset. Moreover we should keep the math panel clean and avoid the listing of many very special commands
2014-02-19 01:09:18 +01:00
Uwe Stöhr
225a48d0a7 stdmenus.inc: correct 2 expressions 2014-02-16 20:06:23 +01:00
Georg Baum
ac2c91be02 Document paste options (bug #8749)
As discussed in trac. Unformatted Text is removed, since it is too similar to
Plain text, adn nobody knows why it is needed in the standard menu. The lfun
is kept, so users can easily activate it in private ui files if needed.
2014-02-05 21:53:02 +01:00
Uwe Stöhr
e8de2df4f9 stdmenus.inc: move menu entry of visible space
the visible space is a character and should therefore be treated as special character (also proposed by Jürgen)
2014-02-03 00:32:45 +01:00
Juergen Spitzmueller
5a3f1a731f Extend environment-split to an 'outer' split function
This fixes a major beamer UI flaw reported by several users.
2014-01-27 08:01:24 +01:00
Juergen Spitzmueller
7e259c8d76 Do not reset custom space values if accessed via context menu (#8847) 2013-11-15 19:41:36 +01:00
Georg Baum
8b3f3a02c7 Make the different paste menu items optional
This was suggested by Jean-Marc some time ago, and I simply forgot to apply.
With this change you do not see unusable menu entries like linkback on linux
anymore. I also added an entry for emf, since this will be quite useful on
windows.
2013-05-11 09:39:06 +02:00
Georg Baum
c14b9e67bc Implement paste from LaTeX and HTML (bug #3096)
As discussed on the list. No automatic contents detection is done, the user
needs to use the special paste menu instead. I used the new TempFile class
for safe temporary file handling.
The documentation would go into section 2.2 of UserGuide.lyx, but I am not
allowed to edit that document.
2013-04-14 19:45:36 +02:00
Vincent van Ravesteijn
270ba80097 Add a toolbar button for continuous spellchecking
This fixes the second part of #8589.
2013-03-24 20:29:01 +01:00
Georg Baum
6e2d8cf10a Fix sideset keyboard short cuts
\sideset1 can't be entered via keyboard, so I renamed the commands.
2013-02-26 21:38:27 +01:00
Georg Baum
efaae780db Fix regression of 5261ae6a2
Somehow I overlooked that \sideset also supports nonscript arguments for
left and right. This is now fixed, although I do not like the toolbar names.
If somebody knows something better, please improve.
2013-02-24 21:23:50 +01:00
Georg Baum
5261ae6a29 Fix bug #1424: Native \sideset inset
The toolbar image is the one Uwe attached to the bug report. Note that
\sideset works only for operators like \sum in the nucleus. LyX allows
any content, so you might get a LaTeX error. I don't know how to prevent
wrong content in the nucleus.
2013-02-17 11:08:58 +01:00
Georg Baum
0526eb9d47 Implement VCS copy and rename
The advantage of having this in LyX is the intelligent file name handling
of included files. Implementation as discussed on the list, but ensure also
that an attempt to use locked files fails.
2013-02-06 20:38:54 +01:00
Scott Kostyshak
c80b4bcaf3 Make an accelerator uppercase 2013-01-25 23:27:02 -05:00
Scott Kostyshak
98a8c30dfa Change an accelerator to a more intuitive letter 2013-01-20 21:55:43 -05:00
Scott Kostyshak
3c84267d8d Implement move row/column in tabular inset
This patch implements 'move row' and 'move column' features for tabular.
The purpose is to provide a useful behavior in tabular that is
consistent with PARAGRAPH_MOVE_UP and PARAGRAPH_MOVE_DOWN so that the
user can, for example, do alt-<up> to move a row up. Alternatively,
icons for these features are also added to the table toolbar and
context menu.

If there is any selection, the feature is disabled. This is consistent
with how PARAGRAPH_MOVE_UP works in other contexts. Additionally, 'move
row' is disabled if there is a multi-row in the current or target row;
and 'move column' is disabled if there is a multi-column in the current
or target column.

'move row' moves only the left and right borders of a cell along with
the row. Similarly, 'move column' moves only the the top and bottom
borders.

Implementing similar functionality for other insets, such as arrays and
array environments, is on my TODO list.
2013-01-20 21:54:30 -05:00
Georg Baum
cbe5066622 Add missing math toolbar symbols 2013-01-13 21:43:14 +01:00
Juergen Spitzmueller
1abfa1fd79 Add a beamer manual (introduction to the basics) which uses the new layouts 2012-12-31 13:19:20 +01:00
Juergen Spitzmueller
c246076ed5 Fix the 'caption inset mess' (bug #4647) 2012-12-30 18:29:02 +01:00
Georg Baum
56ece75ad9 Fix bug #8464: stackrel with subscript.
The fix is basically mechanical, the additional code for fraction like insets
with three arguments was stolen from \unitfrac. As any math package,
stackrel.sty needs a buffer parameter to switch it off.
I also added the two stackrel flavours to the toolbar.
2012-12-28 20:08:43 +01:00
Juergen Spitzmueller
2f7cd8cc8a Add environment-split to the menu 2012-12-27 11:28:55 +01:00