枠付きのタイトルを添付する: 手書きの空白のタイトル

枠付きのタイトルを添付する: 手書きの空白のタイトル

ラテックスの友人たちよ、

私は tcolorbox を使用しており、タイトルに「空白フィールド」が必要なので、このフィールドに手書きで書き込みます。

\documentclass[11pt]{report}
\usepackage{caption}
\usepackage{tikz}
\usepackage[many]{tcolorbox}
\tikzset{fancytitle/.style ={fill=red, text=white}}
\newtcolorbox
{mybox}[1]{tikznode boxed title,enhanced,attach boxed title to top center={yshift=-3mm,yshifttext=-1mm},boxed title style={size=small,colback=red},title={#1}}

\begin{document}

\begin{mybox}{Name} 1/ This is a \textbf{tcolorbox}.
\end{mybox}\

\begin{mybox}{} 2/ Need display field "Title box" to write
\end{mybox}
\begin{mybox}{\tiny .....} 3/ tiny point...\end{mybox}
\end{document}

2. mybox に「タイトルボックス」を表示するにはどうすればよいでしょうか。また、簡単に記述できる「大きなボックス」を作成することもできます。

記入可能なフォームには別の美しいボックスを使用します。

ありがとう

答え1

あなたの問題を正しく理解できたかどうかわかりません。

それがあなたの望みですか?

\documentclass[11pt]{report}
\usepackage{caption}
\usepackage{tikz}
\usepackage[many]{tcolorbox}
%\tikzset{fancytitle/.style ={fill=red, text=white}}

\tcbset{whitetitle/.style={boxed title style={size=small,colback=white}}}

\tcbset{redtitle/.style={boxed title style={size=small,colback=red}}}

\newtcolorbox
{mybox}[2][]{%tikznode boxed title,
#1,enhanced,attach boxed title to top center={yshift=-3mm,yshifttext=-1mm},title={#2}}

\begin{document}

\begin{mybox}[redtitle]{Name} 1/ This is a \textbf{tcolorbox}.
\end{mybox}\

\begin{mybox}[whitetitle]{\phantom{Title box}} 2/ Need display field "Title box" to write
\end{mybox}
\begin{mybox}[redtitle]{\tiny .....} 3/ tiny point...\end{mybox}
\end{document}

スクリーンショット

関連情報