├── .gitignore ├── Assignment ├── Required packages.md ├── assignment.cls ├── assignment_template.pdf └── assignment_template.tex ├── CITATION.cff ├── Fancy-Book ├── book_template.pdf ├── book_template.tex ├── package │ ├── Required packages.md │ ├── color-env.sty │ └── fancy-book.cls ├── resource │ ├── ctan_lion.png │ ├── icon.png │ └── references.bib └── title.tex ├── LICENSE ├── Notes ├── color-tufte.sty ├── notes-sample.pdf └── notes-sample.tex ├── README.md └── archived.7z /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.aux 3 | *.fdb_latexmk 4 | *.fls 5 | *.out 6 | *.synctex.gz 7 | *.toc 8 | *.bbl 9 | *.bcf 10 | *.blg 11 | *.xml -------------------------------------------------------------------------------- /Assignment/Required packages.md: -------------------------------------------------------------------------------- 1 | ## List of Required Packages 2 | 3 | - xkeyval 4 | - hyperref 5 | - geometry 6 | - microtype 7 | - mulitcol 8 | - url 9 | - ulem 10 | - upquote 11 | - fontenc 12 | - enumerate 13 | - enumitem 14 | - amsmath, amsthm, amssymb 15 | - mathpazo 16 | - fancyhdr 17 | - titlesec 18 | - footmisc 19 | - graphicx 20 | - pdfpages 21 | - langtable 22 | - booktabs 23 | -------------------------------------------------------------------------------- /Assignment/assignment.cls: -------------------------------------------------------------------------------- 1 | %MIT License 2 | 3 | %Copyright (c) 2020 Jacob Strieb 4 | 5 | %Permission is hereby granted, free of charge, to any person obtaining a copy 6 | %of this software and associated documentation files (the "Software"), to deal 7 | %in the Software without restriction, including without limitation the rights 8 | %to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | %copies of the Software, and to permit persons to whom the Software is 10 | %furnished to do so, subject to the following conditions: 11 | 12 | %The above copyright notice and this permission notice shall be included in all 13 | %copies or substantial portions of the Software. 14 | 15 | %THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | %IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | %FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | %AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | %LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | %OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | %SOFTWARE. 22 | 23 | 24 | \NeedsTeXFormat{LaTeX2e} 25 | \ProvidesClass{assignment}[Assignment Class] 26 | 27 | % Based off of the `article' class 28 | \LoadClass[12pt]{article} 29 | 30 | 31 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 32 | % Package options and document metadata 33 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 34 | 35 | \RequirePackage{xkeyval} 36 | 37 | % Take key=val options from the \documentclass declaration 38 | \DeclareOptionX{name}[]{\newcommand{\name}{#1}} 39 | \DeclareOptionX{num}[]{\newcommand{\assignum}{#1}} 40 | \DeclareOptionX{course}[]{\newcommand{\course}{#1}} 41 | \DeclareOptionX{regnum}[]{\newcommand{\regnum}{#1}} 42 | \DeclareOptionX{type}[Assignment]{\newcommand{\assignmenttype}{#1}} 43 | \DeclareOptionX{emaildomain}[iisermohali.ac.in]{\newcommand{\emaildomain}{#1}} 44 | \DeclareOptionX{probword}[Problem]{\newcommand{\probword}{#1}} 45 | 46 | \ProcessOptionsX\relax 47 | 48 | % Raise errors if any of the options are undefined 49 | \@ifundefined{name}{ \ClassError{assignment}{name option required}{} }{} 50 | \@ifundefined{assignum}{ \ClassError{assignment}{assignum option required}{} }{} 51 | \@ifundefined{course}{ \ClassError{assignment}{course option required}{} }{} 52 | \@ifundefined{regnum}{ \ClassError{assignment}{regnum option required}{} }{} 53 | 54 | % Set default values if optional options are undefined 55 | \@ifundefined{emaildomain}{ \newcommand{\emaildomain}{iisermohali.ac.in} }{} 56 | \@ifundefined{assignmenttype}{ \newcommand{\assignmenttype}{Assignment} }{} 57 | \@ifundefined{probword}{ \newcommand{\probword}{Problem} }{} 58 | 59 | % Define commands depending on components passed as key/values or default options 60 | \newcommand{\assignmentname}{\assignmenttype{} \assignum} 61 | \newcommand{\email}{\regnum @\emaildomain} 62 | 63 | % Fix line-breaking on hyphens in URLs. See: 64 | % https://tex.stackexchange.com/a/183831/150811 65 | % Note: must be included before hyperref package is used 66 | \PassOptionsToPackage{hyphens}{url} 67 | 68 | % Set PDF metadata based on the global variables 69 | \RequirePackage[pdftex, 70 | pdfauthor={\name}, 71 | pdftitle={\course{} -- \assignmentname}]{hyperref} 72 | 73 | % Set the author and title in case the user wants to make a title page 74 | \title{\course{} -- \assignmentname} 75 | \author{\name} 76 | \date{\regnum} 77 | 78 | 79 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 80 | % Imports and formatting 81 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 82 | 83 | % Set the page on letter paper with microtype improvements and correct URL breaking at hyphens 84 | \RequirePackage[letterpaper]{geometry} 85 | \RequirePackage{microtype} 86 | \RequirePackage{multicol} 87 | \RequirePackage{url} 88 | 89 | % Enable strikethrough text 90 | \RequirePackage[normalem]{ulem} 91 | 92 | % Fix issues with fonts when highlighting code via Pandoc 93 | \RequirePackage[T1]{fontenc} 94 | 95 | % Fix quotes in verbatim mode (particularly for Pandoc) 96 | \RequirePackage{upquote} 97 | 98 | % List formatting 99 | \RequirePackage{enumerate} 100 | \RequirePackage{enumitem} 101 | \setlist[itemize]{topsep=0pt} 102 | % Copied from pandoc template via `pandoc.exe -D latex` 103 | \providecommand{\tightlist}{\setlength{\parskip}{0pt}} 104 | 105 | % Skip lines and don't indent 106 | \setlength{\parindent}{0em} 107 | \setlength{\parskip}{1em} 108 | 109 | % Import math fonts and symbols 110 | \RequirePackage{amsfonts} 111 | \RequirePackage{amsmath,amsthm,amssymb} 112 | 113 | % Palatino typeface -- includes (old-style) text figures 114 | \RequirePackage[osf]{mathpazo} 115 | 116 | % Set headers and page numbers 117 | \RequirePackage{fancyhdr} 118 | 119 | % Ensure page number typeface matches the body 120 | % Note: must come before header declaration since it clears header and footer 121 | \fancyhf{} 122 | \fancyfoot[C]{\thepage} 123 | 124 | \lhead{\name \\ \texttt{\email}} 125 | \rhead{\today \\ \course{} -- \assignmentname} 126 | \pagestyle{fancyplain} 127 | \setlength{\headheight}{2\baselineskip} % Fix first page setting above the frame 128 | 129 | % Format section headers for use in writing ``Problem X'' in small caps with appropriate spacing 130 | \RequirePackage{titlesec} 131 | \titleformat{\section}{\large\sc\lowercase}{}{0em}{} 132 | \titlespacing{\section}{0em}{1em}{1em} 133 | 134 | \titleformat{\subsection}{\normalsize\sc\lowercase}{}{0em}{} 135 | \titlespacing{\subsection}{0em}{0em}{1em} 136 | 137 | % Add spacing between footnote number and text 138 | \RequirePackage[hang, bottom]{footmisc} 139 | \setlength{\footnotemargin}{0.75em} 140 | 141 | % Enable including embedded PDFs and images 142 | \RequirePackage{graphicx} 143 | \RequirePackage{pdfpages} 144 | 145 | % Improve table formatting 146 | \usepackage{longtable} 147 | \usepackage{booktabs} 148 | 149 | 150 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 151 | % Custom commands -- words, environments, and formatting 152 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 153 | 154 | % Headers for numbered problems 155 | \newcommand{\problem}[1]{\section{\probword{} #1}} 156 | 157 | % Boxed ``to-do'' statements to make incomplete problems clear 158 | \newcommand{\todo}{\fbox{TO-DO}\ \ } 159 | 160 | % 75% measure rules to split problems into sections 161 | \newcommand{\seprule}{\begin{center} \rule{0.75\linewidth}{0.5pt} \\ \end{center}} 162 | \newcommand{\separator}{\vfill \seprule \vfill} 163 | 164 | % Environment for consistently-formatted claim statements 165 | \newenvironment{claim}{\textit{Claim.}}{\vspace{-1em}} 166 | 167 | 168 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 169 | % Custom commands -- redefined commands that should look or behave differently 170 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 171 | 172 | % Redefine the ampersand to use the italic version by default - as-per Elements of Typographic Style 173 | % See: https://tex.stackexchange.com/a/47353/150811 174 | \let\textand\& 175 | \renewcommand{\&}{\textit{\textand}} 176 | 177 | % Redefine the maketitle command to format properly, and not have a header on the page 178 | \let\origtitle\maketitle 179 | \renewcommand{\maketitle}{ 180 | \setlength{\parskip}{0em} 181 | \origtitle 182 | \thispagestyle{empty} 183 | \setlength{\parskip}{1em} 184 | } 185 | 186 | % Redefine epsilon and empty set commands to use better-looking versions 187 | \renewcommand{\epsilon}{\ensuremath{\varepsilon}} 188 | \renewcommand{\emptyset}{\ensuremath{\varnothing}} 189 | % \renewcommand{\phi}{\ensuremath{\varphi}} 190 | 191 | % Redefine the bar and vec commands to use larger overlines and bold-faced vectors 192 | \renewcommand{\bar}{\overline} 193 | \renewcommand{\vec}{\mathbf} 194 | \newcommand{\arrowvec}{\mathaccent"017E} 195 | 196 | 197 | -------------------------------------------------------------------------------- /Assignment/assignment_template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-aditya/LaTeX-template/4934f469b7d0c55cc6bc5bd864016d6d5555285f/Assignment/assignment_template.pdf -------------------------------------------------------------------------------- /Assignment/assignment_template.tex: -------------------------------------------------------------------------------- 1 | \documentclass[name= Fname\ Lname, regnum= reg. num , course=Course, num= X]{assignment} 2 | 3 | \usepackage{lipsum} 4 | 5 | \begin{document} 6 | \maketitle 7 | \problem{1} 8 | \lipsum*[1-2][1-4] 9 | 10 | \begin{proof} 11 | \lipsum[1-2][1-3] 12 | Here is the nice looking Schrodinger's Equation 13 | \[i\hbar\frac{\partial}{\partial t} \varPsi(\mathbf{r},t) = \left [ \frac{-\hbar^2}{2m}\nabla^2 + V(\mathbf{r},t)\right ] \varPsi(\mathbf{r},t)\] 14 | \end{proof} 15 | 16 | \separator 17 | 18 | \problem{2} 19 | \lipsum*[1-2][1-4] 20 | 21 | \begin{claim} 22 | \lipsum[1-2][1-2] 23 | \end{claim} 24 | 25 | \begin{proof} 26 | \lipsum[1-2][1-3] 27 | \end{proof} 28 | 29 | \separator 30 | 31 | \end{document} -------------------------------------------------------------------------------- /CITATION.cff: -------------------------------------------------------------------------------- 1 | cff-version: 1.2.0 2 | message: "If you use this software, please cite it using these metadata." 3 | authors: 4 | - family-names: Dev 5 | given-names: Aditya 6 | title: "LaTeX Fancy Book" 7 | date-released: 2021-03-10 8 | license: MIT 9 | repository-code: "https://github.com/dev-aditya/LaTeX-template" 10 | title: LaTeX Fancy Book Template 11 | version: 1.2.0 12 | contact: 13 | - email: "adityadev21.ad@gmail.com" -------------------------------------------------------------------------------- /Fancy-Book/book_template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-aditya/LaTeX-template/4934f469b7d0c55cc6bc5bd864016d6d5555285f/Fancy-Book/book_template.pdf -------------------------------------------------------------------------------- /Fancy-Book/book_template.tex: -------------------------------------------------------------------------------- 1 | \documentclass{package/fancy-book} 2 | 3 | %%%%%%%%%% Default Package %%%%%%%%%%%%% 4 | \usepackage{package/color-env} 5 | %%%%%%%%%% %%%%%%%%%%%%%%% %%%%%%%%%%%%% 6 | 7 | %%%%%%%%%% Required Packages %%%%%%%%%%%%% 8 | \usepackage{background} 9 | \usepackage[object=vectorian]{pgfornament} %% used in title.tex 10 | \usepackage{calligra} %%% (optional) to make the Title text beautiful 11 | %%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | \usepackage{lipsum} %% for dummy text 14 | \usepackage{amssymb,amsmath,amsfonts} %%% for maths 15 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 | 17 | %%%%%% Optional Packages %%%%%%% 18 | \usepackage{lettrine} %% for nice looking 19 | \usepackage{GoudyIn} %% first Letter of the paragraph 20 | 21 | \renewcommand{\LettrineFontHook}{\color{black}\GoudyInfamily{}} 22 | \LettrineTextFont{\itshape} 23 | \setcounter{DefaultLines}{3}% 24 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 25 | \usepackage{fourier-orns} 26 | 27 | \newcommand{\ornamento}{\vspace{2em}\noindent \textcolor{darkgray}{\hrulefill~ \raisebox{-2.5pt}[10pt][10pt]{\leafright \decofourleft 28 | \decothreeleft \aldineright \decotwo \floweroneleft \decoone \floweroneright 29 | \decotwo \aldineleft\decothreeright \decofourright \leafleft} ~ \hrulefill \\ \vspace{2em}}} 30 | %%%% Bibliography %%%%%%%%% 31 | % Required packages are included in notes class 32 | % Can be tweaked in the notes.cls file itself 33 | 34 | \addbibresource{resource/references.bib} 35 | 36 | \begin{document} 37 | 38 | \include{title.tex} 39 | 40 | \newpage 41 | 42 | \backgroundsetup{contents={}} %% to remove background and watermark from other pages 43 | \tableofcontents 44 | 45 | %\newpage 46 | \chapter{A Nice Title} 47 | 48 | \lettrine{L}{o} %% for the calligraphic First Letter 49 | rem ipsum dolor sit amit consectetuer adipiscingelit \footnote[1]{Here is an example footnote. \LaTeX{} can be customized in many different ways}. 50 | \lipsum[1][2-100] \cite{wiki:latex} 51 | 52 | 53 | 54 | \section{Here goes the section!} 55 | \subsection{And the subsection} 56 | 57 | \begin{definition}[DEF NAME]{def:label} %% [can be kept empty] 58 | \lipsum[1][1-3] %% for dummy text 59 | Here is the nice looking Schrodinger's Equation \cite{dirac} 60 | \[i\hbar\frac{\partial}{\partial t} \varPsi(\mathbf{r},t) = \left [ \frac{-\hbar^2}{2m}\nabla^2 + V(\mathbf{r},t)\right ] \varPsi(\mathbf{r},t)\] 61 | \end{definition} 62 | 63 | \begin{theorem}[THM NAME]{thm:label}%% [can be kept empty] 64 | \lipsum[2][1-5] %% for dummy text 65 | \end{theorem} 66 | 67 | \begin{proposition}[PROP NAME]{prop:label}%% [can be kept empty] 68 | \lipsum[4][1-4] %% for dummy text 69 | \end{proposition} 70 | 71 | \begin{lemma}[LEM NAME]{lem:label}%% [can be kept empty] 72 | \lipsum[3][1-3] %% for dummy text 73 | \end{lemma} 74 | 75 | \begin{corollary}[COR NAME]{cor:label}%% [can be kept empty] 76 | \lipsum[5][1-3] %% for dummy text 77 | \end{corollary} 78 | 79 | \begin{problem}%% [can be kept empty] 80 | \lipsum[1][1-3] %% for dummy text 81 | \end{problem} 82 | \begin{proof}[Proof Head] 83 | \lipsum[1][1-10] %% for dummy text 84 | \end{proof} 85 | \nocite{knuthwebsite} 86 | 87 | \ornamento 88 | 89 | \section{Mathematics and Images} 90 | \begin{figure}[H] 91 | \centering 92 | \includegraphics[height = 0.4\textwidth, width = 0.5\textwidth]{resource/ctan_lion.png} 93 | \caption{We can add images too!! Isn't that good.} 94 | \label{img:anything} 95 | \end{figure} 96 | \lettrine{M}{a} xwell's equations are a set of coupled partial differential equations that, together with the Lorentz force law, form the foundation of classical electromagnetism, 97 | classical optics, and electric circuits. The equations provide a mathematical model for electric, optical, and radio technologies, 98 | such as power generation, electric motors, wireless communication, lenses, radar etc. They describe how electric and magnetic fields are generated by charges, currents, and changes of the fields. 99 | The equations are named after the physicist and mathematician James Clerk Maxwell, who, in 1861 and 1862, published an early form of the equations that included 100 | the Lorentz force law. Maxwell first used the equations to propose that light is an electromagnetic phenomenon. 101 | 102 | Here are the Maxwell's equations in the differential form 103 | 104 | \[ 105 | \begin{gathered} 106 | \nabla \cdot \mathbf {E} ={\frac {\rho }{\varepsilon _{0}}} \\ 107 | \nabla \cdot \mathbf {B} ={0} \\ \tag*{(1)} 108 | \nabla \times \mathbf {E} =-{\frac {\partial \mathbf {B} }{\partial t}}\\ 109 | \nabla \times \mathbf {B} =\mu _{0}\left(\mathbf {J} +\varepsilon _{0}{\frac {\partial \mathbf {E} }{\partial t}}\right) 110 | \end{gathered} 111 | \] 112 | \vspace*{2pt} 113 | \lipsum[1][1-20] 114 | 115 | \pagebreak 116 | 117 | \medskip 118 | 119 | \printbibliography[heading=bibintoc,title={\centering Bibliography}] 120 | 121 | \end{document} 122 | -------------------------------------------------------------------------------- /Fancy-Book/package/Required packages.md: -------------------------------------------------------------------------------- 1 | ## List of Required packages 2 | ### For `color-env.sty` 3 | - xcolor 4 | - graphicx 5 | - mdframed 6 | - framed 7 | - amsthm 8 | 9 | ### For `notes.cls` 10 | - biblatex 11 | - csquote 12 | - graphicx/graphics 13 | - float 14 | - wrapfig 15 | - hyperref 16 | - lmodern 17 | - babel 18 | - geometry 19 | - fancyhdr 20 | - fourier-orns 21 | - xpatch 22 | - blindtext 23 | - xcolor 24 | 25 | ### For fancy title page and text 26 | - background 27 | - pgfornament 28 | - calligra 29 | - lettrine 30 | - GoudyIn -------------------------------------------------------------------------------- /Fancy-Book/package/color-env.sty: -------------------------------------------------------------------------------- 1 | \ProvidesPackage{color-env}[2020/10/31 color-env] 2 | 3 | %%%%%%%%%%%%%%%% 4 | % Requirements % 5 | %%%%%%%%%%%%%%%% 6 | 7 | \RequirePackage{xcolor} 8 | \RequirePackage{graphicx} 9 | \RequirePackage[framemethod=TikZ]{mdframed} %% for colored framed boxes 10 | \RequirePackage{framed} %% for problem 11 | \RequirePackage{amsthm} %% for theorem environment 12 | 13 | %%%%%%%%%%%%%%%%%% 14 | % Environments % 15 | %%%%%%%%%%%%%%%%%% 16 | 17 | %%%%%%%% Problem %%%%%%%%%%%%% 18 | \colorlet{shadecolor}{orange!12} 19 | \newtheorem{prob}{Problem} 20 | \newenvironment{problem} 21 | {\begin{shaded}\begin{prob}} 22 | {\end{prob}\end{shaded}} 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | 25 | %%%%%%%%%%%%%%%% THEOREM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 26 | \newcounter{theo}[section] \setcounter{theo}{0} %% counter 27 | \renewcommand{\thetheo}{\arabic{chapter}.\arabic{section}.\arabic{theo}} 28 | \newenvironment{theorem}[2][]{% 29 | \refstepcounter{theo}% 30 | \ifstrempty{#1}% 31 | {\mdfsetup{% 32 | frametitle={% 33 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 34 | \node[anchor=east,rectangle,fill=blue!20] 35 | {\strut Theorem~\thetheo};}} 36 | }% 37 | {\mdfsetup{% 38 | frametitle={% 39 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 40 | \node[anchor=east,rectangle,fill=blue!20] 41 | {\strut Theorem~\thetheo:~#1};}}% 42 | }% 43 | \mdfsetup{innertopmargin=10pt,linecolor=blue!20,% 44 | linewidth=2pt,topline=true,% 45 | frametitleaboveskip=\dimexpr-\ht\strutbox\relax 46 | } 47 | \begin{mdframed}[]\relax% 48 | \label{#2}}{\end{mdframed}} 49 | %%%%%%%%%%%%%%% LEMMA %%%%%%%%%%%%%%% 50 | \newcounter{lem}[section]\setcounter{lem}{0} 51 | \renewcommand{\thelem}{\arabic{chapter}.\arabic{section}.\arabic{lem}} 52 | \newenvironment{lemma}[2][]{% 53 | \refstepcounter{lem}% 54 | \ifstrempty{#1}% 55 | {\mdfsetup{% 56 | frametitle={% 57 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 58 | \node[anchor=east,rectangle,fill=orange!20] 59 | {\strut Lemma~\thelem};}} 60 | }% 61 | {\mdfsetup{% 62 | frametitle={% 63 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 64 | \node[anchor=east,rectangle,fill=orange!20] 65 | {\strut Lemma~\thelem:~#1};}}% 66 | }% 67 | \mdfsetup{innertopmargin=10pt,linecolor=orange!20,% 68 | linewidth=2pt,topline=true,% 69 | frametitleaboveskip=\dimexpr-\ht\strutbox\relax 70 | } 71 | \begin{mdframed}[]\relax% 72 | \label{#2}}{\end{mdframed}} 73 | 74 | %%%%%%%%%%%%% DEFINITION %%%%%%%%%%%%%%% 75 | \newcounter{def}[section]\setcounter{def}{0} 76 | \renewcommand{\thedef}{\arabic{chapter}.\arabic{section}.\arabic{def}} 77 | \newenvironment{definition}[2][]{% 78 | \refstepcounter{def}% 79 | \ifstrempty{#1}% 80 | {\mdfsetup{% 81 | frametitle={% 82 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 83 | \node[anchor=east,rectangle,fill=red!25] 84 | {\strut Definition~\thedef};}} 85 | }% 86 | {\mdfsetup{% 87 | frametitle={% 88 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 89 | \node[anchor=east,rectangle,fill=red!25] 90 | {\strut Definition~\thedef:~#1};}}% 91 | }% 92 | \mdfsetup{innertopmargin=10pt,linecolor=red!25,% 93 | linewidth=2pt,topline=true,% 94 | frametitleaboveskip=\dimexpr-\ht\strutbox\relax 95 | } 96 | \begin{mdframed}[]\relax% 97 | \label{#2}}{\end{mdframed}} 98 | %%%%%%%%%%%%%% COROLLARY %%%%%%%%%%%%%%%%%% 99 | \newcounter{cor}[section]\setcounter{cor}{0} 100 | \renewcommand{\thecor}{\arabic{chapter}.\arabic{section}.\arabic{cor}} 101 | \newenvironment{corollary}[2][]{% 102 | \refstepcounter{cor}% 103 | \ifstrempty{#1}% 104 | {\mdfsetup{% 105 | frametitle={% 106 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 107 | \node[anchor=east,rectangle,fill=yellow!20] 108 | {\strut Corollary~\thecor};}} 109 | }% 110 | {\mdfsetup{% 111 | frametitle={% 112 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 113 | \node[anchor=east,rectangle,fill=yellow!20] 114 | {\strut Corollary~\thecor:~#1};}}% 115 | }% 116 | \mdfsetup{innertopmargin=10pt,linecolor=yellow!20,% 117 | linewidth=2pt,topline=true,% 118 | frametitleaboveskip=\dimexpr-\ht\strutbox\relax 119 | } 120 | \begin{mdframed}[]\relax% 121 | \label{#2}}{\end{mdframed}} 122 | 123 | %%%%%%%%%%%%% PROPOSITIONS %%%%%%%%%%%%%%%%%%% 124 | \newcounter{prop}[section]\setcounter{prop}{0} 125 | \renewcommand{\theprop}{\arabic{chapter}.\arabic{section}.\arabic{prop}} 126 | \newenvironment{proposition}[2][]{% 127 | \refstepcounter{prop}% 128 | \ifstrempty{#1}% 129 | {\mdfsetup{% 130 | frametitle={% 131 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 132 | \node[anchor=east,rectangle,fill=green!25] 133 | {\strut Proposition~\theprop};}} 134 | }% 135 | {\mdfsetup{% 136 | frametitle={% 137 | \tikz[baseline=(current bounding box.east),outer sep=0pt] 138 | \node[anchor=east,rectangle,fill=green!25] 139 | {\strut Proposition~\theprop:~#1};}}% 140 | }% 141 | \mdfsetup{innertopmargin=10pt,linecolor=green!25,% 142 | linewidth=2pt,topline=true,% 143 | frametitleaboveskip=\dimexpr-\ht\strutbox\relax 144 | } 145 | \begin{mdframed}[]\relax% 146 | \label{#2}}{\end{mdframed}} 147 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 148 | 149 | 150 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 151 | \expandafter\let\expandafter\oldproof\csname\string\proof\endcsname 152 | \let\oldendproof\endproof 153 | \renewenvironment{proof}[1][\proofname]{% 154 | \oldproof[\bf \scshape \large #1]% 155 | }{\oldendproof} 156 | \renewcommand\qedsymbol{$\blacksquare$} %% optional if you like it. 157 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 158 | 159 | 160 | %%%%%%%%%%%%%%%% 161 | %\expandafter\let\expandafter\oldproof\csname\string\proof\endcsname 162 | %\let\oldendproof\endproof 163 | %\renewenvironment{proof}[1][\proofname]{% 164 | % \oldproof[\bf \scshape \large #1]% 165 | %}{\oldendproof} 166 | %%%%%%%%%%%%%%%% 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /Fancy-Book/package/fancy-book.cls: -------------------------------------------------------------------------------- 1 | \NeedsTeXFormat{LaTeX2e} 2 | \ProvidesClass{fancy-book}[2021/03/11 Fancy Book] 3 | \LoadClass[a4paper,oneside]{book} 4 | 5 | \RequirePackage[ 6 | backend=biber, 7 | style=numeric, 8 | citestyle=numeric-comp , 9 | sorting=none 10 | ]{biblatex} 11 | \RequirePackage{csquotes} 12 | \RequirePackage{graphicx} %% for inserting images 13 | \RequirePackage{graphics, float} %% for forcing the image to be at the same place as defined 14 | \RequirePackage{wrapfig} %% for wrapping it around text 15 | \RequirePackage{hyperref} 16 | \RequirePackage{lmodern} 17 | \RequirePackage[english]{babel} 18 | \RequirePackage{geometry} 19 | \geometry{margin=1.5in} 20 | \hypersetup{ 21 | colorlinks=true, 22 | linkcolor=blue, 23 | filecolor=magenta, 24 | urlcolor=cyan, 25 | } 26 | 27 | \RequirePackage{fancyhdr} %% fancy footnotes and headers 28 | \RequirePackage{fourier-orns} 29 | \renewcommand{\footnoterule}{\vspace{-0.5em}\noindent\textcolor{darkgray}{\floweroneright ~ \raisebox{2.9pt}{\line(1,0){100}} \leafNE} \vspace{.5em} } 30 | 31 | \RequirePackage{xpatch} 32 | \RequirePackage{blindtext} 33 | \RequirePackage{xcolor} 34 | 35 | \makeatletter 36 | \def\thickhrulefill{\leavevmode\leaders \hrule height 1pt \hfill \kern \z@} 37 | \def\@makechapterhead#1{% 38 | %\vspace*{60\p@}% 39 | {\parindent \z@ \centering 40 | {\color{black} 41 | \scshape \Large \textsc{\textbf{\@chapapp{} \thechapter}} 42 | } 43 | \par\nobreak 44 | \thickhrulefill 45 | \par\nobreak 46 | \interlinepenalty\@M 47 | {\Huge \bf #1 \par} 48 | \thickhrulefill 49 | %\par\nobreak 50 | \vskip 40\p@ 51 | }} 52 | \makeatother 53 | 54 | \makeatletter 55 | \xpatchcmd{\@makeschapterhead}{% 56 | \Huge \bfseries #1\par\nobreak% 57 | }{% 58 | \Huge \bfseries\centering #1\par\nobreak% 59 | }{\typeout{Patched makeschapterhead}}{\typeout{patching of @makeschapterhead failed}} 60 | 61 | \xpatchcmd{\@makechapterhead}{% 62 | \huge\bfseries \@chapapp\space \thechapter 63 | }{% 64 | \huge\bfseries\centering \@chapapp\space \thechapter 65 | }{\typeout{Patched @makechapterhead}}{\typeout{Patching of @makechapterhead failed}} 66 | 67 | \makeatother 68 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 69 | %\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex} %change default length b/w paragrapg 70 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 71 | \makeatletter 72 | \def\@seccntformat#1{\@ifundefined{#1@cntformat}% 73 | {\csname the#1\endcsname\quad}% default 74 | {\csname #1@cntformat\endcsname}}% individual control 75 | \newcommand{\section@cntformat}{\S\thesection\quad} 76 | \newcommand{\subsection@cntformat}{\S\thesubsection\quad} 77 | \newcommand{\subsubsection@cntformat}{\S\thesubsubsection\quad} 78 | \makeatletter 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /Fancy-Book/resource/ctan_lion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-aditya/LaTeX-template/4934f469b7d0c55cc6bc5bd864016d6d5555285f/Fancy-Book/resource/ctan_lion.png -------------------------------------------------------------------------------- /Fancy-Book/resource/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-aditya/LaTeX-template/4934f469b7d0c55cc6bc5bd864016d6d5555285f/Fancy-Book/resource/icon.png -------------------------------------------------------------------------------- /Fancy-Book/resource/references.bib: -------------------------------------------------------------------------------- 1 | 2 | @misc{wiki:latex, 3 | author = {Wikibooks}, 4 | title = "{LaTeX} --- Wikibooks{,} The Free Textbook Project", 5 | year = "2020", 6 | url = "https://en.wikibooks.org/w/index.php?title=LaTeX&oldid=3790790", 7 | } 8 | 9 | 10 | @book{dirac, 11 | title = {The Principles of Quantum Mechanics}, 12 | author = {Paul Adrien Maurice Dirac}, 13 | isbn = {9780198520115}, 14 | series = {International series of monographs on physics}, 15 | year = {1981}, 16 | publisher = {Clarendon Press}, 17 | keywords = {physics} 18 | } 19 | 20 | @online{knuthwebsite, 21 | author = "Donald Knuth", 22 | title = "Knuth: Computers and Typesetting", 23 | url = "http://www-cs-faculty.stanford.edu/~uno/abcde.html", 24 | addendum = "(accessed: 01.09.2016)", 25 | keywords = "latex,knuth" 26 | } -------------------------------------------------------------------------------- /Fancy-Book/title.tex: -------------------------------------------------------------------------------- 1 | \begin{titlepage} 2 | 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Inspired From %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4 | %%%% https://www.reddit.com/r/LaTeX/comments/j9d739/hello_world_in_latex_is_a_lot_cooler/ %%%%% 5 | %%%%%%%%%%%%%%%% If this doesn't look nice then you may remove it %%%%%%%%%%%%%%%%%%%%%%%%%% 6 | 7 | \backgroundsetup{ 8 | scale=1, 9 | opacity=1, 10 | angle=0, 11 | color=black, 12 | contents={ 13 | \begin{tikzpicture}[color=black, every node/.style={inner sep= 15pt}] 14 | \node (NW) [anchor=north west] at (current page.north west){\pgfornament[width=2.5cm] {131}}; 15 | \node (NE) [anchor=north east] at (current page.north east){\pgfornament[width=2.5cm, symmetry=v]{131}}; 16 | \node (SW) [anchor=south west] at (current page.south west){\pgfornament[width=2.5cm, symmetry=h]{131}}; 17 | \node (SE) [anchor=south east] at (current page.south east){\pgfornament[width=2.5cm, symmetry=c]{131}}; 18 | \foreach \i in {-4,0,4} 19 | \node[anchor=north,xshift=\i cm] at (current page.north){\pgfornament[scale=0.25,symmetry=v]{71}}; 20 | \foreach \i in {-4,0,4} 21 | \node[xshift=\i cm, yshift=32.25 pt] at (current page.south){\pgfornament[scale=0.25,symmetry=v]{71}}; 22 | \foreach \i in {-8,-4,0,4,8} 23 | \node[yshift=\i cm, xshift=32.25pt, rotate=90] at (current page.west){\pgfornament[scale=0.25,symmetry=v]{71}}; 24 | \foreach \i in {-8,-4,0,4,8} 25 | \node[yshift=\i cm, xshift=-32.25pt, rotate=90] at (current page.east){\pgfornament[scale=0.25,symmetry=v]{71}}; 26 | \foreach \i in {-11,-9,...,7,9} 27 | \node[anchor=west, yshift=\i cm, xshift=52.25pt, rotate=90] at (current page.west){\pgfornament[scale=0.1]{80}}; 28 | \foreach \i in {-11,-9,...,7,9} 29 | \node[anchor=east, yshift=\i cm, xshift=-52.25pt, rotate=-90] at (current page.east){\pgfornament[scale=0.1]{80}}; 30 | \end{tikzpicture} 31 | }} 32 | 33 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 34 | 35 | \centering % Centre everything on the title page 36 | 37 | \scshape % Use small caps for all text on the title page 38 | 39 | \vspace*{\baselineskip} % White space at the top of the page 40 | 41 | %------------------------------------------------ 42 | % Title 43 | %------------------------------------------------ 44 | 45 | \rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % Thick horizontal rule 46 | \rule{\textwidth}{0.4pt} % Thin horizontal rule 47 | 48 | \vspace{0.75\baselineskip} % Whitespace above the title 49 | 50 | {\huge \calligra{ The Title }\\} % Title 51 | 52 | \vspace{0.75\baselineskip} % Whitespace below the title 53 | 54 | \rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % Thin horizontal rule 55 | \rule{\textwidth}{1.6pt} % Thick horizontal rule 56 | 57 | \vspace{2\baselineskip} % Whitespace after the title block 58 | 59 | %------------------------------------------------ 60 | % Subtitle 61 | %------------------------------------------------ 62 | 63 | \LARGE{Course Name} 64 | 65 | \vspace*{3\baselineskip} % Whitespace under the subtitle 66 | 67 | 68 | 69 | \vspace{0.5\baselineskip} 70 | 71 | {\scshape \LARGE Professor\\ } % Editor list 72 | 73 | \vspace{0.2\baselineskip} 74 | 75 | \textit{\Large University} 76 | 77 | \vfill 78 | 79 | %------------------------------------------------ 80 | % Author 81 | %------------------------------------------------ 82 | 83 | \begin{figure}[!h] 84 | \centering 85 | \includegraphics[width = 3cm, height= 3cm]{resource/icon.png}%% include the university icon here 86 | \end{figure} 87 | \vspace{0.3\baselineskip} 88 | 89 | 90 | {\large Edited by\\ Aditya Dev} 91 | \end{titlepage} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Aditya Dev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Notes/color-tufte.sty: -------------------------------------------------------------------------------- 1 | \ProvidesPackage{color-tufte}[2021/03/11 Color Tufte] 2 | 3 | %%%%%%%%%%%%%%%% 4 | % Requirements % 5 | %%%%%%%%%%%%%%%% 6 | 7 | \RequirePackage{xcolor} 8 | \RequirePackage{graphicx} 9 | \RequirePackage{framed} 10 | \RequirePackage{amsthm} 11 | \RequirePackage[many]{tcolorbox} 12 | %%%%%%%%%%%%%%%%%% 13 | % Environments % 14 | %%%%%%%%%%%%%%%%%% 15 | 16 | %%%%%%%%%%%%%%%% THEOREM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17 | \newtheorem{theorem}{Theroem}[section] 18 | \tcolorboxenvironment{theorem}{ 19 | boxrule=0pt, 20 | boxsep=2pt, 21 | colback={White!90!Dandelion}, 22 | enhanced jigsaw, 23 | borderline west={2pt}{0pt}{Dandelion}, 24 | sharp corners, 25 | before skip=10pt, 26 | after skip=10pt, 27 | breakable, 28 | } 29 | %%%%%%%%%%%%%%% LEMMA %%%%%%%%%%%%%%% 30 | \newtheorem{lemma}{Lemma}[section] 31 | 32 | \tcolorboxenvironment{lemma}{ 33 | boxrule=0pt, 34 | boxsep=2pt, 35 | colback={White!90!Red}, 36 | enhanced jigsaw, 37 | borderline west={2pt}{0pt}{Red}, 38 | sharp corners, 39 | before skip=10pt, 40 | after skip=10pt, 41 | breakable, 42 | } 43 | %%%%%%%%%%%%% DEFINITION %%%%%%%%%%%%%%% 44 | \newtheorem{definition}{Definition}[section] 45 | 46 | \tcolorboxenvironment{definition}{ 47 | boxrule=0pt, 48 | boxsep=2pt, 49 | colback={White!90!Cerulean}, 50 | enhanced jigsaw, 51 | borderline west={2pt}{0pt}{Cerulean}, 52 | sharp corners, 53 | before skip=10pt, 54 | after skip=10pt, 55 | breakable, 56 | } 57 | %%%%%%%%%%%%%% COROLLARY %%%%%%%%%%%%%%%%%% 58 | \newtheorem{corollary}{Corollary}[section] 59 | 60 | \tcolorboxenvironment{corollary}{ 61 | boxrule=0pt, 62 | boxsep=2pt, 63 | colback={White!90!Yellow}, 64 | enhanced jigsaw, 65 | borderline west={2pt}{0pt}{Yellow}, 66 | sharp corners, 67 | before skip=10pt, 68 | after skip=10pt, 69 | breakable, 70 | } 71 | %%%%%%%%%%%%% PROPOSITIONS %%%%%%%%%%%%%%%%%%% 72 | \newtheorem{proposition}{Proposition}[section] 73 | 74 | \tcolorboxenvironment{proposition}{ 75 | boxrule=0pt, 76 | boxsep=2pt, 77 | colback={green!10}, 78 | enhanced jigsaw, 79 | borderline west={2pt}{0pt}{Green}, 80 | sharp corners, 81 | before skip=10pt, 82 | after skip=10pt, 83 | breakable, 84 | } 85 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 86 | %\tcolorboxenvironment{proof}{ 87 | %boxrule=0pt, 88 | %boxsep=2pt, 89 | %blanker, 90 | %borderline west={2pt}{0pt}{NavyBlue!80!white}, 91 | %before skip=10pt, 92 | %after skip=10pt, 93 | %left=12pt, 94 | %right=12pt, 95 | %breakable, 96 | %} 97 | 98 | %%%%%%%% Problem %%%%%%%%%%%%% 99 | \newtheorem{prob}{Problem} 100 | \newenvironment{problem} 101 | {\colorlet{shadecolor}{White!90!Orange}\begin{shaded}\begin{prob}} 102 | {\end{prob}\end{shaded}} 103 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /Notes/notes-sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-aditya/LaTeX-template/4934f469b7d0c55cc6bc5bd864016d6d5555285f/Notes/notes-sample.pdf -------------------------------------------------------------------------------- /Notes/notes-sample.tex: -------------------------------------------------------------------------------- 1 | % !TEX program = pdflatex 2 | \documentclass{tufte-handout} 3 | 4 | \title{\centering Course: Course Name} 5 | \author{I'm the author} 6 | 7 | 8 | \date{\today} % without \date command, current date is supplied 9 | 10 | %\geometry{showframe} % display margins for debugging page layout 11 | 12 | \usepackage{graphicx} % allow embedded images 13 | \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio} 14 | \usepackage{amsmath} % extended mathematics 15 | \usepackage{booktabs} % book-quality tables 16 | \usepackage{units} % non-stacked fractions and better unit spacing 17 | \usepackage{multicol} % multiple column layout facilities 18 | \usepackage{lipsum} % filler text 19 | \usepackage{fancyvrb} % extended verbatim environments 20 | \fvset{fontsize=\normalsize}% default font size for fancy-verbatim environments 21 | 22 | % Standardize command font styles and environments 23 | \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds backslash automatically 24 | \newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument 25 | \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument 26 | \newcommand{\docenv}[1]{\textsf{#1}}% environment name 27 | \newcommand{\docpkg}[1]{\texttt{#1}}% package name 28 | \newcommand{\doccls}[1]{\texttt{#1}}% document class name 29 | \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name 30 | \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment 31 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 32 | % add numbers to chapters, sections, subsections 33 | \setcounter{secnumdepth}{2} 34 | \usepackage{xcolor} 35 | \definecolor{g1}{HTML}{077358} 36 | \definecolor{g2}{HTML}{00b096} 37 | % chapter format %(if you use tufte-book class) 38 | %\titleformat{\chapter}% 39 | %{\huge\rmfamily\itshape\color{red}}% format applied to label+text 40 | %{\llap{\colorbox{red}{\parbox{1.5cm}{\hfill\itshape\huge\color{white}\thechapter}}}}% label 41 | %{2pt}% horizontal separation between label and title body 42 | %{}% before the title body 43 | %[]% after the title body 44 | 45 | % section format 46 | \titleformat{\section}% 47 | {\normalfont\Large\itshape\color{g1}}% format applied to label+text 48 | {\llap{\colorbox{g1}{\parbox{1.5cm}{\hfill\color{white}\thesection}}}}% label 49 | {1em}% horizontal separation between label and title body 50 | {}% before the title body 51 | []% after the title body 52 | 53 | % subsection format 54 | \titleformat{\subsection}% 55 | {\normalfont\large\itshape\color{g2}}% format applied to label+text 56 | {\llap{\colorbox{g2}{\parbox{1.5cm}{\hfill\color{white}\thesubsection}}}}% label 57 | {1em}% horizontal separation between label and title body 58 | {}% before the title body 59 | []% after the title body 60 | 61 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 62 | \usepackage{color-tufte} 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | 65 | 66 | \begin{document} 67 | 68 | \maketitle% this prints the handout title, author, and date 69 | 70 | \begin{abstract} 71 | \noindent 72 | A simple notes template. Inspired by Tufte-\LaTeX class and beautiful notes by \begin{verbatim*} 73 | https://github.com/abrandenberger/course-notes 74 | \end{verbatim*} 75 | \end{abstract} 76 | 77 | %\printclassoptions 78 | 79 | 80 | \section{Page Layout}\label{sec:page-layout} 81 | 82 | \lipsum[1][1-8]\footnote[1]{Footnotes will appear on the margins} 83 | 84 | \begin{definition}%% [can be kept empty] 85 | Here's is the beautiful Schr\"odinger equation 86 | \[ i\hbar {\frac {\partial }{\partial t}}\Psi (x,t)= 87 | \left[-{\frac {\hbar ^{2}}{2m}}{\frac {\partial ^{2}}{\partial x^{2}}}+V(x,t)\right]\Psi (x,t)\] 88 | \end{definition} 89 | 90 | \subsection{Headings}\label{sec:headings} 91 | 92 | 93 | \marginnote{\begin{proof}[Proof (Theorem 1.1)] 94 | 95 | \lipsum[1][1-3]\end{proof}} 96 | \begin{theorem}%% [can be kept empty] 97 | \lipsum[1][1-3] %% for dummy text 98 | \end{theorem} 99 | 100 | \begin{lemma}%% [can be kept empty] 101 | \lipsum[1][1-3] %% for dummy text 102 | 103 | \end{lemma} 104 | \begin{proof} 105 | \lipsum[1][1-5] 106 | \end{proof} 107 | 108 | %\marginnote{\begin{proof}\lipsum[1][1-3]\end{proof}} 109 | 110 | \begin{corollary}%% [can be kept empty] 111 | \lipsum[1][1-3] %% for dummy text 112 | \end{corollary} 113 | 114 | \begin{proposition} 115 | \lipsum[1][1-3] %% for dummy text 116 | \end{proposition} 117 | \begin{problem} 118 | \lipsum[1][1-2] 119 | \end{problem} 120 | 121 | \begin{proof} 122 | \lipsum*[1] 123 | \end{proof} 124 | 125 | 126 | \end{document} 127 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LaTeX Template 2 | A LaTeX template for notes and weekly maths assignments. 3 | Some code snippets taken from stackexchange. 4 | I hope it servers you well. :smile: 5 | 6 | ## Overleaf 7 | 8 | Now you can access the template through [Overleaf](https://www.overleaf.com/latex/templates/latex-fancy-book/gpkbpjmhjsqf). 9 | -------------------------------------------------------------------------------- /archived.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dev-aditya/LaTeX-template/4934f469b7d0c55cc6bc5bd864016d6d5555285f/archived.7z --------------------------------------------------------------------------------