2

I am trying to write a tex file in Kile with font \textt.

This font looks like following typing in a book Number fields-Marcus.

But when after \begin{document} I wrote \tt or \texttt, the text was exceeding line in the pdf file; in other words, it was showing some warning.

How can I settle the \texttt font in Kile?

Sebastiano
  • 54,118
p Groups
  • 411

1 Answers1

4
\documentclass[english]{article}
\usepackage{fontspec}
\setmonofont[ 
  Scale=MatchLowercase,
  FakeStretch=0.85, 
]{DejaVu Sans Mono}
\usepackage{babel}

\usepackage[math]{blindtext}%% only demo

\renewcommand\familydefault{\ttdefault}
\AtBeginDocument{%  for justified typewriter
  \fontdimen3\font=3pt  
  \fontdimen4\font=1pt 
}
\begin{document}

\blinddocument

\end{document}

enter image description here