我可以不添加新行然后删除新行吗?我想跳过\\[-0.4cm]
。感觉不对
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{geometry}
\usepackage{forloop}
\usepackage{graphicx}
\geometry{a4paper, left=2.5mm, top=2.5mm,bottom=2.5mm,right=2.5mm}
\newcounter{i}
\newcommand{\mylineNewTwo}[1]{%
\forloop{i}{0}{\value{i}<#1}%
{%
\\[-0.4cm]% is it possible to do this without this line??
\multicolumn{2}{l}{Line1}\\
\multicolumn{1}{c}{} & Line2\\
\multicolumn{2}{l}{Line3}\\
\multicolumn{2}{l}{Line4}\\
\multicolumn{1}{c}{} & Line5\\
\multicolumn{2}{l}{Line6L\hfill Line6R}\\
}
}
\begin{document}
\begin{figure}[H]
\centering
\resizebox{\textwidth}{!}{
\begin{tabular}{@{}p{0.5cm}@{}@{}p{6.8cm}@{}}
\mylineNewTwo{10}
\end{tabular}
\begin{tabular}{@{}p{0.5cm}@{}@{}p{6.8cm}@{}}
\mylineNewTwo{10}
\end{tabular}
\begin{tabular}{@{}p{0.5cm}@{}@{}p{6.8cm}@{}}
\mylineNewTwo{10}
\end{tabular}
}
\end{figure}
\end{document}