In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the concrete realization method of Opensuse Chinese setting", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "the specific implementation of Opensuse Chinese settings" bar!
Opensuse Chinese settings of the specific implementation of the first to install the relevant software packages, basically when installing the software selected texlive-cjk-latex-extra other packages are also selected to install. Let's talk about the process of setting up.
Specific implementation of Opensuse Chinese settings * * step: copy simsun.ttc, simhei.ttf and other fonts to the / usr/share/fonts/truetype directory, mainly to enable subsequent SuSEconfig operations to find files smoothly
The second step of the specific implementation of Opensuse Chinese settings: edit / etc/ttf2pk/ttfonts.map, add relevant content.
Add the following after "% simplified Chinese:":
% below are the Song GB coding settings
Song-gb@UGB@ simsun.ttc
Song-s-gb@UGB@ simsun.ttc Slant=0.167
Song-r-gb@UGB@ simsun.ttc Rotate=Yes
Song-rs-gb@UGB@ simsun.ttc Rotate=Yes Slant=0.167
% below are the Song GBK coding settings
Song-gb@UGB@ simsun.ttc
Song-s-gb@UGB@ simsun.ttc Slant=0.167
Song-r-gb@UGB@ simsun.ttc Rotate=Yes
Song-rs-gb@UGB@ simsun.ttc Rotate=Yes Slant=0.167
* OpenSuSE Factory: the CJK in OpenSuSE 11.2 Milestone 2 has been adjusted. To use GBK encoding, you need to add it as follows:
Song-gbk@UGBK@ simsun.ttc
Song-s-gbk@UGBK@ simsun.ttc Slant=0.167
Song-r-gbk@UGBK@ simsun.ttc Rotate=Yes
Song-rs-gbk@UGBK@ simsun.ttc Rotate=Yes Slant=0.167
% below are the Song Unicode coding settings
Song-uni@Unicode@ simsun.ttc
Song-s-uni@Unicode@ simsun.ttc Slant=0.167
Song-r-uni@Unicode@ simsun.ttc Rotate=Yes
Song-rs-uni@Unicode@ simsun.ttc Rotate=Yes Slant=0.167
Other fonts are similar to add, in order to make it easy to distinguish between tags, the names before @ Unicode@, @ UGBK@ and @ GB@ are described accordingly, simple song, songsl and songr are also possible, but the related names of the following tfm files have to be changed.
The third step of the specific implementation of Opensuse Chinese settings: the addition of fd files, the main operation directory is / usr/share/texmf/tex/latex/CJK, and add the corresponding fd files under the GBK, UTF8 directory below.
Under the GBK directory, add c19song.fd. For more information, please see other fd files, as follows:
\ def\ fileversion {4.7.0}
\ def\ filedate {2006-10-17}
\ ProvidesFile {c19song.fd} [\ filedate\ space\ fileversion]
% character set: GBK
% font encoding: CJK (extended)
\ DeclareFontFamily {C19} {song} {\ hyphenchar\ font\ m@ne}
\ DeclareFontShape {C19} {song} {m} {n} {CJK * song-gbk} {}
\ DeclareFontShape {C19} {song} {m} {sl} {CJK * song-s-gbk} {}
\ DeclareFontShape {C19} {song} {m} {it} {CJKssub * song/m/sl} {}
\ DeclareFontShape {C19} {song} {bx} {n} {CJKb * song-gbk} {\ CJKbold}
DeclareFontShape {C19} {song} {bx} {sl} {CJKb * song-s-gbk} {\ CJKbold}
DeclareFontShape {C19} {song} {bx} {it} {CJKssub * song/bx/sl} {\ CJKbold}
\ endinput
You can also add c19songr.fd files, which are roughly as follows:
\ def\ fileversion {4.5.2}
\ def\ filedate {2007-05-15}
\ ProvidesFile {c19songr.fd} [\ filedate\ space\ fileversion]% simplified Chinese font song created by Founder.
\ DeclareFontShape {C19} {songr} {m} {n} {CJK * song-r-gbk} {}
\ DeclareFontShape {C19} {songr} {m} {sl} {CJK * song-rs-gbk} {}
\ DeclareFontShape {C19} {songr} {m} {it} {CJKssub * songr/m/sl} {}
\ DeclareFontShape {C19} {songr} {bx} {n} {CJKb * song-r-gbk} {\ CJKbold}
DeclareFontShape {C19} {songr} {bx} {sl} {CJKb * song-rs-gbk} {\ CJKbold}
DeclareFontShape {C19} {songr} {bx} {it} {CJKssub * songr/bx/sl} {\ CJKbold}
\ endinput
Add c70song.fd and c70songr.fd to the UTF8 directory, the content is similar to the above, just change the c19 to c70 and gbk to uni. You can refer to other fd files for details.
* * "# mktexlsr" refresh.
Opensuse Chinese settings of the specific implementation of the fourth step: SuSEconfig operation, add tfm font files and some links. At this point, SuSE is designed to be convenient to execute commands:
# SuSEconfig-module cjk-latex
In this way, SuSEconfig's cjk-latex module can automatically create Song tfm font files according to the settings in / etc/ttf2pk/ttfonts.map, provided, of course, that the simsun.ttc file can be found in the / usr/share/fonts/truetype directory.
The fifth step of the specific implementation of Opensuse Chinese settings: fix the dvipdfmx, so that you can generate copiable Chinese pdf documents.
Add the / var/lib/texmf/fonts/map/dvipdfm/cid-x.map file as follows:
(the cid-x.map file in OpenSuSE Factory: OpenSuSE 11.2 Milestone 2 should be placed under / usr/share/texmf/dvipdfm/)
Song-gbk@UGBK@ unicode: 0:simsun.ttc
Song-s-gbk@UGBK@ unicode: 0:simsun.ttc-s. 167
Song-uni@Unicode@ unicode: 0:simsun.ttc
Song-s-uni@Unicode@ unicode: 0:simsun.ttc-s. 167
Song-r-gbk@UGBK@ Identity-V: 0:simsun.ttc
At this point, I believe you have a deeper understanding of "the specific implementation of Opensuse Chinese settings", you might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
@ echo offset / a _ Debug=0::==:: Get Administrator Rightsset _
© 2024 shulou.com SLNews company. All rights reserved.