I am very new to LaTex and learning it with TexMaker. I want to make a book. For this book i have 99 txt-files (each a chapter).
I want to import this chapters into my main tex-file with the command \input{}. The problem is, that the txt-files have special characters like #, @ or _ in it. When I am trying to input them, it becomes an error. I don't want to go through all the txt files and add a \ in front of the special characters. Is it possible to disable the function of these characters?
thx for your help
edit:
thank you for your comments. I try to explain it more clearly. My folderstructure is as followed:
../BookProject/myTemplate_A5_Book.tex
../BookProject/Parts/Part_1.txt...Part_99.txt
In the Part_x.txt-Files there are special characters used (i generated them with an AI so i didn't wrote them myself and i don't now all the characters which are used).
My goal is to import the text of the txt-files as paragraphs with linebreaking etc.. But when I use \input{} the first files are working and then by part 11 it end in an error (See image).
i hope this helps for understanding my problem.




\input{#@_}and it worked fine. What is the exact name of your file and which error do you get? – Ulrike Fischer Jan 13 '22 at 08:54#and_and you will have to escape those there is not really any way around this as changing the meaning of#or_breaks a lot of stuff. – daleif Jan 13 '22 at 08:54#that you need to typeset verbatim, if so you can use\verbatiminputfrom theverbatimpackage (or other fancier forms such as listings or minted) or are your files normal text that you want to typeset as paragraphs but thetext contains#and_inline (in which case you can locally make these normal characters) – David Carlisle Jan 13 '22 at 09:32\verbatiminput{Part_1.txt}using the verbatim package (\usepackage{verbatim}) – David Carlisle Jan 13 '22 at 10:50\verbatiminput{Part_1.txt}and it works. But that is not what I want. I want to set them as paragraphs of text with linebreaking. – Simon Flückiger Jan 13 '22 at 10:54