From 2a321e68002f846ea25b6e0f9e962776a24476c9 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 17 Apr 2021 12:51:32 +0530 Subject: init --- .direnv/flake-profile | 1 + .direnv/flake-profile.rc | 1 + .gitignore | 2 + assets/rv.png | Bin 0 -> 19005 bytes flake.lock | 76 +++++++++++++++++++++++ flake.nix | 57 +++++++++++++++++ makefile | 19 ++++++ meta.sty | 20 ++++++ report.tex | 157 +++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 333 insertions(+) create mode 120000 .direnv/flake-profile create mode 100644 .direnv/flake-profile.rc create mode 100644 .gitignore create mode 100644 assets/rv.png create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 makefile create mode 100644 meta.sty create mode 100644 report.tex 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 @@ +*.pdf +*.aux diff --git a/assets/rv.png b/assets/rv.png new file mode 100644 index 0000000..d293f3a Binary files /dev/null and b/assets/rv.png 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 @@ +{ + "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1606424373, + "narHash": "sha256-oq8d4//CJOrVj+EcOaSXvMebvuTkmBJuT5tzlfewUnQ=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "99f1c2157fba4bfe6211a321fd0ee43199025dbf", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "gitignore": { + "flake": false, + "locked": { + "lastModified": 1611672876, + "narHash": "sha256-qHu3uZ/o9jBHiA3MEKHJ06k7w4heOhA+4HCSIvflRxo=", + "owner": "hercules-ci", + "repo": "gitignore", + "rev": "211907489e9f198594c0eb0ca9256a1949c9d412", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "gitignore", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1618640098, + "narHash": "sha256-RPdJQX2/VcLMb04TNZtyCgHyTOjwcaM3UjBziNwGz1g=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a03f318104db1a74791746595829de4c2d53e658", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-compat": "flake-compat", + "gitignore": "gitignore", + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "utils": { + "locked": { + "lastModified": 1618217525, + "narHash": "sha256-WGrhVczjXTiswQaoxQ+0PTfbLNeOQM6M36zvLn78AYg=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c6169a2772643c4a93a0b5ac1c61e296cba68544", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..525ebc6 --- /dev/null +++ b/flake.nix @@ -0,0 +1,57 @@ +{ + description = "Latex Project Report Template"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + utils.url = "github:numtide/flake-utils"; + gitignore = { + url = "github:hercules-ci/gitignore"; + flake = false; + }; + flake-compat = { + url = "github:edolstra/flake-compat"; + flake = false; + }; + }; + + outputs = { self, nixpkgs, utils, gitignore, ... }: + utils.lib.eachDefaultSystem (system: + let + pkgs = nixpkgs.legacyPackages."${system}"; + inherit (import gitignore { inherit (pkgs) lib; }) gitignoreSource; + nativeBuildInputs = with pkgs; [ + (texlive.combine { + inherit (texlive) + scheme-medium + multirow + hyperref + blindtext + fancyhdr + etoolbox + topiclongtable; + }) + gnumake + ]; + in + rec { + defaultPackage = stdenv.mkDerivation { + pname = "report"; + version = "0.1.0"; + src = gitignoreSource ./.; + buildInputs = nativeBuildInputs; + buildPhase = '' + latexmk -pdf \ + -pdflatex="pdflatex -interaction=nonstopmode" \ + -use-make + ${pname}.tex + ''; + installPhase = '' + mkdir -p $out + cp ${pname}.pdf $out/ + ''; + }; + devShell = pkgs.mkShell { + nativeBuildInputs = nativeBuildInputs; + }; + }); +} diff --git a/makefile b/makefile new file mode 100644 index 0000000..9539d3b --- /dev/null +++ b/makefile @@ -0,0 +1,19 @@ +DOCNAME=presentation +PDFLATEX="pdflatex -interaction=nonstopmode" + +.PHONY: $(DOCNAME).pdf all clean + +all: $(DOCNAME).pdf + +$(DOCNAME).pdf: $(DOCNAME).tex + latexmk -pdf -pdflatex=$(PDFLATEX) -use-make $(DOCNAME).tex + +watch: $(DOCNAME).tex + latexmk -pvc -pdf -pdflatex=$(PDFLATEX) -use-make $(DOCNAME).tex + +clean: + latexmk -CA + +install: + cp $(DOCNAME).pdf ${out}/ + diff --git a/meta.sty b/meta.sty new file mode 100644 index 0000000..9ced572 --- /dev/null +++ b/meta.sty @@ -0,0 +1,20 @@ +\newcommand{\doctitle}{Paper Title} +\newcommand{\ponename}{Akshay Oppiliappan} +\newcommand{\poneusn}{1RV18CS016} +\newcommand{\ptwoname}{Akshay Oppiliappan} +\newcommand{\ptwousn}{1RV18CS016} + +\newcommand{\semester}{X\textsuperscript{th}} + +\newcommand{\shortdept}{CSE} +\newcommand{\dept}{Computer Science} +\newcommand{\longdept}{Computer Science and Engineering} + +\newcommand{\faculty}{Faculty Name} +\newcommand{\facultypost}{Faculty Post} +\newcommand{\facultydept}{Computer Science and Engineering} +\newcommand{\hod}{Dr.Ramakanth Kumar P} +\newcommand{\principal}{Dr. Subramanya. K. N} +\newcommand{\coursecode}{18XXXX} +\newcommand{\csubject}{Subject Title} +\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 @@ +\documentclass[a4paper]{article} +\usepackage{multirow} +\usepackage{blindtext} +\usepackage{graphicx} +\usepackage{textcomp} +\usepackage{fancyhdr} +\usepackage{etoolbox} +\usepackage{longtable} +\usepackage{meta} + +\addtolength{\oddsidemargin}{-.500in} +\addtolength{\evensidemargin}{-.500in} +\addtolength{\textwidth}{1.0in} +\addtolength{\topmargin}{-.500in} +\addtolength{\textheight}{.500in} + +\pagestyle{fancy} +\fancyhf{} +\fancyhead[L]{\doctitle{}} +\fancyhead[R]{\leftmark} +\fancyfoot[L]{R. V. College of Engineering} +\fancyfoot[R]{Page \textbf{\thepage}} +\renewcommand{\headrulewidth}{1pt} +\renewcommand{\footrulewidth}{0.5pt} + +\begin{document} + +\begin{titlepage} + \begin{center} + \vspace*{1cm} + + {\large RV COLLEGE OF ENGINEERING}\\ + {\large Bengaluru 560 059}\\ + + {\large(Autonomous Institution Affiliated to VTU, Belagavi)} + + \vspace{0.5cm} + {\large\textbf{DEPARTMENT OF \MakeUppercase{\longdept{}}}} + + \vspace{1.25cm} + + \includegraphics[width=0.45\textwidth]{assets/rv} + \vspace{0.75cm} + + {\LARGE \doctitle{}} + + \vspace{1.5cm} + {\large Submitted by} + \vspace{0.25cm} + + {\large + \textbf{\MakeUppercase{\ponename{}} \poneusn{}}\\ + \textbf{\MakeUppercase{\ptwoname{}} \ptwousn{}}\\ + } + + \vfill + {\large \textbf{\textit{in partial fulfillment for the requirement of \semester{} Semester\\ + \csubject{}(\coursecode{})}} } + + \vspace{0.5cm} + + + {\large \textbf{Under the guidance of}\\ + \faculty{}, \facultypost{} \\ + Dept. of \dept{}, R. V. College of Engineering} + + \vspace{0.8cm} + {\large\textbf{Academic Year \acyear{}}} + + + \end{center} +\end{titlepage} +\pagebreak + +\begin{titlepage} + \begin{center} + \vspace*{1cm} + + {\Large RV College of Engineering}\\ + Bengaluru 560 059\\ + Autonomous Institution Affiliated to VTU, Belagavi + + \vspace{0.5cm} + {\large\textbf{DEPARTMENT OF \MakeUppercase{\longdept{}}}} + + \vspace{1cm} + + \includegraphics[width=0.30\textwidth]{assets/rv} + + \vspace{0.6cm} + {\Large\textbf{CERTIFICATE}} + \end{center} + + \vspace{0.25cm} + + 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. + + \vfill + \noindent\begin{tabular*}{\textwidth}[]{p{0.65\textwidth} c} + \textbf{Signature of faculty in-charge} & \textbf{Head of the Department}\\ + & \textbf{Dept. of \shortdept{}, RVCE} + \end{tabular*} + \vspace{0.5cm} + \begin{center} + \underline{\textbf{External Examination}} + \end{center} + \begin{tabular*}{\textwidth}[]{p{0.70\textwidth} r} + \textbf{Name of Examiners} & \textbf{Signature with date}\\ + \end{tabular*} + 1.\\ + 2.\\ + \vspace{0.1cm} + +\end{titlepage} +\pagebreak + +\begin{center} +\vspace*{1cm} +{\Large\textbf{ACKNOWLEDGEMENT}} +\vspace{0.7cm} +\end{center} + +{\large +Any achievement, be it scholastic or otherwise does not depend solely on the +individual efforts but on the guidance, encouragement and cooperation of +intellectuals, elders and friends. A number of personalities, in their own +capacities have helped me in carrying out this project work. I would like to +take this opportunity to thank them all. + +\vspace{0.5cm} +I deeply express my sincere gratitude to my guide \faculty{}, Associate +Professor, Department of CSE, RVCE, Bengaluru, for his able guidance, regular +source of encouragement and assistance throughout this project + +\vspace{0.5cm} +I would like to thank \hod{}, Head of Department, Computer Science and +Engineering, R. V. C. E. Bengaluru for his valuable suggestions and advice. + +\vspace{0.5cm} +First and foremost, I would like to thank \principal{}, Principal, R. V. C. E. +Bengaluru, for his moral support towards completing my project work. + +\vspace{0.5cm} +I thank my parents and all the faculty of \longdept{}, for their constant +support and encouragement. + +\vspace{0.5cm} +Last but not the least, I would like to thank my peers and friends for their +valuable suggestions to improve my project. +} + +\pagebreak + +\tableofcontents +\pagebreak + +\end{document} -- cgit v1.2.3