Latex Local Change font type __latex

Source: Internet
Author: User

Information obtained from the Stackexchange

Translated as follows

You can use FONTSPEC this macro package
to define a new form such as: \newfamily\cmd[font Features]{font name Here is the PostScript name}, wait until the call to use the \cmd{text} can, Can also be shaped like {\cmd text}
An example
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\unicodefont{ Lucida Grande}
% redefine Lucida Grande font name is the
PostScript name corresponding to Unicodefont%\newcjkfontfamily\unicodefont{Chinese font.
\usepackage{mathpazo}
\usepackage[t1]{fontenc}
\begin{document}
A legacy \tex\ font. {\unicodefont A Unicode font.}
% here call Unicodefont to implement
\end{document}


above all is achieved in English, if want to implement in Chinese
only need to change to \newcjkfontfamily\unicodefont{ The PostScript name corresponding to the Chinese font can be}

If you want to achieve the above mentioned environmental methods, the following

\newenvironment{cmd}{\fontfamily{lucida Grande}\selectfont}
\begin{cmd}
Hello World!!!
\end{cmd}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.