[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[47d5a9e5] | 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 |
|
---|
[869ee99f] | 7 | <!-- This can be accessed via https://dvisvgm.de/Downloads/
|
---|
[c87a311a] | 8 | NOT via the tags at github - those use autogen.sh -->
|
---|
[47d5a9e5] | 9 | <!ENTITY dvisvgm-download-http "https://github.com/mgieseki/dvisvgm/releases/download/&dvisvgm-version;/dvisvgm-&dvisvgm-version;.tar.gz">
|
---|
| 10 | <!ENTITY dvisvgm-download-ftp " ">
|
---|
[1722fa1] | 11 | <!ENTITY dvisvgm-md5sum "2ddbb5ec720deaaf2e13f3a521089671">
|
---|
[855efae] | 12 | <!ENTITY dvisvgm-size "2.8 MB">
|
---|
[e12b9ec] | 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. -->
|
---|
[855efae] | 16 | <!ENTITY dvisvgm-buildsize "268 MB (net 7 MB installed after overwriting files in $TEXLIVE_PREFIX/texmf-dist/, add 948 MB for the tests)">
|
---|
[9aa6fdb] | 17 | <!ENTITY dvisvgm-time "0.8 SBU (add 0.5 SBU for the tests, both using parallelism=4)">
|
---|
[47d5a9e5] | 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 |
|
---|
[1cd77c3] | 38 | &lfs122_checked;
|
---|
[47d5a9e5] | 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 -->
|
---|
[8a3826d] | 80 | <xref linkend="brotli"/>,
|
---|
[869ee99f] | 81 | <xref linkend="gs"/>,
|
---|
| 82 | <xref linkend="potrace"/>, and
|
---|
| 83 | <xref linkend="texlive"/>
|
---|
[47d5a9e5] | 84 | </para>
|
---|
| 85 |
|
---|
[8a3826d] | 86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 87 | <para role="recommended">
|
---|
| 88 | <xref linkend="woff2"/>
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
[47d5a9e5] | 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 92 | <para role="optional">
|
---|
| 93 | <xref linkend="asciidoc"/> with
|
---|
| 94 | <xref linkend="xmlto"/> and
|
---|
[5dee803] | 95 | <xref linkend="libxslt"/>,
|
---|
[17aa21c] | 96 | <ulink url="https://dblatex.sourceforge.net/">dblatex</ulink> (with the above) and
|
---|
[a4188ba] | 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
|
---|
[3942811] | 99 | maybe change to 'a recent version' if that releases faster -->
|
---|
[041a1e0] | 100 | <ulink url="https://github.com/Cyan4973/xxHash/releases/latest">xxHash</ulink>
|
---|
[47d5a9e5] | 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 |
|
---|
[e99822d] | 109 | <!-- Editors: This is in the book for svg output from asymptote. tested in
|
---|
[c9aa980] | 110 | https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
|
---|
[c87a311a] | 111 | Can also be tested with texlive including tikz
|
---|
| 112 | https://www.linuxfromscratch.org/~ken/tex-testfiles/ https://www.linuxfromscratch.org/~ken/
|
---|
[0539191] | 113 | Or, use use it to convert first or specified page(s) of a PDF to SVG - see the man page
|
---|
[e99822d] | 114 | -->
|
---|
[47d5a9e5] | 115 |
|
---|
[2eac7f7] | 116 | <!-- symlink for kpathsea moved to texlive so that if it already exists for
|
---|
| 117 | evince from a previous year it will be recreated -->
|
---|
[47d5a9e5] | 118 |
|
---|
[3942811] | 119 | <para>
|
---|
[48771ae] | 120 | The test suite assumes that a modern version of <application>Python</application>
|
---|
[df50655] | 121 | has been installed as plain <command>python</command>. Changing this to use
|
---|
[c87a311a] | 122 | <command>python3</command> requires a sed to one <filename>Makefile.in</filename>
|
---|
| 123 | file.
|
---|
[df50655] | 124 | </para>
|
---|
| 125 |
|
---|
[47d5a9e5] | 126 | <para>
|
---|
[df50655] | 127 | Install <application>dvisvgm</application> by running the following
|
---|
[47d5a9e5] | 128 | commands:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
[ed3707e] | 131 | <screen><userinput>sed -i 's/python/&3/' tests/Makefile.in &&
|
---|
| 132 | ./configure \
|
---|
| 133 | --bindir=$TEXLIVE_PREFIX/bin/${TEXARCH} \
|
---|
| 134 | --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
|
---|
| 135 | --with-kpathsea=$TEXLIVE_PREFIX &&
|
---|
[47d5a9e5] | 136 | make</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 |
|
---|
[a4188ba] | 146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[47d5a9e5] | 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
| 152 |
|
---|
[db36f5a] | 153 | <!-- This is now done in Texlive
|
---|
[47d5a9e5] | 154 | <para>
|
---|
[ed3707e] | 155 | <command>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</command>:
|
---|
[47d5a9e5] | 156 | Without this, the program will not link correctly,
|
---|
| 157 | </para>
|
---|
[db36f5a] | 158 | -->
|
---|
[641597d] | 159 | <!-- The autoreconf command is not used above anymore.
|
---|
[3942811] | 160 | <para>
|
---|
[2a89030b] | 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.
|
---|
[3942811] | 167 | </para>
|
---|
[641597d] | 168 | -->
|
---|
[2a89030b] | 169 |
|
---|
[47d5a9e5] | 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>
|
---|
[f51350a6] | 175 | <parameter>--with-kpathsea=$TEXLIVE_PREFIX</parameter>: This allows
|
---|
[47d5a9e5] | 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>
|
---|
[d8321785] | 186 | <segtitle>Installed Programs</segtitle>
|
---|
| 187 | <segtitle>Installed Libraries</segtitle>
|
---|
| 188 | <segtitle>Installed Directories</segtitle>
|
---|
[47d5a9e5] | 189 |
|
---|
| 190 | <seglistitem>
|
---|
| 191 | <seg>
|
---|
| 192 | dvisvgm
|
---|
| 193 | </seg>
|
---|
| 194 | <seg>
|
---|
[d8321785] | 195 | None
|
---|
[47d5a9e5] | 196 | </seg>
|
---|
| 197 | <seg>
|
---|
[d8321785] | 198 | None
|
---|
[47d5a9e5] | 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>
|
---|
[4c24eb0a] | 222 |
|
---|
[47d5a9e5] | 223 | </sect1>
|
---|