
PDF에 원하는 일반 유니코드 문자를 Latex에 포함시킬 수 있는 방법은 전혀 없는 것 같습니다.이 질문너무 복잡해요.
와 같은 거꾸로 된 유니코드 텍스트를 포함하는 간단한 방법이 있습니까 ˙ʎɐpoʇ ʎddɐɥ ɯɐ I
?
편집하다XeLatex로 컴파일하면 해당 특정 예제에서는 제대로 작동하는 것 같지만 나중에 문서에서 문제가 발생합니다.
! Package inputenc Error: Unicode char \u8:ñosd not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.173 ...d on reading \emph{Cien años de soledad}
and ...
ñ
이전에는 어떻게 문제 없이 거기에 넣을 수 있었는지 모르겠습니다 ...
편집하다CJKutf8
소개된 범인 패키지가 밝혀졌습니다.inputenc
답변1
LuaLaTeX 또는 XeLaTeX를 사용하여 컴파일(예: lualatex file
터미널에서)하면 유니코드 문자를 직접 입력하고 PDF로 컴파일할 수 있습니다. 패키지 를 사용하여 텍스트를 회전할 수도 있습니다 rotating
. 환경 을 사용하면 turn
원하는 각도로 텍스트를 회전할 수 있습니다( 참조 texdoc rotating
).
소스는 UTF-8로 인코딩되어야 하고, LuaLaTeX 또는 XeLaTeX로 컴파일해야 하며, fontspec
또는 적절한 패키지를 사용하여 필요한 유니코드 문자가 포함된 글꼴을 선택해야 합니다.
% compile with LuaLaTeX or XeLaTeX
\documentclass{article}
\usepackage{libertine}
\usepackage{rotating}
\newcommand{\unicodetext}{Greek μετανοεῖτε, accents \emph{esdrújulos}, pictograms ☹}
\begin{document}
This is UTF-8 encoded text with Unicode characters input directly:
\unicodetext
\begin{turn}{180}
\unicodetext
\end{turn}
\bigskip
This is text input upside-down:
˙ʎɐpoʇ ʎddɐɥ ɯɐ I ?
\end{document}
답변2
xelatex 또는 luatex와 같은 유니코드 기반 tex를 사용하면 자연스럽게 작동합니다.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Arial}
\begin{document}
˙ʎɐpoʇ ʎddɐɥ ɯɐ I ?
\end{document}