source: pst/typesetting/dvisvgm.xml

trunk
Last change on this file was 855efae, checked in by Douglas R. Reno <renodr@…>, 7 days ago

Update to dvisvgm-3.3

  • Property mode set to 100644
File size: 7.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- This can be accessed via https://dvisvgm.de/Downloads/
8 NOT via the tags at github - those use autogen.sh -->
9 <!ENTITY dvisvgm-download-http "https://github.com/mgieseki/dvisvgm/releases/download/&dvisvgm-version;/dvisvgm-&dvisvgm-version;.tar.gz">
10 <!ENTITY dvisvgm-download-ftp " ">
11 <!ENTITY dvisvgm-md5sum "bd2f4e747f1d090ae623e6ebd7c6a5e8">
12 <!ENTITY dvisvgm-size "2.8 MB">
13 <!-- for dvisvgm-3.22 on top of TL2023, 7 MB for program,
14 a few KB for bigger dvisvgm.1 and the PDF man page was not updated.
15 For a DESTDIR this would be 313 MB and 45 MB. -->
16 <!ENTITY dvisvgm-buildsize "268 MB (net 7 MB installed after overwriting files in $TEXLIVE_PREFIX/texmf-dist/, add 948 MB for the tests)">
17 <!ENTITY dvisvgm-time "0.8 SBU (add 0.5 SBU for the tests, both using parallelism=4)">
18]>
19
20<sect1 id="dvisvgm" xreflabel="dvisvgm-&dvisvgm-version;">
21 <?dbhtml filename="dvisvgm.html"?>
22
23
24 <title>dvisvgm-&dvisvgm-version;</title>
25
26 <indexterm zone="dvisvgm">
27 <primary sortas="a-dvisvgm">dvisvgm</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to dvisvgm</title>
32
33 <para>
34 The <application>dvisvgm</application> package converts DVI, EPS and
35 PDF files to SVG format.
36 </para>
37
38 &lfs121_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&dvisvgm-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&dvisvgm-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &dvisvgm-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &dvisvgm-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &dvisvgm-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &dvisvgm-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">dvisvgm Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <!-- EDITORS: the docs say it needs clipper, but it uses an internal
79 modified version and cannot be built with system clipper -->
80 <xref linkend="brotli"/>,
81 <xref linkend="gs"/>,
82 <xref linkend="potrace"/>, and
83 <xref linkend="texlive"/>
84 </para>
85
86 <bridgehead renderas="sect4">Recommended</bridgehead>
87 <para role="recommended">
88 <xref linkend="woff2"/>
89 </para>
90
91 <bridgehead renderas="sect4">Optional</bridgehead>
92 <para role="optional">
93 <xref linkend="asciidoc"/> with
94 <xref linkend="xmlto"/> and
95 <xref linkend="libxslt"/> (see command explanations),
96 <ulink url="https://dblatex.sourceforge.net/">dblatex</ulink> (with the above) and
97 <!-- version checked for dvisvgm-2.9, 0.7.3 is mentioned in the
98 news and is the latest version at 2020-03-21
99 maybe change to 'a recent version' if that releases faster -->
100 <ulink url="https://github.com/Cyan4973/xxHash/releases/latest">xxHash</ulink>
101 (the current version is included in the tarball)
102 </para>
103
104 </sect2>
105
106 <sect2 role="installation">
107 <title>Installation of dvisvgm</title>
108
109<!-- Editors: This is in the book for svg output from asymptote. tested in
110 https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
111 Can also be tested with texlive including tikz
112 https://www.linuxfromscratch.org/~ken/tex-testfiles/ https://www.linuxfromscratch.org/~ken/
113 Or, use use it to convert first or specified page(s) of a PDF to SVG - see the man page
114-->
115
116 <!-- symlink for kpathsea moved to texlive so that if it already exists for
117 evince from a previous year it will be recreated -->
118
119 <para>
120 The test suite assumes that a modern version of <application>Python</application>
121 has been installed as plain <command>python</command>. Changing this to use
122 <command>python3</command> requires a sed to one <filename>Makefile.in</filename>
123 file.
124 </para>
125
126 <para>
127 Install <application>dvisvgm</application> by running the following
128 commands:
129 </para>
130
131<screen><userinput>sed -i 's/python/&amp;3/' tests/Makefile.in &amp;&amp;
132./configure \
133 --bindir=$TEXLIVE_PREFIX/bin/${TEXARCH} \
134 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
135 --with-kpathsea=$TEXLIVE_PREFIX &amp;&amp;
136make</userinput></screen>
137
138 <para>
139 To test the results, issue: <command>make check</command>.
140 </para>
141
142 <para>
143 Now, as the <systemitem class="username">root</systemitem> user:
144 </para>
145
146<screen role="root"><userinput>make install</userinput></screen>
147
148 </sect2>
149
150 <sect2 role="commands">
151 <title>Command Explanations</title>
152
153<!-- This is now done in Texlive
154 <para>
155 <command>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</command>:
156 Without this, the program will not link correctly,
157 </para>
158-->
159<!-- The autoreconf command is not used above anymore.
160 <para>
161 <command>autoreconf -fiv</command>: The versions of
162 <application>autoconf</application> and <application>automake</application>
163 used when this package was created are older than the current versions in
164 LFS. That causes 'make' to fail when it reaches the 'tests' subdirectory
165 unless autoreconf is forced to install missing (i.e. newer) auxiliary
166 files.
167 </para>
168-->
169
170 <!-- EDITORS: the doc target to rebuild the manpage (make man) is not
171 recognised unless invoked from the doc directory (unlike make pdf which
172 can be invoked from top-level but needs dblatex), and I see no utility
173 in explaining how to regenerate it. ken -->
174 <para>
175 <parameter>--with-kpathsea=$TEXLIVE_PREFIX</parameter>: This allows
176 the build system to find the headers for <filename
177 class="libraryfile">kpathsea</filename>
178 </para>
179
180 </sect2>
181
182 <sect2 role="content">
183 <title>Contents</title>
184
185 <segmentedlist>
186 <segtitle>Installed Programs</segtitle>
187 <segtitle>Installed Libraries</segtitle>
188 <segtitle>Installed Directories</segtitle>
189
190 <seglistitem>
191 <seg>
192 dvisvgm
193 </seg>
194 <seg>
195 None
196 </seg>
197 <seg>
198 None
199 </seg>
200 </seglistitem>
201 </segmentedlist>
202
203 <variablelist>
204 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
205 <?dbfo list-presentation="list"?>
206 <?dbhtml list-presentation="table"?>
207
208 <varlistentry id="dvisvgm-prog">
209 <term><command>dvisvgm</command></term>
210 <listitem>
211 <para>
212 converts DVI, EPS and PDF files to the SVG format
213 </para>
214 <indexterm zone="dvisvgm dvisvgm-prog">
215 <primary sortas="b-dvisvgm">dvisvgm</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 </variablelist>
221 </sect2>
222
223</sect1>
Note: See TracBrowser for help on using the repository browser.