LaTeX绘制英文字帖

Table of Contents

效果图

temporary.jpg

源代码

\documentclass[twoside]{ctexart}
\usepackage{tikz}
\usepackage[paper=a4paper, nofoot, nomarginpar, headsep=0.3cm, top=2cm, scale=0.90]{geometry}
\usepackage{pgffor}
\usepackage{indentfirst}
\setlength{\parindent}{0em}

\usepackage{ifthen}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[RO]{Date:\quad{}\qquad{}/\quad{}\qquad{}/\qquad{}\qquad{}}

\usepackage{fontspec}
\setmainfont{Comic Sans MS}
% \setmainfont{Source Code Pro}

\begin{document}
\newcounter{counter_a}
\begin{tikzpicture}
  \setcounter{counter_a}{0}
  \foreach \x in {0,3,6,...,264}{\stepcounter{counter_a}\ifthenelse{\value{counter_a} = 5}{\setcounter{counter_a}{0}}{\ifthenelse{\value{counter_a} = 2}{\draw [dashed, red] (0mm,\x mm) -- (\textwidth,\x mm);}{\draw [dashed] (0mm,\x mm) -- (\textwidth,\x mm);}}}
  \node[shape=rectangle, right](a) at (0mm,260mm){\Large A a };
  \node[shape=rectangle, right](a) at (0mm,245mm){\Large B b };
  \node[shape=rectangle, right](a) at (0mm,230mm){\Large C c };
  \node[shape=rectangle, right](a) at (0mm,215mm){\Large D d };
  \node[shape=rectangle, right](a) at (0mm,200mm){\Large E e };
  \node[shape=rectangle, right](a) at (0mm,185mm){\Large F f };
  \node[shape=rectangle, right](a) at (0mm,170mm){\Large G g };
  \node[shape=rectangle, right](a) at (0mm,155mm){\Large H h };
  \node[shape=rectangle, right](a) at (0mm,140mm){\Large I i };
  \node[shape=rectangle, right](a) at (0mm,125mm){\Large J j };
  \node[shape=rectangle, right](a) at (0mm,110mm){\Large K k };
  \node[shape=rectangle, right](a) at (0mm,095mm){\Large L l };
  \node[shape=rectangle, right](a) at (0mm,080mm){\Large M m };
  \node[shape=rectangle, right](a) at (0mm,065mm){\Large N n };
  \node[shape=rectangle, right](a) at (0mm,050mm){\Large O o };
  \node[shape=rectangle, right](a) at (0mm,035mm){\Large P p };
  \node[shape=rectangle, right](a) at (0mm,020mm){\Large Q q };
  \node[shape=rectangle, right](a) at (0mm,005mm){\Large R r };
\end{tikzpicture}

\begin{tikzpicture}
  \setcounter{counter_a}{0}
  \foreach \x in {0,3,6,...,264}{\stepcounter{counter_a}\ifthenelse{\value{counter_a} = 5}{\setcounter{counter_a}{0}}{\ifthenelse{\value{counter_a} = 2}{\draw [dashed, red] (0mm,\x mm) -- (\textwidth,\x mm);}{\draw [dashed] (0mm,\x mm) -- (\textwidth,\x mm);}}}
  \node[shape=rectangle, right](a) at (0mm,260mm){\Large S s };
  \node[shape=rectangle, right](a) at (0mm,245mm){\Large T t };
  \node[shape=rectangle, right](a) at (0mm,230mm){\Large U u };
  \node[shape=rectangle, right](a) at (0mm,215mm){\Large V v };
  \node[shape=rectangle, right](a) at (0mm,200mm){\Large W w };
  \node[shape=rectangle, right](a) at (0mm,185mm){\Large X x };
  \node[shape=rectangle, right](a) at (0mm,170mm){\Large Y y };
  \node[shape=rectangle, right](a) at (0mm,155mm){\Large Z z };
  \node[shape=rectangle, right](a) at (0mm,140mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,125mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,110mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,095mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,080mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,065mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,050mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,035mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,020mm){\Large };
  \node[shape=rectangle, right](a) at (0mm,005mm){\Large };
\end{tikzpicture}
\end{document}

Date: 2019-06-28 Fri 18:00

Author: xueshumeng

Email: xue.shumeng@yahoo.com

Created: 2025-07-05 Sat 15:09