summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/doc/dvisvgm.txt.in
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/doc/dvisvgm.txt.in')
-rw-r--r--dviware/dvisvgm/doc/dvisvgm.txt.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/dviware/dvisvgm/doc/dvisvgm.txt.in b/dviware/dvisvgm/doc/dvisvgm.txt.in
index 7afc9138b9..2b51b57c32 100644
--- a/dviware/dvisvgm/doc/dvisvgm.txt.in
+++ b/dviware/dvisvgm/doc/dvisvgm.txt.in
@@ -22,7 +22,7 @@ Martin Gieseking <@PACKAGE_BUGREPORT@>
:man source: dvisvgm
:man version: @VERSION@
:man manual: dvisvgm Manual
-:revdate: 2020-03-08 09:20 +0100
+:revdate: 2020-03-19 22:06 +0100
Name
----
@@ -224,7 +224,7 @@ version 1 and 2).
By default, dvisvgm creates unhinted fonts that might look bad on low-resolution devices. In order to
improve the display quality, the generated TrueType, WOFF, or WOFF2 fonts can be autohinted. The
autohinter is enabled by appending +,autohint+ or +,ah+ to the font format,
-e.g. +--font-format=woff,autohint+ or +--font-format=woff,ah+.
+e.g. +--font-format=woff,autohint+ or +--fwoff,ah+.
+
Option *--font-format* is only available if dvisvgm was built with WOFF support enabled.
@@ -722,12 +722,15 @@ dvisvgm offers its own small set of specials. The following list gives a brief o
*dvisvgm:raw* 'text';;
Adds an arbitrary sequence of XML nodes to the page section of the SVG document. dvisvgm checks syntax and
proper nesting of the inserted elements but does not perform any validation, thus the user has to ensure
- that the resulting SVG is still valid. Opening and closing tags may be distributed among different +raw+
- specials. The tags themselves can also be split but must be continued with the immediatly following +raw+
+ that the resulting SVG is still valid. Opening and closing tags may be distributed among different 'raw'
+ specials. The tags themselves can also be split but must be continued with the immediately following 'raw'
special. Both syntactically incorrect and wrongly nested tags lead to error messages.
Parameter 'text' may also contain the expressions *{?x}*, *{?y}*, *{?color}*, and *{?matrix}* that expand to
the current 'x' or 'y' coordinate, the current color, and current transformation matrix, respectively.
- Furthermore, *{?nl}* expands to a newline character.
+ Character sequence *{?nl}* expands to a newline character. Finally, constructions of the form *{?(__expr__)}*
+ enable the evaluation of mathematical expressions which may consist of basic arithmetic operations including
+ modulo. Like above, the variables 'x' and 'y' represent the current coordinates.
+ Example: +{?(-10*(x+2y)-5)}+.
*dvisvgm:rawdef* 'text';;
This command is similar to *dvisvgm:raw*, but puts the XML nodes into the <defs> section of the SVG document