나는 다음과 같은 논리 회로에 대한 새로운 부동 소수점을 정의했습니다 logigram
.
\definefloat [logigram] [logigrams]
ConTeXt 모드(예: 조건부 처리)를 활용하여 내 문서의 프랑스어 및 영어 버전을 동시에 만들고 있습니다.
\starttext
\startmode [english]
\placelogigram [right] {Logigram of a negation} {\input negation.tikz}
The logic circuit of a negation is the opposite logigram.
\stopmode
\starmode [french]
\placelogigram [right] {Logigramme d'une négation} {\input negation.tikz}
Le circuit logique d'une négation est le logigramme ci-contre.
\stopmode
\stoptext
\placelogigram
이제 기본 캡션 이름인 "Logigram"을 영어로 생성하고 "Logigramme"을 프랑스어로 생성 하고 싶습니다 .
나는 또한 negation.tikz.tex
명령 \input
이 \placelogigram
. 파일은 다음과 같습니다 negation.tikz.tex
.
%\usemodule [tikz]
%\usetikzlibrary [circuits.logic.US]
\starttikzpicture [circuit logic US]
\node [not gate, point down, draw] at (0, 0) (notGate) {};
\draw (notGate.input) -- ++(up:0.5) node [above] {$\phi$};
\draw (notGate.output) -- ++(down:0.5);
\stoptikzpicture
도움을 주셔서 미리 감사드립니다.
답변1
french
모드 에서 컴파일하는 동안 사용되는 언어로 프랑스어를 설정합니다 :
\startmode [french]
\language [french]
\setcharacterspacing [frenchpunctuation]
\mainlanguage [french]
\stopmode
그리고 변경:
\definefloat [logigram] [logigrams]
에게:
\definefloat [logigram] [logigrams]
\setuplabeltext [fr] [logigram=Logigramme~]
캡션 이름 문제를 해결합니다.
나는 \startplacelogigram ... \stopplacelogigram
대신 \placelogigram
다음을 사용했습니다 \input
.
\startmode [english]
\startplacelogigram [location=right, title={Logigram of a negation.}]
\input negation.tikz
\stopplacelogigram
The logic circuit of a negation is the opposite logigram.
\stopmode
\startmode [french]
\startplacelogigram [location=right, title={Logigramme d'une négation.}]
\input negation.tikz
\stopplacelogigram
Le circuit logique d'une négation est le logigramme ci-contre.
\stopmode
편집하다. 의견에 표시된 대로 또는 대신 \startplacelogigram ... \stopplacelogigram
사용을 피하려면 .\input filename \relax
\ReadFile {filename}
\input filename