Created
December 14, 2012 12:01
-
-
Save zr-tex8r/4284952 to your computer and use it in GitHub Desktop.
残念ながら スヤァTeX です
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
※ 真面目な話 | |
ここに書いてある説明は、TeX のシステムについてある程度の知識が | |
あることを前提とします。申し訳ないですが、初心者の方は、自分で | |
試すのは我慢して下さい。 | |
■ インストール方法 | |
1. suyahtex.ini を $TEXMF/tex/latex/config に配置する。 | |
(この $TEXMF は $TEXMFLOCAL でもよい。) | |
2. $TEXMFMAIN/web2c/texmf.cnf の編集。(バックアップ推奨。) | |
TEXINPUTS = ... | |
の直前に | |
TEXINPUTS.suyahtex = ... | |
の行を挿入する。ここで右辺の値は | |
TEXINPUTS.latex = ... | |
の右辺にあるものと同じにする。 | |
3. $TEXMFMAIN/web2c/fmtutil.cnf の編集。(バックアップ推奨。) | |
最後に以下の行を追記する。 | |
suyahtex pdftex language.dat --enc --etex --translate-file=cp227.tcx suyahtex.ini | |
4. 実行ファイル suyahtex を pdftex へのリンクとして作成する。 | |
W32TeX の場合、実行ファイルを収めたディレクトリ($TEXMFMAIN/../bin) | |
の中で、pdftex.exe のコピー(或いはハードリンク、ソフトリンク)として | |
suyahtex.exe を作成する。 | |
5. fmtutil コマンドを実行する。 | |
fmtutil --byfmt suyahtex | |
6. 以上により、suyahtex で suyahtex フォーマットの pdfTeX が起動する。 | |
(例えば suyahtex sample.tex のように起動する。) | |
■ アンインストール方法 | |
1. 「インストール方法」の 1 ~ 4 で行った操作を元に戻す。 | |
2. どこかの $TEXMF の下のどこかにある suyahtex.fmt を探して削除する。 | |
(W32TeX の場合、$TEXMFMAIN/web2c/pdftex 以下にあった。) | |
■ LICENCE | |
The author places this work under public domain. The author does not | |
exercise any sort of copyright and thus permits everyone to use and/or | |
distribute this work for any purpose. | |
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% suyahtex.ini | |
%------------------- Normal latex.ini settings | |
% We simple assume we're using pdfTeX. | |
\input pdftexconfig | |
\pdfoutput=0 | |
\scrollmode | |
\let\bxiiorgdump=\dump | |
\let\dump=\endinput % suppress \dump | |
\input latex.ltx | |
\let\dump=\bxiiorgdump | |
\catcode`\@=11 | |
%------------------- encTeX definition for 'suyah' | |
% 'suyah' consists of the following characters: | |
% U+0028 LEFT PARENTHESIS | |
% U+0020 SPACE | |
% U+02D8 BREVE | |
% U+03C9 GREEK SMALL LETTER OMEGA | |
% U+02D8 BREVE | |
% U+0020 SPACE | |
% U+0029 RIGHT PARENTHESIS | |
% U+FF7D HALFWIDTH KATAKANA LETTER SU | |
% U+FF94 HALFWIDTH KATAKANA LETTER YA | |
% U+FF67 HALFWIDTH KATAKANA LETTER SMALL A | |
% U+2026 HORIZONTAL ELLIPSIS | |
\begingroup | |
\catcode32=12 | |
\mubyte\relax | |
% 'suyah' encoded in UTF-8 | |
^^28^^20^^cb^^98^^cf^^89^^cb^^98% | |
^^20^^29^^ef^^bd^^bd^^ef^^be^^94% | |
^^ef^^bd^^a7^^e2^^80^^a6\endmubyte | |
% some alternatives | |
\mubyte\relax | |
^^28^^20^^cb^^98^^cf^^89^^cb^^98% | |
^^20^^29^^20^^ef^^bd^^bd^^ef^^be% | |
^^94^^ef^^bd^^a7^^e2^^80^^a6\endmubyte | |
\mubyte\relax | |
^^28^^cb^^98^^cf^^89^^cb^^98^^29% | |
^^ef^^bd^^bd^^ef^^be^^94^^ef^^bd% | |
^^a7^^e2^^80^^a6\endmubyte | |
\mubyte\relax | |
^^28^^cb^^98^^cf^^89^^cb^^98^^29% | |
^^20^^ef^^bd^^bd^^ef^^be^^94^^ef% | |
^^bd^^a7^^e2^^80^^a6\endmubyte | |
\endgroup | |
%<*> \enablesuyah / \disablesuyah | |
% Enables/Disables the use of 'suyah' token. | |
\def\enablesuyah{\mubytein\@ne} | |
\def\disablesuyah{\mubytein\z@} | |
% suyah enabled by default | |
\enablesuyah | |
%------------------- all done | |
\catcode`\@=12 | |
\dump | |
%% EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment