魔方,粗线

魔方,粗线

我正在使用 \ usepackage {rubikcube},但是立方体网格线很粗,如何使其变细。

非常感谢您的回答

\documentclass[a4paper,12pt,oneside]{article}
\usepackage[a4paper,lmargin=1.5cm,rmargin=1.5cm,top=1.5cm,
 bottom=1.5cm ,headheight=16pt]{geometry}

 \usepackage{rubikcube}
 %\usepackage{rubikrotation,rubikpatterns,rubiktwocube}% Related packages
 % Colores
 \definecolor{A}{RGB}{255,255,0}
 \definecolor{V}{RGB}{0,255,0}
 \definecolor{C}{RGB}{0,0,255}
 \definecolor{N}{RGB}{255,165,0}
 \definecolor{Bl}{RGB}{255,255,255}
 \definecolor{R}{RGB}{255,0,0}
 \definecolor{X}{RGB}{192,192,192}
 \definecolor{_}{RGB}{65,65,65}
 \begin{document}
 \RubikCubeGreyAll
 \RubikFaceUp WWW
  WYW
  WWW
  \RubikFaceFront WYW XXXXXX
  \RubikFaceRight YYY XXXXXX
  \RubikFaceBack  WYW XXXXXX
  \RubikFaceLeft  YYY XXXXXX
  \ShowCube{1.5cm}{0.3}{\DrawRubikFaceUpSide}

   %.......
  \RubikCubeGreyAll
  \RubikFaceUp WWW
   WYW
   WWW      
  \RubikFaceFront YYY XXXXXX
  \RubikFaceRight WYY XXXXXX
  \RubikFaceBack  WYW XXXXXX
  \RubikFaceLeft  YYW XXXXXX
  \RubikSidebarWidth{0.15}
  \RubikSidebarLength{1}
  \RubikSidebarSep{0.2}
  \ShowCube{1.5cm}{0.3}{\DrawRubikFaceUpSide}

  \end{document}

图像

答案1

据我所知,线条宽度在样式文件中被硬编码为ultra thick。这意味着您可以通过重新定义 来调整线条宽度ultra thick。您很可能不想全局执行此操作,而是在组中执行此操作,因此\begingroup\endgroup

\documentclass[a4paper,12pt,oneside]{article}
\usepackage[a4paper,lmargin=1.5cm,rmargin=1.5cm,top=1.5cm,
 bottom=1.5cm ,headheight=16pt]{geometry}

\usepackage{rubikcube}
%\usepackage{rubikrotation,rubikpatterns,rubiktwocube}% Related packages
% Colores
\definecolor{A}{RGB}{255,255,0}
\definecolor{V}{RGB}{0,255,0}
\definecolor{C}{RGB}{0,0,255}
\definecolor{N}{RGB}{255,165,0}
\definecolor{Bl}{RGB}{255,255,255}
\definecolor{R}{RGB}{255,0,0}
\definecolor{X}{RGB}{192,192,192}
\definecolor{_}{RGB}{65,65,65}
\begin{document}
 \RubikCubeGreyAll
 \RubikFaceUp WWW
 WYW
 WWW
 \RubikFaceFront WYW XXXXXX
 \RubikFaceRight YYY XXXXXX
 \RubikFaceBack  WYW XXXXXX
 \RubikFaceLeft  YYY XXXXXX
 \begingroup
 \tikzset{ultra thick/.style={line width=0.6pt}}%
 \ShowCube{1.5cm}{0.3}{\DrawRubikFaceUpSide}
 \endgroup

  %.......
 \RubikCubeGreyAll
 \RubikFaceUp WWW
  WYW
  WWW      
 \RubikFaceFront YYY XXXXXX
 \RubikFaceRight WYY XXXXXX
 \RubikFaceBack  WYW XXXXXX
 \RubikFaceLeft  YYW XXXXXX
 \RubikSidebarWidth{0.15}
 \RubikSidebarLength{1}
 \RubikSidebarSep{0.2}
 \begingroup
 \tikzset{ultra thick/.style={line width=0.8pt}}%
 \ShowCube{1.5cm}{0.3}{\DrawRubikFaceUpSide}
 \endgroup
\end{document}

在此处输入图片描述

上面的例子中线宽设置为0.6pt,下面的例子中设置为0.8pt,您可以随意调整这些值。

相关内容