~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to .pc/xdvipdfmx-config-i-directive/texk/xdvipdfmx/data/config/dvipdfmx.cfg

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-04-10 10:16:01 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20120410101601-7mt8nyn280xrgza6
Tags: 2011.20120410-1
* new upstream checkout:
  - remove decls of popen and pclose (Closes: #64524) (!yow, 5 digit bug!)
  - do not declare getopt in C++, fixes FTBFS with g++ >= 4.7 
    (Closes: #667392)
* add patches (maybe to be included upstream) that allows inclusion of
  one config file in another for (x)dvipdfmx. This will be
  used by the paper code.
* fix description of libptexenc-dev package (Closes: #667694)
* remove xdvik patch, included upstream
* remove conflict with ptex-bin, we are building a transitional package now
* build with internal t1lib, as t1lib is going to disappear in
  wheezy (Closes: #667912) (no, dropping xdvi is not an option!)
  (add a lintian override otherwise this gives a lintian error)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%% dvipdfmx.cfg for xdvipdfmx (xetex).  (Public domain.)
 
2
%%
 
3
%% PDF Version Setting
 
4
%%
 
5
%% PDF (minor) version stamp to use in output file.
 
6
%% This also implies maximal version of PDF file allowed to be included.
 
7
%% Dvipdfmx does not support 1.0, 1.1, 1.2 since TrueType font embedded
 
8
%% as CIDFontType2 requires at least version 1.3. Transparent imaging
 
9
%% model requires version 1.4. So if you want soft-masking support for
 
10
%% PNG image with alpha channels, you should set version to 4 or higher.
 
11
 
 
12
V  4
 
13
 
 
14
%% Dvipdfmx Compatibility Flags
 
15
%%
 
16
%%   0x0002  Use semi-transparent filling for tpic shading command,
 
17
%%           instead of opaque gray color. (requires PDF 1.4)
 
18
%%   0x0004  Treat all CIDFont as fixed-pitch font.
 
19
%%           This is only for backward compatibility. Don't use that.
 
20
%%   0x0008  Do not replace duplicate fontmap entries.
 
21
%%           Dvipdfm's (not 'x') behaviour.
 
22
 
 
23
%C  0x0000
 
24
 
 
25
 
 
26
%% PDF Document Settings
 
27
%%
 
28
%% Papersize Option:
 
29
%%
 
30
%%   p papersize-spec
 
31
%%
 
32
%% papersize-spec is 'paper-format' or length-pair, e.g., 'a4', 'letter',
 
33
%% '20cm,30cm'. Recognized unit is 'cm', 'mm', 'bp', 'pt', 'in'.
 
34
 
 
35
p  a4
 
36
 
 
37
%% Annotation Box Margin:
 
38
%%
 
39
%%   g length
 
40
%%
 
41
%% Add margin to annotation rectangle created via various \specials. Many
 
42
%% TeX macro packages set the annotation bounding box equal to the TeX box
 
43
%% that encloses the material. That's not always what you want.
 
44
%% Annotations created by pdf:bannot/pdf:eannot is also affected.
 
45
 
 
46
g  1
 
47
 
 
48
%% Bookmark Open Level:
 
49
%%
 
50
%%   O integer
 
51
%%
 
52
%% Mark bookmark (outline) item as initial state 'open' if the depth
 
53
%% of that item (from root node) is less than or equal to the integer
 
54
%% specified with this option.
 
55
 
 
56
O  0
 
57
 
 
58
%% PDF Security (Encryption) Setting
 
59
%%
 
60
%% Those options won't take effects unless you use flag 'S'.
 
61
%%
 
62
%% Key bits for PDF encryption (40 - 128)
 
63
 
 
64
K  40
 
65
 
 
66
%% Permission flag for PDF encryption: Revision will be 3 if the key size
 
67
%% is greater than 40 bits.
 
68
%%
 
69
%% 0x0004 (Revision 2) Print the document.
 
70
%%        (Revision 3) Print the document (possibly not at the highest quality
 
71
%%        level, depending on whether bit 12[0x0800] is also set).
 
72
%% 0x0008 Modify the contents of the document by operations other than those
 
73
%%        controlled by bits 6[0x0020], 9[0x0100], and 11[0x0400].
 
74
%% 0x0010 (Revision 2) Copy or otherwise extract text and graphics from the
 
75
%%        document, including extracting text and graphics (in support of
 
76
%%        accessibility to disabled users or for other purposes).
 
77
%%        (Revision 3) Copy or otherwise extract text and grphics from the
 
78
%%        document by operations other than that controlled by bit 10[0x0200].
 
79
%% 0x0020 Add or modify text annotations, fill in interactive form fields,
 
80
%%        and, if bit 4[0x0008] is also set, create or modify interactive
 
81
%%        form fields (including signature fields).
 
82
%%
 
83
%% (Revision 3 only)
 
84
%% 0x0100 Fill in existing interactive form fields (including signature
 
85
%%        fields), even if bit 6 is clear.
 
86
%% 0x0200 Extract text and graphics (in support of accessibility to disabled
 
87
%%        users or for other purposes).
 
88
%% 0x0400 Assemble the document (insert, rotate, or delete pages and create
 
89
%%        bookmarks or thumbnail images), even if bit 4 is clear.
 
90
%% 0x0800 Print the document to a representation from which a faithful digital
 
91
%%        copy of the PDF content could be generated. When this bit is clear
 
92
%%        (and bit 3 is set), printing is limited to a low-level representation
 
93
%%        of the appearance, possibly of degraded quality.
 
94
 
 
95
P  0x003C
 
96
 
 
97
%% Image Handler
 
98
%%
 
99
%% With 'D' option dvipdfmx may invoke shell command via system()
 
100
%% function call.
 
101
%%
 
102
%% Command-line template for a-to-b conversion:
 
103
%%
 
104
%% Supported target format ('b') is currently PDF.
 
105
%% Percent sign '%' is special character:
 
106
%%
 
107
%%   %i  Input file name (FQPN). Name of file to be converted to PDF.
 
108
%%   %o  Output file name (FQPN). Temporary file to store conversion
 
109
%%       result. Removed after inclusion is finished. (regardless of
 
110
%%       success or failure)
 
111
%%   %b  The "base" name of the input file, e.g., "foo" instead of
 
112
%%       "foo.eps".
 
113
%%   %%  Replaced with single '%'.
 
114
 
 
115
%% Ghostscript (PS-to-PDF)
 
116
%%
 
117
%% ps2pdf is a front-end to gs. For a complete list of options, see
 
118
%% http://ghostscript.com/doc/current/Ps2pdf.htm#Options
 
119
%%
 
120
%% By default, gs encodes all images contained in a PS file using
 
121
%% the lossy DCT (i.e., JPEG) filter. This often leads to inferior
 
122
%% result (see the discussion at http://electron.mit.edu/~gsteele/pdf/).
 
123
%% The "-dAutoFilterXXXImages" and "-dXXXImageFilter" options used
 
124
%% below force all images to be encoded with the lossless Flate (zlib,
 
125
%% same as PNG) filter. Note that if the PS file already contains DCT
 
126
%% encoded images (which is possible in PS level 2), then these images
 
127
%% will also be re-encoded using Flate. To turn the conversion off,
 
128
%% simply remove the options mentioned above.
 
129
%%
 
130
%% Also note that PAPERSIZE=a0 is specified below. This converts PS
 
131
%% files (including EPS) to A0 papersize PDF. This is necessary to
 
132
%% prevent gs from clipping PS figure at some papersize. (A0 above
 
133
%% simply means large size paper.) If you have figures even larger
 
134
%% than A0, and their llx=lly=0, you can use "-dEPSCrop" instead of
 
135
%% "-sPAPERSIZE=a0"
 
136
%%
 
137
 
 
138
%% Frank Siegert's PStill:
 
139
%D  "/usr/local/bin/pstill -c -o %o %i"
 
140
 
 
141
%% Batik + Fop (SVG-to-PDF):
 
142
%% If you want both PS and SVG, you need to write a script or program
 
143
%% that selectively invokes converters.
 
144
%D  "java -classpath classpaths -jar /path/to/batik-rasterizer.jar -m application/pdf -d %o %i"
 
145
 
 
146
%% There are no way to directly know suggested size of (raster) images.
 
147
%% You may want to use %b here, since you can try reading the ebb file
 
148
%% to see what is natural (physical) size of images. 
 
149
%D  "ras2pdf -r 300x300 -b %b.bb -o %o %i"
 
150
 
 
151
%% ImageMagick:
 
152
%% Easiest way to support various file formats.
 
153
%D  "convert %i epdf:%o"
 
154
 
 
155
%% Other Options
 
156
%%
 
157
%% DPI for PK font creation
 
158
 
 
159
%r  600
 
160
 
 
161
%% Set number of fractional digit kept for various numbers in PDF page
 
162
%% content output. By setting this to 2 (default), dvipdfmx rounds
 
163
%% real numbers at 2nd fractional (decimal) digit; e.g., "3.14159" is
 
164
%% written as "3.14". Increasing this to more than 2 isn't meaningful
 
165
%% for old Acrobat due to implementation limit of Acrobat.
 
166
%% Length 0.01 in unscaled coordinate system amount to width of 1 pixel
 
167
%% in 7200ppi display. 
 
168
 
 
169
%d  5
 
170
 
 
171
%% Font Map Files
 
172
%%
 
173
%% teTeX 2.x and TeX Live using updmap (pdfTeX format)
 
174
%f  pdftex.map
 
175
 
 
176
%% teTeX 2.x and TeX Live using updmap (DVIPDFM format)
 
177
f dvipdfm.map
 
178
 
 
179
%% teTeX 2.x and TeX Live using updmap (DVIPS format)
 
180
%% MiKTeX 2.2 and 2.3
 
181
%f psfonts.map
 
182
 
 
183
%% Put additonal fontmap files here
 
184
f  cid-x.map
 
185