その他一覧へ戻る

品詞表示

鉄TeX機能紹介/TikZサンプル/品詞表示.tex鉄TeX機能紹介 / TikZhybrid

レンダリング結果

1ページ / 同名PDFあり
品詞表示 preview
PDFを開く
TeXソース
TeXソース
入力コード
\documentclass[,b5j,10pt,,twoside]{tetsujsarticle}
\usepackage{tetsuchem}
\pagestyle{empty}
\usepackage{pxfonts}
\begin{document}

\def\四角品詞#1{ \nobreak\hspace{-1zw}%
  \begin{tikzpicture}[baseline=(a.base),font=\sffamily\small]
    \node[draw, rectangle, rounded corners=1.5pt,
%          fill=black!20!white,
          shade, top color=black!20!white, bottom color=white,
          inner sep=1pt, outer sep=1pt,
          minimum width=1\Cwd+1pt, minimum height=1\Cwd,
          ] (a) {\vphantom{あ}#1};
  \end{tikzpicture}%
  \nobreak\hspace{-1zw}\nobreak  
}
\def\丸品詞#1{ \nobreak\hspace{-1zw}%
  \begin{tikzpicture}[baseline=(a.base),font=\sffamily\small]
    \node[draw, circle,
%          fill=black!20!white,
          shade, top color=black!20!white, bottom color=white,
          inner sep=-2pt, outer sep=0pt,
          minimum width=1\Cwd+2pt, minimum height=1\Cwd,
          ] (a) {\vphantom{あ}#1};
  \end{tikzpicture}%
  \nobreak\hspace{-1zw}\nobreak  
}


これは\四角品詞{名} \四角品詞{形} \四角品詞{副} \四角品詞{C} \四角品詞{C,U} \四角品詞{vt} \四角品詞{叙述} \四角品詞{限定}です。


これは\丸品詞{他} \丸品詞{自} \丸品詞{C} \丸品詞{U} \丸品詞{前}です。

oxidizer \textipa{[\'Aks@d\`aIze\textit{r}]} \四角品詞{名} \四角品詞{C} 酸化剤
 
calomel \textipa{[k\'\ae l@m\`el]} \四角品詞{名} \四角品詞{U} 塩化水銀\sanka{1},塩化第一水銀,$\mathrm{Hg_2Cl_2}$;カロメル電極(\ce{Hg}と\ce{Hg2Cl2}の組を還元剤・酸化剤のペアとして用いた半電池)

\四角品詞{例文} Give me calomel! 私に塩化第一水銀\ce{Hg2Cl2}をください!

\end{document}