
ConTeXt에서 다음과 같이 생성된 MetaPost 그림이 있습니다.
\starttext
\startMPpage
draw textext("Foo") shifted (2cm,2cm) ;
draw textext("Bar") shifted (5cm,5cm) ;
% just to show my figure is supposed to span over all paper size:
draw unitsquare xyscaled (21cm,29.7cm) ; % A4 paper size
\stopMPpage
\stoptext
"Foo"와 "Bar"에 다른 글꼴을 설정하고 싶습니다.
글꼴을 변경하는 방법을 설명하는 여러 위키 페이지/튜토리얼을 보았습니다.~ 사이두 개의 숫자가 있지만 전환하는 방법을 찾지 못했습니다.한 그림 안에.
답변1
내가 달리면
\starttext
\startMPpage
draw textext(btex \it Foo etex) shifted (2cm,2cm) ;
draw textext(btex \bf Bar etex) shifted (5cm,5cm) ;
% just to show my figure is supposed to span over all paper size:
draw unitsquare xyscaled (21cm,29.7cm) ; % A4 paper size
\stopMPpage
\stoptext
에온라인 ConTeXt 엔진, 나는 얻다