在 Bclogo Box 中添加(或调整)边距

在 Bclogo Box 中添加(或调整)边距

考虑以下代码

\documentclass[article]{memoir}
\usepackage{xcolor}
\usepackage[tikz]{bclogo}

\begin{document}

\begin{center} \hskip 8pt 
\begin{bclogo}[couleur=red!10,  %couleur=blue!14, %couleur=blue!20, 
epBord=2.5, arrondi=0, %logo=\bcplume, %\bclampe,marge=8, 
logo= ,
%ombre=true, blur, couleurBord=blue!14, %couleurBord=blue!60,
barre=none, %barre=snake, tailleOndu=1.5
]
{\vskip -8pt {\color{black} ``The mathematician lives long and lives young; the wings of his soul do not early drop off, nor do its pores become clogged with the earthy particles blown from the dusty highways of vulgar life.'' \vskip -3pt \hfill \textit{---J. J. Sylvester}\vspace*{-10pt}}}
\end{bclogo}
\end{center}
\end{document}

产生输出

在此处输入图片描述

问题:如何添加左右边距,以便文本不会一直延伸到框的左侧和右侧边界?即,使其更美观。

答案1

看一下我的例子:

\documentclass[article]{memoir}
\usepackage{xcolor}
\usepackage[tikz]{bclogo}

\begin{document}
\begin{center} 
    \hskip 8pt 

\begin{bclogo}[
couleur=red!10,         % background color
marge=20,               % margin in pt
epBord=2.5,             % border width
arrondi=0,              % corner radius
ombre=true,             % shadow
blur,                   % blur
couleurBord=blue!14,    % border color
logo=,                  % no built-in logo
barre=snake,            % border style
tailleOndu=1.5          % border amplitude (zigzag)
]
{\vskip -8pt {\color{black} ``The mathematician lives long and lives young; the wings of his soul do not early drop off, nor do its pores become clogged with the earthy particles blown from the dusty highways of vulgar life.'' \vskip -3pt \hfill \textit{---J. J. Sylvester}\vspace*{-10pt}}}
\end{bclogo}
\end{center}
\end{document}

我已经处理了您的大部分初始值,并在可能的情况下对其进行了注释。您可能可以让其余的值正常工作。

在此处输入图片描述

(此外,我对发布一个不仅具有法语文档,而且还使用法语参数的软件包是否明智持保留意见。但这显然不是你的错……)

相关内容