[转帖]直接从apt源安装texlive2007
-
- 帖子: 466
- 注册时间: 2006-10-19 9:17
[转帖]直接从apt源安装texlive2007
unstable中tetex 换成texlive2007了,折腾了半天,以下是我的经验,于弟兄们共享之
1 安装所需的包
(1) 基本包
# apt-get install telive-base-bin
(2) latex支持
# apt-get install telive-latex-base telive-latex-recommended
(3) 中文支持(注: latex-cjkaddons要加上ustc的uo支持)
# apt-get install latex-cjk-chinese latex-cjkaddons dvipdfmx
2 生成中文字体,我这里用的是simsun
(1) 到网上下一个gbkfonts的deb包或者可执行文件(何勃亮的)
(2) 生成字体
这里有两个方案选择:
方案一:只对本地用户操作,不改系统文件,步骤如下:
$ mkdir texmf
$ cd texmf
$ gbkfonts /yourfontpath/simsun.ttf song
$ cd
$cp /etc/texmf .texmf-config
$ updmap
$ echo "Map cjk.map" >> .texmf-config/updmap.d/10telive-latex -base.cfg
$ update-updmap
$ updmap
这时pdflatex和dvipdfmx已经可以支持中文文本和书签,至于tex文档应该怎么写,网络上都有,这里就不给出了,需要提醒的是用pdflatex编译时需要gbk2uni进行转换书签,否则乱码,同时加入ccmap可以使中文文本可以搜索、拷贝
方案二: 更改系统文件。具体步骤不再详述,主要是如下工作
1) 在/usr/share/texmf (或texmf-texlive) 生成字体
2) mktexslr
2)在/etc/texmf/updmap.d更改10telive-latex -base.cfg
3)update-updmap
4) 普通用户: updmap
待解决的问题:dvipdfmx生成可复制的文本,现在会乱码,没有搞定,如果哪位弟兄知道敬请补充,非常感谢
http://www.linuxsir.org/bbs/showthread.php?p=1686720
1 安装所需的包
(1) 基本包
# apt-get install telive-base-bin
(2) latex支持
# apt-get install telive-latex-base telive-latex-recommended
(3) 中文支持(注: latex-cjkaddons要加上ustc的uo支持)
# apt-get install latex-cjk-chinese latex-cjkaddons dvipdfmx
2 生成中文字体,我这里用的是simsun
(1) 到网上下一个gbkfonts的deb包或者可执行文件(何勃亮的)
(2) 生成字体
这里有两个方案选择:
方案一:只对本地用户操作,不改系统文件,步骤如下:
$ mkdir texmf
$ cd texmf
$ gbkfonts /yourfontpath/simsun.ttf song
$ cd
$cp /etc/texmf .texmf-config
$ updmap
$ echo "Map cjk.map" >> .texmf-config/updmap.d/10telive-latex -base.cfg
$ update-updmap
$ updmap
这时pdflatex和dvipdfmx已经可以支持中文文本和书签,至于tex文档应该怎么写,网络上都有,这里就不给出了,需要提醒的是用pdflatex编译时需要gbk2uni进行转换书签,否则乱码,同时加入ccmap可以使中文文本可以搜索、拷贝
方案二: 更改系统文件。具体步骤不再详述,主要是如下工作
1) 在/usr/share/texmf (或texmf-texlive) 生成字体
2) mktexslr
2)在/etc/texmf/updmap.d更改10telive-latex -base.cfg
3)update-updmap
4) 普通用户: updmap
待解决的问题:dvipdfmx生成可复制的文本,现在会乱码,没有搞定,如果哪位弟兄知道敬请补充,非常感谢
http://www.linuxsir.org/bbs/showthread.php?p=1686720
-
- 帖子: 466
- 注册时间: 2006-10-19 9:17
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
關於復製粘貼,參考
about49815.html&sid=7b1c98d105bb2d26f8e1cafec4cbf9d4
請不要生成gbk 字體,否則來回換terminal編碼麻煩,可以做一套utf8字體然後讓gbk 編碼用的
about49815.html&sid=7b1c98d105bb2d26f8e1cafec4cbf9d4
請不要生成gbk 字體,否則來回換terminal編碼麻煩,可以做一套utf8字體然後讓gbk 編碼用的
-
- 帖子: 466
- 注册时间: 2006-10-19 9:17
TeXLive 2007 CJK Chinese HowTO
Yue Wang
Attention:
In TeXLive 2007, there is no need to use CJK package anymore, XeTeX is good enough to handle Chinese and Open/TrueType fonts. and the key problem of XeTeX, i.e. the font switching problem, is tend to be fixed in the next release of XeTeX. But many old documents are written using macropackages/styles based on CJK or CCT, some of them are still widely used today, so, in some cases it is essential to install these fonts.
Install TeXLive
_________________
First, install TeXLive.
wget ftp://ftp.tsinghua.edu.cn/mirror/CTAN/s ... 12.iso.zip
unzip texlive2007-live-20070212.iso.zip
mount -o loop texlive2007-live-20070212.iso /mnt
cd /mnt
sudo ./install-tl
press I to install.
Setup System Path
_________________
Set the path. Take debian GNU/Linux as example, modify your /etc/environment like this and make a reboot:
PATH="/usr/local/texlive/2007/bin/i386-linux:/usr/local/matlab/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
Copy The Files Needed
_________________
make a dir called font, copy the font here.
mkdir ~/font
cd ~/font
cp /media/sda/windows/Fonts/simhei.ttf .
copy all the files needed.
sudo apt-get install fontforge
cp /usr/local/texlive/2007/texmf-dist/source/latex/CJK/utils/subfonts/* ~/font/
cp /usr/local/texlive/2007/texmf/fonts/sfd/*.sfd ~/font/
ExpandStroke The Font(Not Essential)
_________________________
before you use fontforge to make the fonts, you can also expandstroke it provided that yo have a very fast computer. Although it is not a good idea to expandstroke the Heiti, we still take it as an exaple. create the stroke.pe like below and run "time fontforge -script stroke.pe simhei.ttf simheinew.ttf" it takes me 46 minutes to perform the task.
Open($1)
SelectAll()
foreach
CorrectDirection()
ExpandStroke(10, 0, 0, 0, 1)
Simplify()
endloop
Generate($2)
Generate Font
______________
Then, make the font. It is a good way to test how fast your computer is it takes me 3 minutes to generate the fonts[Core Duo 2]. If you strok the font, don't forget to overwrite simhei.ttf.
time fontforge -script subfonts.pe simhei.ttf hei Unicode.sfd
create a file name makemap like this:
for i in *.tfm
do
cat >> hei.map << EOF
${i%.tfm} ${i%.tfm} < ${i%.tfm}.pfb
EOF
done
Make map file:
chmod +x makemap
./makemap
create a file name c70hei.fd for CJK package:
% This is c70hei.fd for CJK package.
% created by Edward G.J. Lee
% modify by Yue Wang
\ProvidesFile{c70hei.fd}
\DeclareFontFamily{C70}{hei}{\hyphenchar \font\m@ne}
\DeclareFontShape{C70}{hei}{m}{n}{<-> CJK * hei}{}
\DeclareFontShape{C70}{hei}{bx}{n}{<-> CJKb * hei}{\CJKbold}
\endinput
Copy Fonts into TEXMF
_________________
create the local directory to save the font
cd ~/.texlive2007
cd texmf-var
mkdir -p fonts/map/dvips/CJK
mkdir -p fonts/tfm/CJK/hei
mkdir -p fonts/type1/CJK/hei
mkdir -p tex/latex/CJK/UTF8
cp ~/font/hei.map fonts/map/dvips/CJK/
cp ~/font/*.tfm fonts/tfm/CJK/hei
cp ~/font/*.pfb fonts/type1/CJK/hei
cp ~/font/c70hei.fd tex/latex/CJK/UTF8
Update The System and Test
_____________________
Just run:
texhash
updmap --enable Map hei.map
create a test file to test your work.
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{hei}
你好!
\end{CJK}
\end{document}
latex test.tex
xdvi test.dvi
dvipdfm test.dvi
xpdf test.pdf
pdflatex test.pdf
......
Virtual GBK Font(Not Essential)
________________________
The main goal of virtual fonts is to make one font for various encoding systems. We still take simhei as an example to tell the reader how to create one UTF8 font for UTF8 and GBK encodings.
first, Let's suggest that you have finished the task of creating a utf8 heiti font for LaTeX and you are still in the ~/font directory with all the fonts and scripts undeleted. you also copy all the utf8 fonts into your ~/.texlive2007 directory and they are working with no problem.
run these commands. if you do not delete something , *.tfm and uni2sfd.pl are still in your ~/font dir.
perl uni2sfd.pl hei UGBK.sfd gbkhei gbk
mkdir ~/.texlive2007/texmf-var/fonts/tfm/CJK/gbkhei
mv gbkhei*.tfm ~/.texlive2007/texmf-var/fonts/tfm/CJK/gbkhei
mkdir ~/.texlive2007/texmf-var/fonts/vf
mv gbkhei*.vf ~/.texlive2007/texmf-var/fonts/vf
mkdir ~/.texlive2007/texmf-var/tex/latex/CJK/GBK
create a file named c19hei.fd just like the c70hei.fd in
~/.texlive2007/texmf-var/tex/latex/CJK/GBK
% This is c19hei.fd for CJK package.
% created by Edward G.J. Lee
\ProvidesFile{c19hei.fd}
\DeclareFontFamily{C19}{hei}{\hyphenchar \font\m@ne}
\DeclareFontShape{C19}{hei}{m}{n}{<-> CJK * gbkhei}{}
\DeclareFontShape{C19}{hei}{bx}{n}{<-> CJKb * gbkhei}{\CJKbold}
\endinput
make a test file in *GBK* encoding like this:
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{GBK}{hei}
你好
\end{CJK}
\end{document}
if you are lucky, you will get the good outputs without problem (no texhash or updmap needed)
Use ttf directedly in pdftex/dvipdfmx[not recommended]
----------------------------------------------------
Well, our pdflatex/dvipdfmx can also use ttf directedly.
create ~/.texlive2007/texmf-var/fonts/map/dvipdfm/cid-x.map
gbkhei@UGBK@ UniGB-UCS2-H :0:simhei.ttf
hei@Unicode@ unicode :0:simhei.ttf
move the font simhei.ttf to the truetype directory:
mkdir ~/.texlive2007/texmf-var/fonts/truetype
cp simhei.tff ~/.texlive2007/texmf-var/fonts/truetype
create the map generating file makemap-enc
for i in hei*.tfm
do
cat >> hei-enc.map << EOF
${i%.tfm} < ${i%.tfm}.enc < simhei.ttf
EOF
done
generate the map:
chmod +x makemap-enc
./makemap-enc
copy all the file needed
cp hei-enc.map ~/.texlive2007/texmf-var/fonts/map/pdftex/CJK/
mkdir -p ~/.texlive2007/texmf-var/fonts/enc/CJK/hei
cp hei*.enc ~/.texlive2007/texmf-var/fonts/enc/CJK/hei
copy the adobe font:
sudo mkdir ~/.texlive2007/texmf-var/fonts/cmap
sudo apt-get install cmap-adobe-*
cp -a /usr/share/fonts/cmap/* ~/.texlive2007/texmf-var/fonts/cmap
test that it works:
The UTF8 encoding test file:
\pdfoutput=1
\pdfmapfile{=hei-enc.map}
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{hei}
你好
\end{CJK}
\end{document}
The GBK encoding test file(save it in gbk first!):
\pdfoutput=1
\pdfmapfile{=hei-enc.map}
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{GBK}{hei}
你好
\end{CJK}
\end{document}
Install Ctex macro package
-----------------------------------------
There are two versions of ctex macro package, one for GBK and one for UTF-8.
First, be sure to install all the chinese fonts using simsun.ttf(If you use
simsun.ttc, break it) simhei.ttf, simli.ttf, simkai.ttf, simfang.ttf,
simyou.ttf just follow the example of simhei before.
then, copy all the macropackages in Liangzi's CTeXLive-2005
sudo mount -o loop CTeXLive2005 /mnt
cp -a /mnt/2005/texmf-local/tex/latex/ctex ~/.texlive2007/texmf-var/tex/latex
cp -a /mnt/2005/texmf-local/tex/latex/ctexutf8
~/.texlive2007/texmf-var/tex/latex
cp -a /mnt/2005/texmf-local/tex/latex/ccmap ~/.texlive2007/texmf-var/tex/latex
modify all the fd files there.
for those fd file in ctexutf8 directory, use song,fang ... instead of unisong,
unifang, unisongsl,unifangsl....., for those fd files in ctex directory, use
gbksong instead of gbksongsl, gbkfang instead of gbkfangsl....
And dont use \CJKbold , use hei instead.
an example file should like:
in utf8 directory
\ProvidesFile{c70rm.fd}
[2006/06/09 v0.8 ctex
font definition file]
\DeclareFontFamily{C70}{rm}{\hyphenchar \font\m@ne}
\DeclareFontShape{C70}{rm}{m}{n}{<-> CJK * song}{}
\DeclareFontShape{C70}{rm}{bx}{n}{<-> CJK * hei}{}
\DeclareFontShape{C70}{rm}{m}{sl}{<-> CJK * song}{}
in ctex directory
\ProvidesFile{c19sf.fd}
[2006/06/09 v0.8 ctex
font definition file]
\DeclareFontFamily{C19}{sf}{\hyphenchar \font\m@ne}
\DeclareFontShape{C19}{sf}{m}{n}{<-> CJK * gbkyou}{}
\DeclareFontShape{C19}{sf}{bx}{n}{<-> CJKb * gbkhei}{}
\DeclareFontShape{C19}{sf}{m}{sl}{<-> CJK * gbkyou}{}
\DeclareFontShape{C19}{sf}{bx}{sl}{<-> CJKb * gbkhei}{}
\DeclareFontShape{C19}{sf}{m}{it}{<-> CJK * gbkyou}{}
\DeclareFontShape{C19}{sf}{bx}{it}{<-> CJKb * gbkhei}{}
\endinput
Last,run texhash and test the files.
Utf8 test file
\documentclass{ctexreputf8}
\begin{document}
你好
\end{document}
GBK test file
\documentclass{ctexrep}
\begin{document}
你好
\end{document}
Yue Wang
Attention:
In TeXLive 2007, there is no need to use CJK package anymore, XeTeX is good enough to handle Chinese and Open/TrueType fonts. and the key problem of XeTeX, i.e. the font switching problem, is tend to be fixed in the next release of XeTeX. But many old documents are written using macropackages/styles based on CJK or CCT, some of them are still widely used today, so, in some cases it is essential to install these fonts.
Install TeXLive
_________________
First, install TeXLive.
wget ftp://ftp.tsinghua.edu.cn/mirror/CTAN/s ... 12.iso.zip
unzip texlive2007-live-20070212.iso.zip
mount -o loop texlive2007-live-20070212.iso /mnt
cd /mnt
sudo ./install-tl
press I to install.
Setup System Path
_________________
Set the path. Take debian GNU/Linux as example, modify your /etc/environment like this and make a reboot:
PATH="/usr/local/texlive/2007/bin/i386-linux:/usr/local/matlab/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
Copy The Files Needed
_________________
make a dir called font, copy the font here.
mkdir ~/font
cd ~/font
cp /media/sda/windows/Fonts/simhei.ttf .
copy all the files needed.
sudo apt-get install fontforge
cp /usr/local/texlive/2007/texmf-dist/source/latex/CJK/utils/subfonts/* ~/font/
cp /usr/local/texlive/2007/texmf/fonts/sfd/*.sfd ~/font/
ExpandStroke The Font(Not Essential)
_________________________
before you use fontforge to make the fonts, you can also expandstroke it provided that yo have a very fast computer. Although it is not a good idea to expandstroke the Heiti, we still take it as an exaple. create the stroke.pe like below and run "time fontforge -script stroke.pe simhei.ttf simheinew.ttf" it takes me 46 minutes to perform the task.
Open($1)
SelectAll()
foreach
CorrectDirection()
ExpandStroke(10, 0, 0, 0, 1)
Simplify()
endloop
Generate($2)
Generate Font
______________
Then, make the font. It is a good way to test how fast your computer is it takes me 3 minutes to generate the fonts[Core Duo 2]. If you strok the font, don't forget to overwrite simhei.ttf.
time fontforge -script subfonts.pe simhei.ttf hei Unicode.sfd
create a file name makemap like this:
for i in *.tfm
do
cat >> hei.map << EOF
${i%.tfm} ${i%.tfm} < ${i%.tfm}.pfb
EOF
done
Make map file:
chmod +x makemap
./makemap
create a file name c70hei.fd for CJK package:
% This is c70hei.fd for CJK package.
% created by Edward G.J. Lee
% modify by Yue Wang
\ProvidesFile{c70hei.fd}
\DeclareFontFamily{C70}{hei}{\hyphenchar \font\m@ne}
\DeclareFontShape{C70}{hei}{m}{n}{<-> CJK * hei}{}
\DeclareFontShape{C70}{hei}{bx}{n}{<-> CJKb * hei}{\CJKbold}
\endinput
Copy Fonts into TEXMF
_________________
create the local directory to save the font
cd ~/.texlive2007
cd texmf-var
mkdir -p fonts/map/dvips/CJK
mkdir -p fonts/tfm/CJK/hei
mkdir -p fonts/type1/CJK/hei
mkdir -p tex/latex/CJK/UTF8
cp ~/font/hei.map fonts/map/dvips/CJK/
cp ~/font/*.tfm fonts/tfm/CJK/hei
cp ~/font/*.pfb fonts/type1/CJK/hei
cp ~/font/c70hei.fd tex/latex/CJK/UTF8
Update The System and Test
_____________________
Just run:
texhash
updmap --enable Map hei.map
create a test file to test your work.
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{hei}
你好!
\end{CJK}
\end{document}
latex test.tex
xdvi test.dvi
dvipdfm test.dvi
xpdf test.pdf
pdflatex test.pdf
......
Virtual GBK Font(Not Essential)
________________________
The main goal of virtual fonts is to make one font for various encoding systems. We still take simhei as an example to tell the reader how to create one UTF8 font for UTF8 and GBK encodings.
first, Let's suggest that you have finished the task of creating a utf8 heiti font for LaTeX and you are still in the ~/font directory with all the fonts and scripts undeleted. you also copy all the utf8 fonts into your ~/.texlive2007 directory and they are working with no problem.
run these commands. if you do not delete something , *.tfm and uni2sfd.pl are still in your ~/font dir.
perl uni2sfd.pl hei UGBK.sfd gbkhei gbk
mkdir ~/.texlive2007/texmf-var/fonts/tfm/CJK/gbkhei
mv gbkhei*.tfm ~/.texlive2007/texmf-var/fonts/tfm/CJK/gbkhei
mkdir ~/.texlive2007/texmf-var/fonts/vf
mv gbkhei*.vf ~/.texlive2007/texmf-var/fonts/vf
mkdir ~/.texlive2007/texmf-var/tex/latex/CJK/GBK
create a file named c19hei.fd just like the c70hei.fd in
~/.texlive2007/texmf-var/tex/latex/CJK/GBK
% This is c19hei.fd for CJK package.
% created by Edward G.J. Lee
\ProvidesFile{c19hei.fd}
\DeclareFontFamily{C19}{hei}{\hyphenchar \font\m@ne}
\DeclareFontShape{C19}{hei}{m}{n}{<-> CJK * gbkhei}{}
\DeclareFontShape{C19}{hei}{bx}{n}{<-> CJKb * gbkhei}{\CJKbold}
\endinput
make a test file in *GBK* encoding like this:
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{GBK}{hei}
你好
\end{CJK}
\end{document}
if you are lucky, you will get the good outputs without problem (no texhash or updmap needed)
Use ttf directedly in pdftex/dvipdfmx[not recommended]
----------------------------------------------------
Well, our pdflatex/dvipdfmx can also use ttf directedly.
create ~/.texlive2007/texmf-var/fonts/map/dvipdfm/cid-x.map
gbkhei@UGBK@ UniGB-UCS2-H :0:simhei.ttf
hei@Unicode@ unicode :0:simhei.ttf
move the font simhei.ttf to the truetype directory:
mkdir ~/.texlive2007/texmf-var/fonts/truetype
cp simhei.tff ~/.texlive2007/texmf-var/fonts/truetype
create the map generating file makemap-enc
for i in hei*.tfm
do
cat >> hei-enc.map << EOF
${i%.tfm} < ${i%.tfm}.enc < simhei.ttf
EOF
done
generate the map:
chmod +x makemap-enc
./makemap-enc
copy all the file needed
cp hei-enc.map ~/.texlive2007/texmf-var/fonts/map/pdftex/CJK/
mkdir -p ~/.texlive2007/texmf-var/fonts/enc/CJK/hei
cp hei*.enc ~/.texlive2007/texmf-var/fonts/enc/CJK/hei
copy the adobe font:
sudo mkdir ~/.texlive2007/texmf-var/fonts/cmap
sudo apt-get install cmap-adobe-*
cp -a /usr/share/fonts/cmap/* ~/.texlive2007/texmf-var/fonts/cmap
test that it works:
The UTF8 encoding test file:
\pdfoutput=1
\pdfmapfile{=hei-enc.map}
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{hei}
你好
\end{CJK}
\end{document}
The GBK encoding test file(save it in gbk first!):
\pdfoutput=1
\pdfmapfile{=hei-enc.map}
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{GBK}{hei}
你好
\end{CJK}
\end{document}
Install Ctex macro package
-----------------------------------------
There are two versions of ctex macro package, one for GBK and one for UTF-8.
First, be sure to install all the chinese fonts using simsun.ttf(If you use
simsun.ttc, break it) simhei.ttf, simli.ttf, simkai.ttf, simfang.ttf,
simyou.ttf just follow the example of simhei before.
then, copy all the macropackages in Liangzi's CTeXLive-2005
sudo mount -o loop CTeXLive2005 /mnt
cp -a /mnt/2005/texmf-local/tex/latex/ctex ~/.texlive2007/texmf-var/tex/latex
cp -a /mnt/2005/texmf-local/tex/latex/ctexutf8
~/.texlive2007/texmf-var/tex/latex
cp -a /mnt/2005/texmf-local/tex/latex/ccmap ~/.texlive2007/texmf-var/tex/latex
modify all the fd files there.
for those fd file in ctexutf8 directory, use song,fang ... instead of unisong,
unifang, unisongsl,unifangsl....., for those fd files in ctex directory, use
gbksong instead of gbksongsl, gbkfang instead of gbkfangsl....
And dont use \CJKbold , use hei instead.
an example file should like:
in utf8 directory
\ProvidesFile{c70rm.fd}
[2006/06/09 v0.8 ctex
font definition file]
\DeclareFontFamily{C70}{rm}{\hyphenchar \font\m@ne}
\DeclareFontShape{C70}{rm}{m}{n}{<-> CJK * song}{}
\DeclareFontShape{C70}{rm}{bx}{n}{<-> CJK * hei}{}
\DeclareFontShape{C70}{rm}{m}{sl}{<-> CJK * song}{}
in ctex directory
\ProvidesFile{c19sf.fd}
[2006/06/09 v0.8 ctex
font definition file]
\DeclareFontFamily{C19}{sf}{\hyphenchar \font\m@ne}
\DeclareFontShape{C19}{sf}{m}{n}{<-> CJK * gbkyou}{}
\DeclareFontShape{C19}{sf}{bx}{n}{<-> CJKb * gbkhei}{}
\DeclareFontShape{C19}{sf}{m}{sl}{<-> CJK * gbkyou}{}
\DeclareFontShape{C19}{sf}{bx}{sl}{<-> CJKb * gbkhei}{}
\DeclareFontShape{C19}{sf}{m}{it}{<-> CJK * gbkyou}{}
\DeclareFontShape{C19}{sf}{bx}{it}{<-> CJKb * gbkhei}{}
\endinput
Last,run texhash and test the files.
Utf8 test file
\documentclass{ctexreputf8}
\begin{document}
你好
\end{document}
GBK test file
\documentclass{ctexrep}
\begin{document}
你好
\end{document}
-
- 帖子: 466
- 注册时间: 2006-10-19 9:17
-
- 帖子: 3182
- 注册时间: 2006-03-10 15:10
- 来自: xi'an China
- 联系:
-
- 帖子: 3182
- 注册时间: 2006-03-10 15:10
- 来自: xi'an China
- 联系:
- hualang0929
- 帖子: 1226
- 注册时间: 2006-11-11 10:23
- 来自: Mars
- 联系:
- zhan
- 帖子: 1880
- 注册时间: 2005-08-15 0:04
- 来自: 南7技校
都 texlive2007 了,xetex 才是解决方案阿~
可惜目前的模板少了,有空的话谁弄几套 xetex 的模板就方便了..
可惜目前的模板少了,有空的话谁弄几套 xetex 的模板就方便了..
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
http://zhan.blog.ubuntu.org.cn
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
- Jianying
- 帖子: 70
- 注册时间: 2007-05-06 23:35
- 联系:
Re: [转帖]直接从apt源安装texlive2007
这里的命令原文和转载都漏写x了,telive应该是texlive:
# apt-get install texlive-base-bin
# apt-get install texlive-latex-base telive-latex-recommended
难怪我在源里一开始找不到,后来用apt-cache search tex打字的时候找到一堆,然后apt-cache search texlive才找到上面的packages.
# apt-get install texlive-base-bin
# apt-get install texlive-latex-base telive-latex-recommended
难怪我在源里一开始找不到,后来用apt-cache search tex打字的时候找到一堆,然后apt-cache search texlive才找到上面的packages.
-
- 帖子: 29
- 注册时间: 2005-09-05 16:00