I want to produce a document with non-serif type. I also want to include Cyrillic characters. These two aims seem to be mutually exclusive. When I comment out \usepackage[T2A]{fontenc}
, the document is beautiful, except that the Cyrillic characters won't print. When I include \usepackage[T2A]{fontenc}
, the document is beautiful, but it is entirely a serif
font.
Below is a MWE. Some of the preamble might seem a little bit goofy, but it's all included in my university's template (see link below). It will actually compile, but only with some encouragement (see http://helpdesk.ufl.edu/wp-content/uploads/2012/12/latex_spring_2011.zip).
From what I've read, I think I need to load a different font family. But I'm not sure if that's right, or even how to do it.
How do I have a document that both includes Cyrillic characters and retains its sans serif
font?
\documentclass{article}
\renewcommand{\rmdefault}{ma1}
\renewcommand{\sfdefault}{phv}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{datetime}
\usepackage{qtree}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tipa}
\usepackage{pgfplots}
\usepackage[authoryear]{natbib}
\usepackage{hypernat}
\usepackage[dvipdfm,hyperfootnotes=false]{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue,anchorcolor=blue,citecolor=blue,filecolor=blue,urlcolor=blue,bookmarksnumbered=true,pdfview=FitB} \usepackage{gb4e}
\noautomath
\let\eachwordone=\sffamily
\let\eachwordtwo=\sffamily
\let\eachwordthree=\sffamily
\begin{document}
Todd is a cat. у меня есть машина. я очень харашо.
\end{document}
LaTeX Font Warning: Font shape
T2A/phv/m/n' undefined usingT2A/cmr/m/n' instead ...
. This means that helvet (phv) has no cyrillic chars. You need to find a suitable sans serif, e.g. you could remove the\renewcommand\sfdefault ...
-line