라텍스 비머의 미니멀리스트 블록

라텍스 비머의 미니멀리스트 블록

다음과 같은 블록을 만들고 싶습니다.여기에 이미지 설명을 입력하세요

동일한 라텍스 템플릿을 찾을 수 없습니다. 어떤 아이디어가 있나요?

답변1

tcolorbox패키지가 최선의 선택입니다. 상자는 너무 미니멀해서 Ti로 쉽게 만들 수 있습니다.케이지.

\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\newcommand{\minimalisticBox}[2]{
\begin{figure}
\centering
\begin{tikzpicture}
\node[rounded corners,draw,line width=1.5pt,inner sep=5ex](MBoxForm){#2};
\node[anchor=west,fill=white] at (MBoxForm.155) {#1};
\end{tikzpicture}
\end{figure}
}%\minimalisticBox{title}{contents}
\begin{document}
\minimalisticBox{Scattering probability}{$f_{ij}=\frac{\alpha_S^2(Q^2)}{2}\log^2[\frac{r_{14}r_{23}}{r_{24}r_{13}}]$}
\end{document}

최소한의 상자

답변2

tcolorbox의 솔루션:

\begin{tcolorbox}[enhanced,attach boxed title to top center={yshift=-3mm,yshifttext=-1mm},
colback=white!100!black,colframe=black,colbacktitle=white,coltitle=black,title=My title,fonttitle=\bfseries,boxed title style={size=small,colframe=white} ]This box uses a \textit{boxed title}. The box of the title can be formatted independently from the main box.\end{tcolorbox}

산출

따라서 문제의 상자에 대해서는 다음과 같습니다.

\documentclass[10pt,a4paper]{article}
\usepackage[most]{tcolorbox} 
\begin{document} 
\begin{tcolorbox}[enhanced,attach boxed title to top left={xshift=5mm,yshift=-3mm,yshifttext=-1mm}, colback=white,colframe=black,colbacktitle=white,coltitle=black,title={\LARGE Scattering probability},halign=flush center,fonttitle=\bfseries, boxed title style={size=small,colframe=white}] 
$f_{ij}=\frac{\alpha_S^2(Q^2)}{2}\log^2[\frac{r_{14}r_{23}}{r_{24}r_{13}}]$ 
\end{tcolorbox} 
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보