This is a very useful LaTeX template for creating a lovely paper or report. I have included examples of including a URL and sample code. This is how easy it is to create a nice A4 template.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | \documentclass[a4paper,10pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{url} \begin{document} \pagestyle{headings} \pagenumbering{roman} \title{Our Ubuntu 12.04 server.} \author{John Cartwright} \maketitle \tableofcontents \begin{abstract} Logging onto our Ubuntu server remotely. \end{abstract} \chapter{} \section{Logging on to the server.} \paragraph{Logging on to the server.} \paragraph{}The first paragraph. \url{http://www.example.com}. Sample code. \textbf{ssh homer@172.18.31.138 -p 22}. \paragraph{} Another paragraph. \paragraph{} And a third paragraph. \chapter{} \section{Securing the server.} \paragraph{Securing the server from network attack.} \footnote{IP address problem.} \footnotetext{} Awareness of the changing IP address is important. The IP address needs to be fixed; this will make it easier to access the computer remotely. \end{document} |
This is an easy way to get a professional template for document creation on Linux.
To compile a LaTeX document on Linux, firstly install the required packages.
sudo apt install texlive-latex-base |
And then run this command to compile a lovely DVI document.
┌──[jason@192.168.1.2]─[~/Documents] └──╼ ╼ $ latex server.tex This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./server.tex LaTeX2e <2020-02-02> patch level 2 L3 programming layer <2020-02-14> (/usr/share/texlive/texmf-dist/tex/latex/base/report.cls Document Class: report 2019/12/20 v1.4l Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty) (/usr/share/texmf/tex/latex/lm/lmodern.sty) (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty) (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def) (./server.aux) (/usr/share/texmf/tex/latex/lm/t1lmr.fd) (/usr/share/texmf/tex/latex/lm/ot1lmr.fd) (/usr/share/texmf/tex/latex/lm/omllmm.fd) (/usr/share/texmf/tex/latex/lm/omslmsy.fd) (/usr/share/texmf/tex/latex/lm/omxlmex.fd) [1] (./server.toc) [1] [1] Chapter 1. (/usr/share/texmf/tex/latex/lm/t1lmtt.fd) Overfull \hbox (0.88875pt too wide) in paragraph at lines 29--30 [] \T1/lmr/m/n/10 I had to in-stall the Synap-tic soft-ware man-ager and then in-stall the \T1/lmr/bx/n/10 landscape- [1] Chapter 2. [2] (./server.aux) ) (see the transcript file for additional information) Output written on server.dvi (5 pages, 5032 bytes). Transcript written on server.log. |
This works very well when you wish to make a nice document with the tools available on Linux.