Installation | Usage | Emacs Org Integration | [Overleaf Template]
Author: Raghav B. Venkataramaiyer
Email: bv.raghav -at- thapar -dot- edu
Email: bvraghav -at- gmail -dot- com
License: MIT License
Version: 2024-06-22
Provide a document class tiet-question-paper
in order
to create a question paper for the Thapar
Institute in
The following example is a screenshot from
sample.pdf
, with the source at
sample.tex
tlmgr --usermode --repository ctan install tiet-question-paper
In case there are errors like pubkey missing
, or
backups folder not found
; Try the following (may
require root
permissions):
mkdir -p /usr/share/tlpkg/backups
tlmgr --repository ctan update --self
tlmgr --repository ctan install texlive-scripts
And/ or (with local user login):
mkdir -p /home/bvraghav/texmf/tlpkg/backups
tlmgr init-usertree
kpsewhich -var-value=TEXMFHOME
should return~/texmf
mkdir -p ~/texmf/tex/latex
cd ~/texmf/tex/latex
git clone [email protected]:bvraghav/qptiet_latex-class tiet-question-paper
- Verify that
kpsewhich tiet-question-paper.cls
findstiet-question-paper.cls
.
The document class is based on article
. And all the
options are passed forward as is.
\documentclass[11pt,onecolumn]{tiet-question-paper}
Only the following macros contribute to the title block.
\date{28 May 2024}
% \institute{Thapar Institute of Engineering \&
% Technology} % Default value
% \abbrevinst{\textsc{tiet}} % Reserved for future
% \instaddress{Patiala 147004} % Reserved for future
% \cohort{} % Reserved for future
% \instlogo{images/tiet-logo.pdf} % Optional
\schoolordepartment{Computer Science \& Engineering Department}
\examname{End Semester Examination}
\coursecode{UCS505}
\coursename{Computer Graphics}
\timeduration{3 hours}
\maxmarks{45}
\faculty{ANG,AMK,HPS,YDS,RGB}
The class loads geometry
package with following
default options,
\RequirePackage[%
a4paper,%
left=1in,%
top=0.5in,%
right=0.75in,%
bottom=0.75in%
]{geometry}
However, a user may reconfigure using \geometry
command in the
preamble
for example,
\geometry{letterpaper,bindingoffset=0.2in,
left=1.2in,right=1.2in,top=.8in,bottom=.8in,
footskip=.25in}
\bvrhrule
\bvrhrule[2pt]
Create a horizontal rule with length equal to line
width and thickness 0.4pt
by default. Optional
argument specifies line thickness. Here’s the
implementation detail,
\DeclareRobustCommand%
% Horizontal rule after each question
\bvrhrule[1][0.4pt]{\rule{\linewidth}{#1}}
\bvrskipline
\bvrskipline[1.2]
Create vertical blank space with height specified as a
factor of \baselineskip
. Optional argument specifies
the factor, 1.0
by default. Here’s the
implementation detail,
\DeclareRobustCommand%
% Skip line
\bvrskipline[1][]{\vspace{#1\baselineskip}}
Add the following to the init-file
(add-to-list 'org-latex-classes
`("tiet-question-paper" "\\documentclass{tiet-question-paper}
[NO-DEFAULT-PACKAGES]
\\usepackage{amsmath}
\\usepackage{graphicx}
\\usepackage{wrapfig}
\\usepackage{amssymb}
\\usepackage[unicode]{hyperref}
" nil))
Here’s a sample-org
file; that
produces a PDF