KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

한글의 베이스라인이 라틴문자와 다르기 때문에 tcbox raise base는 한글과 같이 있으면 좋은 결과를 가져오지 않을 때가 있습니다.

raise dimen을 계산해서 다음과 같이 하십시오.

\newlength\myraisedimen
\settodepth\myraisedimen{\Large y}
\addtolength\myraisedimen{.5pt}

\newtcolorbox{kmasec}{%
    colback=blue!50,
    colframe=blue!50,
    sharp corners= all,
    nobeforeafter, 
    %tcbox raise base, 
    tcbox raise=-\myraisedimen,
    halign=center, width=7mm,
    left=0mm,
    right=0mm,
    height=1.2em, 
    boxsep=0mm, 
    valign=center, 
    fontupper=\sffamily
}

 

KTUG 한국 텍 사용자 그룹