没有找到相应的字体和备用字体字体在Mac XeLaTeX问题,怎么解决

mac上配置_sublime_text_+_mactex_+_skim_百度文库
您的浏览器Javascript被禁用,需开启后体验完整功能,
享专业文档下载特权
&赠共享文档下载特权
&100W篇文档免费专享
&每天抽奖多种福利
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
mac上配置_sublime_text_+_mactex_+_skim
阅读已结束,下载本文需要
定制HR最喜欢的简历
你可能喜欢xetex - MacTeX Error: XeLaTeX: command not found - TeX - LaTeX Stack Exchange
Stack Exchange Network
Stack Exchange network consists of 174 Q&A communities including , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
to customize your list.
This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our , , and our .
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. J it only takes a minute:
Here's how it works:
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Now here is the thing. I upgraded my Mac to the OS X EI Capitan a few days ago. And now MacTeX is not working. When I try to typeset it, the console shows the following error:
xelatex: command not found.
How can I fix it?
this is due to the new permission settings on Mac OS X El Capitàn.
you can find a way to configure everything properly.
In that page (from which I copy), we find that
Cause of the problem:
MacTeX installs a symbolic link /usr/texbin pointing to the TeX binaries. GUI applications use this link to find the binaries. But in El Capitan, the location /usr is reserved for Apple, and even users with root access are not allowed to write to that location.
The solution to this problem is to relocate the link to /Library/TeX/texbin, and reconfigure GUI applications to look in this location. Consequently, MacTeX-2015 and BasicTeX-2015 write two links, /usr/texbin and /Library/TeX/texbin, when installing on systems earlier than El Capitan, and write /Library/TeX/texbin when installing on El Capitan. These installations configure shell applications to look for TeX in both locations.
You, therefore, need only to reconfigure GUI, as instructed .
Reconfiguring TeXLive Utility: Version 1.23 of TEX Live Utility automatically detects the loss of /usr/texbin under El Capitan
and prompts the user to automatically fix the problem. Previous versions need manual fixing:
Open TeXLive Utility Preferences
Click on Choose...
Press Shift + cmd+g
Enter /Library/TeX and click ok
Double click on texbin
Reconfiguring TeXShop: As pointed out in , TeXShop versions from 3.52 onwards (July 2015) automatically redirect themselves if you cannot/want not update, you should:
Open TeXShop Preferences
Go in the Engine tab
Change the Path settings for (pdf)TeX from /usr/texbin to /Library/TeX/texbin
And you should be good to go.
Reconfiguring LaTeXit:
Open LaTeXit Preferences
Go under Typesetting - Behaviour
Change all paths that start with /usr/texbin with /Library/TeX/texbin
Reconfiguring TeXWorks:
Go on the TeXWorks Preference, Typesetting Pane
click on the + button in the Paths for TeX
Click on the popup menu and select your hard drive
Double-Click on Library and then TeX
Click on texbin to select it and Click on the Choose button to add
/Library/TeX/texbin. You can delete the /usr/texbin item by selecting it and
clicking one the - button.
7,69431644
In my case after installing MacTex (on El Capitan) I was able to get a result for xelatex --version in a new terminal window but not in the existing one running jupyter notebook (after canceling the running instance).
Solution: Close the terminal running jupyter open the terminal again test if xelatex --version works now and run your jupyter notebook or whatever command again
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Post as a guest
Post as a guest
Post Your Answer
By clicking &Post Your Answer&, you acknowledge that you have read our updated ,
and , and that your continued use of the website is subject to these policies.
Not the answer you're looking for?
Browse other questions tagged
TeX - LaTeX Stack Exchange works best with JavaScript enabled《配置VSCode编译器》
0、vscode下载地址:
1、下载VisualStudioCode安装:https://code.
1、brew update
2、brew install openssl
3、mkdir -p /usr/local/lib
4、ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
5、ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
9、安装.NET配置文件SDK:https://dotnet.
以下步骤参考执行,详情看官方步骤,有可能更新
10、mkdir hwapp
11、cd heap
12、dotnet new
13、dotnet restore
14、dot net run
配置VSCode插件,com+shift+p,在输入框内输入:theme。选择启用你所下载的插件
我这里下载了C#、Debugger for Unity,核心插件。
关于unity和vsCode连接使用:
1、下载vscode链接:https://github.com/dotBunny/VSCode.git
解压zip文件,将vscode插件导入unity当中如图:
2、配置好后会在Preferences显示VSCode,接着关联VSCode编译器:
3、选择1、2、3项,点击write workspace setting...
4、打开 Open C# Project In Code
5、在vscode应用商店中下载Debugger for Unity,新建脚本,打开,debug输出调试:
6、调试过程中如果出现以下问题:
调试适配器进程已意外终止,那么说明没有安装mono或者mono非最新版本。
可以通过命令输入 mono -V 查询mono版本。
mono安装、非最新版本下载mono最新版本即可。mono下载地址:http://www.mono-project.com/download/
针对安装最新mono无法覆盖旧版本mono的解决方案:
这里我没有使用命令。
1、打开文件夹com+shift+g进入文件:/Library/Frameworks/Mono.framework/Versions/Current/bin/mono(这个进入的就是最新版本的mono,旧版本看到先忽略)
2、拷贝mono、xbuild这两个文件
3、com+shift+g进入文件:/usr/local/bin/mono
4、把拷贝mono、xbuild这两个文件粘贴到此路径即可。最后查询一下自己的mono版本是不是最新的哦。
接着就可以调试了....
使用命令:open ${HOME}/.vscode 可以查看安装的插件路径哦
VSCode常用的快捷方式:
注释:/**/ Shift + Ctrl + A
注释:// Comd + /
格式化代码:Shift + Ctrl + F
格式化需要下载omnisharp.json这个文件,把这个文件放在工程目录下即可(与Assets文件目录同级)
https://pan.baidu.com/s/1c2eN1Iw
mac使用vscode(简单暴力,只说重点)
下载vscode在拓展里面加载一些插件jsx插件ESLint插件React Native ToolsReactjs code snippetsVisual Studio Code Settings S...
VScode常用快捷键
VSCode的快捷键这里收集了vscode下一下常用的快捷键,这个是基于windows下的vscode,在mac下的vscode会有些不同。
Ctrl+Shift+N...
macOS 下 Visual Studio Code(VSCODE)安装配置及应用
Visual Studio Code重新定义了 Code 编辑。在任何操作系统上编辑和调试应用程序内置 Git 支持1000 种以上的扩展免费和开源下载VSCODE官方下载地址:https://cod...
Mac下 VSCode 过滤文件设置
VSCode 过滤文件以 .meta 文件为例打开VsCode界面 【Code】 ---& 【首选项】 ---& 【设置】点击1区域的?图标在2区域添加需要隐藏的文件类型...
Mac+VS Code+Git+Github
lalala,澜子我又回来啦,这一次就说说 Git和Github 吧。Github作为全球最大的同性交友网站,广大女性盆友们难道都不了解一下嘛。
1.在iterm2输入vscode –status,命令行不会有任何反应。
2.在命令行先输入:emacs ~/.zshrc
3. alias vscode=&/Applications...
【DEBUG笔记】VSCode调试python提示“vscode调试适配器已意外终止”
问题描述:使用VSCode编辑python时,启动调试器,报错“vscode调试适配器已意外终止”。尝试改写launch.json,依然报错。解决方法:扩展中python版本与VSCode版本不兼容。...
Unity3D-在mac上使用VSCODE开发
参考:http://blog.csdn.net/pz789as/article/details/由于在Mac上,使用unity自带的Mono并不好用,特别是无法切换输入法,让人很纠结。...
在mac上使用VS Code编写C#应用程序
Visual Studio Core是微软的跨平台的VS开发工具,依赖于dot net core的跨平台功能。
首先需要在mac上安装dot net core 开发包(包含dot net core 运...
VSCode开发C#(调用 Net Core)精简步骤说明
VSCode开发C#( 调用 Net Core)精简步骤说明
阅读下面描述时,需要具备一定的编程经验和排查能力,
一、下载 安装 .NET Core SDK
https://w...
没有更多推荐了,
(window.slotbydup=window.slotbydup || []).push({
id: "5865575",
container: s,
size: "300,250",
display: "inlay-fix"latex - xelatex not finding font on Mac - Stack Overflow
to customize your list.
This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our , , and our .
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
Join Stack Overflow to learn, share knowledge, and build your career.
or sign in with
I'm trying to use the polyglossia package along with xelatex to compile some Arabic text. It seems that xelatex is not recognizing the fonts that I have installed.
\documentclass{article}
\usepackage{geometry}
\geometry{letterpaper}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}
\newfontfamily\arabicfont[Script = Arabic]{Scheherazade}
\begin{document}
\begin{Arabic}
?????? ?????? ??????? ??? ???? ?? ??? ??????? ?? ????? ?????? ?????? ?????? ????
\end{Arabic}
\end{document}
When I try to compile this using xelatex, I get the following error:
kpathsea: Running mktextfm Scheherazade/ICU
/usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation I for ICU.
/usr/local/texlive/2012/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2012/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:= mag:=1; input ICU
This is METAFONT, Version 2.718281 (TeX Live 2012)
kpathsea: Running mktexmf ICU
! I can't find file `ICU'.
&*& \mode:= mag:=1; input ICU
Please type another input file name
! Emergency stop.
&*& \mode:= mag:=1; input ICU
Transcript written on mfput.log.
grep: ICU.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:= mag:=1; input ICU' failed to make ICU.tfm.
kpathsea: Appending font creation commands to missfont.log.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! fontspec error: "font-not-found"
! The font "Scheherazade" cannot be found.
! See the fontspec documentation for further information.
! For immediate help type H &return&.
!...............................................
l.13 ...\arabicfont[Script = Arabic]{Scheherazade}
I'm on a Mac and I've tried to search for answers to this. I've made sure that the Scheherazade font is installed on my computer (it appears in FontBook). I've tried doing
\newfontfamily\arabicfont[Script = Arabic]{Scheherazade-R.ttf}
as well to no avail. Any suggestions? It seems like it's not recognizing the font even though it's installed on my system.
Turns out that I needed to update my MacTex to MacTex2014, which fixes this issue.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Post as a guest
Post as a guest
Post Your Answer
By clicking &Post Your Answer&, you acknowledge that you have read our updated ,
and , and that your continued use of the website is subject to these policies.
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled如何配置 MacTeX 的中文支持_百度知道
如何配置 MacTeX 的中文支持
答题抽奖
首次认真答题后
即可获得3次抽奖机会,100%中奖。
电脑类认证行家
电脑类行家
采纳数:78236
获赞数:79835
泉州兴瑞发公司最佳优秀员工。
安装MacTeX, 中文支持最好用ctex宏包 其实MacTeX就是TeXLive在Mac下的版本
电脑类认证行家
电脑类行家
采纳数:70421
获赞数:52487
电信公司运维员工
目前来说,结合 xeCJK 宏包使用 XeLaTeX 编译,应该是最方便的方式了。XeLaTeX 要求 .tex 文档保存为 UTF-8 编码。所以要做的事情只有两件:配置一个 UTF-8 的编辑环境;用 xeCJK 的语法选择合适的字体。1印象中,TeXshop 的默认编码不是 UTF-8(具体是什么我不记得了),需要调整一下。打开 TeXshop,按下 cmd + , 打开偏好设置。在「源代码」标签下找到编码设置,调整为 UTF-8。2XeTeX 在 Mac OS X 下的行为和 Windows / Linux 下不大一样。Mac 底下,XeTeX 并不使用 fontconfig 库来搜索字体,所以我们没法在终端里通过 fc-list 命令来查看可用的字体列表。不过 Mac 里提供了名为「字体册」的程序,来列出系统中所有可用的字体信息。(其实这样的设计挺讨厌的,TeX Live 自带了许多开源字体,因此没有办法很好地使用。必须用字体名而不是字族名来调用这些字体,实在是不太方便。)打开字体册程序,找到需要的字体信息:这里的 PostScript 名称就是我们需要的信息,我们记下华文宋体的名字:「STSong」。你还可以按需找到其他字体的名字,比如华文中宋、华文楷体、华文黑体等字体的名字。3使用下列代码,配置中文字体。\usepackage{xeCJK}\setCJKmainfont[BoldFont=STZhongsong, ItalicFont=STKaiti]{STSong}\setCJKsansfont[BoldFont=STHeiti]{STXihei}\setCJKmonofont{STFangsong}这里,文档中文主字体是华文宋体,对应的 bfseries 字体是华文中宋,对应的 itshape 字体是华文楷体;文档的「无衬线」中文字体是华文新黑,对应的 bfseries 是华文黑体;文档的「等宽」中文字体是华文仿宋。完整代码的编译效果截图如下:4xeCJK 之解决了中文支持问题,以及一些关于标点的处理,并没有提供和中文版式相关的解决方案。ctex 宏包和文档类封装了 xeCJK,同时提供了中文版式的相关支持。新版的 ctex 宏包和文档类能够自动检测用户使用的操作系统,自动选择合适的字体配置,十分方便。\documentclass[UTF8]{ctexart}\begin{document}中文\end{document}测试截图如下:如果希望 ctex 只提供中文支持的功能不对版式做任何修改,也可以这样使用:\documentclass{article}\usepackage[UTF8, heading = false, scheme = plain]{ctex}\begin{document}中文\end{document}
本回答被网友采纳
为你推荐:
其他类似问题
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 没有找到相应的字体和备用字体 的文章

 

随机推荐