我需要能够在论文中使用不同的语言及其字体。不需要多语言标题和所有这些东西。我的文本中只有一些示例,如下所示:
\documentclass[a4paper,12pt,numbers=endperiod]{scrartcl}
\usepackage[left=2cm,right=3cm,top=2cm,bottom=2cm,footskip=1cm]{geometry}
\usepackage{scrlayer-scrpage}
\usepackage{fontspec}
\setmainfont[SmallCapsFont={* Caps}]{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono}
\newfontfamily\russianfont{Liberation Serif}
\newfontfamily\ipafont{Doulos SIL}
\newfontfamily\churchslavonicfont{PonomarUnicode}
\newfontfamily\greekfont{Liberation Serif}
\usepackage{etoolbox}
\usepackage{xeCJK}
\usepackage[oldxetex]{zxjatype}
\usepackage{xltxtra}
\newfontfamily\japanesefont{zxjafont}
\usepackage{polyglossia}
\usepackage{churchslavonic}
\setdefaultlanguage{german}
\setotherlanguages{russian,romanian,churchslavonic,greek,japanese}
\usepackage{yfonts}
\newcommand{\ipa}[1]{{\ipafont {#1}}}
\newcommand{\aks}[1]{{\churchslavonicfont {#1}}}
\newcommand{\rus}[1]{{\russianfont {#1}}}
\newcommand{\gre}[1]{{\greekfont {#1}}}
\newcommand{\jpn}[1]{{\japanesefont {#1}}}
\pagenumbering{arabic}
\pagestyle{scrheadings}
\cfoot{}
\ofoot{\pagemark\hspace{-.5cm}}
\begin{document}
As you can see just some text with some fancy characters that I'd like to enter like this: /\ipa{waʊ̯}/ or \aks{ши} or \jpn{かわいい}.
\end{document}
除了日语之外,其他一切都正常。从我目前发现的情况来看,zxjatype 包似乎很有前途,但即使我已将 .sty 文件复制到正确的目录,它也无法运行。但当然,我很乐意使用任何能用的东西!