Skip to content

Instantly share code, notes, and snippets.

@fmitha
Created August 7, 2021 09:04
Show Gist options
  • Save fmitha/fc185f9742e31be997d6ee602b889fa1 to your computer and use it in GitHub Desktop.
Save fmitha/fc185f9742e31be997d6ee602b889fa1 to your computer and use it in GitHub Desktop.
\documentclass[12pt]{scrartcl}
\usepackage{letltxmacro}
%\usepackage{quoting}
%\usepackage{tikz}
\usepackage[most]{tcolorbox}
\begin{document}
% Create new version of boxed quoting environment called
% 'bquoting'. Leave the original modified version of 'quoting' for
% backwards compatibility purposes. First, make a copy of the quoting
% environment called bquoting.
\LetLtxMacro\bquoting\quoting
\LetLtxMacro\endbquoting\endquoting
% \NewCommandCopy\bquoting\quoting
% \NewCommandCopy\endbquoting\endquoting
% Then modify it with \tcolorboxenvironment
\tcolorboxenvironment{bquoting}{
beforeafter skip=\baselineskip, boxrule=2pt, sharp corners, breakable, skin=enhanced, colback=white}
% \newtcolorbox{bquoting}{ beforeafter skip=\baselineskip, boxrule=2pt,
% sharp corners, breakable, skin=enhanced, colback=white}
% \LetLtxMacro\bquoting\quoting
% \LetLtxMacro\endbquoting\endquoting
% \tcolorboxenvironment{bquoting}{
% beforeafter skip=\baselineskip, boxrule=2pt, sharp corners, breakable, skin=enhanced, colback=white}
% \newtcolorbox{bquoting}{ beforeafter skip=\baselineskip, boxrule=2pt,
% sharp corners, breakable, skin=enhanced, colback=white}
% \begin{bquoting}
% FOO
% \end{bquoting}
% \begin{quoting}
% FOO
% \end{quoting}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment