重新定义后,如何 return 到降价报价的初始定义?该定义未知或可能因口味而异
How to return to the initial definition of quote on markdown, after having redefined it? That definition is unknown or can vary depending on flavors
在 markdown 中重新定义 quote
以创建具有背景颜色和边框的漂亮块引用后,我如何 return 到以前的 quote
定义,
这是未知的,因为它是markdown首先初始化它,我不知道如何,用什么?
这里是显示我遇到的问题的 pdf 显示:我决定在 blockquotes 上放置一个带边框的绿色背景,然后我无法完全删除这个背景和边框我决定...
我没有办法确保回到以前盛行的状态。
pdf 跟在生成它的 markdown 文件之后。
---
header-includes:
- \usepackage{tcolorbox}
- \usepackage{fvextra}
geometry: margin=2cm
fontsize: 12pt
output: pdf
classoption: fleqn
---
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,breakanywhere,breaksymbol=,breakanywheresymbolpre=,commandchars=\\{\}}
\newcommand{\cadreAvantage}{\renewtcolorbox{quote}{colback=green!5!white,arc=0pt,outer arc=0pt,colframe=green!75!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreAttention}{\renewtcolorbox{quote}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreTransparent}{\renewtcolorbox{quote}{colback=white!5!white,arc=0pt,outer arc=0pt,boxrule=0pt,lowerbox=invisible,code={\tcbset{enlarge left by=1cm}}}}
I begin a text, and then do a blockquote `> ....`
> Here a normal blockquote: I don't know how _markdown_ defines it
> it's the classical one, without border, nothing: only a left padding
Then, I wish to put some text under a green blockquote
\cadreAvantage
> This blockquote will be more visible
> Nice green, it is really attractive
But how to go back to the previous blockquote shape, the one that comes with markdown?
> If a do another blockquote without changing anything, its still green
Defining `quote` to nothing with a `\renewtcolorbox{quote}{}` doesn't return to normal:
> I have cancelled `quote` definition here
> It's grey...
I have a workaround : defining a transparent blockquote
\cadreTransparent
> But it still have borders, I cannot remove them,
> and its not really what previously existed.
How may I rollback `quote` to its previous definition?
considering that I don't really know what it was, only markdown knows how it initialized `quote` (it might even depend even on your operating system, distro, environment flavor...)
so that they will look as if I'd never changed them...
\cadreAttention
> Until I decide doing so again?
I believe that I don't really need to know what this initial definition is.
I think (but you might have a better idea) that what I need is to be able to save it once, and to restore it each time its needed.
So that I will have command in my markdown like:
/saveQuote
abc
/cadreAvantage
> def
/restoreQuote
jkl
/cadreAttention
> mno
/restoreQuote
> this one is the normal blockquote
(pdf 文件由 pandoc -f markdown-implicit_figures test.md -o test.pdf
命令创建)。
您可以将修改限制在文档的一部分,而不是切换回原始定义,如果您将它们放在一个组中:
---
output:
pdf_document:
keep_tex: true
header-includes:
- \usepackage{tcolorbox}
- \usepackage{fvextra}
geometry: margin=2cm
fontsize: 12pt
classoption: fleqn
---
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,breakanywhere,breaksymbol=,breakanywheresymbolpre=,commandchars=\\{\}}
\newcommand{\cadreAvantage}{\renewtcolorbox{quote}{colback=green!5!white,arc=0pt,outer arc=0pt,colframe=green!75!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreAttention}{\renewtcolorbox{quote}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreTransparent}{\renewtcolorbox{quote}{colback=white!5!white,arc=0pt,outer arc=0pt,boxrule=0pt,lowerbox=invisible,code={\tcbset{enlarge left by=1cm}}}}
I begin a text, and then do a blockquote `> ....`
> Here a normal blockquote: I don't know how _markdown_ defines it
> it's the classical one, without border, nothing: only a left padding
Then, I wish to put some text under a green blockquote
\begingroup
\cadreAvantage
> This blockquote will be more visible
> Nice green, it is really attractive
But how to go back to the previous blockquote shape, the one that comes with markdown?
> If a do another blockquote without changing anything, its still green
Defining `quote` to nothing with a `\renewtcolorbox{quote}{}` doesn't return to normal:
> I have cancelled `quote` definition here
> It's grey...
I have a workaround : defining a transparent blockquote
\endgroup
> But it still have borders, I cannot remove them,
> and its not really what previously existed.
How may I rollback `quote` to its previous definition?
considering that I don't really know what it was, only markdown knows how it initialized `quote` (it might even depend even on your operating system, distro, environment flavor...)
so that they will look as if I'd never changed them...
\cadreAttention
> Until I decide doing so again?
I believe that I don't really need to know what this initial definition is.
I think (but you might have a better idea) that what I need is to be able to save it once, and to restore it each time its needed.
So that I will have command in my markdown like:
/saveQuote
abc
/cadreAvantage
> def
/restoreQuote
jkl
/cadreAttention
> mno
/restoreQuote
> this one is the normal blockquote
在 markdown 中重新定义 quote
以创建具有背景颜色和边框的漂亮块引用后,我如何 return 到以前的 quote
定义,
这是未知的,因为它是markdown首先初始化它,我不知道如何,用什么?
这里是显示我遇到的问题的 pdf 显示:我决定在 blockquotes 上放置一个带边框的绿色背景,然后我无法完全删除这个背景和边框我决定...
我没有办法确保回到以前盛行的状态。
pdf 跟在生成它的 markdown 文件之后。
---
header-includes:
- \usepackage{tcolorbox}
- \usepackage{fvextra}
geometry: margin=2cm
fontsize: 12pt
output: pdf
classoption: fleqn
---
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,breakanywhere,breaksymbol=,breakanywheresymbolpre=,commandchars=\\{\}}
\newcommand{\cadreAvantage}{\renewtcolorbox{quote}{colback=green!5!white,arc=0pt,outer arc=0pt,colframe=green!75!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreAttention}{\renewtcolorbox{quote}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreTransparent}{\renewtcolorbox{quote}{colback=white!5!white,arc=0pt,outer arc=0pt,boxrule=0pt,lowerbox=invisible,code={\tcbset{enlarge left by=1cm}}}}
I begin a text, and then do a blockquote `> ....`
> Here a normal blockquote: I don't know how _markdown_ defines it
> it's the classical one, without border, nothing: only a left padding
Then, I wish to put some text under a green blockquote
\cadreAvantage
> This blockquote will be more visible
> Nice green, it is really attractive
But how to go back to the previous blockquote shape, the one that comes with markdown?
> If a do another blockquote without changing anything, its still green
Defining `quote` to nothing with a `\renewtcolorbox{quote}{}` doesn't return to normal:
> I have cancelled `quote` definition here
> It's grey...
I have a workaround : defining a transparent blockquote
\cadreTransparent
> But it still have borders, I cannot remove them,
> and its not really what previously existed.
How may I rollback `quote` to its previous definition?
considering that I don't really know what it was, only markdown knows how it initialized `quote` (it might even depend even on your operating system, distro, environment flavor...)
so that they will look as if I'd never changed them...
\cadreAttention
> Until I decide doing so again?
I believe that I don't really need to know what this initial definition is.
I think (but you might have a better idea) that what I need is to be able to save it once, and to restore it each time its needed.
So that I will have command in my markdown like:
/saveQuote
abc
/cadreAvantage
> def
/restoreQuote
jkl
/cadreAttention
> mno
/restoreQuote
> this one is the normal blockquote
(pdf 文件由 pandoc -f markdown-implicit_figures test.md -o test.pdf
命令创建)。
您可以将修改限制在文档的一部分,而不是切换回原始定义,如果您将它们放在一个组中:
---
output:
pdf_document:
keep_tex: true
header-includes:
- \usepackage{tcolorbox}
- \usepackage{fvextra}
geometry: margin=2cm
fontsize: 12pt
classoption: fleqn
---
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,breakanywhere,breaksymbol=,breakanywheresymbolpre=,commandchars=\\{\}}
\newcommand{\cadreAvantage}{\renewtcolorbox{quote}{colback=green!5!white,arc=0pt,outer arc=0pt,colframe=green!75!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreAttention}{\renewtcolorbox{quote}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black,code={\tcbset{enlarge left by=1cm}}}}
\newcommand{\cadreTransparent}{\renewtcolorbox{quote}{colback=white!5!white,arc=0pt,outer arc=0pt,boxrule=0pt,lowerbox=invisible,code={\tcbset{enlarge left by=1cm}}}}
I begin a text, and then do a blockquote `> ....`
> Here a normal blockquote: I don't know how _markdown_ defines it
> it's the classical one, without border, nothing: only a left padding
Then, I wish to put some text under a green blockquote
\begingroup
\cadreAvantage
> This blockquote will be more visible
> Nice green, it is really attractive
But how to go back to the previous blockquote shape, the one that comes with markdown?
> If a do another blockquote without changing anything, its still green
Defining `quote` to nothing with a `\renewtcolorbox{quote}{}` doesn't return to normal:
> I have cancelled `quote` definition here
> It's grey...
I have a workaround : defining a transparent blockquote
\endgroup
> But it still have borders, I cannot remove them,
> and its not really what previously existed.
How may I rollback `quote` to its previous definition?
considering that I don't really know what it was, only markdown knows how it initialized `quote` (it might even depend even on your operating system, distro, environment flavor...)
so that they will look as if I'd never changed them...
\cadreAttention
> Until I decide doing so again?
I believe that I don't really need to know what this initial definition is.
I think (but you might have a better idea) that what I need is to be able to save it once, and to restore it each time its needed.
So that I will have command in my markdown like:
/saveQuote
abc
/cadreAvantage
> def
/restoreQuote
jkl
/cadreAttention
> mno
/restoreQuote
> this one is the normal blockquote