-
文書ファイル shiftjis.tex をUTF-8からShift_JISに変換する
-
入力・内部の漢字コードがsjisのplatexでコンパイルする
platex -kanji=sjis -kanji-internal=sjis shiftjis
↑ここで -kanji-internal
を使うのもアレだけど、元々バッドなので……。
\documentclass{minimal} | |
\makeatletter | |
\ifdefined\kanjiskip | |
\unless\ifdefined\ucs % (e-)pTeX only | |
%%%% EUC-JP が内部漢字コードであることを想定 | |
\begingroup | |
\catcode`\"=12 | |
\catcode`\<=12 | |
\catcode`\.=12 |
%% | |
%% This is file 'bxpgfcurpage.sty'. | |
%% | |
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR") | |
%% GitHub: https://github.com/zr-tex8r | |
%% Twitter: @zr_tex8r | |
%% | |
%% This package is distributed under the MIT License. | |
%% |
%% | |
%% This is file 'pxxspace.sty'. | |
%% | |
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR") | |
%% GitHub: https://github.com/zr-tex8r | |
%% Twitter: @zr_tex8r | |
%% | |
%% This package is distributed under the MIT License. | |
%% |
We have moved this project to https://github.com/munepi/gckanbun. |
% LaTeX + dvips | |
\documentclass[a4paper]{article} | |
\textwidth=250bp \oddsidemargin=-1in \evensidemargin=-1in | |
\textheight=250bp \topmargin=-1in \headheight=0pt \headsep=0pt | |
\AtBeginDvi{% | |
\special{papersize=250bp 250bp}% | |
\special{ps:SDict begin | |
[ /CropBox [0 0 200 200] /PAGE pdfmark | |
[ /BleedBox [0 0 150 150] /PAGE pdfmark | |
[ /TrimBox [0 0 100 100] /PAGE pdfmark |
文書ファイル shiftjis.tex をUTF-8からShift_JISに変換する
入力・内部の漢字コードがsjisのplatexでコンパイルする
platex -kanji=sjis -kanji-internal=sjis shiftjis
↑ここで -kanji-internal
を使うのもアレだけど、元々バッドなので……。
% upLaTeX文書; 文字コードはUTF-8 | |
\documentclass[uplatex,a5paper]{utarticle} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{otf}% <?>で自動空白挿入 | |
\usepackage[prefercjkvar]{pxcjkcat} | |
\usepackage{zrjapunct1} | |
\cjkcategory{latn1}{noncjk}% <é>は欧文 | |
\begin{document} |
#!/usr/bin/env texlua | |
-- | |
-- This is file 'sctexdoc.lua'. | |
-- | |
-- Copyright 2017-2020 Takuto ASAKURA (wtsnjp) | |
-- GitHub: https://github.com/wtsnjp | |
-- Twitter: @wtsnjp | |
-- | |
-- This package is distributed under the MIT License. |
% fixjfm.sty | |
% Copyright 2017 Yue ZHANG | |
% License: Knuth License (https://ctan.org/license/knuth) | |
\csname ENDINPUTFIXJFMDOTSTY\endcsname | |
\let\ENDINPUTFIXJFMDOTSTY=\endinput |
\documentclass{tarticle} | |
\usepackage[word]{continue}% これは atbegshi 依存 | |
\usepackage{etoolbox} | |
\makeatletter | |
\patchcmd{\AtBegShi@Output}% | |
{\let\AtBegShi@OrgProtect\protect}% | |
{\setbox\z@\hbox\bgroup\yoko\let\AtBegShi@OrgProtect\protect}% | |
{}{} |