http://www.tug.org/texlive/acquire-iso.html人到暮年 写了:支持阿,i_NIX 写了:是时候写个Texlive2009的安装、使用中文的文章了。
最好贴个2009的下载地址
图解Texlive2008的安装和XeTeX的简单中文排版
- Skinhead
- 帖子: 119
- 注册时间: 2008-09-19 14:54
- 来自: 哈尔滨
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
sudo apt-get remove windows...................I do it with Ubuntu!
-
- 帖子: 645
- 注册时间: 2009-08-01 9:50
- 来自: 泰安人在青岛
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
十分感谢啊Skinhead 写了:http://www.tug.org/texlive/acquire-iso.html人到暮年 写了:支持阿,i_NIX 写了:是时候写个Texlive2009的安装、使用中文的文章了。
最好贴个2009的下载地址
不能养成臭毛病.
-
- 帖子: 45
- 注册时间: 2008-09-08 22:10
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
安装texlive2009后,按照 texlive指南 测试安装是否成功,不幸的是最后一步出现了文中说的那种错误,
但是他提供的解决方案我看不懂:This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
entering extended mode
(/usr/local/texlive/2009/texmf-dist/tex/xetex/xetexfontinfo/opentype-info.texkpathsea: Invalid fontname `Latin Modern Roman/ICU', contains ' '
! Font \testfont="Latin Modern Roman/ICU" at 12.0pt not loadable: Metric (TFM)
file or installed font not found.
l.26 \font\testfont="\myfontname/ICU" at 12pt
?
请问这是什么意思?是把texlive-fontconfig.conf 复制过去并且重命名为09-texlive.conf吗?我这样做了,错误依旧。第二种方案也不明白是什么意思,请教…要在整个系统中使用 TEX Live 的字体 (假定你有足够的权限),请依照下面的步骤来做:
1. 将 texlive-fontconfig.conf 文件复制到 /etc/fonts/conf.d/09-texlive.conf。
2. 运行 fc-cache -fsv。
如果你没有足够的权限执行上述操作,可以用下面的步骤将 TEX Live 字体提供给你自己,作为独
立的 XeTEX 用户:
1. 将 texlive-fontconfig.conf 文件复制到 ~/.fonts.conf,其中 ~ 是你的主目录。
2. 运行 fc-cache -fv。
-
- 帖子: 34
- 注册时间: 2008-03-18 23:57
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
我试了一下,提示找不到字体,字体也安装了,该怎么办,请楼主指教,以下是具体提示:
tex文件的代码是用楼主的:
代码: 全选
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, pinyin, ukenglish, loaded.
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1enc.def)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xunicode/xunicode.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/metalogo/metalogo.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetex-def/xetex.def))))
(/usr/local/texlive/2009/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xecjk/xeCJK.sty)
kpathsea: Running mktextfm MSYH
/usr/local/texlive/2009/texmf/web2c/mktexnam: Could not map source abbreviation M for MSYH.
/usr/local/texlive/2009/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2009/texmf-dist/fonts/map/dvips/skak/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MSYH
This is METAFONT, Version 2.718281 (TeX Live 2009)
kpathsea: Running mktexmf MSYH
! I can't find file `MSYH'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input MSYH
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input MSYH
Transcript written on mfput.log.
grep: MSYH.log: 没有该文件或目录
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MSYH' failed to make MSYH.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \zf@basefont=MSYH at 10.0pt not loadable: Metric (TFM) file or installed
font not found.
<to be read again>
\let
l.6 \setCJKmainfont{MSYH}
% 设置缺省中文字体
?
! Undefined control sequence.
\zf@set@font@type ...onttype \zf@basefont \zf@tfm
\or \zf@atsuitrue \ifnum \...
l.6 \setCJKmainfont{MSYH}
% 设置缺省中文字体
?
代码: 全选
% !Mode:: "TeX:UTF-8"
\documentclass[18pt,a4paper]{article}
\usepackage{xltxtra,fontspec,xunicode}
\usepackage[slantfont,boldfont]{xeCJK} % 允许斜体和粗体
\setCJKmainfont{MSYH} % 设置缺省中文字体
\setCJKmonofont{Inconsolata} % 设置等宽字体
\setmainfont{Inconsolata} % 英文衬线字体
\setmonofont{Inconsolata} % 英文等宽字体
\setsansfont{Inconsolata} % 英文无衬线字体
\begin{document}
\begin{verse}
Stray birds of summer come to my window to sing and fly away. \\
And yellow leaves of autumn, which have no songs, \\
flutter and fall there with a sign.\\
\hfill \emph{Rabindranath Tagore}
\end{verse}
\begin{verse}
夏天的飞鸟,飞到我的窗前唱歌,又飞去了。\\
秋天的黄叶,它们没有什么可唱,只叹息一声,飞落在那里。\\
\hfill \emph{罗宾德拉纳特·泰戈尔}
\end{verse}
\end{document}
-
- 帖子: 20
- 注册时间: 2009-02-17 22:47
- Jarson
- 帖子: 2371
- 注册时间: 2008-07-21 9:44
- 来自: 深圳
- 联系:
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
好事多磨啊,断断续续的看了好几遍,对texlive算是有一定的了解了,继续学习。那个制作dummy包的方法太棒了,这样终于可以在安装texmaker时不再另外安装texlive依赖了
- LinuxWin2
- 帖子: 18
- 注册时间: 2010-04-03 19:03
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
好资料学习中,谢谢
- bighandsky
- 帖子: 51
- 注册时间: 2009-11-02 12:02
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
不错,先收藏了 慢慢学习
- wowoto
- 帖子: 3050
- 注册时间: 2009-04-11 12:17
- 系统: windows7
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
代码: 全选
sudo powerpill -S texlive-bibtexextra texlive-bin texlive-core texlive-fontsextra texlive-music texlive-science texlive-pictures texlive-plainextra texlive-pstricks texlive-publishers texlive-formatsextra texlive-games texlive-latex3 texlive-latexextra texlive-genericextra texlive-htmlxml texlive-humanities texlive-langcjk texlive-langcyrillic texlive-langextra texlive-langgreek latex2rtf latex2html texlive-langcjk-doc texlive-humanities-doc texlive-htmlxml-doc texlive-bibtexextra-doc texlive-dot2texi texlive-core-doc texlive-fontsextra-doc texlive-formatsextra-doc texlive-games-doc texlive-genericextra-doc texlive-langcyrillic-doc texlive-langextra-doc texlive-langgreek-doc texlive-latex3-doc texlive-latexextra-doc texlive-music-doc texlive-pictures-doc texlive-plainextra-doc texmacs texlive-pstricks-doc texlive-publishers-doc texlive-science-doc texmaker
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
- jioyo源
- 帖子: 3476
- 注册时间: 2008-10-08 13:48
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
lemd 写了:我试了一下,提示找不到字体,字体也安装了,该怎么办,请楼主指教,以下是具体提示:tex文件的代码是用楼主的:代码: 全选
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009) entering extended mode (./test.tex LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, pinyin, ukenglish, loaded. (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty (/usr/local/texlive/2009/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty (/usr/local/texlive/2009/texmf-dist/tex/latex/tools/calc.sty) (/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex))) (/usr/local/texlive/2009/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1enc.def) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1lmr.fd)) fontspec.cfg loaded. (/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.cfg)) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/xunicode/xunicode.sty) (/usr/local/texlive/2009/texmf-dist/tex/latex/metalogo/metalogo.sty (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetex-def/xetex.def)))) (/usr/local/texlive/2009/texmf-dist/tex/latex/etex-pkg/etex.sty) (/usr/local/texlive/2009/texmf-dist/tex/latex/base/fixltx2e.sty)) (/usr/local/texlive/2009/texmf-dist/tex/xelatex/xecjk/xeCJK.sty) kpathsea: Running mktextfm MSYH /usr/local/texlive/2009/texmf/web2c/mktexnam: Could not map source abbreviation M for MSYH. /usr/local/texlive/2009/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2009/texmf-dist/fonts/map/dvips/skak/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MSYH This is METAFONT, Version 2.718281 (TeX Live 2009) kpathsea: Running mktexmf MSYH ! I can't find file `MSYH'. <*> \mode:=ljfour; mag:=1; nonstopmode; input MSYH Please type another input file name ! Emergency stop. <*> \mode:=ljfour; mag:=1; nonstopmode; input MSYH Transcript written on mfput.log. grep: MSYH.log: 没有该文件或目录 mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MSYH' failed to make MSYH.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \zf@basefont=MSYH at 10.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \let l.6 \setCJKmainfont{MSYH} % 设置缺省中文字体 ? ! Undefined control sequence. \zf@set@font@type ...onttype \zf@basefont \zf@tfm \or \zf@atsuitrue \ifnum \... l.6 \setCJKmainfont{MSYH} % 设置缺省中文字体 ?
代码: 全选
% !Mode:: "TeX:UTF-8" \documentclass[18pt,a4paper]{article} \usepackage{xltxtra,fontspec,xunicode} \usepackage[slantfont,boldfont]{xeCJK} % 允许斜体和粗体 \setCJKmainfont{MSYH} % 设置缺省中文字体 \setCJKmonofont{Inconsolata} % 设置等宽字体 \setmainfont{Inconsolata} % 英文衬线字体 \setmonofont{Inconsolata} % 英文等宽字体 \setsansfont{Inconsolata} % 英文无衬线字体 \begin{document} \begin{verse} Stray birds of summer come to my window to sing and fly away. \\ And yellow leaves of autumn, which have no songs, \\ flutter and fall there with a sign.\\ \hfill \emph{Rabindranath Tagore} \end{verse} \begin{verse} 夏天的飞鸟,飞到我的窗前唱歌,又飞去了。\\ 秋天的黄叶,它们没有什么可唱,只叹息一声,飞落在那里。\\ \hfill \emph{罗宾德拉纳特·泰戈尔} \end{verse} \end{document}
代码: 全选
fc-list
--------------------------------------
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286
- playeryang
- 帖子: 249
- 注册时间: 2009-04-04 12:55
- 来自: 四川...泸州||江苏...镇江
-
- 帖子: 2
- 注册时间: 2010-06-11 16:18
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
用xelatex生成的积分符号有点怪,是不是字体的问题呢?情况如下:
代码: 全选
\documentclass{article}
\usepackage{fontspec}
\setmainfont{WenQuanYi Zen Hei Mono}
\begin{document}
Cowards die many times before their deaths.\\
懦夫在未死之前,已身历多次死亡的恐怖了。\\
\\
\\
$ \int x = \frac{1}{2}x^2 $
\end{document}
- 独孤
- 帖子: 838
- 注册时间: 2008-02-02 13:06
- 来自: 寶能科技
- 联系:
- Veriton
- 帖子: 155
- 注册时间: 2010-09-29 11:48
Re: 图解Texlive2008的安装和XeTeX的简单中文排版
谢谢runpin大侠!
只是觉得\setmainfont[Numbers=OldStyle,Mapping=tex-text]{Garamond Premier Pro} %
Garamond修饰的数字和中文摆放在一起,看上去不太舒服,数字下沉的太厉害了
只是觉得\setmainfont[Numbers=OldStyle,Mapping=tex-text]{Garamond Premier Pro} %
Garamond修饰的数字和中文摆放在一起,看上去不太舒服,数字下沉的太厉害了
- Shzzn
- 帖子: 16
- 注册时间: 2009-10-12 21:54