Debian Codegraph @

texmf-dist/doc/latex/tiet-question-paper/README.md

raw symbols SCIP
1 # `tiet-question-paper.cls` #
2
3 [Installation](#installation) |
4 [Usage](#usage) |
5 [Emacs Org Integration](#emacs-org-integration)
6
7 Author: Raghav B. Venkataramaiyer
8 Email: bv.raghav -at- thapar -dot- edu
9 Email: bvraghav -at- gmail -dot- com
10 License: [MIT License](./LICENSE)
11 Version: 2024-06-22
12
13 Provide a document class `tiet-question-paper` in order
14 to create a question paper for [the Thapar
15 Institute](https://thapar.edu/) in $\LaTeX$. Although
16 created for the TIET, the module, however, is adaptable
17 to any organisation.
18
19 The following example is a screenshot from
20 [`sample.pdf`](./sample.pdf), with the source at
21 [`sample.tex`](./sample.tex)
22
23 ![](./images/sample.png)
24
25 ## Installation ##
26
27 ### CTAN ###
28
29 TBA
30
31 ### From Source ###
32
33 1. `tlmgr init-usertree`
34 2. `kpsewhich -var-value=TEXMFHOME` should return
35 `~/texmf`
36 3. `mkdir -p ~/texmf/tex/latex`
37 4. `cd ~/texmf/tex/latex`
38 5. `git clone
39 [email protected]:bvraghav/qptiet_latex-class tiet-question-paper`
40 6. Verify that `kpsewhich tiet-question-paper.cls` finds `tiet-question-paper.cls`.
41
42 ## Usage ##
43
44 ### Document Class ###
45
46 The document class is based on `article`. And all the
47 options are passed forward as is.
48
49 ```latex
50 \documentclass[11pt,onecolumn]{tiet-question-paper}
51 ```
52
53 ### Title Block ###
54
55 Only the following macros contribute to the title block.
56
57 ```latex
58 \date{28 May 2024}
59 % \institute{Thapar Institute of Engineering \&
60 % Technology} % Default value
61 % \abbrevinst{\textsc{tiet}} % Reserved for future
62 % \instaddress{Patiala 147004} % Reserved for future
63 % \cohort{} % Reserved for future
64 % \instlogo{images/tiet-logo.pdf} % Optional
65 \schoolordepartment{Computer Science \& Engineering Department}
66 \examname{End Semester Examination}
67 \coursecode{UCS505}
68 \coursename{Computer Graphics}
69 \timeduration{3 hours}
70 \maxmarks{45}
71 \faculty{ANG,AMK,HPS,YDS,RGB}
72 ```
73
74 ### Geometry ###
75
76 The class loads `geometry` package with following
77 default options,
78
79 ```latex
80 \RequirePackage[%
81 a4paper,%
82 left=1in,%
83 top=0.5in,%
84 right=0.75in,%
85 bottom=0.75in%
86 ]{geometry}
87 ```
88
89 However, a user may reconfigure using `\geometry`
90 command in [the
91 preamble](https://duckduckgo.com/?q=what+is+a+preamble+in+latex+document)
92 for example,
93
94 ```latex
95 \geometry{letterpaper,bindingoffset=0.2in,
96 left=1.2in,right=1.2in,top=.8in,bottom=.8in,
97 footskip=.25in}
98 ```
99
100 ### Rules ###
101
102 ```latex
103 \bvrhrule
104 \bvrhrule[2pt]
105 ```
106 Create a horizontal rule with length equal to line
107 width and thickness `0.4pt` by default. Optional
108 argument specifies line thickness. Here’s the
109 implementation detail,
110
111 ```latex
112 \DeclareRobustCommand%
113 % Horizontal rule after each question
114 \bvrhrule[1][0.4pt]{\rule{\linewidth}{#1}}
115 ```
116
117 ### Line Skip ###
118
119 ```latex
120 \bvrskipline
121 \bvrskipline[1.2]
122 ```
123
124 Create vertical blank space with height specified as a
125 factor of `\baselineskip`. Optional argument specifies
126 the factor, `1.0` by default. Here’s the
127 implementation detail,
128
129 ```latex
130 \DeclareRobustCommand%
131 % Skip line
132 \bvrskipline[1][]{\vspace{#1\baselineskip}}
133 ```
134
135 ## Emacs Org Integration ##
136 Add the following to [the
137 init-file](https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html)
138 ```elisp
139 (add-to-list 'org-latex-classes
140 `("tiet-question-paper" "\\documentclass{tiet-question-paper}
141 [NO-DEFAULT-PACKAGES]
142 \\usepackage{amsmath}
143 \\usepackage{graphicx}
144 \\usepackage{wrapfig}
145 \\usepackage{amssymb}
146 \\usepackage[unicode]{hyperref}
147 " nil))
148 ```
149
150 Here’s a [`sample-org`](./sample-org.org) file; that
151 produces a [`PDF`](./sample-org.pdf)