noice23

lat

May 12th, 2025 (edited)
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 9.98 KB | None | 0 0
  1. 1.
  2. \documentclass{article}
  3. \usepackage{lipsum} % for generating dummy text
  4. \usepackage{fancyhdr} % for header and footer
  5.  
  6. % Header and footer settings
  7. \pagestyle{fancy}
  8. \fancyhf{}
  9. \rhead{Title of Document}
  10. \lfoot{Vemana Institute of Technology}
  11. \rfoot{\thepage}
  12.  
  13. \begin{document}
  14.  
  15. \section{Section1}
  16. \lipsum[1] % generates dummy text
  17.  
  18. \section{Section2}
  19. \lipsum[2] % generates dummy text
  20.  
  21. \end{document}
  22.  
  23.  
  24. 2.
  25. \documentclass{article}
  26. % Set page margins
  27. \usepackage[margin=1in]{geometry}
  28.  
  29. \begin{document}
  30.  
  31. \title{Sample Abstract}
  32. \author{Your Name}
  33. \date{\today}
  34.  
  35. \maketitle
  36.  
  37. \section*{Abstract}
  38. An abstract is a short summary of your completed research. It is intended to describe your work without going into great detail. Abstracts should be self-contained and concise, explaining your work as briefly and clearly as possible. An abstract lets readers get the gist or essence of your paper or article quickly, in order to decide whether to read the full paper.
  39.  
  40. \textbf{Keywords:} abstract, summary, LaTeX
  41.  
  42. \end{document}
  43.  
  44.  
  45. 3.
  46. \documentclass[12pt]{report}
  47. \usepackage{graphicx}
  48. \begin{document}
  49. \begin{titlepage}
  50. \centering
  51. \includegraphics[width=0.15\textwidth]{vtu logo.png}\\[1cm] % University Logo
  52. \textsc{\LARGE Visvesvaraya Technological University}\\[1.5cm] % University Name
  53. \textsc{\Large Project Report}\\[0.5cm] % Document Type
  54. \rule{\linewidth}{0.2 mm} \\[0.4 cm]
  55. { \huge \bfseries Title of Your Project}\\
  56. \rule{\linewidth}{0.2 mm} \\[1.5 cm]
  57. \textsc{\large Your Name}\\[0.5cm] % Author Name
  58. \textsc{\large Department of Your Department}\\[0.5cm] % Department Name
  59. \textsc{\large Your College Name}\\[0.5cm] % College Name
  60. {\large \today}\\[2 cm] % Date
  61. \vfill
  62. \end{titlepage}
  63. \end{document}
  64.  
  65.  
  66.  
  67. 4.
  68. \documentclass[16pt]{scrartcl}
  69. \usepackage[a4paper,left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
  70. \usepackage{pdflscape,setspace,amsmath,amssymb}
  71. \usepackage[utf8]{inputenc}
  72. \usepackage[T1]{fontenc}
  73. \usepackage{calligra}
  74. \usepackage{tgschola}
  75. \usepackage{fourier-orns}
  76. \usepackage{graphicx}
  77. \usepackage{wallpaper}
  78. \usepackage[normalem]{ulem}
  79. \usepackage{charter}
  80. \usepackage{microtype}
  81. \hyphenpenalty 100000
  82. % Define your certificate content here
  83. \newcommand{\certificateTitle}{\emph{\LARGE Certificate}}
  84. \newcommand{\certificateText}{%
  85. This is to certify that this is a bonafide record of the project presented by the
  86. students whose names are given below during \textless Monsoon/Winter and
  87. Year here\textgreater{} in partial fulfillment of the requirements of the degree
  88. of Bachelor of Technology in Computer Science and Engineering.
  89. }
  90. % Define the signature lines
  91. \def\signature#1#2{%
  92. \parbox[b]{1in}{\smash{#1}\vskip12pt} \hfill
  93. \parbox[t]{2.8in}{\shortstack{\vrule width 2.8in height 0.4pt\\\small#2}}}
  94. \def\sigskip{\vskip0.4in plus 0.1in}
  95. \def\beginskip{\vskip0.5875in plus 0.1in}
  96. \begin{document}
  97. \begin{center}
  98. \LARGE\textsc{Vemana Institute of Technology }\\[0.5cm]
  99. \large{Department of Computer Science and Engineering}\\[2.0cm]
  100. \emph{\certificateTitle}\\[2.5cm]
  101. \end{center}
  102. \normalsize
  103. \certificateText
  104. \begin{table}[h]
  105. \centering
  106. \begin{tabular}{lr}
  107. Roll No & Names of Students \\
  108. \hline
  109. <Roll no here> & <Name here> \\
  110. <Roll no here> & <Name here> \\
  111. <Roll no here> & <Name here> \\
  112. \end{tabular}
  113. \end{table}
  114. \vfill
  115. \begin{flushright}
  116. Ms. Sneha Zolgikar\\
  117. (Project Guide)\\[1.5cm]
  118. Dr. Ramakrishna M\\
  119. (Course Coordinator)
  120. \end{flushright}
  121. \begin{flushleft}
  122. Date:\today
  123. \end{flushleft}
  124. \end{document}
  125.  
  126.  
  127. 5.
  128. \documentclass{article}
  129. \usepackage{geometry}
  130. \usepackage{booktabs}
  131. \geometry{a4paper, left=2cm, right=2cm, top=2cm, bottom=2cm}
  132. \begin{document}
  133. \title{Student Marks Report}
  134. \author{Your Name}
  135. \date{\today}
  136. \maketitle
  137. \section*{Marks Summary}
  138. \begin{table}[h]
  139. \centering
  140. \begin{tabular}{ccccccc}
  141. \toprule
  142. \textbf{S.No} & \textbf{USN} & \textbf{Student Name} &
  143. \textbf{Subject1} & \textbf{Subject2} & \textbf{Subject3} &
  144. \textbf{Total Marks} \\
  145. \midrule
  146. 1 & 4XX22XX001 & Name 1 & 89 & 60 & 90 & 239 \\
  147. 2 & 4XX22XX002 & Name 2 & 78 & 45 & 98 & 221 \\
  148. 3 & 4XX22XX003 & Name 3 & 67 & 55 & 59 & 181 \\
  149. \bottomrule
  150. \end{tabular}
  151. \caption{Student Marks Report}
  152. \end{table}
  153. \end{document}
  154.  
  155.  
  156. 6.
  157. \documentclass{article}
  158. \usepackage{graphicx}  
  159. \usepackage{caption}
  160. \begin{document}
  161. \begin{figure}
  162. \centering
  163. \begin{minipage}{.5\textwidth}
  164. \centering
  165. \includegraphics[width=.4\linewidth]{f1.jpg}
  166. \captionof{figure}{A figure}
  167. \label{fig:test1}
  168. \end{minipage}%
  169. \begin{minipage}{.5\textwidth}
  170. \centering
  171. \includegraphics[width=.4\linewidth]{f2.jpg}
  172. \captionof{figure}{Another figure}
  173. \label{fig:test2}
  174. \end{minipage}
  175. \end{figure}
  176. \end{document}
  177.  
  178.  
  179. 7.
  180. \documentclass{article}
  181. \usepackage{amsmath, amssymb}
  182.  
  183. \begin{document}
  184. The quadratic formula:
  185. \[
  186. x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
  187. \]
  188. Step-wise simplification:
  189. \[
  190. = \frac{-2 \pm `\sqrt{2^2 - 4(1)(-8)}}{2 \times 1}
  191. \]
  192.  
  193. \[
  194. = \frac{-2 \pm \sqrt{4 + 32}}{2}
  195. \]
  196.  
  197. Permutation-related summation:
  198. \[
  199. \varphi_{\sigma}^{\lambda} A_t = \sum_{\pi \in C_t} \operatorname{sgn}(\pi) \varphi_{\sigma}^{\lambda} \varphi_{\pi}^{\lambda}
  200. \]
  201.  
  202. \[
  203. = \sum_{\tau \in C_{\sigma t}} \operatorname{sgn}(\sigma^{-1} \tau \sigma) \varphi_{\sigma}^{\lambda} \varphi_{\sigma^{-1} \tau \sigma}^{\lambda}
  204. \]
  205.  
  206. \[
  207. = A_{\sigma t} \varphi_{\sigma}^{\lambda}
  208. \]
  209.  
  210. \end{document}
  211.  
  212.  
  213. 8.
  214. \documentclass{article}
  215. \usepackage[english]{babel}
  216. \usepackage{amsthm} % Required for theorem environments
  217.  
  218. % Define theorem-like environments
  219. \newtheorem{theorem}{Theorem}
  220. \newtheorem{definition}{Definition}
  221. \newtheorem{corollary}{Corollary}
  222. \newtheorem{lemma}{Lemma}
  223.  
  224. \begin{document}
  225. \section{Introduction}
  226.  
  227. % Example theorem
  228. \begin{theorem}
  229. Let \(f\) be a function whose derivative exists in every point, then \(f\) is a
  230. continuous function.
  231. \end{theorem}
  232. % Example corollary (referencing the theorem)
  233. \begin{corollary}
  234. There's no right rectangle whose sides measure 3 cm, 4 cm, and 6 cm.
  235. \end{corollary}
  236.  
  237. % Example lemma (also referencing the theorem)
  238. \begin{lemma}
  239. Given two line segments whose lengths are \(a\) and \(b\) respectively,
  240. there is a real number \(r\) such that \(b = ra\).
  241. \end{lemma}
  242. \end{document}
  243.  
  244.  
  245. 9.
  246. \documentclass[10pt]{article}
  247. \usepackage{cite}
  248. \title{Bibliography management}
  249. \author{}  
  250. \date{}    
  251. \begin{document}
  252. \maketitle
  253. \section{Introduction}
  254. In recent years, the study of artificial intelligence (AI) has gained significant
  255. attention\cite{einstein}. Various fields, such as natural language processing
  256. (NLP)\cite{dirac},
  257. computer
  258. vision\cite{latexcompanion},
  259. and
  260. robotics\cite{knuthwebsite}, have seen remarkable advancements. One notable
  261. development is the creation of large language models like GPT-3 and GPT
  262. 4\cite{knuth-fa}. These models have shown impressive capabilities in
  263. understanding and generating human-like text\cite{knuth-acp}.
  264. \section{Discussion}
  265. AI is not only transforming industries but also influencing academic
  266. research\cite{ctan}. Studies have shown that AI can significantly improve the
  267. efficiency of data analysis and interpretation\cite{Zhang}. Moreover, AI-driven
  268. tools are being used to tackle complex problems in medicine\cite{Hassouneh} and
  269. environmental science\cite{Thaher}.
  270. \begin{thebibliography}{99}
  271. \bibitem{einstein} Albert Einstein, the electrodynamics of moving bodies, Annalen
  272. der Physik, 1905.
  273. \bibitem{dirac} Paul Adrien Maurice Dirac, The Principles of Quantum Mechanics,
  274. Clarendon Press, 1981.
  275. \bibitem{latexcompanion} Frank Mittelbach, The \LaTeX\ Companion, Addison
  276. Wesley, 1993.
  277. \bibitem{knuthwebsite} Donald Knuth, Knuth: Computers and Typesetting,
  278. accessed: 01.09.2016, 1992.
  279. \bibitem{knuth-fa} Donald E. Knuth, Fundamental Algorithms, Addison-Wesley,
  280. 1973.
  281. \bibitem{knuth-acp} Donald E. Knuth, The Art of Computer Programming, Four
  282. volumes, 1968.
  283. \bibitem{ctan} George D. Greenwade, The {C}omprehensive {T}ex {A}rchive
  284. {N}etwork ({CTAN}), TUGBoat, 1993.
  285. \bibitem{Zhang} Min Zhang, The Influence of Deep Learning Algorithms , IEEE
  286. Access, 2020.
  287. \bibitem{Hassouneh} Yousef Hassouneh, A Supervised Contrastive Learning
  288. Approach , IEEE Transactions , 2023.
  289. \bibitem{Thaher} Thaer Thaher, An Intelligent Ensemble-Based Model, IEEE
  290. Access, 2021.
  291. \end{thebibliography}
  292. \end{document}
  293.  
  294.  
  295. 10.
  296. \documentclass[border=0.2cm]{standalone}
  297. \usepackage{tikz}
  298. \begin{document}
  299. \begin{tikzpicture}
  300. [
  301. level 1/.style = {red, sibling distance = 4cm},
  302. level 2/.style = {blue, sibling distance = 2.5cm}
  303. ]
  304. \node {parent}
  305. child {node {child 1}
  306. child {[
  307. fill] circle (2pt)}
  308. child {[fill] circle (2pt)}
  309. edge from parent [dashed]}  
  310. child {node {child 2}
  311. child {node {grandchild 1}
  312. child {node {great-grandchild}}}
  313. child {node {grandchild 2}}
  314. edge from parent node [right] {x}};
  315. \end{tikzpicture}
  316. \end{document}
  317.  
  318.  
  319. 11.
  320. \documentclass{article}
  321. \usepackage{algorithm}
  322. \usepackage{algpseudocode}
  323. \begin{document}
  324. \begin{algorithm}
  325. \caption{An algorithm with caption}\label{alg:cap}
  326. \begin{algorithmic}
  327. \Require $n \geq 0$
  328. \Ensure $y = x^n$
  329. \State $y \gets 1$
  330. \State $X \gets x$
  331. \State $N \gets n$
  332. \While{$N \neq 0$}
  333. \If{$N$ is even}
  334. \State $X \gets X \times X$
  335. \State $N \gets \frac{N}{2}$ \Comment{This is a comment}
  336. \ElsIf{$N$ is odd}
  337. \State $y \gets y \times X$
  338. \State $N \gets N - 1$
  339. \EndIf
  340. \EndWhile
  341. \end{algorithmic}
  342. \end{algorithm}
  343.  
  344. \end{document}
  345.  
  346.  
  347. 12.
  348. \documentclass{report}
  349. \usepackage{fullpage} % Set margins to 1 inch all around
  350. \renewcommand{\baselinestretch}{2} % Double spacing
  351. \author{Your Name Here}
  352. \title{Your Title Here}
  353.  
  354. \begin{document}
  355. \maketitle
  356. \tableofcontents
  357.  
  358. % Add your report content here
  359. \chapter{Introduction}
  360. Your introductory text goes here.
  361.  
  362. \chapter{Methodology}
  363. Details about your methodology.
  364.  
  365. \chapter{Results}
  366. Present your findings.
  367.  
  368. % Add more chapters or sections as needed
  369.  
  370. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment