Created
January 8, 2016 14:12
-
-
Save yuw/2473385df309b7966d07 to your computer and use it in GitHub Desktop.
uplatexとdipsによるtikzのオプションremember pictureの利用
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
\documentclass{ujarticle} | |
\usepackage{array} | |
\usepackage{tikz} | |
\makeatletter | |
\def\pgfsys@markposition#1{% | |
\pdfsavepos% | |
\edef\pgf@temp{#1}% | |
\expandafter\pgfutil@writetoaux\expandafter{% | |
\expandafter\noexpand\expandafter\pgfsyspdfmark\expandafter{\pgf@temp}{\the\pdflastxpos}{\the\pdflastypos}}% | |
} | |
\def\pgfsyspdfmark#1#2#3{% | |
\expandafter\gdef\csname pgf@sys@pdf@mark@pos@#1\endcsname{\pgfqpoint{#2sp}{#3sp}}% | |
} | |
\def\pgfsys@getposition#1#2{% | |
\edef\pgf@marshal{\let\noexpand#2=\expandafter\noexpand\csname pgf@sys@pdf@mark@pos@#1\endcsname}% | |
\pgf@marshal% | |
} | |
\def\pgf@sys@pdf@mark@pos@pgfpageorigin{\pgfpointorigin} | |
\makeatother | |
\begin{document} | |
\begin{tabular}{|c|c|c|} | |
\hline | |
a & b & c\\ | |
\omit & \omit\hfill\tikz[remember picture,overlay]\node (n1) {};% | |
& \omit\cr | |
\hline | |
d & & f\\ | |
\omit & \omit\tikz[remember picture,overlay]\node (n2) {};% | |
\tikz[remember picture,overlay]\draw (n2.center)--(n1.center);\hfill | |
& \omit\cr | |
\hline | |
g & h & i\\ | |
\hline | |
\end{tabular} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment