luatex:first steps
Hallo, I have installed the newest windows standalone context package. My first try was with this snippet, found as 'test-2' at luatex.org: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \lua {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \luatex {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \rescan{\lua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% but \luatex is unknown. After commenting line 2 I get a TeX prompt (*) and after some \end's I got the result. Should this work in this way? And with this %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % coding: utf-8 \mainlanguage[deo] \enableregime[utf] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \starttext Bla {\bf blub} \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I get the error ---------------------------------- error >> define font: font with name texgyrepagella-regular is not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.7 \setupbodyfont[palatino,rm,12pt] ---------------------------------- Palatino is installed! What should I do to use Palatino not Pagella, which obviously is not installed? Wolfgang
2007/9/12, Wolfgang Werners-Lucchini
Hallo,
I have installed the newest windows standalone context package.
My first try was with this snippet, found as 'test-2' at luatex.org:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \lua {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \luatex {tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \rescan{\lua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
but \luatex is unknown. After commenting line 2 I get a TeX prompt (*) and after some \end's I got the result.
Should this work in this way?
replace \luatex with \cxtlua
And with this
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % coding: utf-8
\mainlanguage[deo] \enableregime[utf]
\usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt]
\starttext Bla {\bf blub} \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I get the error
---------------------------------- error >> define font: font with name texgyrepagella-regular is not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.7 \setupbodyfont[palatino,rm,12pt] ----------------------------------
Palatino is installed! What should I do to use Palatino not Pagella, which obviously is not installed?
Wolfgang
You need the TeXgyre fonts for MkIV because palatino is mapped to pagella. Wolfgang
participants (2)
-
Wolfgang Schuster
-
Wolfgang Werners-Lucchini