In a verbatim block like this:
Code: Select all
\begin{verbatim}
/test
├── file-a
├── file-b
└── file-c
\end{verbatim}
I use texlive 11:2023 (based on my package manager)
Do you know why ?
Code: Select all
\begin{verbatim}
/test
├── file-a
├── file-b
└── file-c
\end{verbatim}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
We don't have the log file (*.log) here to see what's going wrong. Are there any warnings? So, please attach it to your next post.postroutine wrote: Sun Mar 30, 2025 1:55 am[…] But after I convert to PDF, the special chars are gone and only the directory and files names are keep. […]
Consider to install (the so-called vanilla) TeX Live 2025. An alternative would be MiKTeX.[…] I use texlive 11:2023 (based on my package manager) […]
Code: Select all
%\listfiles
\documentclass[11pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[%
includeheadfoot,%
margin=1truein,%
truedimen%
]{geometry}
%\usepackage[parfill=0em]{parskip}
\usepackage{dirtree}
\usepackage{mlmodern}
\usepackage[babel]{microtype}
\begin{document}
\dirtree{%
.1 /test.
.2 file-a.
.2 file-b.
.2 file-c.
}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis