3 ms·
Just tested with some chinese characters, showed up as blank in the output pdf file. No support for languages other than english is not good.
by btw0 16y ago
Just tested with some chinese characters, showed up as blank in the output pdf file. No support for languages other than english is not good.
- w1ntermute 16y agoLaTeX doesn't support Unicode. You need XeLaTeX for that: http://i.imgur.com/Yx9x4.png http://i.imgur.com/Yx9x4.png (code is at http://paste.pocoo.org/show/295774/ http://paste.pocoo.org/show/295774/)
- _delirium 16y agoIt's hackish, but you can do Unicode in LaTeX with the inputenc and ucs packages. If you do: \usepackage[utf8x]{inputenc} \usepackage{ucs} then the inputenc macro package does a first pass on the document, handing off all non-ASCII characters to ucs to replace them with LaTeX commands to generate the appropriate characters, if supported. So, ö gets replaced by \"{o}, א gets replaced with \hebalef, etc. Doesn't work for everything, but handles a good portion of common languages.
- w1ntermute 16y agoHuh, it worked for ö, but א gave me: ! Undefined control sequence. \u-default-1488 #1->\hebalef And the Japanese example above gave me: Package ucs Error: Unknown Unicode character 12371 = U+3053 Either way, there's not much of a point in using LaTeX when XeLaTeX is available, save for intercompatibility. So until sites like this one start moving to XeTeX/XeLaTeX, we'll still often be stuck without (true) Unicode.
- _delirium 16y agoAh yeah, for things other than the built-in special characters (like umlauts), you also need all the relevant language-specific packages that actually implement the macro, a bit of additional fun. ;-) In the Hebrew case, you need the ivritex package for \hebalef to be defined. But yeah, XeLaTeX makes that all much simpler. The LaTeX solution is mostly good if you're already using LaTeX for some reason, but need to include non-ASCII text from a limited range of languages (e.g. you're writing a Hebrew document, or an English document with a Greek literature quotation).
- jpallen 16y agoI agree, ScribTeX needs support for XeTeX and other LaTeX compilers. As the creator of the site, I guess I'm in a unique position to make this happen! It's been on my todo list for a while now and isn't without its difficulties, but I'll use this conversation as renewed motivation to get it done.
- ludwigvan 16y agoI just use: \usepackage[utf8]{inputenc} It seems utf8x is more complete, but not officially supported. I haven't needeced the ucs package. (Maybe needed for extended characters, Chinese?) http://stackoverflow.com/questions/1797841/icelandic-utf8-and-utf8x-in-latex http://stackoverflow.com/questions/1797841/icelandic-utf8-an... By the way, here is a document that can be compiled both with LaTeX and XeLaTeX, with Unicode: http://ustunozgur.com/compiling-documents-via-both-latex-and-xelate-26 http://ustunozgur.com/compiling-documents-via-both-latex-and...
- vlisivka 16y agoI am able to compile document with text in Ukrainian: \documentclass[12pt,ukrainian]{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[ukrainian]{babel} \title{Вітаю, світе!} \begin{document} \maketitle Вітаю, світе! Як ся маєшся? \end{document}