67% found this document useful (3 votes)
2K views40 pages

Latex Lab Manual-Technical Writing Using LaTeX Lab (BCSL456D)

Latex Lab manual prepared by Dr.Ciyamala Kushbu S . Prepared for the welfare of students under VTU (Technical Writing using LaTeX Lab (BCSL456D))
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
67% found this document useful (3 votes)
2K views40 pages

Latex Lab Manual-Technical Writing Using LaTeX Lab (BCSL456D)

Latex Lab manual prepared by Dr.Ciyamala Kushbu S . Prepared for the welfare of students under VTU (Technical Writing using LaTeX Lab (BCSL456D))
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 40
CMRIT CMR INSTITUTE OF TECHNOLOGY, BENGALURU. CMR INSTITUTE OF TECHNOLOGY Department of Information Science and Engineering LAB MANUAL Technical Writing using LaTeX Lab (BCSL456D) Semester-IV Prepared by: Dr.Ciyamala Kushbu $ Academic Year: 2023-2024 EVEN SEM (As per VTU Syllabus) DR.CIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT Syllabus ‘SINum Questions 1 _| Develop a LaTeX script to create a simple document that consists of 2 sections [Section1 , Section?], and a paragraph with dummy text in each section. And also include header [title of document] and footer [institute name, page number] in the document. 2 | Develop a LaTeX script to create a document that displays the sample Abstract/Summary 3 | Develop a LaTeX script to create a simple tille page of the VTU project Report [Use suitable Logos and text formatting] 4 | Develop a LaTeX script to create the Certificate Page of the Report [Use suitable commands to leave the blank spaces for user entry] 3 | Develop a LaTeX script to create a document that contains the following table with proper labels. So | VEN] Student Name Marks Subject! Subject2 Subject3 TRTERRDOT | Name T 3 ig 30 wazzO | Name Z 78 B 38 3 aRREDRKOOT [Name a 3 © | Develop a LaTeX script to include the side-by-side praphics/pictures/figures in the document by using the subgraph concept 7 | Develop a LaTeX script to create a document that consists of the following two mathematical equations. x = sbefEe adr = SO sen(x)pde% nel = 2aOce = ¥ sano ra) heh are = aye = Ane & | Develop a LaTeX seript to demonstrate the presentation of Numbered theorems, definitions, corollaries, and lemmas in the document 9 | Develop a LaTeX script to create a document that consists of two paraaraphs with @ minimum of 10 citations in it and display the reference in the section 10 | Develop a LaTeX script to design a simple tree diagram or hierarchical structure in the document with appropriate labels using the Tikz ibrar Il | Develop a LaTeX script to present an algorithm in the document using algorithaalgorithmic/algorithm2e library 12 | Develop a LaTeX senpt to create a simple report and article by using suitable commands and formats of user choice. DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT LATEX A LaTeX editor is a specialized software tool used for writing, editing, and compiling documents in LaTeX, a typesetting system commonly used for producing technical and scientific documents, LaTeX is known for its ability to handle complex formatting, such as mathematical equations, bibliographies, and references, which makes it popular in academia, research, and professional publishing Key Features of LaTeX Editors: 1. Syntax Highlighting: LaTeX editors typically include syntax highlighting, which visually distinguishes different parts of the LaTeX code (e.g., commands, text, equations) using different colors. This makes the code easier to read and debug 2. Code Completion: © Many LaTeX editors offer code completion or auto-suggestion features, which help users by suggesting LaTeX commands as they type. This can speed up the writing process and reduce errors. 3. Integrated PDF Viewer: © LaTeX editors often include an integrated PDF viewer, allowing users to compile their Lai'eX code into a PDF and view the output without leaving the editor. Some editors provide real-time previewing, where the PDF updates as the user types. 4. Templates: © Editors offen come with a variety of templates for different types of documents, stich as aeacemie papers, resumes, letters, and presentations. These templates help users get started quickly and adhere to specific formatting requirements, 5. Project Management: © LaTeX editors typically support project management features, allowing users to organize their files and folders, manage bibliographies, and include images or other resources within their Lal'eX projects 6. Cross-Platform Support: o Many LaTeX editors are cross-platform, meaning they can be used on multiple operating systems such as Windows, macOS, and Linux DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT 7. BibTeX Integration: + LaTeX editors usually support BibTeX or other bibliography management tools, making it easier to handle citations and references within a document. 8 Version Control: co Some LaTeX editors include version control features, enabling users to track changes, revert to previous versions, aud collaborate with others ou the same document. Popular LaTeX Editors: 1. Overleaf: © Overleaf is an online LaTeX editor that is widely used for collaborative writing. It provides real-time editing, automatic PDF generation, and a rich set of templates. Overleaf is cloud-based, so uo installation is required, and it supports easy sharing and collaboration. 2. TeXstudio: TeXstudio is a popular open-source LaTeX editor available for Windows, macOS, and Linux. It features an integrated PDF viewer, syntax highlighting, auto- completion, and extensive customization options. 3. TeXmaker: © TeXmaker is another open-source LaTeX editor that is cross-platform and user- friendly. It includes features like a built-in PDF viewer, spell checker, and LaTeX command shortcuts. Technical Writing Using LaTeX in Overleaf: A Brief Introduction LaTeX is a powerful typesetting system couumonly used for technical aud seientific waiting. It excelsin handling complex document stnuctures, including mathematical formulas, tables, figures, and references. Overleaf is a popular online LaTeX editor that simplifies the process of writing and collaborating on LaTeX documents by providing a cloud-based platform with a user- friendly interface DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT Why Use LaTeX for Technical Writing? 1. Precision and Consistency: © LaTeX ensures precise control over document formatting, which is crucial in technical writing. It maintains consistent styling across sections, making documents look professional and well-organized 2. Mathematical Typesetting: © LaTeX is renowned for its ability to accurately typeset complex mathematical equations and symbols, making it the go-to choice for fields like mathematies, physics, engineering, and computer science. 3. Automated Cross-Referencing: © LaTeX allows easy cross-referencing of sections, figures, tables, and citations, automatically updating references as the document evolves, © Whether writing a short report or a lengthy thesis, LaTeX handles documents of any size efficiently, allowing for easy management of large documents with tnultiple sections and chapters. 5. Professional Templates: © LaTeX provides access to a wide range of templates for various types of documents, including research papers, theses, presentations, and resumes, ensuring adherence to industry and academic standards. Advantages of Using Overleaf for LaTeX 1. No Installation Required: © Overleaf is entirely cloud-based, eliminating the need for local LaTeX installations. Users can access their projects from any device with an internet connection. 2. Real-Time Collaboration: © Overleaf supports real-time collaboration, allowing multiple muthors to wor's on te same document simultaneously. Changes are instantly reflected across all users’ Views. 3. Automatic Compiling and Previewing: DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT 1 3. © Overleaf automatically compiles LaTeX code into a PDF, providing an immediate preview of the document. This feature helps users quickly identify and correct errors in their LaTeX code. Extensive Libraries and Packages: co Overleaf includes access to an extensive library of LaTeX packages, enabling users to enhance their documents with additional functionality, such as creating complex tables, importing graphics, and formatting algorithms. Version Control and Backup: © Overleaf offers version control features, allowing users to track changes, revert to previous versions, and manage document revisions effectively. Ease of Sharing and Publication: 2 Documents created in Overleaf can be easily shared with collaborators or exported for submission to journals or conferences. Many academic joumnals provide Overleaf templates to streamline the publication process. Getting Started with Overleaf Create an Account: © Sign up for a free account on Overleaf and start a new project using a template or a blank document Choose a Template: 2 Overleaf offers a variety of templates for different types of technical documents, including research papers, reports, and theses. Select a template that suits your needs. Write Your Document: © Use LaTeX commands to format your document, add sections, insert equations, tables, figures, and cite references. Overleaf’s built-in editor will assist you with syntax highlighting and auto-completion. Collaborate and Share: © Invite collaborators by sharing a link to your project. Overleef supports different roles (e.g., read-only, read-and-write) for collaborators. DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT 5. Compile and Preview: 2 Overleaf automatically compiles your document into a PDF, which you can preview and download. Make adjustments as needed based on the compiled output DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT 1. Develop a LaTeX script to create a simple document that consists of 2 sections [Section1, Section2], and a paragraph with dummy text in each section. And also include header [title of document] and footer [institute name, page number] in the document. \documentclass {article} % Document class set to ‘article’ \usepackage {graphicx} % Required for inserting images \usepackage {lipsum} % Generates placeholder Lorem Ipsum text \usepackage {blindtext} % Generates dummy text \usepackage {fancyhdr} % Customizes headers and footers \pagestyle {fancy} % Sets the page style to ‘fancy’ \fancyhf{} % Clears any previous header and footer content \chead {Latex Lab manual} % Centers the header text "Latex Lab manual" \rfoot{\thepage} % Places the page number in the right footer \cfoot{CMRIT} % Centers the footer text "CMRIT" \begin {document} % Begins the document content \title {Experiment-1} % Sets the title of the document \author {Dr.Ciyamala Kushbu $} % Sets the author of the document \date {\today} % Automatically inserts the current date \maketitle % Generates the title section at the beginning of the document \section {Introduction} % Creates a new section titled "Introduction" \lipsum[1] % Inserts the first paragraph of Lorem Ipsum text \subsection{Why latex?} % Creates a subsection titled "Why latex?” under Introduction \blindtext[1] % Inserts one paragraph of blind text \newpage % Starts the following content on a new page \section {Conclusion} % Creates a new section titled "Conclusion" \lipsum[2] % Inserts the second paragraph of Lorem Ipsum text DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \subsection{Future scope} % Creates a subsection titled "Future scope" under Conclusion \blindtext[2] % Inserts two paragraphs of blind text %\fancyhead[C] {Latex lab manual} % (Commented out) Centers header text "Latex lab manual" %\fancyfoot[C] {World \thepage} % (Commented out) Centers footer text "World" with page number \end {document} % Ends the document content OUTPUT: Experiment-1 Demme Konkia S Aaron 19, 2006 DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT 2 Conclusion ‘Nam de ping exe soa, mint el wi. Mat amcor Sram so jt. Nm bess Her eam ob ay ‘Dimer set, ror acme bonne rapt magn ae tre mets ee a eh lbenno See ‘meen Cras erate Penta aml. Cam oi ane 7 rte ‘tog e parr mene sare wee men Ahan net a ‘Ne tswerer wrahatm trp lentnem or rt an ‘iS cna em 2 amet am Mune gu wma tu ap cee 2. Develop a LaTeX script to create a document that displays the sample Abstract/Summary. \documentelass {article} % Document class set to ‘article’ \usepackage{graphicx} % Required for inserting images \usepackage{blindtext} % Generates dummy text \usepackageflipsum} % Generates placeholder Lorem Ipsum text \begin {document} % Begins the document content DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT %\title{Experiment-2} % (Commented out) Sets the title of the document %\author{Dr. of the document amala Kushbu S} % (Commented out) Sets the author %\date{April 2024} % (Commented out) Sets a specific date %\maketitle % (Commented out) Generates the title section \pagenumbering{roman} % Sets the page numbering style to Roman numerals (i, ii, ili, etc.) \begin{abstract} % Begins the abstract section, \lipsum|[1] % Inserts the first paragraph of Lorem Ipsum text as abstract content \end{abstract} % Ends the abstract section \newpage % Starts the following content on a new page \renewcommand \abstractname} {Summary} % Renames the abstract section to "Summary" \begin{abstract} % Begins a new abstract section now titled "Summary" \blindtext[2] % Inserts two paragraphs of blind text as summary content \end {abstract} % Ends the abstract section \end {document} % Ends the document content DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT OUTPUT: Lacan am doko i ane, commcctetncrmnfipcing ct. Un pares ct, ial pleted a ipo Wace, Ont dicta {Sirti at Maemo apt aan, ale Siege tase setae nngee at apa Peep Rasta arb Seen oman ih A na a Ra nce Ma (git ecans Poche tll nce tart gravee plore (eg map cts Mae htt uy vcetn ara anes Pena et ‘tf triers eines Assan Cetin Mtoe ala ‘aia ce patina moti ay tl Conable auctor semper ie (Goer earerdeges tous. ict it md comgre'cay acme cod Sauget cas ate De geo tel see gpa Fae DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT — arc tq dsr mc commemene iptcg mPa hen. sus fice Patan mm ct op pee min Pond ees cine nee ee ryt cee, Coon iced w ipa leben prorn ped Viet ‘Soa ce ne eee mean at mle oe cee a (oS heenee se ae ere Settee, Pence tan thant mer, Smead tata to, Sete ae a gate, pes, ama cee om ae Sam Mont aae ere funn tap aaameen coop aren ommm ‘Ercan ee msec apnetng Pato bei cts ee ‘ay croc ec incon ccna, Pome tert a sakes el cance comes Sie ies sagas, = aageesees ST ene isan po Vpn enon sana nan SSEESE See, meer twee Ur partons Proce tm moe, Cans toma dior at amet, oarcitecr mite ci tne Oe Siegel ecpes tl-eamaia Shae an matt vGieanayee paca aes tated cape, aAteed at asad anes ates Stn "Poec ent nt marie Pomc te te npn, eden, cones tien Mears acs eer a ped Wo DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT 3. Develop a LaTeX script to create a simple title page of the VTU project Report [Use suitable Logos and text formatting] \documentelass {article} % Defines the document class as ‘article’ \usepackage {blindtext} % Package to generate dummy text \usepackage {graphicx} % Required for inserting images \usepackage {geometry} % Allows customization of page margins \usepackage {xcolor} % Allows color customization in the document \usepackage{tikz} % Used for drawing shapes, lines, and custom diagrams \usetikzlibrary {calc} % Adds advanced calculation capabilities to TikZ for positioning \begin {document} % Begins the content of the document \begin {titlepage} % Creates a title page \newgeometry {top=0.5in,bottom=0.Sinright—0.Sin,lefi=0.5in} % Sets custom margins for the title page % Draws a rectangle border around the page \begin{tikzpicture} [remember picture,overlay] \draw[line width = 2pt] (S(current page north west) + (lin,-0.5in)$) rectangle (S(current page south east) + (-0.5in,0.5in)$); \end {tikzpicture} \begin{center} % Centers the following content \includegraphics{width=0.4 \linewidth]{cmritlogo.png}\\ % Inserts the CMRIT logo image at 40% width of the text line \space {0.3m} % Adds vertical space DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT % Adds a line of text about the institution, colored in blue, in bold and small font size \scriptsize (\textbf{\textcolor{blue} {An Institution affiliated to VTU, Belagavi, approved by AICTE}}}\\ \space {0.2cm} % Adds vertical space \scriptsize {\textbf{\textcolor{blue} {Belagavi, Karnataka 590018}}}\\ % Adds the address line in the same style \space {0.2cm} % Adds vertical space \begin {figure} [h] % Creates a figure environment to insert the VTU logo \centering \includegraphics[width=0.15 \textwidth]{vtu_logo.jpg} % Inserts the VTU logo image at 15% width of the text line \end {figure} \wspace {0.2cm} % Adds vertical space Marge \textbf{A Project on}\\ % Adds a line of text, bold and larger font size \space {0.2cm} % Adds vertical space \textbf{PROJECT TITLE}\ % Adds the project title in bold \space {0.2cm} % Adds vertical space \small \textit{Submitted in partial fulfillment of the requirement for the award of the degree of}\\ % Adds a subtitle in italic and small font size \space {0.2cm} % Adds vertical space \large \textbf{Bachelor of Engineering}\\ % Adds the degree name in bold and large font size \Wspace {02cm} % Adds vertical space Marge \textbf{in}\\ % Adds "in" to denote the branch of engineering DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \space{0.2cm} % Adds vertical space Marge \textbf{Information Science and Engineering}\\ % Adds the branch name in bold and large font size \Wspace {0.2cm} % Adds vertical space Marge \textbf{by}\\ % Adds \space {0.2cm} % Adds vertical space 'by" before listing the student names % Creates a table with columns spaced apart to list the student names and their USNs \setlength {\tabcolsep} {4em} \begin {tabular} {¢ ¢} \wspace (0.2em} NAME & USNI \\Wwspace{0.2cm} % First student name and USN NAME2 & USN2 \\\wspace {0.2cm} % Second student name and USN NAMES3 & USN3 \\vspace{0.2cm} % Third student name and USN \end {tabular} \space {0.5em} % Adds vertical space \small \textbf{Under the Guidance of}\\ % Adds the guide's section title in bold and small font \space {0.2cm} % Adds vertical space Marge \textbf{Dr.Ciyamala Kushbu $}\\ % Adds the guide's name in bold and large font \wspace {0.2cm} % Adds vertical space \small \textbf {Assistant Professor}\\ % Adds the guide's designation in bold and small font \Wspace {0.2cm} % Adds vertical space \small \textbf{ Department of Information Science and Engineering}\\ % Adds the department name in bold and small font \Wspace{0.2cm} % Adds vertical space DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \small \textbf(CMRIT}\\ % Adds the college name in bold and small font \Wspace {0.5em} % Adds vertical space \end {center} % Ends the centering \end {titlepage} % Ends the title page \end{document} % Ends the document OUTPUT: De-Ciyamala Kushbu S ert of tat Se i gt DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT 4. Develop a LaTeX script to create the Certificate Page of the Report [Use suitable commands to leave the blank spaces for user entry] \documentelass[1 pt a4paper] {article} % Define the document class with Jipt font size and A4 paper size \usepackage {graphicx} % For including graphics \usepackage {tikz} % For creating graphics programmatically \usepackage {background} % For setting up background images \usetikzlibrary {calc} % For advanced calculations in TikZ, \usepackage[margin=lin,left=1.Sin,includefoot] {geometry} % Set page margins and include space for footers \thispagestyle {empty} % Remove page number and header/footer \backgroundsemup{ scale=.8, % Scale the background image angle=0, % No rotation of the background image firstpage=true, % Apply background setup only on the first page opacity=0.1, % Set opacity of the background image color-black, % Background image color contents={\begin {tikzpicture} [remember picture,overlay] \node at ([yshift=1 Opt xshift=1 8pt]current page center) {\includegraphics[width=10cm] {logo png}}; % Insert logo image with specific size \end {tikzpicture} }} \begin {document} \begin ftik-zpicture} [remember picture overlay] \draw[line width = 2pt] ($(current page north west) + (1in,-0.5in)$) rectangle DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT (S(current page.south east) + (-0.5in.0.5in)$); % Draw a border around the page \end {tikzpicture} \begin {center} \large {\textbf{CMR COLLEGE OF ENGINEERING} } \\ % College name in large bold text \scriptsize{AECS LAYOUT, BENGALURU-560037} \\ % Address in small text \normalsize {\textbf {Department of Information Science and Engineering }})\ % Department name in normal size bold text \space{0.2in} % Vertical space \includegraphics[scale=0.3] {vtu_logo.jpg}\\ % VIU logo image with specified scale \vspace{0.2in} % Vertical space \large {\textbf{ CERTIFICATE}}\\ % Title of the certificate in large bold text \space{0.01in} % Vertical space \end {center} Certified that the project work entitled \textbf{"XXXXXXXXXXX"} is a bonafide work carried out by\\ % Certificate statement \begin {tabular} {11} \extbf{xxxxxxxxx} de \textbf{1CR21ISxxx} \\ % Student names and USNs \extbf fxxxxxxxxx} & \textbf{1CR211Sxxx} \\ \textbf {xxxxxxxxx} & \textbf{1CR21ISxxx} \\ Mextbf foxxxxxxxx} & \texthf{1CR21ISxxx} \\ \end{tabular}\\ DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT in partial fulfillment for the award of Bachelor of Engineering in Information Science and Engineering of the Visvesvaraya Technological University, Belgaum during the year 2023-2024. It is certified that all corrections/suggestions indicated for intemal assessment have been incorporated in the report deposited in the department library. The project report has been approved as itis satisfied the academic requirements in respect of project work prescribed for the said Degree.\\ \vspace {0.0lin} % Vertical space \begin {center} \begin {tabular} {c ¢ ¢} \textbi{Name of Guide} & \hspace {3.5em} \textbf{Name of HOD} \\ % Guide and HOD names Guide & \hspace {3.Sem} Head of the Department \\ \end{tabular}\ \end {center} NAME:\\ \vspace {lcm} % Vertical space USNAhspace {lem} \begin {tabular} II 1]I0 10 01)101100)0 10100) 00/0)101)3 \hline 8881888888 88 88 818 81 BEB \\ Yo Tabble for USNs \bline \end {tabular} \end {document} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT OUTPUT: (CMR COLLEGE OF ENGINEERING Department of Information Science and Bagincering, e ceMninIcaTE: ‘Ceti has pret wk ell "XXXXXKXXAXNT ia nid wrk ered ently ‘pari allt fo he amar Bakr of agian i Inara Si see and Raga of the Viroaraya Trak erly lp srg he Your ACE AU eerie ha il corronn/satios adie or ner a ‘erat haw bn arpa he eet deg the raat ey Te rope reper nbn append said Urano pet pag ik prerel fa mad Degoe Name of HOD Hoel the Departs DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT 5. Develop a LaTeX seript to ereate a document that contains the following table with proper labels. SNo| USN | Student Name Marks Subject [ Subject? | Subject3 T__|#xx2zxxOOT | Namet 89, 60 ‘90 Z| 4xx22xK002 | Name2 78 rg 38 3__[ AexzaRRO0s | Names 7 3 3 \documentelass {article} % Define the document class \usepackage {multirow} % For multirow functionality in tables \begin {document} \title {Experiment No: 5} % Title of the document \maketitle % Generate the title \begin {table} [h] % Start of the table environment \centering % Center the table on the page \begin {tabular} {(JlII|ll|} % Define the column format \bline ‘multicolumn {1} {[e]} {\multirow {2} (*} {S.No}} & % Serial Number with multirow \multicolumn {1} {c|} {\multirow {2} {+} ({USN}} & % USN with multirow \multicolumn {1} {c|} {\multirow {2} {*} (Student Name}} & % Student Name with multirow \multicolumn {3} {cl} {Marks} \\ % Merge columns for "Marks" header \cline{4-6} % Draw a line between the "Marks" columns \multicolumn {1} {cl} {} & % Empty cell for alignment \multicolumn{1} {cl}{} & % Empty cell for alignment \multicolumn {1} {cl} {} & % Empty cell for alignment ‘multicolumn {1} {cl} {Subject 1} & % Subject 1 header ‘multicolumn {1} {cl} {Subject 2} & % Subject 2 header DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \multicolumn {1} {e|} {Subject 3} \\ % Subject 3 header \hline 1 & 4XX22XX001 & Name | & % Data row 1 \multicolumn {1} {I[} {89} & % Subject 1 marks \multicolumn {1} {I]} {60} & % Subject 2 marks 90\ % Subject 3 marks \hline 2 & AXX22XX002 & Name 2 & % Data row 2 \multicolumn {1} {I[} (78} & % Subject 1 marks \multicolumn{1} {Il} (45} & % Subject 2 marks 98\\ % Subject 3 marks \hline 3 & AXX22XX003 & Name 3 & % Data row 3 \multicolumn {1} {I[} {67} & % Subject 1 marks \multicolumn {1} {I|} {55} & % Subject 2 marks 59\\ % Subject 3 marks \hline \end {tabular} \caption {Student Marks Table} % Caption for the table \end{table} \end {document} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT OUTPU Experiment No: 5. Auge 19, 2004 6. Develop a LaTeX script to include the side-by-side graphics/pictures/figures in the document by using the subgraph concept. \documentelass {article} \usepackage{graphicx} % Required for inserting images \usepackage{subcaption} % Required for subfigures \begin {document} \begin {figurc}[h] % Begin the figure environment \centering % Center the figure \begin {subfigure} {0.S\textwidth} % Create a subfigure that takes half the width of the text \includegraphics[width=0.9\linewidth, height=6cm] fimages.png} % Include the first image \caption{VTU Logo} % Caption for the first subfigure \label{fig:subim1} % Label for referencing the first subfigure \end {subfigure} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \begin {subfigure} {0.5\textwidth} % Create a second subfigure that also takes half the width of the text \includegraphics[width=0.9\linewidth, height=6em]{logopng} % Include the second image \caption{CMRIT Logo} % Caption for the second subfigure \label{fig:subim2} % Label for referencing the second subfigure \end {subfigure} \caption {Logos of Institutions} % Caption for the entire figure \label {fig-image2} % Label for referencing the entire figure \end {figure} \end {document} ourru € Y CMRIT DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT 7. Develop a LaTeX script to create a document that consists of the following two mathematical equations. ys sgn(n) php = A = xb ta/b -4ac ofA x ‘ Pole rECe 2+ JF #08) 2 te eX iN = aT = = sgn(o To) eo 5-179 TECot = 222Ve \documentelass {article} \usepackage {graphicx} % Required for inserting images \usepackage{amsmath} % Required for advanced mathematical typesetting Sbegin {document} % First equation \begin {equation} \begin {split} \text (x=}\frac {-b \pm \sqrt {by {2}-dac}} {2a} = \rac{-2 \pm \squt {2 {2} -4*(1)*(-8)}} (241 = \frac {-2 \pm \sqrt {4+32}} {2} \end {split} \end {equation} %Second equation \begin {equation} \begin {split} \varphi* {\lambda}_{\sigma}A_{t}—\sum_{\pilepsilon C_{t}}sen (\pi)\varphi* {\lambda}_{\sigma}\varphi(\lambda}_{\pi}\\ = \sum_{\tavlepsilon —C_f\sigma—t}}sgn——(\sigma{- DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT 8. 1}\tau\sigma)\varphi* {\lambda}_{\sigma}\varphi*{\lambda}_{\sigma-1 \tau \sigma}\ =A_{\sigma t}\varphi*{\lambda}_{\sigma} \end {split} \end {equation} \end {document} OUTPUT: Develop a LaTeX script to demonstrate the presentation of Numbered theorems, definitions, corollaries, and lemmas in the document. \documentelass {article} \usepackage[english] {babel} \usepackage{amsthm} % For theorem environments % Define theorem environments \newtheorem {theorem} {Theorem}[section] % Theorem numbering within sections \newtheorem{corollary}[theorem] {Corollary} % Corollary numbered within theorems \newtheorem {lemma}[theorem]{Lemma} % Lemma numbered within theorems \begin {document} \section {Introduction} Theorems can easily be defined: DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \begin {theorem} Let \(f) be a function whose derivative exists at every point; then \(f\) is a continuous function. \end {theorem} \begin {theorem} [Pythagorean Theorem] \label {pythagorean} This theorem applies to right triangles and can be summarized with the following equation: a e2+y2—72 q \end {theorem} A consequence of Theorem ‘ref{pythagorean} is the statement in the following corollary. \begin {corollary} There is no right triangle with sides measuring 3 cm, 4 cm, and 6 cm. \end {corollary} ‘You can reference theorems such as Theorem \ref{pythagorean} when a label is assigned. \begin {lemma} Given two line segments whose lengths are \(a\) and \(b\) respectively, there exists a real number \(1\) such that \(b = ra\) \end{lemma} \end {document} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT OUTPU 1 Introduction “Theorem 1 Le f fon ase eine x cry a, then Toe meinen Ken ‘Theorem 12 (Pythogarcan three) This orm aa ight ra Cortney 12:4 Th’ me ghd meng wae sides manne Som, dem ema 1.3 in ne spe ne gh 9. Develop a LaTeX script to create a document that consists of two paragraphs with a minimum of 10 citations in it and display the reference in the section. @ARTICLE (oilindustry, author={Ngoenriang, Napat and Tumer, Stephen John and Niyato, Dusit and Supittayapornpong, Sucha}, journal={IEEE Internet of Things Journal}, title=(Joint UAV-Placement and Data Delivery in Aerial Inspection under Uncertainties}, year={2021}, volume={}, number={}, pages~ {1-1}, doi={10.1109/MOT.2021.3113713}} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT @ARTICLE {uavservice. author={Qu, Yuben and Dai, Haipeng and Wang, Haichao and Dong, Chao and Wu, Fan and Guo, Song and Wu, Qihui}, journal={IEEE Journal on Selected Areas in Communications}, title={Service Provisioning for UAV-Enabled Mobile Edge Computing}, year={2021}. volume={39}, number={11}, pages= {3287-3305}, doi={10.1109/ISAC.2021.3088660} i @misc {eplex, author = {IBM}, title = {IBM CPLEX Optimizer}, howpublished = url {https://www ibm.com/in-en/analytics/eplex-optimizer} ", year = {2021}, note = Online: accessed 3-Feb-2022] } @mise {rsome, author = {NSU}, title = {RSOMF}. howpublished = \url {https://xiongpengnus. github io/rsome/}, year = {2021}, note ~ S"[Online; accessed 3-Feb-2022] } @INPROCEEDINGS {hardtoshare, author={He, Ting and Khamfroush, Hana and Wang, Shigiang and La Porta, Tom DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT and Stein, Sebastian}, booktitle={IEEE 38th International Conference on Distributed Computing Systems acpcs)}, title={It's Hard to Share: Joint Service Placement and Request Scheduling in Edge Clouds with Sharable and Non-Sharable Resources}, year={2018}, volume=(}, number~{}, pages= {365-375}, doi={10.1109/ICDCS.2018.00044} } @INPROCEEDINGS {multicell, author~ {Poularakis, Konstantinos and Llorea, Jaime and Tulino, Antonia M. and Taylor, Ian and Tassiulas, Leandros} booktitle={IEEE Conference on Computer Communications (INFOCOM)}, title=(Joint Service Placement and Request Routing in Multi-cell Mobile Edge Computing Networks}, year={2019}, volume={}, number={}, pages={10-18}, doi= {10.1109/INFOCOM.2019.8737385} } @ARTICLE {bandwidth, author={Poularakis, Konstantinos and Llorca, Jaime and Tulino, Antonia M. and DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT Taylor, Ian}, journal= {IEEE/ACM Transactions on Networking}, title={Service Placement and Request Routing in MEC Networks With Storage, Computation, and Communication Constraints}, year={2020}, volume=(28}, number= pages~ {1047-1060}, doi= {10.1109/TNET.2020.2980175} i @INPROCEEDINGS {dataintensive, author={Farhadi, Vajiheh and Mehmeti, Fidan and He, Ting and Porta, Tom La and Khamfroush, Hana and Wang, Shiqiang and Chan, Kevin S}, booktitle={IEEE Conference on Computer Communications(INFOCOM)}. title=(Service Placement and Request Scheduling for Data-intensive Applications in Edge Clouds}. year—{2019},, volume={}, number={}. pages={1279-1287}, doi={10.1 109/INFOCOM.2019.8737368} } @ARTICLE {resource, author={Ahmed, Shakil and Chowdhury, Mostafa Zaman and Sabuj, Saifur Rahman and Alam, Md DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT Imtiajul and Jang, Yeong Min}, journal={IEEE Access}. title=(Energy-Efficient UAY Relaying Robust Resource Allocation in Uncertain Adversarial Networks}, year={2021}, volume={9}, number={}, pages={59920-59934}, doi={10.1109/ACCESS.2021.3073015}} @ARTICLE {resource2, author={Yang, Zhaobui and Pan, Cunhua and Wang, Kezbi and Shikh-Bahaei, Mohammad}, joumal={(IEEE Transactions on Wireless Communications}, title-(Energy Efficient Resource Allocation in UAV-Enabled Mobile Edge Computing Networks}, year={2019}, volume={18}, number={9}, pages={4576-4589}.. doi={10.1109/TWC.2019.2927313}} @ARTICLE (offload, author={Apostolopoulos, Pavlos Athanasios and Fragkos, Georgios and Tsiropoulou, Eirini Eleni and Papavassiliou, Symeon}., journal={IEEE Transactions on Mobile Computing}, title-{Data Offloading in UAV-assisted Multi-access Edge Computing Systems under Resource Uncertainty}, year= {2021}, volume={}, number={}, pages= {1-1}. doi={10.1109/TMC.2021.3069911}} @INPROCEEDINGS {offload2, author={Zhou, Fubui and Wu, Yongpeng and Sun, Haijian and Chu, Zheng}, booktitle—{201$ IEEE Intemational Conference on Communications (ICC)}, title={UAV-Enabled Mobile Edge Computing: Offloading Optimization and Trajectory Design}, year={2018}, volume={}, number={}, pages={1-6}, doi={10.1109/ICC.2018.8422277}} RTICLE {trajectory, author={Wang, Kai and Zhang, Xiao and Duan, Lingjie and Tie, Jun}, journal~{IEEE Transactions on Mobile Computing}, title= (Multi- UAV Cooperative Trajectory for Servicing Dynamic Demands and Charging Battery}, year={2021}, volume={}, number={}, pages={1-1}, doi={10.1109/TMC.2021.3110299}} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT @inticle {edgeuncertainty author = (Xu, Xiaolong and Cao, Hao and Geng. Qingfan and Liu, Xihua and Dai, Fei and Wang, Chuanjian}, title = (Dynamic resource provisioning for workflow scheduling under uncertainty in edge computing environment}, joumal = {Concurrency and Computation: Practice and Experience},volume = {n/a}.number = {n/a},pages = {e5674}, keywords = {edge computing. SDN, uncertainty, workflow scheduling}. doi = {https://doi.org/10.1002/cpe.5674} } @ARTICLE {edgeuav, author={Qu, Yuben and Dai, Haipeng and Wang, Haichao and Dong, Chao and Wu, Fan and Guo, Song and Wu, Qibui}, joumal= (IEEE. Journal on Selected Areas in Communications}.title={Service Provisioning for UAV-Enabled Mobile Edge Computing}. year={2021}, volume={39},number={11}, pages={3287-3305}, doi={10.1109/ISAC..2021.3088660}} @inproceedings {mobility. title=(UAV 3D Mobility Model Oriented to Dynamic and Uncertain Environment}, author={Na Wang and Nan Di and Fei Dai and Fangxin Liu}, booktitle={ICA3PP}. year={2018}} @ARTICLE {robust, author={Li, Bo and He, Qiang and Cui, Guangming and Xia, Xiaoyu and Chen, Feifei and Jin, Hai and Yang, Yun}, journal {IEEE Transactions on Services Computing}, title={READ: Robustness-oriented Edge Application Deployment in Edge Computing Environment}, year={2020}, volume={}. number={}, pages={1-1}, doi={10.1109/TSC.2020.3015316}} File-2 \documentelass {article} \usepackage{graphicx} % Required for inserting images \begin {document} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \begin {center} \Large {\textbf{References Demo} } \end {center} \section {Introduction} %\section {Related Work} For disaster management, uncertainty handling is the main key problem. But, in Joint Service deployment and Requests Allocation~(JSR) domain, research work mainly uses the approaches such as deterministic optimization \cite fhardtoshare, multicell, bandwidth}, Lyapunov optimization \cite {dataintensive},, stochastic optimization, replication of services to achieve high reliability, and forecasting of user requests using machine learning without considering uncertainty. In deterministic optimization \cite {edgeuav}, request demand is known before the run. However, in online optimization, time is divided into slots and performs optimization per slot basis, which does not consider uncertain demand. Even if we used any probability distribution to model demand, it does not provide the correct model/pattern to define the uncertain data \cite{edgeuncertainty}. Using a replication approach to achieve high availability also incurs extra resource cost \cite {robust}. Using the forecasting method also, we can not predict the impact of uncertain events on the requests, which may lead to under-provisioning/over-provisioning resources to process the required tasks \cite frsome} \section {Experiment Setup and Performance Parameters} To demonstrate the efficiency of the proposed approaches, we will simulate the scenario for an urban site affected by any natural calamity \cite foilindustry}. To implement optimization models, we will use the IBM Cplex Optimizer tool \cite {cplex} \bibliographystyle {TEEEtran} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \bibliography {ref} \end {document} ouTPUT: References Demo 1 Introduction oe dace mrngrment, era unig the mie yrs. Bat fs laet Sever epeymet at Requests Allan (ISR) dennis ‘Zeta tte ras rh erm into (2 Tyapume aplonantie [coc imu pba of mv (ae igh tay at teming oe rae ig ar ring ‘Hike sing eran To dermis ization ta ‘Sete peers opium pet tbs, wch dw ot ade ‘eta henna Potent el en {dos wu pene te erat mel ttre he wera dt ‘ae a went prac to ade hgh ray ah ea seeing tthe et (Toner eee tbe meat hich ay a amb prone, ‘entamaePue povnte rep aks 2 Experiment Setup and Performance Parame- tors “esas er ote jeg pen ne wl tate he ‘Senaro be a banat abe by nym ay To int SLE Cicer nt pie Opis sn References (0) he H.R Wag, La it, $i “sa SERS nance to a hcl Con ‘nec on Drbted Competing Spo (ICDC), 28 3555 (2) Ptr 3 Loon A.A Tali 1 Ti, a Tai, “ot ‘sie petal rut ein wr ni lar pa ‘Speen at Corer Cony Commentnnes (RPO. Cini oe 08 (4. Pedal 3 Une, Aan, ip, “Srv pat ‘vpn tog ne ere with org compan scone ‘State comeane” BRE) ACM Tracing D'S pe on on, (4 VP et M.-P Khao S Wag a ES che, “teva pated mt ng rater DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/SE,CMRIT 10. Develop a LaTeX script to design a simple tree diagram or hierarchical structure in the document with appropriate labels using the Tikz library. \documentelass {article} \usepackage {tikz} \begin {document} \begin {center} \Large {\textbf {Hierarchy of Linux distributions} } \end {center} \begin {figure} [h] \centering \begin {tikzpicture} [every node/ style = {shape=rectangle, rounded corners, draw, align=center} ] \path [draw, thick,-] node (root)[red] {GNU/Linux} [sibling distance=45mm, level distance=25mm] child {node [cyan] {Debian} [sibling distance=25mm, level distance=25mm] child { node [eyan] {Ubuntu} } DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT child { node [cyan] {Linux Mint} } %child { node {Elementary} } } child {node [magenta] {RedHat} {sibling distance—25mm, level distance=25mm] child {node [magenta] {Fedora} } child { node [magenta] {OpenSuse} } } child {node [blue] {Arch} [sibling distance=25mm, level distance=25mm] child { node [blue] {Manjaro} } child { node [blue] {EndeavourOS} } } \end {tikzpicture} \caption {GNU/Linux Operating System Family} \end {figure} \pagebreak \begin {center} \Large {\textbf{SUV Cars}} \end {center} \begin {figure}[h] \centering \begin {tikzpicture} [every node/.style = {shape=rectangle, rounded corners, draw, align=center}] \path [draw thick,-] [grow--45] node (root)[red] {SUV} [sibling distance—45mm, level distance-25mm] child {node [cyan] {Tata} [sibling distance=25mm, level distance=25mm] child { node [cyan] {Nexon} } child { node [cyan] {Punch} } % child { node {Elementary} } } child {node [magenta] {Volkswagen} [sibling distance=25mm, level distance=25mm] child { node [magenta] {Taigun} } child { node [magenta] {Virtus} } Zi DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT child {node [blue] {Maruti} [sibling distance=25mm, level distance=25mm] child {node [blue] {Brezza} } child { node [blue] {Vitara} } } \end {tikzpicture} \caption {Car Brands Hierarchy} \end {figure} \end {document} OUTPUT: Hierarchy of Linux distributions Figure 1: GNU/Linux Operating System Family Endeavour0S) 11. Develop a LaTeX script to present an algorithm in the document using algorithm/algorithmic/algorithm2e library. \documentelass {article} \usepackage {algorithm} % Required for algorithm environment \usepackage {algpseudocode} % Required for pseudocode \begin {document} \begin {algorithm} DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT \caption {An algorithm to check if a number is even or odd} \begin {algorithmic}[1] % [1] for line numbering \Require $n \geq 0$ % Input: a non-negative integer \Ensure Sy = 08 % Output: \State Sy \gets 0$ % Initialize SyS to 0 \State SN \gets nS % Assign input to SNS \While {SN ‘neq 0S} \State Sy \gets N \mod 2$ % Calculate the remainder when SNS is divided by 2 \If{Sy = 08} \State Sn is even \Comment{This is a comment indicating evenness} \BIse \State Sn$ is odd \EndIf \State SN \gets N - 1$ % Decrease $N$ for the next iteration \EndWhile \end {algorithmic} \end {algorithm} \end {document} ariable Sy$ indicating evenness or oddness DRCIYAMALA KUSHBU S, ASSISTANT PROFESSOR/ISE,CMRIT

You might also like