是否有任何模板、文档类可用于准备备忘单?
如果不是,那么怎样才能轻松地制作此类文件?
答案1
这是我用来做小抄的。它来自我在那里找到的一张表,不幸的是,我不记得我应该归功于谁了……不管怎样,就是这样:
\documentclass[10pt,landscape]{article}
\usepackage{multicol}
\usepackage{calc}
\usepackage{ifthen}
\usepackage[landscape]{geometry}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{color,graphicx,overpic}
\usepackage{hyperref}
\pdfinfo{
/Title (example.pdf)
/Creator (TeX)
/Producer (pdfTeX 1.40.0)
/Author (Seamus)
/Subject (Example)
/Keywords (pdflatex, latex,pdftex,tex)}
% This sets page margins to .5 inch if using letter paper, and to 1cm
% if using A4 paper. (This probably isn't strictly necessary.)
% If using another size paper, use default 1cm margins.
\ifthenelse{\lengthtest { \paperwidth = 11in}}
{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }
{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
}
% Turn off header and footer
\pagestyle{empty}
% Redefine section commands to use less space
\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0mm}%
{-1ex plus -.5ex minus -.2ex}%
{0.5ex plus .2ex}%x
{\normalfont\large\bfseries}}
\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}%
{-1explus -.5ex minus -.2ex}%
{0.5ex plus .2ex}%
{\normalfont\normalsize\bfseries}}
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}%
{-1ex plus -.5ex minus -.2ex}%
{1ex plus .2ex}%
{\normalfont\small\bfseries}}
\makeatother
% Define BibTeX command
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
% Don't print section numbers
\setcounter{secnumdepth}{0}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt plus 0.5ex}
%My Environments
\newtheorem{example}[section]{Example}
% -----------------------------------------------------------------------
\begin{document}
\raggedright
\footnotesize
\begin{multicols}{3}
% multicol parameters
% These lengths are set only within the two main columns
%\setlength{\columnseprule}{0.25pt}
\setlength{\premulticols}{1pt}
\setlength{\postmulticols}{1pt}
\setlength{\multicolsep}{1pt}
\setlength{\columnsep}{2pt}
\begin{center}
\Large{\underline{Title}} \\
\end{center}
\section{Section 1}
Text
\subsection{xCode}
Subsetction text
\section{Section 2}
Text 2
\section{Section 3}
Etc.
% You can even have references
\rule{0.3\linewidth}{0.25pt}
\scriptsize
\bibliographystyle{abstract}
\bibliography{refFile}
\end{multicols}
\end{document}
我希望你会觉得它有用。
答案2
答案3
我建议你使用一个长表格的迷你页面。每个单元格由一个迷你页面组成。迷你页面几乎可以支持所有内容。
但是,不要放置太长的对象,因为小页面无法在页面之间分隔。
编辑1
您还可以嵌套\begin{tabular}...\end{tabular}
内部\begin{longtable}...\end{longtable}
来分割父单元。
编辑2
如果使用嵌套表方法,最好将子表放在单独的文件中,然后使用从父单元格导入\input{}
。此方法将使父表更简洁,将来更易于维护。
\documentclass[table,cmyk]{article}
\usepackage[a4paper,margin=1cm,landscape]{geometry}
\usepackage{longtable,array,calc}
\usepackage{xcolor}
\makeatletter
\newcommand\ratio[2]{\strip@pt\dimexpr#1pt/#2\relax}
\newcolumntype{A}[2]
{
>{\begin{minipage}[t]{#2\linewidth-2\tabcolsep-#1\arrayrulewidth}%
\vspace{\tabcolsep}}%
c%
<{\vspace{\tabcolsep}\end{minipage}}%
}
\makeatother
\pagestyle{empty}
\arrayrulewidth=1pt
\tabcolsep=10pt
\arrayrulecolor{red}
\usepackage{lipsum}
\begin{document}
\begin{longtable}
{
|A{1.5}{\ratio{30}{100}}% 30%
|A{1}{\ratio{30}{100}}% 30%
|A{1.5}{\ratio{40}{100}}% 40%
|%
}\hline
%Cell 1,1
The fundamental theorem of calculus,
\[
\int_a^b f(x)\,\textrm{d}x=F(b)-F(a)
\]
where \[\frac{\textrm{d}F(x)}{\textrm{d}x}=f(x)\]
&
%Cell 1,2
\LaTeX\ will make you confident!
&
%Cell 1,3
\lipsum[1]
\tabularnewline\hline
%Cell 2,1
The fundamental theorem of calculus,
\[
\int_a^b f(x)\,\textrm{d}x=F(b)-F(a)
\]
where \[\frac{\textrm{d}F(x)}{\textrm{d}x}=f(x)\]
&
%Cell 2,2
\LaTeX\ will make you confident!
&
%Cell 2,3
\lipsum[2]
\tabularnewline\hline
\end{longtable}
\end{document}