[XeTeX] beginners trouble

=?GB2312?Q?Pavel_Stra=A8=BE=A8=A2k?= stranak at ufal.ms.mff.cuni.cz
Fri Nov 11 21:13:15 CET 2005


Hello,
I don't see any problem with fontspec. The sample below works fine for 
me (with any font that includes cyrilic).
Calling "\usepackage{ngerman}" would not work and I doubt it can. It 
seems to expect the tex way of handling fonts.
Does it do something more than the babel option below?

Regards, Pavel

> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
> \documentclass[a4paper]{scrreprt}
> \usepackage[ngerman]{babel}
> \usepackage{fontspec}
> \begin{document}
> \fontspec{Doulos SIL}
> Hallo aus Moskau
>
> §±§â§Ú§Ó§Ö§ä §Ú§Ù §®§à§ã§Ü§Ó§í
> \end{document}



On 11.11.2005, at 20:33, Martin Henning wrote:

> Hi Pavel,
>
> On Nov 11, 2005, at 10:03 PM, Pavel Stra¨¾¨¢k wrote:
>
>> As another beginner I would say, instead of latin1, type everything 
>> in utf8. Just type the real German and cyrilic letters, not TeX 
>> sequences, and don't define "inputenc" or "fontenc". Everything 
>> should work then
>
> Of course the file is uft8, i wouldn't need xetex if it wasn't, right? 
> :)
> The problem rather seem to be the right fontspec commands. I found 
> some really ugly solution in the archiv of macosx-tex mailing list, 
> but it doesn't make use of the fontspec package and only imports 
> Lucida Font, which is awful for my taste. I would like to have style 
> like default LaTeX font for both languages. Will read some mor einto 
> the fontspec-package documentation, but it's all pretty cryptic or a 
> beginner...
>
> The working solution i have at the moment looks like that:
>
> === begin test.tex 
> =====================================================
>
> %&program=xelatex
> %&encoding=UTF-8 Unicode
>
> \documentclass[a4paper]{scrreprt}
> \usepackage{ngerman}
>
> \DeclareFontFamily{U}{lucida}{}
> \DeclareFontShape{U}{lucida}{m}{n}
>    {<-> "Lucida\space Grande:mapping=tex-text"}{}
> \DeclareFontShape{U}{lucida}{b}{n}
>    {<-> "Lucida\space Grande\space Bold:mapping=tex-text"}{}
> \DeclareFontShape{U}{lucida}{bx}{n}
>    {<-> ssub * lucida/b/n}{}
> \renewcommand{\sfdefault}{lucida}
> \renewcommand{\familydefault}{\sfdefault}
> \renewcommand{\encodingdefault}{U}
>
> \begin{document}
>
> Hallo aus Moskau
>
> §±§â§Ú§Ó§Ö§ä §Ú§Ù §®§à§ã§Ü§Ó§í
>
> \end{document}
>
> === end test.tex =====================================================
>
> So long,
>
> Martin
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list