I have a txt file that I want to import it into LaTeX. How can I import the txt file without changing its format? In particular, the txt doc has a lot of symbols (it is the output of other programs), so LaTeX must ignore those symbols..is there any way to do this?

psd: My current solution is to convert txt to pdf, and then to import the Pdf into the LaTeX.

  • 1
    Welcome to TeX.SX! What do you mean with txt file? Is it a .doc file or a .txt file?
    – azetina
    Dec 30, 2013 at 17:20
  • Have you heard of XeLaTeX? It's a unicode-based variant of LaTeX and with the unicode-math package you can input most things directly as Unicode. It could be of helo for you ;)
    – yo'
    Dec 30, 2013 at 17:21
  • cool, I will check XeLaTex, I am currently using pdfLaTex... I meant a .txt
    – user43384
    Dec 30, 2013 at 17:23
  • Take in mind that LaTeX usually works with ASCII code and if you use symbols that are not included, then you must use the packages inputenx (instead inputenc) for LaTeX editor can read your symbols. And also the package fontenc for produce the document with the right symbols according to your codification. Or as @tohecz suggested, use XeLaTeX. In any case be careful to ensure you editor recognize well your native codification for avoid problems.
    – Aradnix
    Dec 31, 2013 at 2:01

1 Answer 1


No problem with a modern engine like XeLaTeX or LuaLaTeX and a font containing the glyphs.


ä %00e4
ú %00fa
ẞ %1e9e
∋ %220b
ʤ %02a4
∏ %220f
ϗ %03d7
א %05d0
ᾧ %1fa7
⓴ %24f4
☙ %2619
Some normal text, let's input the Symbols



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .