]> matita.cs.unibo.it Git - helm.git/blob - helm/software/share/texmf/unicode/FAQ
Preparing for 0.5.9 release.
[helm.git] / helm / software / share / texmf / unicode / FAQ
1
2 Question: LaTeX complains about missing commands I have not used. Why?
3
4 Answer: The ucs package uses many macros from many packages. You have
5 to include these into your preamble. To find out which package
6 contains the missing macro, you can use e.g.
7     perl discovermacro.pl \themissingmacro
8 or
9     perl discovermacro.pl mydocument.log
10 or use the online version at
11    http://www.unruh.de/DniQ/cgi/discovermacro.cgi
12 or have a look at the human readable file
13    ltxmacrs.txt.
14
15
16
17 Question: The package complains about the missing file uni-global.def
18 (and other files), but they are in the TeX search path.
19
20 Answer: Perhaps you have put the ucs/data directory in a directory
21 where TeX does not search recursively (e.g. your private TeX directory
22 or the current directory). You can change this by putting the unicode
23 package into a recursively searched directory or by putting the files
24 in ucs/data directly into the searched directory at top level.
25
26
27
28 Question: When I try to activate options in \usepackage[...]{ucs},
29 LaTeX complains about an option clash.
30
31 Answer: ucs.sty probably already got loaded via
32 \usepackage[utf8x]{inputenc}. Try loading ucs.sty first or set the
33 options with \SetUnicodeOption.
34
35
36
37 Question: Why is the package named ucs.sty, but the directory unicode?
38 (Or: Why are you mixing the names of two different standards)
39
40 Answer: I started with unicode.sty, but there was an name clash with
41 Sebastian Rahtz' jadetex/passivetex package. And I think, applying to
42 practical solutions like this one, it is OK to use Unicode and UCS as
43 synonyms. (UCS is an ISO standard, which has goals similar to those of
44 Unicode, both standards agreed to stay compatible.)
45
46
47
48 Question: I get an "TeX capacity exceeded" error. What can I do?
49
50 Answer: Try the option "savemem". This will reduce the memory
51 consumption of ucs.sty, especially if you use CJK glyphs, but will
52 also slow down operation significantly. Or increase TeX's capacity, if
53 this is feasible in your situation.
54
55
56
57 Question (Esperanto): LATIN SMALL LETTER H WITH CIRCUMFLEX is ugly. ^h
58 with babel package option esperanto is not. Why?
59
60 Answer: esperanto.ldf has its own macro for ^h, ucs uses the standard
61 \^h. Add
62   \DeclareTextCompositeCommand{\^}{T1}{h}{h\llap{\^{}}}
63   \DeclareTextCompositeCommand{\^}{OT1}{h}{h\llap{\^{}}}
64 to your preamble, then \^h and the corresponding unicode character will
65 yield the same as ^h.
66
67
68
69 Question: When a line of my document displayed in the TeX terminal
70 output or logfile, the non ascii characters are replaced by garbage. Why?
71
72 Answer: The first possibility is, that you don't read the output with
73 a unicode enabled terminal. The second is, that TeX replaces some
74 bytes by ^^XX sequences. I do not know how to tell TeX which
75 characters are to be escaped that way (tell me if you do). If no other
76 mean helps, you can use latexout.pl which converts such output to
77 UTF-8.