![将 \newtcbox 中的字体类型更改为 \texttt](https://linux22.com/image/365458/%E5%B0%86%20%5Cnewtcbox%20%E4%B8%AD%E7%9A%84%E5%AD%97%E4%BD%93%E7%B1%BB%E5%9E%8B%E6%9B%B4%E6%94%B9%E4%B8%BA%20%5Ctexttt.png)
我想将字体类型更改为\texttt
LIB 框内部:
找到此代码这里:
\documentclass{article}
\usepackage[many]{tcolorbox}
\newtcbox{\mylib}{enhanced,nobeforeafter,tcbox raise base,boxrule=0.4pt,top=0mm,bottom=0mm,
right=0mm,left=4mm,arc=1pt,boxsep=2pt,before upper={\vphantom{dlg}},
colframe=green!50!black,coltext=green!25!black,colback=green!10!white,
overlay={\begin{tcbclipinterior}\fill[green!75!blue!50!white] (frame.south west)
rectangle node[text=white,font=\sffamily\bfseries\tiny,rotate=90] {LIB} ([xshift=4mm]frame.north west);\end{tcbclipinterior}}}
\begin{document}
\mylib{test}
\end{document}