XiangyunHuang / notesdown

:book: R 语言学习笔记:数据操作、统计图形和数值优化
https://xiangyunhuang.github.io/notesdown/
Other
74 stars 24 forks source link

自定义 LaTeX/CSS 各种 block #20

Closed XiangyunHuang closed 3 years ago

XiangyunHuang commented 4 years ago

https://github.com/anoopkcn/lazylatex/blob/master/lazylatex.sty

% Admonitions
\newtcolorbox{note}[1][\textbf{!} Note]{
    boxrule=0pt,
    width=\textwidth,
    colback=colNoticeBody,
    colbacktitle=colNoticeHead,
    outer arc=0pt,
    arc=0pt,
    left=10pt,
    right=10pt,
    top=10pt,
    bottom=10pt,
    toptitle=3pt,
    bottomtitle=3pt,
    fonttitle=\sffamily\large,
    title={#1},
}
\newtcolorbox{warning}[1][\textbf{!} Warning]{
    boxrule=0pt,
    width=\textwidth,
    colback=colWarningBody,
    colbacktitle=colWarningHead,
    outer arc=0pt,
    arc=0pt,
    left=10pt,
    right=10pt,
    top=10pt,
    bottom=10pt,
    toptitle=3pt,
    bottomtitle=3pt,
    fonttitle=\sffamily\large,
    title={#1}
}
\newtcolorbox{error}[1][\textbf{!} Error]{
    boxrule=0pt,
    width=\textwidth,
    colback=colErrorBody,
    colbacktitle=colErrorHead,
    outer arc=0pt,
    arc=0pt,
    left=10pt,
    right=10pt,
    top=10pt,
    bottom=10pt,
    toptitle=3pt,
    bottomtitle=3pt,
    fonttitle=\sffamily\large,
    title={#1}
}

参考

https://github.com/XiangyunHuang/ElegantBookdown/blob/master/preamble.tex

XiangyunHuang commented 4 years ago

crop宏包的用法

激光排照,打印输出

https://subaochen.github.io/ 宿宝臣的博客