这个 Vim CheatSheet 的 Latex 复制版?

这个 Vim CheatSheet 的 Latex 复制版?

如果此 StackExchange 网站不允许此问题,请见谅。我想实现此样式pdf。我概述了我想在自己的文档中实现的基本功能:

  1. 文件顶部的标题(包含姓名 + 电子邮件)。
  2. 两列。
  3. 相似的页面大小和边距。

答案1

这应该足够相似:

\documentclass{article}
\usepackage[landscape,margin=1cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref}
\usepackage[parfill]{parskip}
\usepackage{blindtext}

\title{Title}
\newcommand{\subtitle}{Subtitle}
\author{Your Name (\href{mailto:[email protected]}{[email protected]})}
\date{December 2021}

\makeatletter         
\renewcommand\maketitle{%
    {\color{RawSienna}%
        {\large \bfseries \sffamily \@title \hfill \@date }\\
        \hrule%
        \vspace*{.5em}%
        {\large\subtitle\hfill\@author}\\%
    }%
}
\makeatother

\renewcommand\familydefault{\sfdefault}
\begin{document}
\pagenumbering{gobble}

\maketitle

\bigskip
\begin{multicols}{2}

\section*{Introduction}

\begin{tabular}[h]{@{}ll}
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\end{tabular}
\qquad\qquad
\begin{tabular}{@{}ll}
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\end{tabular}


\section*{Discussion}

\begin{tabular}{@{}ll}
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\end{tabular}
\qquad\qquad
\begin{tabular}{@{}ll}
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\texttt{h} & Move left \\
\texttt{j} & Move down \\
\end{tabular}

\blindtext[10]

\end{multicols}

\end{document}

在此处输入图片描述

相关内容