Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %https://www.overleaf.com/read/jnvnfchzzkmr
- \documentclass{article} %if you want a different style of document you would change the name in the {}
- %don't do that if you don't know what you are doing lol
- \usepackage[utf8]{inputenc} %this is like the type of encoding that the words you write turn into in the pdf
- \usepackage{minted} %this allows for the insertion of code
- \usepackage{hyperref} %this allows for the insertion of hyperlinks
- \usepackage{graphicx} %this allows for the insertion of images
- \title{General Latex Basics} %this will be the title of your document
- \author{Max Hops \\Oliver Sux} %please make this your names
- \date{October 2019} %this is the date. If you do not want it either comment it out with % or delete it :)
- %you can also make it do today by typing /today instead
- \begin{document} %this is when the document starts (like html)
- \maketitle %this uses the things you wrote in title, author, and date to make the title
- \section{Introduction} %this is what a section name looks like
- These are words that occur inside the section.\footnote{This is a foot note!! You can also insert links in here.} It may look daunting in the code, but if you break it down section by section you will see that it is actually quite simple! In this essay I shall...
- \subsection{More Introduction}
- These are words that occur inside the first Subsection. If you would like to include an image, you must upload it to your side bar on the left. Then, you can insert it with the following code:
- \begin{figure}[h]
- \includegraphics[scale=1.3]{"Capture".png} %the photo is the code lol
- \caption{hi}%if you want a caption
- \end{figure}\footnote{\href{https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}{https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}}
- \\After you have gotten your photo, you will upload it to overleaf using the upload button in the top left.
- \subsubsection{Even More Introduction}
- These are words that occur inside the first Sub Section.
- If you would like a backslash at any point, you may type \textbackslash textbackshlash
- \subsubsection{And yet still more Introduction}
- These are words that occur inside the second Sub Section. If you would like to read up on paragraphs please refer to this link: \href{https://www.overleaf.com/learn/latex/Paragraph_formatting}{This is clickable!}
- I will now insert a \textbackslash pagebreak so that the next section does not get split in half
- \pagebreak
- \subsection{End of the Introduction}
- If you would like to use code at all, you may do this:
- \begin{minted}[
- breaklines, %this is the most important part. It allows for lines of code to wrap to the next line
- mathescape, %you might be able to delete all lines in the [] other than breaklines and mathescape if you would like
- linenos,
- numbersep=5pt,
- frame=single, %you may remove this to remove the frame
- numbersep=5pt,
- xleftmargin=0pt,
- ]{Java}
- public static void main (String[] args){
- // this is what Java looks like
- // make sure to capitalize the appropriate languages!
- }
- \end{minted}
- The code here, looks like this: \footnote{\href{https://blog.wizardsoftheweb.pro/syntax-highlighting-in-latex-with-minted/}{https://blog.wizardsoftheweb.pro/syntax-highlighting-in-latex-with-minted/}}
- \begin{minted}[mathescape, linenos, numbersep=5pt, gobble=0, frame=lines, framesep=2mm]{LaTeX}
- \begin{minted}[
- breaklines, %you don't have to have it on multiple lines :)
- mathescape,
- linenos,
- numbersep=5pt,
- numbersep=5pt,
- xleftmargin=0pt,
- ]{Latex}
- \ end{minted}
- \end{minted}
- I have decided to end the introduction now. Thank you for attending my TED Talk\textsuperscript{TM}.
- % or \texttrademark
- \section{Conclusion}
- This should help you write your own Latex Document :)
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement