2010-08-23 4 views
0

XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010의 일부)를 사용하고 있습니다. 새로운 기능 중 하나는 문자 돌출입니다. 내 문서에서이 기능을 사용하고 싶습니다. 문제는 내가 작동하게 만들 수 없다는 것입니다.xelatex에서 문자 돌출을 활성화하는 적절한 방법은 무엇입니까?

XeTeX sample xetex.tk 위키에서 올바르게 컴파일되고 돌출 된 문자가 표시됩니다. 내가 만든 XeLaTeX 파일에는 돌출이 전혀 표시되지 않지만

아무도 내가 뭘 잘못하고 있는지 말할 수 있습니까?

\documentclass[12pt]{book} 

\usepackage{xltxtra} 
\usepackage{polyglossia} 

\setmainfont[Mapping=tex-text]{Charis SIL} 
\setmainlanguage{english} 

\def\setprotcode#1{ 
    \rpcode#1 U"0021 55 
    \rpcode#1 U"002C 194 
    \rpcode#1 U"002D 233 
    \rpcode#1 U"002E 194 
    \rpcode#1 U"003B 138 
    \rpcode#1 U"003A 138 
    \rpcode#1 U"003F 94 
    \lpcode#1 U"2018 194 
    \rpcode#1 U"2019 194 
    \lpcode#1 U"201C 250 
    \rpcode#1 U"201D 250 
    \rpcode#1 U"2013 150 
    \rpcode#1 U"2014 200 
} 

\XeTeXprotrudechars=2 
\font\f = "Charis SIL:mapping=tex-text" 
\setprotcode{\f} 

\begin{document} 

In a genetic algorithm, a population of strings (called chromosomes or the 
genotype of the genome), which encode candidate solutions (called individuals, 
creatures, or phenotypes) to an optimization problem, evolves toward better solutions. 
Traditionally, solutions are represented in binary as strings of 0s and 1s, but other 
encodings are also possible. The evolution usually starts from a population of randomly 
generated individuals and happens in generations. In each generation, the fitness of 
every individual in the population is evaluated, multiple individuals are 
stochastically selected from the current population (based on their fitness), 
and modified (recombined and possibly randomly mutated) to form a new population. 
The new population is then used in the next iteration of the algorithm. Commonly, 
the algorithm terminates when either a maximum number of generations has been produced, 
or a satisfactory fitness level has been reached for the population. If the algorithm 
has terminated due to a maximum number of generations, a satisfactory solution may or 
may not have been reached. 

\end{document} 
+0

또한 [here] (http://xetex.tk/mediawiki/index.php/Microtype_package_%28preliminary_version%29)의 xelatex 예제도 작동하지 않습니다. Microtype에 따르면 (위의 예와 같이 수동으로 돌출을 추가하더라도) : "글꼴 (미세 유형) 'EU1/CharisSIL (0)/m/it/12'에 대한 돌출 목록을 찾을 수 없습니다." – fjarri

답변

0

음, 이것을 무시하면 바보입니다. at the same wiki page으로 표시된 Charis에 대한 마이크로 타입 스타일 파일을 추가하는 것을 잊어 버렸습니다.