anexar título em caixa: título em branco para escrever à mão

anexar título em caixa: título em branco para escrever à mão

Amigos de látex,

Eu uso o tcolorbox e preciso de "Campo em branco" no título e escreverei à mão neste campo.

\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}

Como pode exibir "Caixa de título" em 2. mybox e, se houver, pode criar uma "caixa grande" tão fácil de escrever.

Usarei diferentes caixas bonitas para formulário preenchível.

Obrigado

Responder1

Não tenho certeza se entendi seu problema corretamente.

É isso que você quer?

\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}

captura de tela

informação relacionada