
LaTeX로 가져오려는 txt 파일이 있습니다. 형식을 변경하지 않고 txt 파일을 어떻게 가져올 수 있나요? 특히 txt 문서에는 많은 기호(다른 프로그램의 출력)가 있으므로 LaTeX는 이러한 기호를 무시해야 합니다..이를 수행할 수 있는 방법이 있습니까?
psd: 현재 해결 방법은 txt를 pdf로 변환한 다음 PDF를 LaTeX로 가져오는 것입니다.
답변1
XeLaTeX 또는 LuaLaTeX와 같은 최신 엔진과 글리프가 포함된 글꼴에는 문제가 없습니다.
\begin{filecontents}{\jobname-Symbols.txt}
ä %00e4
ú %00fa
ẞ %1e9e
∋ %220b
ʤ %02a4
∏ %220f
ϗ %03d7
א %05d0
ᾧ %1fa7
⓴ %24f4
☙ %2619
\end{filecontents}
\documentclass{article}
\usepackage{fontspec}
\usepackage{libertine}
\begin{document}
Some normal text, let's input the Symbols
\verb!\input{\jobname-Symbols.txt}!
\input{\jobname-Symbols.txt}
\end{document}