在我的颜色框中添加大引号

在我的颜色框中添加大引号

我有这个代码(MWE):

\documentclass{article}
\usepackage{tikz,lmodern}
\usepackage[most]{tcolorbox}

\newtcbtheorem{theo}%
  {Definition}{fonttitle=\bfseries\upshape, 
     arc=0mm, colback=blue!5!white,colframe=blue!75!black}{theorem}

\begin{document}

\begin{theo}{Translationally ordered structure}{transtructure}
``A translationally ordered structure is a structure whose scattering amplitude [structure factor] is given by a discrete sum of Bragg peaks'' 
\end{theo}

\end{document}

产生如下结果:

在此处输入图片描述

我想补充一下矢量图形大引号使我的框看起来像这样:

在此处输入图片描述

我该怎么做?

答案1

像这样?

\documentclass{article}
\usepackage{tikz,lmodern}
\usepackage[most]{tcolorbox}

\newtcbtheorem{theo}%
  {Definition}{fonttitle=\bfseries\upshape, 
     arc=0mm,enhanced, 
     underlay={%
        \begin{tcbclipinterior}
            \fill [blue!5!white]
              (interior.south west) rectangle (interior.north east);
             \node[opacity=0.4,scale=4,anchor=north west,inner sep=0.2pt,
             font=\bfseries] at 
             (interior.north west) {``};
             \node[opacity=0.4,scale=4,anchor=south east,inner sep=0.2pt,
             font=\bfseries] at 
             ([yshift=-3ex]interior.south east) {''};
        \end{tcbclipinterior}},% colback=blue!5!white,
        before upper=\hspace*{1em},after upper=\hspace*{1em},
        colframe=blue!75!black}{theorem}

\begin{document}

\begin{theo}{Translationally ordered structure}{transtructure}
A translationally ordered structure is a structure whose scattering amplitude
[structure factor] is given by a discrete sum of Bragg peaks.
\end{theo}

\end{document}

在此处输入图片描述

当然,你可以修改它。例如

\documentclass{article}
\usepackage{tikz,lmodern}
\usepackage[most]{tcolorbox}

\newtcbtheorem{theo}%
  {Definition}{fonttitle=\bfseries\upshape, 
     arc=0mm,enhanced, 
     underlay={%
        \begin{tcbclipinterior}
            \fill [blue!5!white]
              (interior.south west) rectangle (interior.north east);
             \node[opacity=0.3,xscale=5,yscale=4,anchor=north west,inner sep=0.1pt,
             font=\bfseries] at 
             (interior.north west) {`\hspace*{-0.1em}`};
             \node[opacity=0.3,xscale=5,yscale=4,anchor=south east,inner sep=0.1pt,
             font=\bfseries] at 
             ([yshift=-3ex]interior.south east) {'\hspace*{-0.1em}'};
        \end{tcbclipinterior}},% colback=blue!5!white,
        before upper=\hspace*{1em},after upper=\hspace*{1em},
        colframe=blue!75!black}{theorem}

\begin{document}

\begin{theo}{Translationally ordered structure}{transtructure}
A translationally ordered structure is a structure whose scattering amplitude
[structure factor] is given by a discrete sum of Bragg peaks.
\end{theo}

\end{document}

在此处输入图片描述

而且您可以添加任何您想要的图形来代替文本节点。我对您建议的链接有疑问,因为我不知道我是否被合法允许使用该链接中的图形。

相关内容