[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Package X-Symbol not only provides input methods for X-Symbol characters, it also provides more features which support an easy and comfortable preparation of documents.
5.1 Super- and Subscripts | Use special fonts for super-/subscripts. | |
5.2 Images at the end of Image Insertion Commands | Images after image insertion commands. | |
5.3 Info in Echo Area | Display information in echo area. | |
5.4 Ascii Representation of Strings | Derive label from a buffer contents. | |
5.5 X-Symbol Package Information | Invoke info system, use WWW browser. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Package X-Symbol displays the characters inside super-/subscript commands in a way to make them look like super-/subscripts. It also marks the super-/subscript command itself as invisible, so you don't see it on the screen. For example, the three characters `a^2' in the buffer are displayed as an `a' and a raised, smaller `2'---the `^' is still in the buffer.
Therefore, the display of super- and subscripts has nothing to do with Input Method Electric (see section 4.8 Input Method Electric: Automatic Context).
Do not confuse the special Latin characters twosuperior
,
threesuperior
, ordfeminine
and masculine
with the
characters `2', `3', `a' and `o' when displayed as
superscripts. You might notice that the characters look a bit
different, but to help you seeing the difference, X-Symbol will display
an info in the echo area (see section 5.3 Info in Echo Area) for the special Latin
characters when point is before or after the character in question.
X-Symbol only displays the innermost super- and subscripts, since we would need even more additional fonts otherwise. It is also restricted to display single-line super- and subscripts.
The display of super- and subscripts requires font-lock
to be
enabled (see section 3.5 The Role of font-lock
).
Super- and subscripts are by default enabled if the they are defined for the token language and it would be appropriate to turn on X-Symbol automatically for the current buffer (see section 3.3 Minor Mode). They can be disabled (and re-enabled) by setting the following buffer-local variable:
x-symbol-subscripts
x-symbol-reveal-invisible
x-symbol-revealed-face
x-symbol-idle-delay
Super-/subscript commands are ^
/_
(see section 6.2 Token Language "TeX macro" (tex
)) and
<sup>
/<sub>
(see section 6.3 Token Language "SGML entity" (sgml
)):
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Package X-Symbol can display images at the end of image insertion
commands. They show thumbnails (scaled-down version of the image) for
the included image files (using convert
, see section 2.5 Installing the Image Converter from ImageMagick). Using the middle mouse button invokes the image editor for
the image under the mouse pointer.
5.2.1 Display of Images | When to display images. | |
5.2.2 Image Conversion | Producing a scaled-down image. | |
5.2.3 Image Caching | Speeding up the image processing. | |
5.2.4 Special Images for Specific Situations | Signaling specific situations. | |
5.2.5 Image Editor | Editing the original image file. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The display of images is by default enabled if the image commands are defined for the token language and it would be appropriate to turn on X-Symbol automatically for the current buffer (see section 3.3 Minor Mode). It can be disabled (and re-enabled) by setting the following buffer-local variable:
x-symbol-image
\includegraphics
and others (see section 6.2 Token Language "TeX macro" (tex
)), and <img>
(see section 6.3 Token Language "SGML entity" (sgml
)):
x-symbol-lang-image-keywords
tex
):
x-symbol-lang-master-directory
x-symbol-lang-image-searchpath
x-symbol-image-searchpath-follow-symlink
nil
(the
default), subdirectories which are symbolic links are not included.
For details, see the section of the individual token languages (see section 6. Supported Token Languages).
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The file mentioned inside the image insertion command is not used directly to display the image after the command. The image might be too big, it might use too many colors or the image format might not be supported by Emacs. Therefore, it is converted to an image cache file, see 5.2.3 Image Caching.
x-symbol-image-max-width
x-symbol-image-max-height
x-symbol-image-convert-colormap
x-symbol-image-convert-colormap
below.
A colormap is a normal image whose colors are the only ones used for
producing other images. The distribution of package X-Symbol includes
two colormaps: `etc/colormap138.xpm' and `etc/colormap66.xpm'.
x-symbol-image-colormap-allocation
x-symbol-image-converter
convert
from ImageMagick is used to convert the images
(see section 2.5 Installing the Image Converter from ImageMagick). Set this variable to nil
,
if you don't want to convert images.
The following variables controls the invocation of the program
convert
from ImageMagick:
x-symbol-image-convert-program
convert
, it is
`C:\\ImageMagick\\convert' when running on Windows and
`convert' otherwise.
x-symbol-image-convert-file-alist
convert
needs to be told that `file.pstex' is
a Postscript file.
The following functions are possible values in
x-symbol-image-converter
:
x-symbol-image-start-convert-mono
x-symbol-image-start-convert-truecolor
x-symbol-image-start-convert-color
x-symbol-image-start-convert-colormap
x-symbol-image-convert-mono-regexp
x-symbol-image-start-convert-colormap
just produces
monochrome images for temporary image cache files (see section 5.2.3 Image Caching) since convert
is slower when using a colormap.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Editing would be extremely slow, if an image cache file would be produced every time an image insertion command has been recognized. Therefore, package X-Symbol uses the following techniques:
File and memory caching can be controlled by the following variables:
x-symbol-image-update-cache
x-symbol-image-cache-directories
Images outside your home directory are just temporarily cached, or not displayed at all if they cannot be stored in the memory cache.
You could also specify that the cache files uses a relative subdirectory, e.g., that `~/d/img.eps' is cached in `~/d/.img/img.eps' or that the image is not displayed at all.
x-symbol-image-temp-name
x-symbol-image-use-remote
t
, it tries to find the image file during
editing (ignoring the search path for speed, though). Editing lines
with image files not in the memory cache would be slow, since file
accesses are necessary for every command.
The memory cache only stored image file from the current directory or
some standard image directories like `figures/' (see section 6.2 Token Language "TeX macro" (tex
)), or `images/' or `pictures/' (see section 6.3 Token Language "SGML entity" (sgml
)).
Otherwise, the image file is considered similar to remote files:
x-symbol-lang-image-cached-dirs
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If package X-Symbol cannot display images representing the included image files, it uses special images instead:
To customize the glyphs for the special images, use:
x-symbol-image-data-directory
x-symbol-image-special-glyphs
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you move the mouse pointer to an image insertion command or its image, it is highlighted.
It also displays all directories in the searchpath if the file name is implicitly relative, or the current directory otherwise. Selecting a directory starts the image editor in that directory (relatively to that directory if the file name has a directory part).
You can control which editor to use:
x-symbol-image-editor-alist
display
is used to edit the highlighted image
file. But for image names `file.eps', `file.ps'
or `file.pstex', program xfig
is invoked with
`file.fig'. It also uses a scale method, e.g., with
`img.80.eps', we edit `img.fig' (which should be exported with
scale=80%).
x-symbol-image-scale-method
x-symbol-image-current-marker
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The echo area (see section `Echo Area' in XEmacs User's Manual) is used by X-Symbol to give some information about the character around point, and whether there is a context before point which can be replaced by input method Context (see section 4.7 Input Method Context: Replace Char Sequence).
It will be controlled by the following variables (also to be found in the menu):
x-symbol-character-info
x-symbol-context-info
x-symbol-context-info-ignore
x-symbol-default-context-info-ignore
makes the
following variables control whether to display the context info.
x-symbol-context-info-threshold
x-symbol-context-info-ignore-regexp
x-symbol-context-info-ignore-groups
x-symbol-idle-delay
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you want to derive labels from a buffer contents (provided e.g., by
Emacs packages reftex
or bibtex
), you need a Ascii
representation of strings containing X-Symbol characters. This is
provided by the following function:
x-symbol-translate-to-ascii
x-symbol-charsym-ascii-alist
(setq x-symbol-charsym-ascii-alist '((adiaeresis . "ae") (Adiaeresis . "Ae") (odiaeresis . "oe") (Odiaeresis . "Oe") (udiaeresis . "ue") (Udiaeresis . "Ue"))) |
x-symbol-charsym-ascii-groups
sigma1
has the Ascii representation `sigma'.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
x-symbol-installer-address
x-symbol-package-url
x-symbol-package-web
.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |