I'm having some difficulties in changing fonts for the entire document. By searching similar questions, I could only find solutions regarding specific fonts.
By the way, I'm using MacTeX-2016 and I'm compiling using pdfLaTeX.
More precisely, I would like to know a command such that given two fonts, say font1 and font2, it changes both the fonts used in text and math mode to the respectively chosen fonts.
In my case, I would like to change everything to Vicentino and URW Chancery respectively.
For the text case, there's the naive "solution" which works, for instance, in the case of Sans-Serif. However the analogous command (for the case of Vicentino)
\renewcommand{\familydefault}{\cursiveshape}
fails. More precisely I get the error
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./Untitled.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/texmf-local/tex/latex/vc/vicent.sty) (./Untitled.aux)
./Untitled.tex:5: Missing \endcsname inserted.
<to be read again>
\protect
l.5 \begin{document}
?
when trying to compile
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{vicent}
\renewcommand{\familydefault}{\cursiveshape}
\begin{document}
abc $abc ABC \mathcal{abc ABCD}$
\end{document}
Recall that for the Vicentino font there's no command '\normalfont', but only '\cursiveshape', '\modernscriptshape' and '\twistshape'.
If possible, as I mentioned before, I would like a solution independent of the two fonts being chosen. Also, if possible, I would like a solution independent of the document class or a solution for each document class.
Thanks in advance.
\cursiveshape
I would have guessed it was setting up a font shape (like italic or upright) rather than a font family, but you have defined it to be the default family?. Setting up math requires a lot more than "a font" it typically requires lots of fonts with specific math definitions.