default •

试着用了一下 LaTeX。

LaTeX 太好玩了,用 chemfig 画了好多官能团的图(唐突

头一次使 LaTeX,瞎jb写的,大佬憋喷(

\documentclass{article}
\usepackage{chemfig}
\usepackage{mhchem}
\usepackage[top=1.25cm, bottom=1.25cm, left=1cm, right=1cm]{geometry}
\usepackage{longtable,booktabs,array}
\begin{document}

\setlength\belowrulesep{3ex}
\setlength\aboverulesep{2ex}

  \begin{longtable}{cc}

    \toprule
    
    \mbox{Structure} & \mbox{Properties} \\ \midrule
    
    \chemname{
      \chemfig{
        OH(-[4]R)
      }
    }{Hydroxyl} & \mbox{\parbox{10cm}{- Polar.\\- Can H-bond with \ce{H2O}.\\- Linkage to other molecules.}}  \\ \midrule

    \chemname{
      \chemfig{
        R(-[0]C(=[1]O)(-[7]H))
      }
    }{Aldehyde} & \mbox{\parbox{10cm}{- Polar.\\- Very reactive.\\- Energy reactions.}} \\ \midrule

    \chemname{
      \chemfig{
        C(-[4]R)(=[2]O)(-[0]R')
      }
    }{Keto} & \mbox{\parbox{10cm}{- Polar.\\- Very reactive.\\- Energy reactions.}} \\ \midrule

    \chemname{
      \chemfig{
        C(-[4]R)(-[0]H)(-[2]H)(-[6]H)
      }
    }{Methyl} & \mbox{\parbox{10cm}{- Non-polar.\\- Important for interactions with other molecules.}} \\ \midrule

    \chemname{
      \chemfig{
        C(-[4]R)(=[1]O)(-[7]O^{-})
      }
    }{Carboxyl} & \mbox{\parbox{10cm}{- Always acidic.\\- At pH = 7.2, \ce{COO-} as \ce{H+} donates proton. (Negatively charged.)\\- Undergo condensation reaction.}} \\ \midrule

    \chemname{
      \chemfig{
        P(-[4]O(-[4]R))(-[0]O^{-})(=[2]O)(-[6]O^{-})
      }
    }{Phosphate} & \mbox{\parbox{10cm}{- Negatively charged.\\- Polar.\\- Acidic.\\- Metabolism. Energy conversion reactions.}} \\ \midrule

    \chemname{
      \chemfig{
        N(-[4]R)(-[0]H^{+})(-[1]H)(-[7]H)
      }
    }{Amino} & \mbox{\parbox{10cm}{- At pH $<$ 7, charged \ce{NH3+}, basic.\\- At pH $>$ 9, \ce{NH2}}} \\ \midrule

    \chemname{
      \chemfig{
        R(-[0]*6(-=-=-=))
      }
    }{Phenyl} & \mbox{\parbox{10cm}{- Hydrophobic.\\- Very stable.}} \\ \midrule

    \chemname{
      \chemfig{
        SH(-[4]R)
      }
    }{Sulfhydryl} & \mbox{\parbox{10cm}{- Two \ce{R-SH} groups can form a disulfide bridge.}} \\ \bottomrule
  
  \end{longtable}

\end{document}

TeXworks 效果图

—--

update:本主题其实支持 MathJax,但是 MathJax 不支持 chemfig,所以 chemfig 生成的东西没法用 HTML 呈现(

以及本主题真的支持 MathJax(草

$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$

💫 Comment 

已有 2 条评论

  1. AR
    AR
    2020年02月13日 • 回复

    您可以试试给博客装上latex support

    1. metheno
      metheno
      2020年02月13日 • 回复

      我主题其实写MathJax了(