The output I want is like the following photo:

enter image description here

We can see the middle log lines have different font type and indent compared with other plain text.

I have searched a while. The font type seems like courier(texttt{}). But I have no idea about the indent. Anyone has ideas? Thanks!

  • 2
    \begin{verbatim}<newline>1. 2011-01-26 ... starting.<newline>\end{verbatim}? There are other ways, but it seems that people are hesitant to answer since you have provided no code and given only the barest of indications of what you have tried so far. You may find you get better and quicker answers if you edit your question and provide a minimal example (or see here). – jon Oct 19 '15 at 3:50
  • Welcome home... – user11232 Oct 19 '15 at 4:40
  • @jon Thanks for your advice! I have read the article and it's inspiring. Your answer works for me. If I only use {verbatim}, could I also control the text type of the text in {verbatim}? – PunyTitan Oct 19 '15 at 6:45
  • Yes, there are many ways. Perhaps you could look at the CTAN packages related to verbatim text. The package fancyvrb is a popular choice, but not the only one. – jon Oct 19 '15 at 23:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.