没有标签的小网格

没有标签的小网格

如何从用于数学测试​​的小网格中删除所有标签?我创建了网格,\graphpaper但得到了我不想要的坐标标签。

答案1

使用 TikZ 可以轻松完成此操作:

\documentclass{article}

\usepackage{tikz}

\begin{document}
Simple grid:

\medskip
\tikz\draw [thin] (0,0) grid (5,5);

More complex grid:

\medskip
\begin{tikzpicture}
    \draw [thin, step=0.1, gray] (0,0) grid (5,5);
    \draw [thick, gray] (0,0) grid (5,5);
\end{tikzpicture}
\end{document}

网格

答案2

这个古老的graphpap软件包没有提供执行该操作的命令,但是编写自己的命令来执行您想要的操作并不难。

\documentclass[a4paper]{article}
\usepackage{graphpap}
\makeatletter
\newcommand\graphpapern[1][10]{\leavevmode\@gridn{#1}}
\def\@gridn#1(#2,#3)#4{\@grid@n{#1}{#2}{#3}(}
\def\@grid@n#1#2#3(#4,#5){%
\@tempcnta=#4\relax
\divide\@tempcnta#1\relax
\advance\@tempcnta1\relax
{\thinlines\@nonumvgrid(#2,#3){#1}{\@tempcnta}{#5}
\@tempcnta#4\relax
\divide\@tempcnta5\relax
\divide\@tempcnta#1\relax
\advance\@tempcnta1\relax
\@tempcntb5\relax
\multiply\@tempcntb#1\relax
\thicklines\@nonumvgrid(#2,#3){\@tempcntb}{\@tempcnta}{#5}
\@tempcnta#5\relax
\divide\@tempcnta #1\relax
\advance\@tempcnta1\relax
\thinlines\@nonumhgrid(#2,#3){#1}{\@tempcnta}{#4}
\@tempcnta#5\relax
\divide\@tempcnta5\relax
\divide\@tempcnta#1\relax
\advance\@tempcnta1\relax
\thicklines\@nonumhgrid(#2,#3){\@tempcntb}{\@tempcnta}{#4}}%
\ignorespaces}
\makeatother
\begin{document}

\graphpapern[10](0,0)(200,200)

\end{document}

网格

相关内容