Wednesday, August 23, 2023

Latex source code template- Answer Key

 Latex code



% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode

% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.

\documentclass[12pt,fleqn]{article} % use larger type; default would be 10pt
\usepackage{color}
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)

%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.

%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\geometry{margin=1.0in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
%   read geometry.pdf for detailed page layout information

\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{sidecap}% for figure in sides
\usepackage{wrapfig}

%package for page border
\usepackage[export]{adjustbox}

%watermark
\usepackage{draftwatermark}% water mark
\SetWatermarkText{SKCT} %

\SetWatermarkScale{3}
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent

%%% PACKAGES
\usepackage{hyperref}
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{float}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}

\usepackage{color, colortbl}
% circut package for elctrical and electronics circuit draws
%\usepackage{circuitikz}
\usepackage[siunitx]{circuitikz}
%\usepackage{xcolor}
%\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
\usepackage{amsmath}
% These packages are all incorporated in the memoir class to one degree or another...
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{wrapfig}
\setlength{\parindent}{4em}
\setlength{\parskip}{1em}

%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{2pt} % customise the layout...
\lhead{III IT/CSE}\chead{MPMC CIA I Question Bank }\rhead{MPMC}
\lfoot{By Dr.PR,Dr.KS,Dr CS, Ms.MP, Mr MN, }\cfoot{SKCT}\rfoot{\thepage}

%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)

%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\usepackage{setspace} % line space package

%\usepackage[table,xcdraw]{xcolor}
\setlength{\parindent}{2em}
%%% END Article customizations
%%% The "real" document content comes below...
\onehalfspacing
%\date{} % Activate to display a given date or no date (if empty),
         % otherwise the current date is printed
         
        \usepackage{siunitx}
        %include Padf pages
      
        \usepackage{pdfpages}
        \usepackage{amsmath}
        \usepackage{upgreek}


%8086 program 
\usepackage{listings}
\lstdefinestyle{customasm}{
	belowcaptionskip=1\baselineskip,
	frame=single, 
	frameround=tttt,
	xleftmargin=\parindent,
	language=[x86masm]Assembler,
	basicstyle=\footnotesize\ttfamily,
	commentstyle=\itshape\color{green!60!black},
	keywordstyle=\color{blue!80!black},
	identifierstyle=\color{red!80!black},
	tabsize=4,
	numbers=left,
	numbersep=8pt,
	stepnumber=1,
	numberstyle=\tiny\color{gray}, 
	columns = fullflexible,
}
%8086 program end
        
\begin{document}
	
	\begin{table}[h!]
		\begin{center}
			\begin{tabular}{ c  p{13cm}  p{2cm}  }
			\raisebox{-\totalheight}{\includegraphics[width=0.1\textwidth, height=20mm]{Presentation/ski}}
			
			& 
		\begin{center}
			\begin{large}
				\textbf{Sri Krishna College of Technology(Autonomous), Coimbatore }
			\end{large}\\
			  NACC  and NBA accredited \\
			\begin{large}
			\textbf{Department of ECE }
		\end{large}
			\end{center}
			
			& 
			\raisebox{-\totalheight}{\includegraphics[width=0.1\textwidth, height=20mm]{Presentation/skct}}
			\end{tabular}
		\end{center}
	\end{table}
	

\begin{flushleft}
	\textbf{Staff :Dr.P.Rajasekar Dr.K.Shanthi, Dr.C.SenthilKumar Ms.M.Priyadharshini	Mr.M.Navinkumar\\ 
		 Class: III IT/CSE- Sem V\\
		Subject :Microprocessors and Micro controllers                  \hspace{5mm}              Course Code :21IT502 }
\end{flushleft}
\begin{center}
	\begin{large}
	Question Bank
	\end{large}
\end{center}


 \end{document}

No comments:

Post a Comment