[Tex/LaTex] utf8 characters

charactersfontsinput-encodingssymbolsunicode

I would like to include the output of the npm list command in a latex verbatim block:

jeroen@jeroen-ubuntu:~/Desktop$ npm install d3
jeroen@jeroen-ubuntu:~/Desktop$ npm list
/home/jeroen/Desktop
└─┬ d3@2.10.3
  ├─┬ jsdom@0.2.14
  │ ├─┬ contextify@0.1.3
  │ │ └── bindings@1.0.0
  │ ├── cssom@0.2.5
  │ ├── htmlparser@1.7.6
  │ └─┬ request@2.12.0
  │   ├─┬ form-data@0.0.3
  │   │ ├── async@0.1.9
  │   │ └─┬ combined-stream@0.0.3
  │   │   └── delayed-stream@0.0.5
  │   └── mime@1.2.7
  └── sizzle@1.1.0

However the funny little tree characters are non ascii. I tried saving the file as UTF8 and adding \usepackage[utf8]{inputenc} to my premable. However, it gives me the errors:

 -Package inputenc Error: Unicode char \u8:â not set up for use with LaTeX

Is there any way I can use these characters?

Best Answer

For example, package pmboxdraw provides the symbols:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pmboxdraw}

\begin{document}
\begin{verbatim}
/home/jeroen/Desktop
└─┬ d3@2.10.3
  ├─┬ jsdom@0.2.14
  │ ├─┬ contextify@0.1.3
  │ │ └── bindings@1.0.0
  │ ├── cssom@0.2.5
  │ ├── htmlparser@1.7.6
  │ └─┬ request@2.12.0
  │   ├─┬ form-data@0.0.3
  │   │ ├── async@0.1.9
  │   │ └─┬ combined-stream@0.0.3
  │   │   └── delayed-stream@0.0.5
  │   └── mime@1.2.7
  └── sizzle@1.1.0
\end{verbatim}
\end{document}

Result