このように,図画間結合を使えばtikzpicture環境の外にあるノードを参照して矢印でつなぐことが出来ます.ソースのサンプルはzrさんのblogに詳しいので省略します.文章をまたいでノードを繋げることも出来ます.
Tikzは色々なことが出来て楽しいです。
\def\pgfpoint@oncoil#1#2#3{% \pgf@x=#1\pgfdecorationsegmentamplitude% \pgf@x=\pgfdecorationsegmentaspect\pgf@x% \pgf@y=#2\pgfdecorationsegmentamplitude% \pgf@xa=0.083333333333\pgfdecorationsegmentlength% \advance\pgf@x by#3\pgf@xa% } % gluonup decoration % % Parameters: \pgfdecorationsegmentamplitude, \pgfdecorationsegmentlength, \pgfdeclaredecoration{gluonup}{initial} { \state{initial}[ width=+0pt, next state=coil, persistent precomputation={ \pgfmathsetmacro\matchinglength{ (ceil(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) - \pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) > 0.5 ? (\pgfdecoratedinputsegmentlength - 2 * \pgfdecorationsegmentaspect * \pgfdecorationsegmentamplitude) / (floor(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) + 0.499) : (\pgfdecoratedinputsegmentlength - 2 * \pgfdecorationsegmentaspect * \pgfdecorationsegmentamplitude) / (ceil(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) + 0.499) } \setlength{\pgfdecorationsegmentlength}{\matchinglength pt} }, ]{} \state{coil}[switch if less than=% 0.5\pgfdecorationsegmentlength+% \pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude+% \pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude to last, width=+\pgfdecorationsegmentlength] { \pgfpathcurveto {\pgfpoint@oncoil{0 }{ 0.555}{1}} {\pgfpoint@oncoil{0.445}{ 1 }{2}} {\pgfpoint@oncoil{1 }{ 1 }{3}} \pgfpathmoveto{\pgfpoint@oncoil{1 }{-1 }{9}} \pgfpathcurveto {\pgfpoint@oncoil{0.445}{-1 }{10}} {\pgfpoint@oncoil{0 }{-0.555}{11}} {\pgfpoint@oncoil{0 }{ 0 }{12}} } \state{last}[next state=final] { \pgfpathcurveto {\pgfpoint@oncoil{0 }{ 0.555}{1}} {\pgfpoint@oncoil{0.445}{ 1 }{2}} {\pgfpoint@oncoil{1 }{ 1 }{3}} \pgfpathmoveto{\pgfpoint@oncoil{2 }{ 0 }{6}} } \state{final}{} } % gluondown decoration % % Parameters: \pgfdecorationsegmentamplitude, \pgfdecorationsegmentlength, \pgfdeclaredecoration{gluondown}{initial} { \state{initial}[ width=+0pt, next state=coil, persistent precomputation={ \pgfmathsetmacro\matchinglength{ (ceil(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) - \pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) > 0.5 ? (\pgfdecoratedinputsegmentlength - 2 * \pgfdecorationsegmentaspect * \pgfdecorationsegmentamplitude) / (floor(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) + 0.499) : (\pgfdecoratedinputsegmentlength - 2 * \pgfdecorationsegmentaspect * \pgfdecorationsegmentamplitude) / (ceil(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) + 0.499) } \setlength{\pgfdecorationsegmentlength}{\matchinglength pt} }, ]{} \state{coil}[switch if less than=% 0.5\pgfdecorationsegmentlength+% \pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude+% \pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude to last, width=+\pgfdecorationsegmentlength] { \pgfpathmoveto{\pgfpoint@oncoil{1 }{1 }{3}} \pgfpathcurveto {\pgfpoint@oncoil{1.555}{ 1 }{4}} {\pgfpoint@oncoil{2 }{ 0.555}{5}} {\pgfpoint@oncoil{2 }{ 0 }{6}} \pgfpathcurveto {\pgfpoint@oncoil{2 }{-0.555}{7}} {\pgfpoint@oncoil{1.555}{-1 }{8}} {\pgfpoint@oncoil{1 }{-1 }{9}} } \state{last}[next state=final] { \pgfpathmoveto{\pgfpoint@oncoil{1 }{ 1 }{3}} \pgfpathcurveto {\pgfpoint@oncoil{1.555}{ 1 }{4}} {\pgfpoint@oncoil{2 }{ 0.555}{5}} {\pgfpoint@oncoil{2 }{ 0 }{6}} } \state{final}{} } \endinput
\documentclass[a4paper]{article} \usepackage[dvipdfmx]{graphicx} \PassOptionsToPackage{svgnames}{xcolor} \usepackage{tikz} \usetikzlibrary{decorations} \usepgflibrary{decorations.mypathmorphing} \begin{document} \begin{tikzpicture} \draw [decorate, decoration={gluon, aspect=0.4, amplitude=4mm, segment length=4mm},gray!50,very thick] (0,0) -- (5,0); \draw [decorate, decoration={gluonup, aspect=0.4, amplitude=4mm, segment length=4mm},blue] (0,0) -- (5,0); \node[anchor=west] at (5.1,0){gluonup}; \end{tikzpicture} \bigskip \begin{tikzpicture} \draw [decorate, decoration={gluon, aspect=0.4, amplitude=4mm, segment length=4mm},gray!50,very thick] (0,0) -- (5,0); \draw [decorate, decoration={gluondown, aspect=0.4, amplitude=4mm, segment length=4mm},red] (0,0) -- (5,0); \node[anchor=west] at (5.1,0){gluondown}; \end{tikzpicture} \bigskip \begin{tikzpicture} \pgfmathsetmacro{\w}{3.5} \pgfmathsetmacro{\h}{.8} \pgfmathsetmacro{\r}{0.5*\h} \pgfmathsetmacro{\rx}{0.35*\r} \pgfmathsetmacro{\ry}{\r-0.0005} \pgfmathsetmacro{\amp}{5mm} \pgfmathsetmacro{\sgl}{3.2mm} %コイル1 (鉄心に隠れる方) \draw [decorate, decoration={gluonup, aspect=0.4, amplitude=\amp, segment length=\sgl}] (0,0) -- (\w,0); %鉄心1 \filldraw[fill=white] (0,\r) -- (\w,\r) arc [start angle=90, end angle = -90, x radius=\rx, y radius=\ry] -- (0, -\r) arc [start angle=-90, end angle = 90, x radius=\rx, y radius=\ry]; %導線 \draw[very thick,draw=white] (0,0) |- (\w,-1.8*\h) -- (\w,0); \draw (0,0) |- (\w,-1.8*\h) -- (\w,0); %鉄心2 \draw[fill=white](0,0) circle [x radius=\rx, y radius=\ry]; %コイル2 (鉄心の前面) \draw [very thick,draw=white,decorate, decoration={gluondown, aspect=0.4, amplitude=\amp, segment length=\sgl}] (0,0) -- (\w,0); \draw [decorate, decoration={gluondown, aspect=0.4, amplitude=\amp, segment length=\sgl}] (0,0) -- (\w,0); \end{tikzpicture} \end{document}
\documentclass[10pt]{jsarticle}
\usepackage[dvipdfmx]{graphicx}
\PassOptionsToPackage{svgnames}{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.markings,decorations.pathmorphing}
%修正されたコイル gluonとして使う
\makeatletter
\pgfdeclaredecoration{gluon}{initial}
{
\state{initial}[
width=+0pt,
next state=coil,
persistent precomputation={
\pgfmathsetmacro\matchinglength{
(ceil(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) - \pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) > 0.5
? (\pgfdecoratedinputsegmentlength - 2 * \pgfdecorationsegmentaspect * \pgfdecorationsegmentamplitude) / (floor(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) + 0.499)
: (\pgfdecoratedinputsegmentlength - 2 * \pgfdecorationsegmentaspect * \pgfdecorationsegmentamplitude) / (ceil(\pgfdecoratedinputsegmentlength / \pgfdecorationsegmentlength) + 0.499)
}
\setlength{\pgfdecorationsegmentlength}{\matchinglength pt}
},
]{}
\state{coil}[
switch if less than=%
0.5\pgfdecorationsegmentlength%
+\pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude%
+\pgfdecorationsegmentaspect\pgfdecorationsegmentamplitude to last,
width=+\pgfdecorationsegmentlength,
]
{
\pgfpathcurveto
{\pgfpoint@oncoil{0 }{ 0.555}{ 1}}
{\pgfpoint@oncoil{0.445}{ 1 }{ 2}}
{\pgfpoint@oncoil{1 }{ 1 }{ 3}}
\pgfpathcurveto
{\pgfpoint@oncoil{1.555}{ 1 }{ 4}}
{\pgfpoint@oncoil{2 }{ 0.555}{ 5}}
{\pgfpoint@oncoil{2 }{ 0 }{ 6}}
\pgfpathcurveto
{\pgfpoint@oncoil{2 }{-0.555}{ 7}}
{\pgfpoint@oncoil{1.555}{-1 }{ 8}}
{\pgfpoint@oncoil{1 }{-1 }{ 9}}
\pgfpathcurveto
{\pgfpoint@oncoil{0.445}{-1 }{10}}
{\pgfpoint@oncoil{0 }{-0.555}{11}}
{\pgfpoint@oncoil{0 }{ 0 }{12}}
}
\state{last}[next state=final]
{
\pgfpathcurveto
{\pgfpoint@oncoil{0 }{ 0.555}{1}}
{\pgfpoint@oncoil{0.445}{ 1 }{2}}
{\pgfpoint@oncoil{1 }{ 1 }{3}}
\pgfpathcurveto
{\pgfpoint@oncoil{1.555}{ 1 }{4}}
{\pgfpoint@oncoil{2 }{ 0.555}{5}}
{\pgfpoint@oncoil{2 }{ 0 }{6}}
}
\state{final}{}
}
\begin{document}
\begin{tikzpicture}
%coil
\begin{scope}
\coordinate (sprright) at (0,0);
\coordinate (sprleft) at ($(sprright)+(-2.5,0)$);
\draw[decoration={coil,aspect=0.3,amplitude=0.3cm,segment length=1.75mm,}]
decorate {(sprleft)-- (sprright)}; %ばね
\node[right=3] at (sprright){通常のcoil decoration};
\end{scope}
%gluon
\begin{scope}[shift={(0,-1)}]
\coordinate (sprright) at (0,0);
\coordinate (sprleft) at ($(sprright)+(-2.5,0)$);
\draw[decoration={gluon,aspect=0.3,amplitude=0.3cm,segment length=1.75mm,}]
decorate {(sprleft)-- (sprright)}; %ばね
\node[right=3] at (sprright){gluon decoration};
\end{scope}
\begin{scope}[shift={(0,-2)}]
\coordinate (sprright) at (0,0);
\coordinate (sprleft) at ($(sprright)+(-2.5,0)$);
\draw[decoration={gluon,aspect=0.3,amplitude=0.3cm,segment length=1.75mm,}]
(sprleft) -- +(-0.2,0) decorate {(sprleft)-- (sprright)}-- (sprright)-- ++(0.2,0); %ばね
\draw ($(sprleft)+(-0.2,0.2)$)--($(sprleft)+(-0.2,-0.2)$);
\node[right=3] at (sprright){gluon decorationに端を付け加えたもの};
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[10pt]{article}
\usepackage[dvipdfmx]{graphicx}
\PassOptionsToPackage{svgnames}{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\draw (0,0)--(3,0)-- ++(70:2.5)-- ++(-3,0)--cycle; %外枠
\coordinate (p) at ($(1.5,0)+(70:0.7)$);
\draw[thick] (p)--($(p)+(0,1)$);
\node (V) at ($(p)+(70:0.3)$){\scriptsize $\underline{\mathrm{V}}$};
\fill ($(p)+(-0.17,0)$) -- ($(p)+(0.17,0)$) -- ($(p)+(0,0.13)$)--cycle;
\coordinate (q) at ($(70:0.4)+(0.65,0)$);
\begin{scope}[shift=(q),scale=1.2]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% 電圧計の目盛り
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\r}{0.7}%円の半径
\renewcommand*{\l}{0.3}%長い目盛りの長さ
\renewcommand*{\t}{0.15}%短い目盛りの長さ
\pgfmathparse{cos(70)}
\let\c\pgfmathresult
\pgfmathparse{sin(70)}
\let\d\pgfmathresult
\pgftransformcm{1}{0}{\c}{\d}{}%座標軸の回転とシフト
%x軸とy軸の成す角が70度の斜交座標系に座標系を変更する
\foreach \i in {0,1,2,..., 20}
{
\pgfmathparse{30+6*\i}
\let\th\pgfmathresult
% 変数\iが5の倍数のときのみ長い目盛りを使う.
\pgfmathparse{int(mod(\i,5))}
\let\imod\pgfmathresult
\ifnum\imod=0
\pgfmathparse{\r+\l}
\let\length\pgfmathresult
\draw[thin] (\th:\r)--(\th:\length);
\else
\pgfmathparse{\r+\t}
\let\length\pgfmathresult
\draw[thin] (\th:\r)--(\th:\length);
\fi
}
\end{scope}
\end{tikzpicture}
\end{document}
\usepackage[no-math]{fontspec} \usepackage[...]{luatexja-preset}のようにしてください.
\documentclass{ltjsarticle}
\usepackage{luatexja}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage[no-math]{fontspec}
\usepackage[hiragino-pro]{luatexja-preset}
\begin{document}
あいうえお
$\mathit{\Delta}$, $\Delta$
$\mathit{\Psi}$, $\Psi$,
$A$, $\mathit{A}$, $I$, $\mathit{I}$,
$B$, $\mathit{B}$
\end{document}
\documentclass{article}
\usepackage{amsmath,amssymb,mathrsfs}
\begin{document}
$\mathit{\Delta}$, $\Delta$
$\mathit{\Psi}$, $\Psi$,
$A$, $\mathit{A}$, $I$, $\mathit{I}$,
$B$, $\mathit{B}$
\end{document}
\documentclass{ltjsarticle}
\usepackage{luatexja}
\usepackage{amsmath,amssymb,mathrsfs}
\begin{document}
あいうえお
$\mathit{\Delta}$, $\Delta$
$\mathit{\Psi}$, $\Psi$,
$A$, $\mathit{A}$, $I$, $\mathit{I}$,
$B$, $\mathit{B}$
\end{document}
\documentclass{ltjsarticle}
\usepackage{luatexja}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage[hiragino-pro]{luatexja-preset}
\begin{document}
あいうえお
$\mathit{\Delta}$, $\Delta$
$\mathit{\Psi}$, $\Psi$,
$A$, $\mathit{A}$, $I$, $\mathit{I}$,
$B$, $\mathit{B}$
\end{document}
\documentclass[a4paper]{ltjsarticle}
\usepackage{luatexja}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{etoolbox}
\usepackage{tikz}
\usepackage{mdframed}
\usepackage{luatexja-fontspec}
\defaultjfontfeatures{Scale=0.92487}
% この行がない場合,luatexja-fontspec は
% 和文フォントの大きさを欧文フォントの 0.962212 倍
% ([lt]jclasses でのデフォルト設定と同じ)で定義する.
% 上の指定は,[lt]jsclasses における欧文 10pt: 和文 13Q
% という比率に合わせるためのもの.
\setmainfont[Ligatures=TeX]{TeXGyreTermes}
\setsansfont[Ligatures=TeX]{TeXGyreHeros}
\setmainjfont[BoldFont=IPAexGothic]{IPAexMincho}
\setsansjfont{IPAexGothic}
\newjfontfamily\jisninety[CJKShape=JIS1990]{IPAexMincho}
\begin{document}
\newcounter{theo}[section]
\newenvironment{theo}[1][]{%
\stepcounter{theo}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo};}}}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=blue!20,%
linewidth=2pt,topline=true,
frametitleaboveskip=\dimexpr-\ht\strutbox\relax,}
\begin{mdframed}[]\relax%
}{\end{mdframed}}
\begin{theo}[Riemann積分の線型性]
$\mathscr{R}(I)$を$\mathbb{R}^n$の有界閉区間$I$上でRiemann可積分な実数値関数全体
の集合とする.$\mathscr{R}(I)$は実ベクトル空間であり,$I$上の積分は
$\mathscr{R}(I)$から$\mathbb{R}$への線型写像である.即ち
\begin{equation}
f, g\in \mathscr{R}(I),\ c\in \mathbb{R}\text{ならば}
f+g\in \mathscr{R}(I),\ cf\in \mathscr{R}(I)
\end{equation}
であり,なおかつ
\begin{gather}
\int_I (f+g)(x)\, dx
=\int_I f(x)\, dx + \int_I g(x)\, dx, \\
\int_I cf(x)\, dx
= c\int_I f(x)\, dx
\end{gather}
が成り立つ.
\end{theo}
\end{document}
\begin{equation}
\begin{array}{l}
[a_1, b_1]\times \dotsb \times [a_{i-1}, b_{i-1}]\times
\{a_i\}\times[a_{i+1}, b_{i+1}]\times \dotsb \times [a_n, b_n]\\
[a_1, b_1]\times \dotsb \times [a_{i-1}, b_{i-1}]\times
\{b_i\}\times[a_{i+1}, b_{i+1}]\times \dotsb \times [a_n, b_n]
\end{array}
\end{equation}
\makeatletter %% %% \appendix 定義を修正 %% \thesection に \presectionname(\appendixname) を追加するのではなく %% 以降の \section に \presectionname(\appendixname) を追加してみた %% %% 元と違うところ %% (1) 目次で「付録A」とならず「A」となる %% (2) \label \ref の参照で「付録」が出なくなる %% \renewcommand{\appendix}{\par \setcounter{section}{0}% \setcounter{subsection}{0}% \gdef\presectionname{\appendixname}% % \gdef\presectionname{}% \gdef\postsectionname{}% % \gdef\thesection{\presectionname\@Alph\c@section\postsectionname}% \gdef\thesection{\@Alph\c@section}% % \gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}%} \gdef\thesubsection{\thesection.\@arabic\c@subsection}%} % 以下,追加 \if@twocolumn \renewcommand{\section}{% \@startsection{section}{1}{\z@}% {0.6\Cvs}{0.4\Cvs}% % {\normalfont\large\headfont\raggedright}} {\normalfont\large\headfont\raggedright\presectionname}} % \else \renewcommand{\section}{% \if@slide\clearpage\fi \@startsection{section}{1}{\z@}% {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ {.5\Cvs \@plus.3\Cdp}% 後アキ % {\normalfont\Large\headfont\raggedright}} {\normalfont\Large\headfont\raggedright\presectionname}} \fi } \makeatotherをプリアンブルに書いておけばよいようです.
\begin{enumerate}[(i)]
\item ほげほげ
\end{enumerate}
というような記述をしていると、単純にスタイルファイルをenumitem.styに切り替えるだけではエラーメッセージが出ます。このあたりは対策も用意されているようで、\usepackage[shortlabels]{enumitem}
のようにオプションとしてshortlabelsを指定しておくと上記のような記述でもエラーがでなくなります。ソースを徐々に書き換えていかなければいけないなあ…。\usepackage{amsthm}\usepackage{xcolor}\usepackage{mdframed} %複数ページをまたぐフレーム\theoremstyle{definition}\mdfdefinestyle{theoremstyle}{%linecolor=gray!40,linewidth=.5pt,%backgroundcolor=gray!10,skipabove=8pt,skipbelow=5pt,innerleftmargin=7pt,innerrightmargin=7pt,frametitlerule=true,%frametitlerulewidth=.5pt,frametitlebackgroundcolor=gray!15,frametitleaboveskip=0pt,frametitlebelowskip=0pt,innertopmargin=.4\baselineskip,innerbottommargin=.4\baselineskip,shadow=true,shadowsize=3pt,shadowcolor=black!20,theoremseparator={.},}\mdtheorem[style=theoremstyle]{defi}{$\blacklozenge$定義}[chapter]\mdtheorem[style=theoremstyle]{prop}[defi]{$\blacklozenge$命題}\mdtheorem[style=theoremstyle]{theo}[defi]{$\blacklozenge$定理}\mdtheorem[style=theoremstyle]{lem}[defi]{$\blacklozenge$補題}\mdtheorem[style=theoremstyle]{coro}[defi]{$\blacklozenge$系}\mdtheorem[style=theoremstyle]{axiom}[defi]{$\blacklozenge$公理}
(bookmarks ("Title" "#1") ("My Chapter 1" "#5" ("Sub Chapter 1" "#5") ("Sub Chapter 2" "#15")) )
djvused file.djvu -e 'set-outline bookmarks.txt' -sと打てば、file.djvuというdjvuファイルにしおりが追加されます。しおりは元のファイルのものを上書きしてしまうので注意が必要です。ファイルからしおりを抜き出すには
djvused file.djvu -e print-outline file.djvu > output.txtとします。これでfile.djvuのしおりがoutput.txtというテキストファイルに書き出されます。
djvm -d file.djvu 1のように、djvm -d [filename] [pagenumber]のような記述をすればよいようです。