I'm using Org-Mode to write documents that I export to LaTeX. Org-Mode exports its quote blocks to:
\begin{quote}
...
\end{quote}
In order to color these quotes I'm using the following code (found here) in the preamble of some of my Org-Mode documents.
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER: \definecolor{grey}{rgb}{0.9,0.9,0.9}
#+LATEX_HEADER: \usepackage{framed}
#+LATEX_HEADER: \usepackage{quoting}
#+LATEX_HEADER: \colorlet{shadecolor}{grey}
#+LATEX_HEADER:\newenvironment{shadedquotation}
#+LATEX_HEADER: {\begin{shaded*}
#+LATEX_HEADER: \quoting[leftmargin=0pt, vskip=0pt]}
#+LATEX_HEADER: {\endquoting
#+LATEX_HEADER: \end{shaded*}}
The issue that I have is that I have to replace {quote} by {shadedquotation} each time I do an export.
In order to avoid this, I thought of changing LaTeX quote behavior (so it would behave as shadedquotation) by adding some code in the preamble of the exported LaTeX document.
How could I achieve this?
shadedquotationin the first place? You could just redefinequote– daleif Feb 27 '23 at 16:55