| 1 |
Question: |
| 2 |
|
| 3 |
LaTeX complains about missing commands I have not used. Why? |
| 4 |
|
| 5 |
Answer: |
| 6 |
|
| 7 |
The ucs package uses many macros from many packages. You have to |
| 8 |
include these into your preamble. To find out which package contains |
| 9 |
the missing macro, you can use e.g. |
| 10 |
|
| 11 |
perl discovermacro.pl \themissingmacro |
| 12 |
|
| 13 |
or |
| 14 |
|
| 15 |
perl discovermacro.pl mydocument.log |
| 16 |
|
| 17 |
or have a look at the human readable file ltxmacrs.txt. |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
Question: |
| 22 |
|
| 23 |
The package complains about the missing file uni-global.def (and |
| 24 |
other files), but they are in the TeX search path. |
| 25 |
|
| 26 |
Answer: |
| 27 |
|
| 28 |
Perhaps you have put the ucs/data directory in a directory where TeX |
| 29 |
does not search recursively (e.g. your private TeX directory or the |
| 30 |
current directory). You can change this by putting the ucs package |
| 31 |
into a recursively searched directory or by putting the files in |
| 32 |
ucs/data directly into the searched directory at top level. |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
Question: |
| 37 |
|
| 38 |
When I try to activate options in \usepackage[...]{ucs}, LaTeX |
| 39 |
complains about an option clash. |
| 40 |
|
| 41 |
Answer: |
| 42 |
|
| 43 |
ucs.sty probably already got loaded via |
| 44 |
\usepackage[utf8x]{inputenc}. Try loading ucs.sty first or set the |
| 45 |
options with \SetUnicodeOption. |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
Question: |
| 50 |
|
| 51 |
Is the ucs package the same as the unicode package? |
| 52 |
|
| 53 |
Answer: |
| 54 |
|
| 55 |
Dominique Unruh, the original author of the ucs package, started |
| 56 |
with unicode.sty, but there was a name clash with Sebastian Rahtz' |
| 57 |
jadetex/passivetex package. So he later used the name ucs.sty |
| 58 |
instead of unicode.sty. The package was subsequently called "ucs" in |
| 59 |
TeXLive and installed into the directory tex/latex/ucs. However, it |
| 60 |
was still called "unicode" in MiKTeX and on CTAN. In April 2012, it |
| 61 |
was decided that the name "unicode" should not be used anymore to |
| 62 |
avoid confusion. So it is now the ucs package. |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
Question: |
| 67 |
|
| 68 |
I get an "TeX capacity exceeded" error. What can I do? |
| 69 |
|
| 70 |
Answer: |
| 71 |
|
| 72 |
Try the option "savemem". This will reduce the memory consumption of |
| 73 |
ucs.sty, especially if you use CJK glyphs, but will also slow down |
| 74 |
operation significantly. Or increase TeX's capacity, if this is |
| 75 |
feasible in your situation. |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
Question (Esperanto): |
| 80 |
|
| 81 |
LATIN SMALL LETTER H WITH CIRCUMFLEX is ugly. ^h with babel package |
| 82 |
option esperanto is not. Why? |
| 83 |
|
| 84 |
Answer: |
| 85 |
|
| 86 |
esperanto.ldf has its own macro for ^h, ucs uses the standard \^h. |
| 87 |
Add \DeclareTextCompositeCommand{\^}{T1}{h}{h\llap{\^{}}} |
| 88 |
\DeclareTextCompositeCommand{\^}{OT1}{h}{h\llap{\^{}}} to your |
| 89 |
preamble, then \^h and the corresponding unicode character will |
| 90 |
yield the same as ^h. |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
Question: |
| 95 |
|
| 96 |
When a line of my document displayed in the TeX terminal output or |
| 97 |
logfile, the non ascii characters are replaced by garbage. Why? |
| 98 |
|
| 99 |
Answer: |
| 100 |
|
| 101 |
The first possibility is, that you don't read the output with a |
| 102 |
unicode enabled terminal. The second is, that TeX replaces some |
| 103 |
bytes by ^^XX sequences. I do not know how to tell TeX which |
| 104 |
characters are to be escaped that way (tell me if you do). If no |
| 105 |
other mean helps, you can use latexout.pl which converts such output |
| 106 |
to UTF-8. |