-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.latex.erb
54 lines (41 loc) · 1.22 KB
/
index.latex.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
\documentclass{article}
\usepackage{pdfpages}
% http://en.wikibooks.org/wiki/LaTeX/Hyperlinks
%
% urlcolor is required for sections with a colon in the name, since
% hyperref seems to assume the presence of a colon means that the link
% is is a URL.
\usepackage[colorlinks=true,filecolor=blue,urlcolor=blue]{hyperref}
\usepackage[hmargin=0.5in,vmargin=0.2in]{geometry}
\usepackage{multicol}
\usepackage[yyyymmdd,hhmmss]{datetime}
\begin{document}
% \begin{titlepage}
% \end{titlepage}
\title{\bf{<%= title %>}}
\author{Sorted, indexed, and hyperlinked!}
\date{Compiled on \today\ at \currenttime}
\maketitle{}
\renewcommand{\abstractname}{\vspace{-\baselineskip}}
\begin{abstract}
\begin{center}
Compiled from:
\end{center}
\begin{multicols}{2}
\begin{itemize}
<% Book.all.each do |book| -%>
\item <%= book.description %> (\texttt{<%= book.name %>})
<% end -%>
\end{itemize}
\end{multicols}
\end{abstract}
\begin{multicols}{2}
\begin{itemize}
\itemsep 0em
<% Section.all.sort_by(&:name).each do |section| -%>
\item[] \href{<%= section.filename %>}{<%= section.latex_name %> (<%= section.book.name %> <%= section.pages_p_string %>)}
<% break if LIMIT > 0 && i > LIMIT -%>
<% end -%>
\end{itemize}
\end{multicols}
\end{document}