Tcolorbox:适合并不严格从顶部开始

Tcolorbox:适合并不严格从顶部开始

我不知道为什么,但是当我使用fittcolorbox 中的选项时,适合度有点“太高”,并且比其他文本高出几个像素。知道为什么吗?

谢谢!

在此处输入图片描述

飞涨:

在此处输入图片描述

平均能量损失

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % To switch to the T1 encoding
\usepackage{lmodern} % To switch to Latin Modern
\usepackage{exscale}
\usepackage{amssymb, amsthm, amsmath}
% \usepackage[bitstream-charter]{mathdesign}
\usepackage{palatino}

\usepackage[a0paper]{geometry}
\usepackage[poster,most]{tcolorbox}

\pagestyle{empty}

\begin{document}
\begin{tcbposter}[
    coverage = {
      spread,
      % interior style={top color=yellow,bottom color=yellow!50!red},
      top=25mm, bottom=25mm, left=15mm, right=15mm,
    },
    poster   = {showframe=false,columns=4,rows=5,spacing=13mm},
    boxes    = {
      enhanced standard jigsaw,sharp corners=downhill,
      arc=10mm, boxrule=2mm,
      coltitle=black!85,
      boxsep=0pt,
      top=15mm,bottom=15mm,right=15mm,left=15mm,
      colback=white,opacityback=0.75,colframe=cyan!30!white!90!black,
      title style={left color=cyan!20!white!90!black,
        right color=cyan!20!white!90!black,
      },
      fonttitle=\Large\scshape\bfseries,
      valign=center,
    },
    fontsize = 36pt
    ]

  \posterbox[blankest,interior engine=path,height=10cm,
    halign=center,valign=center,colupper=black,
    ]{name=title,column=1,span=4,below=top}{
    {\Huge\bf\textsc{Here is\\[.3em]
        My Title}}\\[.3em]
    \textsc{Here are Some Names}
  }

  % \posterbox[adjusted title=Maximum space,valign=top]
  % {name=security,below=title,column=1,span=1,rowspan=1}{%
  %   \rule{\textwidth}{\tcbtextheight}
  % }

  \posterbox[adjusted title=Top,valign=top]
  {name=security,below=title,column=2,span=.5,rowspan=1}{%
    Hello
  }

  \posterbox[adjusted title=Bot,valign=bottom]
  {name=security,below=title,column*=2,span=.5,rowspan=1}{%
    Hello
  }

  \posterbox[adjusted title=No fit,valign=top]
  {name=security,below=title,column=3,span=1,rowspan=1}{%
    Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear?
  }

  \posterbox[adjusted title=Fit,valign=top,fit]
  {name=security,below=title,column=4,span=1,rowspan=1}{%
    Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello world, how are you my dear? Hello
  }

\end{tcbposter}
\end{document}

相关内容