使用 xelatex 并保留其他字体

使用 xelatex 并保留其他字体
\documentclass[a4paper, 12pt, scheme = plain, twoside]{ctexart}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath,enumerate,amsfonts,amssymb}
\usepackage[mathscr]{eucal}
\usepackage{color}
\usepackage[export]{adjustbox} % uses graphicx
\graphicspath{{./figs/}}
\usepackage{setspace}
\usepackage[top=1.68cm,left=1cm,right=1cm,bottom=1.68cm]{geometry}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{multicol}
\setlength\columnsep{18pt}
\setlength{\columnseprule}{0.4pt}
\def\columnseprulecolor{\color{blue}}
%% \columnbreak
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{enumitem}
\setlist[description]{style = nextline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T1]{fontenc}
\usepackage{lxfonts}
%%% \usepackage{fontspec}
%%% \setmainfont{Doulos SIL}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\usepackage{totpages}
\fancyhead{}
\fancyfoot{}
\fancyhead[L]{Vocabulary for iG \& A Level Mathematics}
\fancyhead[R]{Page~\thepage\ of~\pageref{TotPages}}
\fancyfoot[LO]   {{\heiti非淡泊无以明志,非宁静无以致远。}}
\fancyfoot[RE]   {{\heiti书山有路勤为径,学海无涯苦作舟。}}
%%% \fancyfoot[LO]   {{非淡泊无以明志,非宁静无以致远。}}
%%% \fancyfoot[RE]   {{书山有路勤为径,学海无涯苦作舟。}}
\fancyfoot[RO,LE]{{XXXXXXXXX}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{hyperref}
\hypersetup{
    bookmarksopen  = false,
    pdfstartview   = {FitV},         % fits the width of the page to the window
    pdfpagelayout  = TwoPageRight    % UseOutlines, %UseNone-disable bookmark panel
}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pdfsuppressptexinfo = -1 %% noinfo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{titlesec}
\titleformat{\section}{\centering\normalfont\Large\bfseries}{\thesection}{1em}{\titlerule[1.8pt]}[{\titlerule[1.8pt]}]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\title{Vocabulary for iG \& A Level Mathematics}
\date{\today}
\author{}
\onehalfspacing
%% \doublespacing
\pagestyle{fancy}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{multicols}{2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{A -- Alpha}
\begin{description}%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\item[Acceleration /əkˌseləˈreɪʃ(ə)n/]
    The rate of change of velocity over time.
\item[Adjacent /əˈdʒeɪ.sənt/]
    Of a right-angled triangle,
    it's the side between the angle under consideration and the right angle.
%   \begin{center}
%   \includegraphics[scale=1]{example-image}
%   \end{center}
\item[Algebraic fraction]
    A fraction that has an algebraic expression in the numerator and/or denominator.
\item[Allied /'ælaɪd/ angles]
    The pair of angles in a C-- or U--shape formed when a straight line crosses two parallel lines.
    These angles always add up to $180^\circ$.
\item[AND rule (for dependent events)]
    The probability of both $A$ and $B$ happening 
    is equal to the probability of $A$ happening 
    multiplied by the probability of $B$ happening given that $A$ has happened.
\item[AND rule (for independent events)]
    The probability of both $A$ and $B$ happening is 
    equal to the probability of $A$ happening 
    multiplied by the probability of $B$ happening.
%   \begin{center}
%   \includegraphics[scale=1]{and_rule.pdf}
%   \end{center}
\item[Angle bisector /baɪˈsektə/]
    The line that cuts an angle into two equal smaller angles.
\item[Angle of depression/elevation]
    The angle between a horizontal line and 
    the line of sight of an observer 
    at the same level looking down or up, respectively.
%   \begin{center}
%   \includegraphics[scale=0.82]{elevation_depression.pdf}
%   \end{center}
\item[Arc /ˈɑːk/]
    A part of the circumference of a circle.
\item[Arithmetic /əˈrɪθ.mə.tɪk/ (or linear) sequence]
    A sequence where the terms increase or decrease by the same amount each time 
    (the common difference $d$).
    \[
        u_n = a + (n-1)d,
    \]
    where $a$ is the first term and $u_n$ is the $n$\textsuperscript{th} term.
\item[Asymptote /ˈæs.ɪm.təʊt/]
    A straight line to show the values where the graph of a function is undefined.
\item[Average]
    A way of representing a set of data with a central or typical value of the set.
    The three common averages used are the mode, median and mean.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{multicols}
\end{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

主要目的是为代码中的语音启用 unicode。因此,有人搜索了一下,发现我必须使用 xelatex 来编译它。

但是,有没有办法保留字体(而不是语音)使用

\usepackage[T1]{fontenc}
\usepackage{lxfonts}

以及\heiti我喜欢的页脚?他们似乎无法与 xelatex 配合使用?

简而言之,我希望输出与下图完全一致,并且 IPA 显示正确。这可能吗? 在此处输入图片描述

目前,如果我想显示 IPA,文档的其余部分看起来就很简单...... 在此处输入图片描述

相关内容