昆仑山:眼中无形心中有穴之穴人合一

夫君子之行,静以修身,俭以养德;非澹泊无以明志,非宁静无以致远。夫学须静也,才须学也;非学无以广才,非志无以成学。怠慢则不能励精,险躁则不能冶性。年与时驰,意与岁去,遂成枯落,多不接世。悲守穷庐,将复何及!

 

高考语文作文答题卡+latex版

\documentclass[a4paper,12pt]{ctexart}
\usepackage{geometry}
\usepackage{tikz}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage{array}
\usepackage{xcolor}
\usepackage{afterpage}
\usepackage{etoolbox} % 用于调整间距

% 页面边距设置(尽可能小)
\geometry{left=1.2cm,right=1.2cm,top=0.8cm,bottom=1.5cm}

% 页眉页脚设置
\pagestyle{fancy}
\fancyhf{}
\rhead{语文}
\lhead{高考全国卷}
\cfoot{\thepage}

% 字体设置
\setmainfont{Times New Roman}
\setCJKmainfont{SimSun}  % 宋体

% 减少段落间距
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt}

% 调整标题间距
\makeatletter
\patchcmd{\@maketitle}{\vskip 1.5em}{\vskip 0.5em}{}{}
\makeatother

\begin{document}
	
	% 每页显示25行,共50行,自动跨页
	\newcommand{\drawPageGrids}{
		\noindent\hspace*{\fill}
		\begin{tikzpicture}
			\def\rows{25}  % 每页显示25行
			\def\cols{20}  % 每行20列
			\def\cellw{0.9}  % 单元格宽度
			\def\cellh{0.9}  % 单元格高度
			
			% 绘制横线
			\foreach \y in {0,...,\rows} {
				\draw (0, -\y*\cellh) -- (\cols*\cellw, -\y*\cellh);
			}
			
			% 绘制竖线
			\foreach \x in {0,...,\cols} {
				\draw (\x*\cellw, 0) -- (\x*\cellw, -\rows*\cellh);
			}
			
			% 底部提示
			\node[below] at (10*\cellw, -25*\cellh-0.5) {\textcolor{gray}{\small 本页结束,接下一页}};
		\end{tikzpicture}
		\hspace*{\fill}
	}
	
	% 第一页方格
	\drawPageGrids
	
	% 强制分页
	\afterpage{
		\clearpage
		\thispagestyle{fancy}
		
		% 续页标题(紧凑格式)
		\begin{center}
			\zihao{4}\textbf{作文答题卡(续页)}
		\end{center}
		
		\vspace{0.5em}
		
		% 第二页方格
		\noindent\hspace*{\fill}
		\begin{tikzpicture}
			\def\rows{25}  % 每页显示25行
			\def\cols{20}  % 每行20列
			\def\cellw{0.9}  % 单元格宽度
			\def\cellh{0.9}  % 单元格高度
			
			% 绘制横线
			\foreach \y in {0,...,\rows} {
				\draw (0, -\y*\cellh) -- (\cols*\cellw, -\y*\cellh);
			}
			
			% 绘制竖线
			\foreach \x in {0,...,\cols} {
				\draw (\x*\cellw, 0) -- (\x*\cellw, -\rows*\cellh);
			}
			
			% 顶部提示
			\node[above] at (10*\cellw, 0.5) {\textcolor{gray}{\small 接前一页}};
		\end{tikzpicture}
		\hspace*{\fill}
	
	}
	
\end{document}


posted on 2025-07-06 21:35  Indian_Mysore  阅读(24)  评论(0)    收藏  举报

导航