I need to insert character "" in lstlisting and compile it with pdflatex. Other unsupported characters like "ě" I am handling via literate option in \lstset{}. Is there any way how to insert it? Thanks.

1 Answer 1


One possibility is to approximate it using math mode. That character looks a lot like $^{\mathsf{L}}$, so it's possible to just use that in the literate option:


        {└}{{\(^{\mathsf L}\)}}1

Jsou nadáni rozumem a svědomím a mají spolu jednat v duchu bratrství.

Here is the character: └.

Here's what the output looks like:

enter image description here

  • 1
    With \usepackage{pmboxdraw} you can say {└}{{\textSFii}}1 in the literal list.
    – egreg
    Nov 15, 2015 at 16:54
  • @egreg: Package pmboxdraw has more useful characters. That's what I am looking for. Thanks! Nov 15, 2015 at 19:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .