source: pst/typesetting/tex-path.xml@ 53d31c69

gimp3 lazarus trunk
Last change on this file since 53d31c69 was f88146e, checked in by Xi Ruoyao <xry111@…>, 6 months ago

tex-path: Set TEXMFCNF to the directory containing texmf.cnf

Without this setting, when opening a .dvi file with evince:

  • If PATH does not contain /opt/texlive/2023/bin/x86_64-linux, it just fails.
  • If PATH contains /opt/texlive/2023/bin/x86_64-linux, the file can be opened but a stupidly long time is used.

In both cases there is a warning message on the console:

warning: kpathsea: configuration file texmf.cnf not found in these
directories: ... ... ...

Setting TEXMFCNF explicitly fixes the issue (regardless PATH contains
the texlive bindir or not; though I'm not sure why libkpathsea cannot
use a reasonable default).

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[eb38c8a]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
8<sect1 id="tex-path" xreflabel="Setting the PATH for TeX Live">
9 <?dbhtml filename="tex-path.html"?>
10
11
12 <title>Setting the PATH for TeX Live</title>
13
[fa3edfef]14 <para>
15 Before starting to build TeX Live, set up your PATH so
[eb38c8a]16 that the system can properly find the files. If you set up your login
17 scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
[ed3707e]18 the needed paths by creating the
19 <filename>texlive.sh</filename> script. The programs are always
[eb38c8a]20 installed in an &lt;ARCH&gt;-linux subdirectory and on 32-bit x86 this is
21 always i386-linux. For x86_64 and i?86 we can generate this as $TEXARCH:
[fa3edfef]22 </para>
[eb38c8a]23
[26e8824]24 <note>
25 <para>
26 If upgrading from a previous year's version, you should manually
[ed3707e]27 edit <filename>texlive.sh</filename> to ensure that the version for
[26e8824]28 the year you wish to use is the only TeX present (some people need to
29 keep multiple years available to ensure there are no regressions in
30 their documents).
31 </para>
32 </note>
33
[eb38c8a]34<!-- EOF should NOT be in double quotes, we want it to evaluate $TEXARCH -->
35<!-- this is also in texlive.xml -->
[ed3707e]36 <para>Now, create the texlive.sh script as the &root; user:</para>
[eb38c8a]37
[ed3707e]38<screen role="root"><userinput>TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/')
[eb32964]39
[ed3707e]40cat &gt; /etc/profile.d/texlive.sh &lt;&lt; EOF
41<literal># Begin texlive setup
42TEXLIVE_PREFIX=/opt/texlive/&texlive-year;
43export TEXLIVE_PREFIX
[eb32964]44
[ed3707e]45pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/man MANPATH
46pathappend \$TEXLIVE_PREFIX/texmf-dist/doc/info INFOPATH
47pathappend \$TEXLIVE_PREFIX/bin/$TEXARCH
48
[f88146e]49TEXMFCNF=\$TEXLIVE_PREFIX/texmf-dist/web2c
50export TEXMFCNF
51
[ed3707e]52# End texlive setup</literal>
[eb38c8a]53EOF
54
55unset TEXARCH</userinput></screen>
56
[fa3edfef]57 <note>
58 <para>
59 The standard MANPATH and INFOPATH path are specified above to
60 ensure they are included. If they are already set in the boot script
61 procedure, the pathappend function will ensure duplicates are
62 removed, so including them here will do no harm.
63 </para>
64 </note>
65
[ed3707e]66 <note>
67 <para>
[1fe05eb]68 The backslashes before the dollar signs in the script above are to
[ed3707e]69 facilitate a copy/paste operation. The backslashes should not
70 appear in the actual script.
71 </para>
72 </note>
73
[fa3edfef]74 <para>
[a504e70b]75 The new paths can be immediately activated by running:
[fa3edfef]76 </para>
[eb38c8a]77
[a504e70b]78<screen><userinput>source /etc/profile</userinput></screen>
79
[fa3edfef]80 <para>
81 You should now proceed either to <xref linkend="tl-installer"/> for
[3f31914]82 a binary installation of texlive, or to <xref linkend="texlive"/> to begin
[fa3edfef]83 installing from source.
84 </para>
[eb38c8a]85
86</sect1>
Note: See TracBrowser for help on using the repository browser.