I'm using the minted package, and as code font I'm using Inconsolata imported with fontspec. I have breaklines as true, but the default breaksymbol is not shown, only a square is shown.

How can I set breaksymbol so it uses a font that has \hookrightarrow?

Thats my document:

\documentclass[a4paper, 11pt]{report}
\usepackage[utf8]{inputenc} %Para saber el encoding del archivo


\usepackage[cache=false]{minted} %Para insertar código




{\fontfamily{Asana-Math.otf}\selectfont $\hookrightarrow$}

  • Please provide a complete but minimal document which we can copy-paste-compile to reproduce the problem. \hookrightarrow will depend on the fonts you are using for maths and not those you are using for text. – cfr Aug 31 '16 at 23:49
  • I see the fontenc, inconsolata and urial packages and then unicode-math and related commands including using Arial as a math font which are totally unrelated. Can you really use Arial as a math font? I see nothing in the example that uses Minted! – Herb Schulz Sep 1 '16 at 2:37
  • Well, the problem was not related with minted. I discovered that the breakline symbol that minted user is \hookrightarrow, so minted wasn't necessary – David Davó Sep 1 '16 at 15:45

I'm using that and it works.


When I need Arial formulas, I used \mathsf

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.