Package: texlive-base / 2016.20170123-5

xdvi-config-paper-factorization Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
 texmf-dist/xdvi/XDvi       |   12 +++++++++++-
 texmf-dist/xdvi/XDvi-paper |    1 +
 tlpkg/texlive.tlpdb        |    1 +
 3 files changed, 13 insertions(+), 1 deletion(-)

--- texlive-base-2016.20170116.orig/texmf-dist/xdvi/XDvi
+++ texlive-base-2016.20170116/texmf-dist/xdvi/XDvi
@@ -21,7 +21,17 @@
 !!! and greater flexibility for shrink values. Generating MF fonts shouldn't be an
 !!! issue when using T1lib.
 !*mfMode: ljfour
-*paper: a4
+
+!!! include the various places where system-admins can configure the papersize
+!!! for xdvi:
+!!! the default as shipped in TeX Live is in the same directory as XDvi
+#include "XDvi-paper"
+!!! the file used by tl-paper for setting up the paper size
+#include "/var/lib/texmf/xdvi/XDvi-paper"
+!!! the file a sysadm can use to override everything in /etc
+#include "/etc/texmf/xdvi/XDvi-paper"
+!!! the last one takes precedence, and there is no problem with missing
+!!! files, which amounts to what we want.
 
 !!! This should be the best choice for modern displays with large color depth.
 *thorough: true
--- /dev/null
+++ texlive-base-2016.20170116/texmf-dist/xdvi/XDvi-paper
@@ -0,0 +1 @@
+*paper: a4
--- texlive-base-2016.20170116.orig/tlpkg/texlive.tlpdb
+++ texlive-base-2016.20170116/tlpkg/texlive.tlpdb
@@ -246240,6 +246240,7 @@
 runfiles size=9
  texmf-dist/dvips/xdvi/config.xdvi
  texmf-dist/xdvi/XDvi
+ texmf-dist/xdvi/XDvi-paper
  texmf-dist/xdvi/pixmap/toolbar.xpm
  texmf-dist/xdvi/pixmap/toolbar2.xpm
 catalogue-ctan /dviware/xdvi