I read several posts but still could not figure out how to do the following. I want to use handwriting font, say, Augie font, within proof environment. I installed the package emerald. Then I read someone suggested to define a new environment like
\newenvironment{myfont}{\fontfamily{<familyname>}\selectfont}{\par}
I could not make it work since I could not find its font family in the first place. Could any one provide me with a concrete example, please? Thank you! Here is the codes I have at the moment.
\documentclass[english]{scrartcl}
\usepackage{bm}
\usepackage{graphics}
\usepackage{relsize}
\usepackage{color}
\usepackage{bigints}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.eps, .pdf, .jpeg, .png}
\usepackage{epstopdf}
\usepackage{float}
\usepackage{hyperref}
\usepackage{environ}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsmath}
\setkomafont{disposition}{\normalfont}
\usepackage{graphicx}
\usepackage{emerald}
\usepackage{geometry}
\geometry{
a4paper,
left=20mm,
right=20mm,
top=10mm,
bottom=10mm
}
\usepackage{listings}
\usepackage{color}
\setcounter{tocdepth}{1}
\usepackage{tocloft}
\definecolor{blue}{rgb}{0,0,1}
\definecolor{red}{rgb}{1,0,0}
\newenvironment{myfont}{\fontfamily{<familyname>}\selectfont}{\par}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\newcommand*\ruleline[1]{\par\noindent\raisebox{.8ex}{\makebox[\linewidth]{\hrulefill\hspace{1ex}\raisebox{-.8ex}{#1}\hspace{1ex}\hrulefill}}}
\begin{document}
\section{Question One}
\begin{proof}
\begin{myfont}
Some text in the new font.
\end{myfont}
\end{proof}
\end{document}
Best Answer
You have these options:
Use
\newenvironment{myfont}{\fontfamily{augie}\selectfont}{\par}
Then it boils down to
Or use the switch
\ECFAugie
Full code:
You may use
etoolbox
and its macro\AtBeginEnvironment
to hook in to the proof environment so that some typing is saved. That is a different story.Bonus: Some hand written fonts.
This is for Nasser. As Jim Hefferon and LaRiFaRi said i comments, you can download a free font (from here, and here, say) and use xelatex or lualatex to get what you want.