diff options
author | Akshay <[email protected]> | 2021-04-17 08:21:32 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-04-17 08:21:32 +0100 |
commit | 2a321e68002f846ea25b6e0f9e962776a24476c9 (patch) | |
tree | 32e7f4037b70dfdd80f25b11748ae0f89f856abb |
init
l--------- | .direnv/flake-profile | 1 | ||||
-rw-r--r-- | .direnv/flake-profile.rc | 1 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | assets/rv.png | bin | 0 -> 19005 bytes | |||
-rw-r--r-- | flake.lock | 76 | ||||
-rw-r--r-- | flake.nix | 57 | ||||
-rw-r--r-- | makefile | 19 | ||||
-rw-r--r-- | meta.sty | 20 | ||||
-rw-r--r-- | report.tex | 157 |
9 files changed, 333 insertions, 0 deletions
diff --git a/.direnv/flake-profile b/.direnv/flake-profile new file mode 120000 index 0000000..b797929 --- /dev/null +++ b/.direnv/flake-profile | |||
@@ -0,0 +1 @@ | |||
/home/np/code/templates/report/.direnv/flake-profile.5366 \ No newline at end of file | |||
diff --git a/.direnv/flake-profile.rc b/.direnv/flake-profile.rc new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.direnv/flake-profile.rc | |||
@@ -0,0 +1 @@ | |||
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..877741c --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | *.aux | ||
diff --git a/assets/rv.png b/assets/rv.png new file mode 100644 index 0000000..d293f3a --- /dev/null +++ b/assets/rv.png | |||
Binary files differ | |||
diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..dca79f6 --- /dev/null +++ b/flake.lock | |||
@@ -0,0 +1,76 @@ | |||
1 | { | ||
2 | "nodes": { | ||
3 | "flake-compat": { | ||
4 | "flake": false, | ||
5 | "locked": { | ||
6 | "lastModified": 1606424373, | ||
7 | "narHash": "sha256-oq8d4//CJOrVj+EcOaSXvMebvuTkmBJuT5tzlfewUnQ=", | ||
8 | "owner": "edolstra", | ||
9 | "repo": "flake-compat", | ||
10 | "rev": "99f1c2157fba4bfe6211a321fd0ee43199025dbf", | ||
11 | "type": "github" | ||
12 | }, | ||
13 | "original": { | ||
14 | "owner": "edolstra", | ||
15 | "repo": "flake-compat", | ||
16 | "type": "github" | ||
17 | } | ||
18 | }, | ||
19 | "gitignore": { | ||
20 | "flake": false, | ||
21 | "locked": { | ||
22 | "lastModified": 1611672876, | ||
23 | "narHash": "sha256-qHu3uZ/o9jBHiA3MEKHJ06k7w4heOhA+4HCSIvflRxo=", | ||
24 | "owner": "hercules-ci", | ||
25 | "repo": "gitignore", | ||
26 | "rev": "211907489e9f198594c0eb0ca9256a1949c9d412", | ||
27 | "type": "github" | ||
28 | }, | ||
29 | "original": { | ||
30 | "owner": "hercules-ci", | ||
31 | "repo": "gitignore", | ||
32 | "type": "github" | ||
33 | } | ||
34 | }, | ||
35 | "nixpkgs": { | ||
36 | "locked": { | ||
37 | "lastModified": 1618640098, | ||
38 | "narHash": "sha256-RPdJQX2/VcLMb04TNZtyCgHyTOjwcaM3UjBziNwGz1g=", | ||
39 | "owner": "nixos", | ||
40 | "repo": "nixpkgs", | ||
41 | "rev": "a03f318104db1a74791746595829de4c2d53e658", | ||
42 | "type": "github" | ||
43 | }, | ||
44 | "original": { | ||
45 | "owner": "nixos", | ||
46 | "repo": "nixpkgs", | ||
47 | "type": "github" | ||
48 | } | ||
49 | }, | ||
50 | "root": { | ||
51 | "inputs": { | ||
52 | "flake-compat": "flake-compat", | ||
53 | "gitignore": "gitignore", | ||
54 | "nixpkgs": "nixpkgs", | ||
55 | "utils": "utils" | ||
56 | } | ||
57 | }, | ||
58 | "utils": { | ||
59 | "locked": { | ||
60 | "lastModified": 1618217525, | ||
61 | "narHash": "sha256-WGrhVczjXTiswQaoxQ+0PTfbLNeOQM6M36zvLn78AYg=", | ||
62 | "owner": "numtide", | ||
63 | "repo": "flake-utils", | ||
64 | "rev": "c6169a2772643c4a93a0b5ac1c61e296cba68544", | ||
65 | "type": "github" | ||
66 | }, | ||
67 | "original": { | ||
68 | "owner": "numtide", | ||
69 | "repo": "flake-utils", | ||
70 | "type": "github" | ||
71 | } | ||
72 | } | ||
73 | }, | ||
74 | "root": "root", | ||
75 | "version": 7 | ||
76 | } | ||
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..525ebc6 --- /dev/null +++ b/flake.nix | |||
@@ -0,0 +1,57 @@ | |||
1 | { | ||
2 | description = "Latex Project Report Template"; | ||
3 | |||
4 | inputs = { | ||
5 | nixpkgs.url = "github:nixos/nixpkgs"; | ||
6 | utils.url = "github:numtide/flake-utils"; | ||
7 | gitignore = { | ||
8 | url = "github:hercules-ci/gitignore"; | ||
9 | flake = false; | ||
10 | }; | ||
11 | flake-compat = { | ||
12 | url = "github:edolstra/flake-compat"; | ||
13 | flake = false; | ||
14 | }; | ||
15 | }; | ||
16 | |||
17 | outputs = { self, nixpkgs, utils, gitignore, ... }: | ||
18 | utils.lib.eachDefaultSystem (system: | ||
19 | let | ||
20 | pkgs = nixpkgs.legacyPackages."${system}"; | ||
21 | inherit (import gitignore { inherit (pkgs) lib; }) gitignoreSource; | ||
22 | nativeBuildInputs = with pkgs; [ | ||
23 | (texlive.combine { | ||
24 | inherit (texlive) | ||
25 | scheme-medium | ||
26 | multirow | ||
27 | hyperref | ||
28 | blindtext | ||
29 | fancyhdr | ||
30 | etoolbox | ||
31 | topiclongtable; | ||
32 | }) | ||
33 | gnumake | ||
34 | ]; | ||
35 | in | ||
36 | rec { | ||
37 | defaultPackage = stdenv.mkDerivation { | ||
38 | pname = "report"; | ||
39 | version = "0.1.0"; | ||
40 | src = gitignoreSource ./.; | ||
41 | buildInputs = nativeBuildInputs; | ||
42 | buildPhase = '' | ||
43 | latexmk -pdf \ | ||
44 | -pdflatex="pdflatex -interaction=nonstopmode" \ | ||
45 | -use-make | ||
46 | ${pname}.tex | ||
47 | ''; | ||
48 | installPhase = '' | ||
49 | mkdir -p $out | ||
50 | cp ${pname}.pdf $out/ | ||
51 | ''; | ||
52 | }; | ||
53 | devShell = pkgs.mkShell { | ||
54 | nativeBuildInputs = nativeBuildInputs; | ||
55 | }; | ||
56 | }); | ||
57 | } | ||
diff --git a/makefile b/makefile new file mode 100644 index 0000000..9539d3b --- /dev/null +++ b/makefile | |||
@@ -0,0 +1,19 @@ | |||
1 | DOCNAME=presentation | ||
2 | PDFLATEX="pdflatex -interaction=nonstopmode" | ||
3 | |||
4 | .PHONY: $(DOCNAME).pdf all clean | ||
5 | |||
6 | all: $(DOCNAME).pdf | ||
7 | |||
8 | $(DOCNAME).pdf: $(DOCNAME).tex | ||
9 | latexmk -pdf -pdflatex=$(PDFLATEX) -use-make $(DOCNAME).tex | ||
10 | |||
11 | watch: $(DOCNAME).tex | ||
12 | latexmk -pvc -pdf -pdflatex=$(PDFLATEX) -use-make $(DOCNAME).tex | ||
13 | |||
14 | clean: | ||
15 | latexmk -CA | ||
16 | |||
17 | install: | ||
18 | cp $(DOCNAME).pdf ${out}/ | ||
19 | |||
diff --git a/meta.sty b/meta.sty new file mode 100644 index 0000000..9ced572 --- /dev/null +++ b/meta.sty | |||
@@ -0,0 +1,20 @@ | |||
1 | \newcommand{\doctitle}{Paper Title} | ||
2 | \newcommand{\ponename}{Akshay Oppiliappan} | ||
3 | \newcommand{\poneusn}{1RV18CS016} | ||
4 | \newcommand{\ptwoname}{Akshay Oppiliappan} | ||
5 | \newcommand{\ptwousn}{1RV18CS016} | ||
6 | |||
7 | \newcommand{\semester}{X\textsuperscript{th}} | ||
8 | |||
9 | \newcommand{\shortdept}{CSE} | ||
10 | \newcommand{\dept}{Computer Science} | ||
11 | \newcommand{\longdept}{Computer Science and Engineering} | ||
12 | |||
13 | \newcommand{\faculty}{Faculty Name} | ||
14 | \newcommand{\facultypost}{Faculty Post} | ||
15 | \newcommand{\facultydept}{Computer Science and Engineering} | ||
16 | \newcommand{\hod}{Dr.Ramakanth Kumar P} | ||
17 | \newcommand{\principal}{Dr. Subramanya. K. N} | ||
18 | \newcommand{\coursecode}{18XXXX} | ||
19 | \newcommand{\csubject}{Subject Title} | ||
20 | \newcommand{\acyear}{20XX -- XX} | ||
diff --git a/report.tex b/report.tex new file mode 100644 index 0000000..e2182ba --- /dev/null +++ b/report.tex | |||
@@ -0,0 +1,157 @@ | |||
1 | \documentclass[a4paper]{article} | ||
2 | \usepackage{multirow} | ||
3 | \usepackage{blindtext} | ||
4 | \usepackage{graphicx} | ||
5 | \usepackage{textcomp} | ||
6 | \usepackage{fancyhdr} | ||
7 | \usepackage{etoolbox} | ||
8 | \usepackage{longtable} | ||
9 | \usepackage{meta} | ||
10 | |||
11 | \addtolength{\oddsidemargin}{-.500in} | ||
12 | \addtolength{\evensidemargin}{-.500in} | ||
13 | \addtolength{\textwidth}{1.0in} | ||
14 | \addtolength{\topmargin}{-.500in} | ||
15 | \addtolength{\textheight}{.500in} | ||
16 | |||
17 | \pagestyle{fancy} | ||
18 | \fancyhf{} | ||
19 | \fancyhead[L]{\doctitle{}} | ||
20 | \fancyhead[R]{\leftmark} | ||
21 | \fancyfoot[L]{R. V. College of Engineering} | ||
22 | \fancyfoot[R]{Page \textbf{\thepage}} | ||
23 | \renewcommand{\headrulewidth}{1pt} | ||
24 | \renewcommand{\footrulewidth}{0.5pt} | ||
25 | |||
26 | \begin{document} | ||
27 | |||
28 | \begin{titlepage} | ||
29 | \begin{center} | ||
30 | \vspace*{1cm} | ||
31 | |||
32 | {\large RV COLLEGE OF ENGINEERING}\\ | ||
33 | {\large Bengaluru 560 059}\\ | ||
34 | |||
35 | {\large(Autonomous Institution Affiliated to VTU, Belagavi)} | ||
36 | |||
37 | \vspace{0.5cm} | ||
38 | {\large\textbf{DEPARTMENT OF \MakeUppercase{\longdept{}}}} | ||
39 | |||
40 | \vspace{1.25cm} | ||
41 | |||
42 | \includegraphics[width=0.45\textwidth]{assets/rv} | ||
43 | \vspace{0.75cm} | ||
44 | |||
45 | {\LARGE \doctitle{}} | ||
46 | |||
47 | \vspace{1.5cm} | ||
48 | {\large Submitted by} | ||
49 | \vspace{0.25cm} | ||
50 | |||
51 | {\large | ||
52 | \textbf{\MakeUppercase{\ponename{}} \poneusn{}}\\ | ||
53 | \textbf{\MakeUppercase{\ptwoname{}} \ptwousn{}}\\ | ||
54 | } | ||
55 | |||
56 | \vfill | ||
57 | {\large \textbf{\textit{in partial fulfillment for the requirement of \semester{} Semester\\ | ||
58 | \csubject{}(\coursecode{})}} } | ||
59 | |||
60 | \vspace{0.5cm} | ||
61 | |||
62 | |||
63 | {\large \textbf{Under the guidance of}\\ | ||
64 | \faculty{}, \facultypost{} \\ | ||
65 | Dept. of \dept{}, R. V. College of Engineering} | ||
66 | |||
67 | \vspace{0.8cm} | ||
68 | {\large\textbf{Academic Year \acyear{}}} | ||
69 | |||
70 | |||
71 | \end{center} | ||
72 | \end{titlepage} | ||
73 | \pagebreak | ||
74 | |||
75 | \begin{titlepage} | ||
76 | \begin{center} | ||
77 | \vspace*{1cm} | ||
78 | |||
79 | {\Large RV College of Engineering}\\ | ||
80 | Bengaluru 560 059\\ | ||
81 | Autonomous Institution Affiliated to VTU, Belagavi | ||
82 | |||
83 | \vspace{0.5cm} | ||
84 | {\large\textbf{DEPARTMENT OF \MakeUppercase{\longdept{}}}} | ||
85 | |||
86 | \vspace{1cm} | ||
87 | |||
88 | \includegraphics[width=0.30\textwidth]{assets/rv} | ||
89 | |||
90 | \vspace{0.6cm} | ||
91 | {\Large\textbf{CERTIFICATE}} | ||
92 | \end{center} | ||
93 | |||
94 | \vspace{0.25cm} | ||
95 | |||
96 | Certified that the project work titled `\doctitle{}' is carried out by \ponename{}(\poneusn), \ptwoname{}\ifdefempty{\ptwousn}{}{(}\ptwousn{}\ifdefempty{\ptwousn}{}{)}, who \ifdefempty{\ptwousn}{is}{are} bonafide students of RV College of Engineering\textsuperscript{\tiny\textregistered}, Bengaluru, in partial fulfillment of the curriculum requirement of \semester{} Semester \csubject{} during the academic year \textbf{\acyear{}}. It is certified that all corrections/suggestions indicated for the internal Assessment have been incorporated in the report deposited in the departmental library. The report has been approved as it satisfies the academic requirements in all respect as prescribed by the institution. | ||
97 | |||
98 | \vfill | ||
99 | \noindent\begin{tabular*}{\textwidth}[]{p{0.65\textwidth} c} | ||
100 | \textbf{Signature of faculty in-charge} & \textbf{Head of the Department}\\ | ||
101 | & \textbf{Dept. of \shortdept{}, RVCE} | ||
102 | \end{tabular*} | ||
103 | \vspace{0.5cm} | ||
104 | \begin{center} | ||
105 | \underline{\textbf{External Examination}} | ||
106 | \end{center} | ||
107 | \begin{tabular*}{\textwidth}[]{p{0.70\textwidth} r} | ||
108 | \textbf{Name of Examiners} & \textbf{Signature with date}\\ | ||
109 | \end{tabular*} | ||
110 | 1.\\ | ||
111 | 2.\\ | ||
112 | \vspace{0.1cm} | ||
113 | |||
114 | \end{titlepage} | ||
115 | \pagebreak | ||
116 | |||
117 | \begin{center} | ||
118 | \vspace*{1cm} | ||
119 | {\Large\textbf{ACKNOWLEDGEMENT}} | ||
120 | \vspace{0.7cm} | ||
121 | \end{center} | ||
122 | |||
123 | {\large | ||
124 | Any achievement, be it scholastic or otherwise does not depend solely on the | ||
125 | individual efforts but on the guidance, encouragement and cooperation of | ||
126 | intellectuals, elders and friends. A number of personalities, in their own | ||
127 | capacities have helped me in carrying out this project work. I would like to | ||
128 | take this opportunity to thank them all. | ||
129 | |||
130 | \vspace{0.5cm} | ||
131 | I deeply express my sincere gratitude to my guide \faculty{}, Associate | ||
132 | Professor, Department of CSE, RVCE, Bengaluru, for his able guidance, regular | ||
133 | source of encouragement and assistance throughout this project | ||
134 | |||
135 | \vspace{0.5cm} | ||
136 | I would like to thank \hod{}, Head of Department, Computer Science and | ||
137 | Engineering, R. V. C. E. Bengaluru for his valuable suggestions and advice. | ||
138 | |||
139 | \vspace{0.5cm} | ||
140 | First and foremost, I would like to thank \principal{}, Principal, R. V. C. E. | ||
141 | Bengaluru, for his moral support towards completing my project work. | ||
142 | |||
143 | \vspace{0.5cm} | ||
144 | I thank my parents and all the faculty of \longdept{}, for their constant | ||
145 | support and encouragement. | ||
146 | |||
147 | \vspace{0.5cm} | ||
148 | Last but not the least, I would like to thank my peers and friends for their | ||
149 | valuable suggestions to improve my project. | ||
150 | } | ||
151 | |||
152 | \pagebreak | ||
153 | |||
154 | \tableofcontents | ||
155 | \pagebreak | ||
156 | |||
157 | \end{document} | ||