创建点状纸 pdf

创建点状纸 pdf

我想要这样的模板 http://dottedpaper.com/download/dotted.pdf

打印出来。但我在网上找到的所有图片都有水印,所以我想自己制作。可以用 LaTeX 制作吗?我会使用哪些软件包?我找到了一个graphpap可以制作方格纸的软件包。可以修改它来制作点吗?

答案1

您可以使用background包(\Step给出网格的大小):

\documentclass{article}
\usepackage{background}

\def\Step{1cm}
\tikzset{dotted lines/.style={black, loosely dotted,  thick}}
\backgroundsetup{
scale=1,
angle=0,
position={current page.north west},
contents={
\begin{tikzpicture}[remember picture,overlay]
\draw[dotted lines,step=\Step,help lines]
  (current page.south west) grid  (current page.north east);
  \end{tikzpicture}
  }
}
\begin{document}

\mbox{}
\clearpage
\mbox

\end{document}

在此处输入图片描述

对于包含多页的文档,绘制网格可能会耗费太多资源;一种选择是先创建网格,然后使用包background按照标准放置它\includegraphics

\documentclass{article}
\usepackage{background}
\usepackage{graphicx}

\backgroundsetup{
scale=1,
angle=0,
color=black,
contents={\includegraphics{grid}}
}
\begin{document}

\mbox{}
\clearpage
\mbox

\end{document}

使用的grid图像由

\documentclass{article}
\usepackage[margin=0pt]{geometry}
\usepackage{graphicx}

\def\Step{1cm}
\def\MyDot{\scalebox{1.75}{.}}

\def\Dotbox{\hbox to \Step{\smash{\MyDot}\hfil}}
\def\DotPattern{%
  \hbox to \paperwidth{\leaders\Dotbox\hfill}\kern-.4mm
  \vbox to \Step{\offinterlineskip\leaders\hbox to \paperwidth{\leaders\Dotbox\hfill}\vfill}
  \nointerlineskip\hbox to \paperwidth{\leaders\Dotbox\hfill}%
}
\def\DotGrid{\par\leaders\vbox{\DotPattern}\vfill}

\pagestyle{empty}
\begin{document}
\mbox{}\DotGrid
\end{document}

在此处输入图片描述

\Step控制“网格”的大小,并改变缩放因子来\MyDot控制所用点的尺寸。

答案2

另一个tikz版本带有background。使用boxes 可以解决速度问题。

\documentclass[a4paper]{article}
\usepackage{background}
\usetikzlibrary{decorations.markings,calc}

\def\Step{0.5}  %% separation between dots
\def\Size{1.5pt}    %% radius of the dot
\def\Toty{60}     %% adjust
\def\Totx{50}     %% adjust


\newsavebox{\mybox}
\sbox{\mybox}{%
\begin{tikzpicture}[remember picture]
    \foreach \y in {1,2,...,\Toty}{
        \foreach \x in {1,2,...,\Totx}
          \draw[fill=black,opacity=0.3,shift={(\Step*\x cm,\Step*\y cm)}] (0,) circle[radius=\Size];
    }%
\end{tikzpicture}
}%

\backgroundsetup{
scale=1,
angle=0,
position={current page.center},
contents={%
\begin{tikzpicture}[remember picture,overlay]
  \node at (current page.center) {\usebox\mybox};
\end{tikzpicture}%
  }%
}%
\begin{document}
\mbox{}
\clearpage
\mbox{}
\end{document}

在此处输入图片描述

这比以前慢一点,并且使用decorations:

\documentclass[a4paper]{article}
\usepackage{background}
\usetikzlibrary{decorations.markings,calc}

\def\Step{0.02}  %% vertical separation between dots
\def\Size{1pt}    %% radius of the dot
\def\Toty{50}     %% inverse of \Step i.e., 1/\Step


\tikzset{
  decoration={%
    markings,
    mark=between positions \Step and 1 step \Step with {
      \draw[fill=black,opacity=0.3] (0,0) circle[radius=\Size];
    },
  }
}


\newsavebox{\mybox}
\sbox{\mybox}{%
\begin{tikzpicture}[remember picture]
    \foreach \y in {1,2,...,\Toty}{
    \path[decorate] ($(current page.north west)!\y*\Step!(current page.south west)$) -- ($(current page.north east)!\y*\Step!(current page.south east)$);
    }%
\end{tikzpicture}
}%

\backgroundsetup{
scale=1,
angle=0,
position={current page.north west},
contents={%
\begin{tikzpicture}[remember picture,overlay]
  \node at (current page.center) {\usebox\mybox};
\end{tikzpicture}%
  }%
}%
\begin{document}
\mbox{}
\clearpage
\mbox{}
\end{document}

答案3

\documentclass{article}
\usepackage{multido}
\usepackage[margin=0pt]{geometry}
\unitlength=1mm
\begin{document}
\vbox to 0pt{\leavevmode\multido{\iC=0+5}{50}{\multido{\iR=0+5}{55}{\put(\iC,\iR){\circle*{0.1}}}}}    
\end{document}

在此处输入图片描述

答案4

\documentclass{memoir}
\pagenumbering{gobble}
\usepackage[letterpaper,hmargin={0mm,0mm},vmargin={4mm,3mm}]{geometry}  
\usepackage{tikz}
\begin{document}
    \centering
    \begin{tikzpicture}[scale=.5]
    \foreach \x in {0,...,41}
    \foreach \y in {0,...,54}
    {
        \fill[gray!75] (\x,\y) circle (0.06cm);
    }       
    \end{tikzpicture}
\end{document}

相关内容