2016-03-26 09:26:29 +00:00
|
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
|
xml:id="sec-language-texlive">
|
2018-05-02 00:54:21 +01:00
|
|
|
<title>TeX Live</title>
|
2016-03-26 09:26:29 +00:00
|
|
|
|
2018-05-02 00:54:21 +01:00
|
|
|
<para>
|
|
|
|
Since release 15.09 there is a new TeX Live packaging that lives entirely
|
|
|
|
under attribute <varname>texlive</varname>.
|
|
|
|
</para>
|
|
|
|
|
2018-09-01 20:06:38 +01:00
|
|
|
<section xml:id="sec-language-texlive-users-guide">
|
2018-05-02 00:54:21 +01:00
|
|
|
<title>User's guide</title>
|
2016-03-26 09:26:29 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
2018-05-02 00:54:21 +01:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
For basic usage just pull <varname>texlive.combined.scheme-basic</varname>
|
|
|
|
for an environment with basic LaTeX support.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
It typically won't work to use separately installed packages together.
|
|
|
|
Instead, you can build a custom set of packages like this:
|
|
|
|
<programlisting>
|
2016-03-26 09:26:29 +00:00
|
|
|
texlive.combine {
|
|
|
|
inherit (texlive) scheme-small collection-langkorean algorithms cm-super;
|
|
|
|
}
|
|
|
|
</programlisting>
|
2018-05-02 00:54:21 +01:00
|
|
|
There are all the schemes, collections and a few thousand packages, as
|
|
|
|
defined upstream (perhaps with tiny differences).
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
By default you only get executables and files needed during runtime, and a
|
|
|
|
little documentation for the core packages. To change that, you need to
|
|
|
|
add <varname>pkgFilter</varname> function to <varname>combine</varname>.
|
|
|
|
<programlisting>
|
2016-03-26 09:26:29 +00:00
|
|
|
texlive.combine {
|
|
|
|
# inherit (texlive) whatever-you-want;
|
|
|
|
pkgFilter = pkg:
|
|
|
|
pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "cm-super";
|
|
|
|
# elem tlType [ "run" "bin" "doc" "source" ]
|
|
|
|
# there are also other attributes: version, name
|
|
|
|
}
|
|
|
|
</programlisting>
|
2018-05-02 00:54:21 +01:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2018-12-04 02:16:10 +00:00
|
|
|
You can list packages e.g. by <command>nix repl</command>.
|
|
|
|
<programlisting><![CDATA[
|
|
|
|
$ nix repl
|
|
|
|
nix-repl> :l <nixpkgs>
|
|
|
|
nix-repl> texlive.collection-<TAB>
|
|
|
|
]]></programlisting>
|
2018-05-02 00:54:21 +01:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Note that the wrapper assumes that the result has a chance to be useful.
|
|
|
|
For example, the core executables should be present, as well as some core
|
|
|
|
data files. The supported way of ensuring this is by including some
|
|
|
|
scheme, for example <varname>scheme-basic</varname>, into the combination.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2016-03-26 09:26:29 +00:00
|
|
|
</itemizedlist>
|
2018-05-02 00:54:21 +01:00
|
|
|
</section>
|
|
|
|
|
2018-09-01 20:06:38 +01:00
|
|
|
<section xml:id="sec-language-texlive-known-problems">
|
2018-05-02 00:54:21 +01:00
|
|
|
<title>Known problems</title>
|
2016-03-26 09:26:29 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
2018-05-02 00:54:21 +01:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Some tools are still missing, e.g. luajittex;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
some apps aren't packaged/tested yet (asymptote, biber, etc.);
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
feature/bug: when a package is rejected by <varname>pkgFilter</varname>,
|
|
|
|
its dependencies are still propagated;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
in case of any bugs or feature requests, file a github issue or better a
|
|
|
|
pull request and /cc @vcunat.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2016-03-26 09:26:29 +00:00
|
|
|
</itemizedlist>
|
2018-05-02 00:54:21 +01:00
|
|
|
</section>
|
2016-03-26 09:26:29 +00:00
|
|
|
</section>
|