在这篇文章中如何绘制富勒烯我问如何画富勒烯。这是一种复杂的化学结构,@GRSousaJr 很好地回答了这个问题(https://tex.stackexchange.com/users/184980/grsousajr)
但是,我需要在文本中调整它的大小,并且在尝试改变粘合长度后出现了混乱。
我的问题是,是否有可能有一个代码可以调整如此复杂的化学结构的大小?
我尝试的代码如下。抱歉,这是一个非常愚蠢的问题,但我对chemfig
任何其他软件包都没有经验。
\documentclass{article}
\usepackage{chemfig}
\setchemfig{
bond offset = 0.75pt,
double bond sep = 2.5pt,
bond style = {line width = 0.75pt}
}
\begin{document}
\definesubmol{fragment}{
-[::126]-[::-54](=_#(2pt,2pt)[::180])
-[::-70](-[::-56.2,1.07]=^#(2pt,2pt)[::180,1.07])
-[::110,0.6](-[::-148,0.60](=^[::180,0.35])-[::-18,1.1])
-[::50,1.1](-[::18,0.60]=_[::180,0.35])
-[::50,0.6]
-[::110]
}
\chemfig{
[,0.5](-[::+18,0.85,,,draw=none]!{fragment})
(-[::+90,0.85,,,draw=none]!{fragment})
(-[::162,0.85,,,draw=none]!{fragment})
(-[::234,0.85,,,draw=none]!{fragment})
(-[::306,0.85,,,draw=none]!{fragment})
}
\end{document}
答案1
轻松扩展\scalebox
:
\documentclass{article}
\usepackage{chemfig}
\usepackage{graphicx}
\setchemfig{
bond offset = 0.75pt,
double bond sep = 2.5pt,
bond style = {line width = 0.75pt}
}
\begin{document}
\definesubmol{fragment}{
-[::126]-[::-54](=_#(2pt,2pt)[::180])
-[::-70](-[::-56.2,1.07]=^#(2pt,2pt)[::180,1.07])
-[::110,0.6](-[::-148,0.60](=^[::180,0.35])-[::-18,1.1])
-[::50,1.1](-[::18,0.60]=_[::180,0.35])
-[::50,0.6]
-[::110]
}
\chemfig{
(-[::+18,0.85,,,draw=none]!{fragment})
(-[::+90,0.85,,,draw=none]!{fragment})
(-[::162,0.85,,,draw=none]!{fragment})
(-[::234,0.85,,,draw=none]!{fragment})
(-[::306,0.85,,,draw=none]!{fragment})
}
\scalebox{0.5}{
\chemfig{
(-[::+18,0.85,,,draw=none]!{fragment})
(-[::+90,0.85,,,draw=none]!{fragment})
(-[::162,0.85,,,draw=none]!{fragment})
(-[::234,0.85,,,draw=none]!{fragment})
(-[::306,0.85,,,draw=none]!{fragment})
}
}
\scalebox{0.1}{
\chemfig{
(-[::+18,0.85,,,draw=none]!{fragment})
(-[::+90,0.85,,,draw=none]!{fragment})
(-[::162,0.85,,,draw=none]!{fragment})
(-[::234,0.85,,,draw=none]!{fragment})
(-[::306,0.85,,,draw=none]!{fragment})
}
}
\end{document}
答案2
您可以使用atom sep
参数。如有必要,可以使用进行微调double bond sep
。
\documentclass{article}
\usepackage{chemfig}
\pagestyle{empty}
\setchemfig{
bond offset = 0.75pt,
double bond sep = 2.5pt,
bond style = {line width = 0.75pt}
}
\begin{document}
\definesubmol{fragment}{
-[::126]-[::-54](=_#(2pt,2pt)[::180])
-[::-70](-[::-56.2,1.07]=^#(2pt,2pt)[::180,1.07])
-[::110,0.6](-[::-148,0.60](=^[::180,0.35])-[::-18,1.1])
-[::50,1.1](-[::18,0.60]=_[::180,0.35])
-[::50,0.6]
-[::110]
}
\definesubmol{fullerene}{
(-[::+18,0.85,,,draw=none]!{fragment})
(-[::+90,0.85,,,draw=none]!{fragment})
(-[::162,0.85,,,draw=none]!{fragment})
(-[::234,0.85,,,draw=none]!{fragment})
(-[::306,0.85,,,draw=none]!{fragment})
}
% Small-sized
\setchemfig{atom sep=15pt}\chemfig{!{fullerene}}\quad
% Medium-sized
\setchemfig{atom sep=20pt}\chemfig{!{fullerene}}\quad
% Big-sized
\setchemfig{atom sep=25pt}\chemfig{!{fullerene}}
\end{document}