一行カラーボックスサンプル
レンダリング結果

TeXソース
TeXソース
入力コード
%%%% サンプルソース
\documentclass[b5j,10pt,twoside]{tetsujsarticle}
\usepackage{tetsuryoku}
\usepackage{newpxtext}
\begin{document}
\noindent デフォルト
\一行カラーボックス{$a\geqq b$Point!!}{$a\geqq b$滑る・滑らない問題の解法}
\noindent パラメータのカスタマイズ
\一行カラーボックス[タイトル文字色=white,右タイトル文字色=blue!90!black,右タイトル背景色=blue!30!white,枠の色=blue!75!black,fboxsep=5pt,角丸半径=2pt,fboxrule=1pt]{Point!!}{滑る・滑らない問題の解法}
\cdef{hoge}{1}
\def\hoge{\stepcounter{hoge}\arabic{hoge}}
\noindent 中身の高さが高いとき・カウンタを回すときのサンプル
\一行カラーボックス[タイトル文字色=white,右タイトル文字色=red,右タイトル背景色=yellow!30!white,枠の色=red!75!black,fboxsep=5pt,角丸半径=2pt,fboxrule=1pt]{ Point\hoge!!}{ \HUGE 滑る・滑らない問題の解法\hoge }
\hoge
\noindent 鉄壁の再現
\一行カラーボックス[タイトル文字色=white,右タイトル文字色=black,右タイトル背景色=white,枠の色=red!75!white,fboxsep=5pt,角丸半径=0pt,fboxrule=1pt]{\sf{Check!}}{%
\hspace{5pt}\parbox{\linewidth-10pt}{\sffamily
~\\[-5pt]%
● an offensive remark とは?:「(\ihspace{1zw})な発言」\hfill \textcolor{red!75!white}{不快な}\\
● a highly motivated student とは?:「(\ihspace{1zw})生徒」\hfill \textcolor{red!75!white}{非常にやる気のある}\\[-10pt]
}}
\end{document}