打开Launchpad,在终端位置搜索“字体册”,然后定义系统有的字体,如 \newfontfamily{\FS}{STFangsong}

下面是已经用XelaTeX写好的模版,定义了不同的中文字体:

% XeLaTeX can use any Mac OS X font. See the setromanfont command below.
% Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source.

% The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding.

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass[12pt]{article}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}

% Will Robertson's fontspec.sty can be used to simplify font choices.
% To experiment, open /Applications/Font Book to examine the fonts provided on Mac OS X,
% and change "Hoefler Text" to any of these choices.

\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{Hoefler Text}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}
\setmonofont[Scale=MatchLowercase]{Andale Mono}

\newfontfamily{\A}{Geeza Pro}
 \newfontfamily{\H}[Scale=0.9]{Lucida Grande}
 \newfontfamily{\J}[Scale=0.85]{Osaka}
 \newfontfamily{\FS}{STFangsong}
 \newfontfamily{\S}{STSong}
 \newfontfamily{\K}{STKaiti}
 \newfontfamily{\XK}{STXingkai-SC-Light}
 \newfontfamily{\WB}{Weibei-SC-Bold}

\title{\WB  中文字体-魏碑}
\author{\XK 作者-行楷}
%\date{}                                           % Activate to display a given date or no date

\begin{document}
\maketitle

% For many users, the previous commands will be enough.
% If you want to directly input Unicode, add an Input Menu or Keyboard to the menu bar 
% using the International Panel in System Preferences.
% Unicode must be typeset using a font containing the appropriate characters.
% Remove the comment signs below for examples.

Here are some multilingual Unicode fonts: 
 \\this is Chinese text:{\FS 仿宋},{\S 宋体 },{\K 楷体},
 \\this is Arabic text: {\A السلام عليكم},
 \\this is Hebrew: {\H שלום}, 
\\ here's some Japanese: {\J 今日は}.

\end{document}

输出:

Mac 系统中文输入-xelatex模版相关推荐

  1. apple mac 系统键盘输入乱码

    https://jingyan.baidu.com/article/5d368d1ec9c7c83f60c05790.html fn加scroll 或 Fn 加 insert 键 https://zh ...

  2. mac系统自带中文输入法提示条不见了怎样找回

    mac系统默认自带拼音输入法,有时候使用拼音输入法进行打字,手不小心滑到一堆组合键,输入的词组提示条就不见了.导致每次切换输入的时候只能靠猜,非常不便.有什么办法可以找回中文输入法提示条?方法当然有的 ...

  3. mac系统下excel打开csv中文乱码

    原因 csv文件通常是utf-8进行编码的,mac系统使用的也是utf-8编码,按理来说mac系统下打开csv文件轻而易举,即便是中文也不应出现乱码. 的确,用numbers和textFile打开cs ...

  4. mysql workbench中文设置 mac系统,win系统,linux系统

    mac系统: 1:访达偏好设置 2:高级设置 1.显示所有文件扩展名 2.按名称排序时的窗口中 3:显示 显示路径栏(将会在文件管理夹中下方显示文件路径,清楚文件在那个路径下面) 显示状态栏(显示简单 ...

  5. tp5 mysql定时任务_tp5+mysql实现消息队列,并在mac系统下定时执行-Go语言中文社区...

    Demo简介 订单系统和配货系统之间的信息传递,当订单系统压力比较大时或者出现故障时不影响到配货系统,所以就用了消息队列和定时系统. Demo准备 1.创建一张数据表重点内容 status:0未处理, ...

  6. Mac系统自带中文输入法英文标点

    { 新欢:MBP 16', 职业:码农, 需求:中文输入法状态下输入半角标点符号 } 这个需求相信我们这些底层的经常实现业务逻辑的卑微还是经常要用到的,而且就是不想多按两次CapsLock 之前用Wi ...

  7. linux man 中文 mac,技术|MAC 系统中显示中文MAN手册

    最近在做中文MAN手册的翻译,发现MAC系统中的MAN命令不能像多数Linux发行版那样很好的显示中文MAN手册. 根据查找的资料,找到了解决方法: 1.首先要更新你的系统中的 groff 包,MAC ...

  8. mac的python换字体_matplotlib在MAC系统下中文字体显示问题

    最近想把部分python数据分析的代码从win系统迁移到MAC上,有部分图片上涉及中文显示,迁移到MAC上warning: UserWarning: findfont: Font family [u' ...

  9. Mac系统中字体位置及matplotlib中文字体显示问题解决

    Mac系统里面字体存储位置有两个: xinaodeiMac:/ xinao$ cd /Library/Fonts xinaodeiMac:Fonts xinao$ pwd /Library/Fonts ...

最新文章

  1. 聊聊reactive streams的schedulers
  2. “OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized“ error
  3. 小余学调度:电气主接线的形式、特点、倒闸操作
  4. 如何处理 Hybris Accelerator css style 显示不正确的问题
  5. 嵌入式linux图形系统设计,轻量级嵌入式Linux图形系统设计与实现
  6. 做嵌入式的必须学Android吗
  7. 大学计算机一级word,大学计算机基础一级考试复习资料
  8. 如何在JavaScript中使用when()有条件地更改值
  9. 深入.NET平台和C#编程笔记 第七章 深入理解多态
  10. html模拟在线股票走势,用HTML5实现全套股票行情图
  11. 通俗易懂的生产环境Web应用架构介绍
  12. P4568 飞行路线 分层图最短路
  13. 机器学习_深度学习毕设题目汇总——运动活动动作
  14. npm -i 与npm install -s与-d的区别
  15. 主板开启网络唤醒_电脑网络唤醒如何关闭?华硕路由网络唤醒?#TIL#网络唤醒(WOL)除了设置主板,还需要操作系...
  16. python 视频播放 拖动_python + opencv鼠标拖动视频区域裁剪
  17. Android Studio 4.1没有GsonFormat插件
  18. 英语不好,Oracle OCP或MySQL OCP考试也能拿80分的高分
  19. js 触发 select onchange事件
  20. Vmware ESXi 部署飞塔虚拟机防火墙

热门文章

  1. CSS3如何横向居中+纵向居中 in grid container
  2. python爬虫从企查查获取企业信息-手工绕开企查查的登录验证
  3. Python的前奏:excel常用功能简介,数据透视表,切片器
  4. Terminator zsh
  5. 保健用品行业智慧供应链管理系统:高度整合产业链资源,精细化企业供应商管理
  6. 水产行业智能供应链管理平台解决方案:支撑企业供应链数字化,提升企业管理效益
  7. labview 控件变透明
  8. 【云和恩墨大讲堂】高凯 | Oracle 12c 新特性-多租户的维护管理
  9. android横屏竖屏设置
  10. UGUI源码解析——ContentSizeFitter