Created
June 27, 2016 02:13
-
-
Save yumminhuang/b8c3e38356cba5919b1078b6e90156de to your computer and use it in GitHub Desktop.
TikZ制作稿纸、田字格、米字格、作文纸
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{ctexart} | |
\usepackage[a4paper,hmargin={4cm},vmargin={4cm}]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%书法用纸效果:田字格(10*14)、米字格 | |
\noindent | |
\begin{tikzpicture}[scale=1.3] | |
\draw[dash pattern=on 2.5pt off 2.5pt](0,0)grid[step=0.5](10,14); | |
\draw[thick](0,0)grid(10,14); | |
\draw[ultra thick](0,0)rectangle(10,14); | |
\draw (5,15)node{\bf\scalebox{2}[2.5]{硬笔书法比赛用纸}}; | |
\end{tikzpicture} | |
\end{document} | |
\documentclass{ctexart} | |
\usepackage[a4paper,hmargin={2cm},vmargin={2.2cm}]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%书法用纸效果:田字格(12*18)、米字格 | |
% \noindent | |
\begin{tikzpicture}[scale=1.3] | |
\draw[dash pattern=on 2.5pt off 2.5pt](0,0)grid[step=0.5](12,18); | |
\draw[thick](0,0)grid(12,18); | |
\draw[ultra thick](0,0)rectangle(12,18); | |
\draw (6,19)node{\bf\scalebox{2}[2.5]{硬笔书法比赛用纸}}; | |
\end{tikzpicture} | |
\end{document} | |
\documentclass{ctexart} | |
\usepackage[b4paper,hmargin={1.5cm},vmargin={2.3cm},landscape]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%书法用纸效果:田字格, b4paper | |
\begin{tikzpicture}[scale=1.3] | |
\draw[dash pattern=on 2.5pt off 2.5pt](0,0)grid[step=0.5](10,14); | |
\draw[thick](0,0)grid(10,14); | |
\draw[ultra thick](0,0)rectangle(10,14); | |
\draw (5,15)node{\bf\scalebox{2}[2.5]{硬笔书法比赛用纸}}; | |
\end{tikzpicture} | |
\rule{4cm}{0pt} | |
\begin{tikzpicture}[scale=1.3] | |
\draw[dash pattern=on 2.5pt off 2.5pt](0,0)grid[step=0.5](10,14); | |
\draw[thick](0,0)grid(10,14); | |
\draw[ultra thick](0,0)rectangle(10,14); | |
\draw (5,15)node{\bf\scalebox{2}[2.5]{硬笔书法比赛用纸}}; | |
\end{tikzpicture} | |
\end{document} | |
\documentclass{ctexart} | |
\usepackage[b4paper,hmargin={2cm},vmargin={2.3cm},landscape]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%书法用纸效果:米字格, b4paper | |
\begin{tikzpicture}[scale=1.3] | |
\draw (5,15)node{\bf\scalebox{2}[2.5]{硬笔书法比赛用纸}}; | |
\clip (0,0)rectangle(10,14); | |
\foreach \t in {-9,-8,...,13}\draw[very thin,dash pattern=on 2.5pt off 2.5pt] plot[domain=0:10](\x,\x+\t); | |
\foreach \t in {0,1,...,23}\draw[very thin,dash pattern=on 2.5pt off 2.5pt] plot[domain=0:10](\x,-\x+\t); | |
\draw[dash pattern=on 2.5pt off 2.5pt](0,0)grid[step=0.5](10,14); | |
\draw[thick](0,0)grid(10,14); | |
\draw[ultra thick](0,0)rectangle(10,14); | |
\end{tikzpicture} | |
\rule{3cm}{0pt} | |
\begin{tikzpicture}[scale=1.3] | |
\draw (5,15)node{\bf\scalebox{2}[2.5]{硬笔书法比赛用纸}}; | |
\clip (0,0)rectangle(10,14); | |
\foreach \t in {-9,-8,...,13}\draw[very thin,dash pattern=on 2.5pt off 2.5pt] plot[domain=0:10](\x,\x+\t); | |
\foreach \t in {0,1,...,23}\draw[very thin,dash pattern=on 2.5pt off 2.5pt] plot[domain=0:10](\x,-\x+\t); | |
\draw[dash pattern=on 2.5pt off 2.5pt](0,0)grid[step=0.5](10,14); | |
\draw[thick](0,0)grid(10,14); | |
\draw[ultra thick](0,0)rectangle(10,14); | |
\end{tikzpicture} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Red, with date | |
\documentclass{ctexart} | |
\usepackage[b5paper,margin={1cm},centering]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
% \usepackage[active,tightpage]{preview} | |
% \PreviewEnvironment{tikzpicture} | |
% \setlength\PreviewBorder{5pt} | |
\begin{document} | |
\tikzstyle{topline} =[draw=blue] | |
\tikzstyle{bottomline} =[draw=blue] | |
\tikzstyle{midline} =[draw=red] | |
\tikzstyle{dashedline} =[draw=red, dashed] | |
\noindent\makebox[\textwidth][c]{\bf\scalebox{2.5}[3]{办公专用草纸}} | |
%\vspace{0.1pt} | |
\par\noindent | |
\begin{tikzpicture}[scale=1] | |
\foreach \i in {20.6,19.2,...,-0.4} { | |
\draw[midline] (0,\i-1) -- (\textwidth,\i-1); | |
\draw[dashedline] (0,\i-0.6) -- (\textwidth,\i-0.6); | |
\draw[midline] (0,21) -- (\textwidth,21);%次顶线 | |
\draw[midline] (0,21.1) -- (\textwidth,21.1);%顶线 | |
} | |
\end{tikzpicture} | |
\noindent\makebox[\textwidth][l]{\bf\scalebox{1}[1]{办公专用草纸}\hfill\today} | |
\end{document} | |
%% Black, without date | |
\documentclass{ctexart} | |
\usepackage[a4paper,hmargin={2cm},vmargin={1.8cm}]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
\noindent | |
\begin{tikzpicture}[scale=1,domain=0:17] | |
\draw (8.5,24)node{\bf\scalebox{2}[2.5]{办公用纸}}; | |
\clip (0,-1)rectangle(17,24); | |
\foreach \m in {0,1,2,...,19}\draw[dash pattern=on 2.5pt off 2.5pt] plot(\x,1.2*\m); | |
\foreach \n in {-1,0,1,...,23}\draw[thick] plot(\x,1.2*\n+0.3); | |
\end{tikzpicture} | |
\end{document} | |
%% B4 Paper, double page, Black | |
\documentclass{ctexart} | |
\usepackage[b4paper,hmargin={1.7cm},vmargin={1.6cm},landscape]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%稿纸效果 | |
\noindent | |
\begin{tikzpicture}[scale=1,domain=0:15] | |
\draw (7.5,20)node{\bf\scalebox{2}[2.5]{办公用纸}}; | |
\clip (0,-1)rectangle(15,20); | |
\foreach \m in {0,1,2,...,19}\draw[dash pattern=on 2.5pt off 2.5pt] plot(\x,\m); | |
\foreach \n in {-1,0,1,...,23}\draw[] plot(\x,\n+0.3); | |
\end{tikzpicture} | |
\rule{1.5cm}{0pt} | |
\begin{tikzpicture}[scale=1,domain=0:15] | |
\draw (7.5,20)node{\bf\scalebox{2}[2.5]{办公用纸}}; | |
\clip (0,-1)rectangle(15,20); | |
\foreach \m in {0,1,2,...,19}\draw[dash pattern=on 2.5pt off 2.5pt] plot(\x,\m); | |
\foreach \n in {-1,0,1,...,23}\draw[] plot(\x,\n+0.3); | |
\end{tikzpicture} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{ctexart} | |
\usepackage[b4paper,hmargin={2cm},vmargin={2cm},landscape]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%作文纸1 | |
\begin{tikzpicture}[scale=0.75] | |
\foreach \m in {1,2,...,17}\draw(\m,0) -- (\m,{20*1.4-0.4}); | |
\foreach \n in {1,2,...,19}\draw[fill=white,line width=0.4pt](0,{1.4*\n-0.4})rectangle(17,{1.4*\n}); | |
\draw[thick](0,0)rectangle(17,{20*1.4-0.4}); | |
\end{tikzpicture} | |
\rule{4cm}{0pt} | |
\begin{tikzpicture}[scale=0.75] | |
\foreach \m in {1,2,...,17}\draw(\m,0) -- (\m,{20*1.4-0.4}); | |
\foreach \n in {1,2,...,19}\draw[fill=white,line width=0.4pt](0,{1.4*\n-0.4})rectangle(17,{1.4*\n}); | |
\draw[thick](0,0)rectangle(17,{20*1.4-0.4}); | |
\end{tikzpicture} | |
\end{document} | |
\documentclass{ctexart} | |
\usepackage[b4paper,hmargin={2cm},vmargin={3.1cm},landscape]{geometry} | |
\usepackage{fancyhdr} | |
\pagestyle{empty} | |
\fancyhf{} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes,snakes} | |
\begin{document} | |
%作文纸2 | |
\begin{tikzpicture}[scale=1,x=0.7cm,y=0.95cm] | |
\foreach \x [count=\xi] in {1,2,...,20} | |
\foreach \y [count=\yi] in {1,2,...,20} | |
\node[anchor=east,draw,minimum size=0.7cm]at(\x,\y){};%$\y$ | |
\draw[thick](0,0.63)rectangle(20,20.37); | |
\end{tikzpicture} | |
\rule{2cm}{0pt} | |
\begin{tikzpicture}[scale=1,x=0.7cm,y=0.95cm] | |
\foreach \x [count=\xi] in {1,2,...,20} | |
\foreach \y [count=\yi] in {1,2,...,20} | |
\node[anchor=east,draw,minimum size=0.7cm]at(\x,\y){};%$\y$ | |
\draw[thick](0,0.63)rectangle(20,20.37); | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考:TikZ制作日常用的特殊纸张