]>
Command | title | Function name |
---|
Without any arguments, this command opens the index of the
documentaion. If you use tutorial
as argument, the tutorial
gets opened directly. You can use element
as argument to open
the section about the element the cursor is on from the MathML 3
specification. If you want to open the section of another element, you
can write the name of it behind the element
argument, for
example element mfrac
.
The argument installation-directory
reveales the
location of the installation directory of Gemse.
Moves the cursor to the previous sibling.
Moves the cursor to the next sibling.
Moves the cursor to the parent the current element.
Moves the cursor to the first child of the current one.
Moves the cursor to the last child of the current one.
Moves the cursor to the root element, i.e. to the math element.
Moves the cursor to the first sibling of the current element.
Moves the cursor to the last sibling of the current element.
Moves the cursor to the next leaf.
A leaf is an element that does not contain any other element.
The most important examples for that are the mi
,
mo
and mn
elements. Moving along leaves
feels like moving the cursor while ignoring the structure of the
formula.
Moves the cursor to the previous leaf.
Load the document at the given URL. It must contain a MathML formula as root element.
Two arguments must be given, seperated by a space: An URL and an id. The formula in the document at the given URL having the given XML id is loaded.
It is possible to do the same by using the normal load command and including the fragment identifier directly in the URL.
Two arguments must be provided: An URL and an XPath 1.0 expression. The expression is evaluated on the document at the given URL and all resulting nodes are loaded as equations.
It is possible to achieve the same using the normal load command, including the xpath expression as XPointer in the URI.
Loads all MathML formulas found in the document at the given URL.
Saves the current equation. You can provide an URL or filename as parameter which causes the equation to be saved there.
Closes the current equation. Closing of an equation with unsaved changes is prevented. You can write a ! to circumvent this protection.
Saves all equations.
Closes all equations which do not have unsaved changes.
Saves and closes the equation.
Saves and closes all equations.
If you want to load an example from the Gemse documentation,
you can use this command. So, instead of doing something like
Exports the equation into another format. At the moment, only TeX is supported. The result is displayed on the screen. Exporting to file is not yet possible.
Important: If you want to use this feature, you first
have to download the
XSLT MathML Library.
Put the files into the subdirectory exporters/xsltml
(which you have to create first) in the directory of Gemse. Please
also note, that this means, that you can not use this command in
the online demo of Gemse.
If you have opened more than one equation, you can use this command to switch to the next equation.
If you have opened more than one equation, you can use this command to switch to the previous equation.
Jumps to the equation with the given number. Note that the equations are numbered beginning with 0.
Creates a new empty equation. When you give no argument, a
MathML formula is created. (Currently the one you find in
the source code in editor.xul
with id
equationTemplate
) If you give
m
as argument, an equation just consisting of an empty
MathML math
element is created. If you give
om
an OpenMath OMOBJ
(with version set
to 2.0
) is created.
If you want to use an arbitrary element as root of the new
equation, you can give the namespace and the local name as
arguments, seperated by a space. For example
root
element in the namespace
http://example.org/ns
. (For the clever ones: There
are some prefixes which can be used instead of the namespace.
For instance
OMA
element in the OpenMath namespace.
For the list of all known prefixes, look at
standardNSResolver
in const.js
in the
source of Gemse.)
Hides a view of the current viewset. The argument must be the number of the view in this viewset. Views are counted in the order they turn up in the XUL description of the viewset, beginning 0 and hidden views are always counted as well.
Shows a previously hidden view. The argument must be the number
of the view or all
. In the latter case, all hidden
views are shown again.
Changes the viewset. The argument is the number or the name of the viewset.
Viewsets are counted in the order they are defined in
editor.xul
. The first one has number 0 and is the
default. Calling this command without argument prints a list of
all available viewsets, including a short description for each of
them.
In rare cases it may happen (perhaps because of a bug) that the display does not get updated. In such a case you can use this command to force an update of the display.
Opens a window which allows you to configure viewsets. The
window can be kept open while working with Gemse. If the window is
already open, this command moves the focus to it. If the argument
close
is given to this command, the configuraiton window gets
closed.
Open the insert mode such that the cursor is placed before the current element.
Open the insert mode such that the cursor is placed after the current element.
Open the insert mode such that the cursor is placed after the last sibling of the curent element.
Open the insert mode such that the cursor is placed before the first sibling
Open the insert mode such that the cursor is placed into the current empty element. The current element must be empty!
Selects the insert mode that will be used for the next insert.
Opens the visual mode so you can make a selection and execute an edit mode command on it.
Opens the attribute mode so you can change the attributes of the current element
Deletes the element the cursor is on.
Deletes all (by visual mode) selected elements.
Deletes all (by visual mode) selected elements and opens the insert mode.
Makes your last change undone. You can undo multiple changes. The redo command can be used to apply them again, to undo the undo, so to say.
Reapplies the last undone change. This is only possible if you have made no changes since the undo. A redo can be undone again.
Places an mrow element around the selected elements.
Removes the element and places its children at its former location.
Copies the selection into a register. If there is no selection,
the element under the cursor is taken. By default, it copies to
the default register. Another register can be used by prepending
the command with "x where x
is the name of
the register which is always one unicode character.
Puts the contents of a register before the current element.
By default, it uses
the default register. Another register can be used by prepending
the command with "x where x
is the name of
the register which is always one unicode character.
Puts the contents of a register after the current element.
By default, it uses
the default register. Another register can be used by prepending
the command with "x where x
is the name of
the register which is always one unicode character.
Puts the contents of a register into the current element.
The current element must be empty!
By default, it uses
the default register. Another register can be used by prepending
the command with "x where x
is the name of
the register which is always one unicode character.
When you call this command with just the name of an option as
argument, it shows you the current value of the option. For
example
detailedErrors
.
If you want to set an option, put an equal sign after the name of
the option and then the value. For example
detailedErrors
to
off
. Note that like this, the option is set only for
the current equation. If you want to change the global setting of
this option, use the keyword all
like
Note that a global setting of an option is always overridden by
the setting local to the current equation if it is present. In
order to remove the local setting of the current equation of an
option, put a dash right in front of the name of the option,
for example
Do not place whitespaces before or
after the equal sign that are not part of the value of the option.
You do not need to escape special characters, since everything
after the equal sign up to the &enter; is considered
part of the option value. Currently, it is not possible to set
an option to a value that contains newline characters. For example
Does absolutely nothing except wasting your time and electricity. This is useful for keys that sometimes get hit accidentally in this mode.