I am trying to print a text in my Latex document, but I get lots of errors and I do not know what to do. The text is:
answer([Capital, Country]):-is_country(Country),borders(Country, greece),capital_of(Capital, Country).
I believe I have to escape some special characters, but I wonder if there is a more appropriate way to do this.
I use Xelatex on a Windows machine.
\verb|your text here|. If you need something more complex have a look at the listings package. – samcarter_is_at_topanswers.xyz Jan 13 '19 at 18:59_, which you can obtain using\_. See Underscores in words (text). – Werner Jan 13 '19 at 19:00listings. See e.g. How to format an inline source code and Syntax Coloring in LaTeX. – Alan Munn Jan 13 '19 at 20:21