Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A package to make everyshi compatible with tate-mode of pTeX.
% pxeveryshi.sty
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxeveryshi}
\RequirePackageWithOptions{everyshi}
%
\def\@EveryShipout@Output{%
\setbox8\vbox{%
\yoko
\@EveryShipout@Hook
\@EveryShipout@AtNextHook
\global\setbox\@cclv=\box\@cclv
}%
\gdef\@EveryShipout@AtNextHook{}%
\@EveryShipout@Org@Shipout\box\@cclv
}
%% EOF
% Example: use TikZ in tate-mode
% http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/56760.html
\documentclass{tarticle}
\usepackage[dvipdfmx]{graphicx}
\usepackage{tikz}
\usepackage{pxeveryshi}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (1,2);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.