`TikZ` 图中默认线宽

`TikZ` 图中默认线宽

我提供的图表描绘了一堆砖块。我有边框和砖块的颜色BurntOrange。我希望边框是命令默认线宽的三倍\draw。默认线宽是吗0.4pt

\documentclass{amsart}

\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}


\noindent \begin{minipage}{4.5in}
\noindent \raggedright{\textbf{5.) }The following figure depicts a stack of bricks. A bricklayer \\
intends to number every brick that is not in the bottom \\
row with the sum of the numbers on the two bricks \\
supporting it. What is the number that will be \\
put on the top brick?}
\end{minipage}
%
\hspace{-0.5cm}
%
\raisebox{0mm}[0mm][0mm]
{
\begin{tikzpicture}[baseline=(current bounding box.west)]


%A pile of bricks is drawn.
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (0,0) -- (0.75,0) -- (0.75,0.5) -- (0,0.5) -- cycle;
%\node at (0.375,0.25){18};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (0.75,0) -- (1.5,0) -- (1.5,0.5) -- (0.75,0.5) -- cycle;
\node at (1.125,0.25){7};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.5,0) -- (2.25,0) -- (2.25,0.5) -- (1.5,0.5) -- cycle;
%\node at (1.875,0.25){15};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (2.25,0) -- (3,0) -- (3,0.5) -- (2.25,0.5) -- cycle;
%\node at (2.625,0.25){17};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (3,0) -- (3.75,0) -- (3.75,0.5) -- (3,0.5) -- cycle;
\node at (3.375,0.25){3};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (0.375,0.5) -- (1.125,0.5) -- (1.125,1) -- (0.375,1) -- cycle;
\node at (0.75,0.75){25};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.125,0.5) -- (1.875,0.5) -- (1.875,1) -- (1.125,1) -- cycle;
%\node at (1.5,0.75){22};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.875,0.5) -- (2.625,0.5) -- (2.625,1) -- (1.875,1) -- cycle;
\node at (2.25,0.75){32};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (2.625,0.5) -- (3.375,0.5) -- (3.375,1) -- (2.625,1) -- cycle;
%\node at (3,0.75){20};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (0.75,1) -- (1.5,1) -- (1.5,1.5) -- (0.75,1.5) -- cycle;
%\node at (1.125,1.25){47};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.5,1) -- (2.25,1) -- (2.25,1.5) -- (1.5,1.5) -- cycle;
\node at (1.875,1.25){54};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (2.25,1) -- (3,1) -- (3,1.5) -- (2.25,1.5) -- cycle;
%\node at (2.625,1.25){52};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.125,1.5) -- (1.875,1.5) -- (1.875,2) -- (1.125,2) -- cycle;
%\node at (1.5,1.75){101};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.875,1.5) -- (2.625,1.5) -- (2.625,2) -- (1.875,2) -- cycle;
%\node at (2.25,1.75){106};
\draw[draw=BurntOrange, line width=1.2pt, fill=BurntOrange!75] (1.5,2) -- (2.25,2) -- (2.25,2.5) -- (1.5,2.5) -- cycle;
%\node at (1.875,2.25){207};


\end{tikzpicture}
}


\end{document}

答案1

是的。根据蒂克/PGF 手册(第 15.3.1 节图形参数:线宽、线端和线连接,第 174 页),默认线宽为 0.4 pt。

其他默认选项包括:

  • 超薄:0.1 pt
  • 非常薄:0.2 pt
  • 细(默认):0.4 pt
  • 半厚:0.6 pt
  • 厚度:0.8 pt
  • 非常厚:1.2 pt
  • 超粗:1.6 pt

相关内容