forked from xgirma/latex-javaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
81 lines (69 loc) · 1.76 KB
/
main.tex
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
\documentclass{article}
\usepackage{listings}
\usepackage{color}
\usepackage[pdftex]{xcolor}
\usepackage{textcomp}
\usepackage[T1]{fontenc}
\usepackage{caption}
\usepackage{hyperref}
\usepackage{jslistings}
\begin{document}
\pagenumbering{gobble}
\clearpage
\vspace*{\fill}
\begin{center}
\begin{minipage}{1\textwidth}
\lstinputlisting[language=JavaScript, caption=Express.js]{code/express.js}
\end{minipage}
\end{center}
\vfill
\clearpage
\clearpage
\vspace*{\fill}
\begin{center}
\begin{minipage}{1\textwidth}
\lstinputlisting[language=JavaScript, caption=JavaScript]{code/arrow.js}
\end{minipage}
\end{center}
\vfill
\clearpage
\clearpage
\vspace*{\fill}
\begin{center}
\begin{minipage}{1\textwidth}
\lstinputlisting[language=JavaScript, caption=JavaScript]{code/number.js}
\end{minipage}
\end{center}
\vfill
\clearpage
\clearpage
\vspace*{\fill}
\begin{center}
\begin{minipage}{1\textwidth}
\lstinputlisting[language=JavaScript, caption=Node.js]{code/request.js}
\end{minipage}
\end{center}
\vfill
\clearpage
\clearpage
\vspace*{\fill}
\begin{center}
\begin{minipage}{1\textwidth}
\lstinputlisting[language=JavaScript, caption=Jasmine]{code/jasmine.js}
\end{minipage}
\end{center}
\vfill
\clearpage
% example source code
% https://raw.githubusercontent.com/gothinkster/node-express-realworld-example-app/master/app.js
% https://github.com/lodash/lodash/blob/master/fromPairs.js
% https://github.com/request/request/tree/master/examples
% http://blog.bandzarewicz.com/blog/2012/03/08/jasmine-cheat-sheet/
% keywords source
% https://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
% https://nodejs.org/dist/latest-v7.x/docs/api/
% https://expressjs.com/en/4x/api.html
% https://github.com/jasmine/jasmine
% color
% http://latexcolor.com/
\end{document}