Unicodeに相当するLaTeX記号「SYMBOLFORNULL」はありますか
Is There Latex Equivalent Symbol Unicodesymbol
解決:
TeXエンジンがUnicode / OpenTypeフォントのサポートとともに使用されている場合、UnicodeコードポイントU + 2400を含むフォントを見つけるだけです。例:
%lualatexまたはxelatex documentclass {article} usepackage {fontspec} begin {document} def test#1 {#1:& fontspec {#1} symbol {'2400} \} begin {tabular} {[メール保護] {} l} test {FreeMono} test {FreeSans} test {FreeSerif} test {Quivira}%http://www.quivira-font.com/ end {tabular} end {資料}
あなたがしている場合pdflatex、あなたは使用することができますasciiパッケージ:
documentclass {article} usepackage {ascii} begin {document}これですか? NUL end {document}
シンボルをUnicodeとして直接入力することもできるため、コードをXeLaTeXまたはLuaLaTeXに移植できます。
documentclass {article} usepackage [utf8] {inputenc} usepackage {ascii} usepackage {newunicodechar} newunicodechar {␀} { NUL} begin {document}これですか? ␀ end {document}XeLaTeXまたはLuaLaTeXとfontspec、文字を含むフォントを見つけて、次のようにします
documentclass {article} usepackage {fontspec} usepackage {newunicodechar} newfontface { ASCIICONTROLS} {FreeMono}%<--- or another font
ewunicodechar{␀}{{ASCIICONTROLS ␀}} egin{document} Is this it? ␀ end{document}
サイズとスタイルの両方で現在のフォントに準拠させたい場合は、独自のフォントを作成できます。
documentclass [a2] {article} usepackage {stackengine、scalerel} newcommand NUL { scalerel * {$ Shortstack [l] {N phantom {N} U phantom {NU} L} $} {X} } begin {document} LARGEこれは NUL normalsizeこれは NUL itshapeこれは NUL upshape ttfamilyこれは NUL end {document}
わかりやすくするために、記号を常に太字にしたい場合は、
newcommand NUL { scalerel * {$ bfseries Shortstack [l] {N phantom {N} U phantom {NU} L} $} {X}}それを改善します: