LaTeX - Classifieds - Code Indention

so I'm working on some kind of home doc about git, and I want to insert some console output examples. I am working with TextMate. I have indented LaTeX code like any other normal source code to make it more readable. My question now is why get listings in my indented pdf and how do I prevent this.

Code example:

\begin{lstlisting}
    $ git ls-files
    README
    TU_Logo_SW.pdf
    beleg.pdf
    beleg.tex 
\end{lstlisting} 

My file has one tab in front of \ begin and two in the following lines. When I run pdflatex, the code will be indented with two tabs in pdf. Quickfix - format all lists without indentation in my tex file, but this is pretty ugly; - (

+3
source share
1 answer

lstlisting , : \ begin {lstlisting} [gobble = 4] . ( , .)

+5

Source: https://habr.com/ru/post/1776077/


All Articles