Answers for "latex source code"

2

latex example

documentclass{article}
usepackage{graphicx}

begin{document}

title{Introduction to LaTeX{}}
author{Author's Name}

maketitle

begin{abstract}
The abstract text goes here.
end{abstract}

section{Introduction}
Here is the text of your introduction.

begin{equation}
    label{simple_equation}
    alpha = sqrt{ beta }
end{equation}

subsection{Subsection Heading Here}
Write your subsection text here.

begin{figure}
    centering
    includegraphics[width=3.0in]{myfigure}
    caption{Simulation Results}
    label{simulationfigure}
end{figure}

section{Conclusion}
Write your conclusion here.

end{document}
Posted by: Guest on August-28-2020
1

latex code

documentclass{article}
usepackage[utf8]{inputenc}

usepackage{listings}
usepackage{xcolor}

definecolor{codegreen}{rgb}{0,0.6,0}
definecolor{codegray}{rgb}{0.5,0.5,0.5}
definecolor{codepurple}{rgb}{0.58,0,0.82}
definecolor{backcolour}{rgb}{0.95,0.95,0.92}

lstdefinestyle{mystyle}{
    backgroundcolor=color{backcolour},   
    commentstyle=color{codegreen},
    keywordstyle=color{magenta},
    numberstyle=tinycolor{codegray},
    stringstyle=color{codepurple},
    basicstyle=ttfamilyfootnotesize,
    breakatwhitespace=false,         
    breaklines=true,                 
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=2
}

lstset{style=mystyle}

begin{document}
The next code will be directly imported from a file

lstinputlisting[language=Octave]{BitXorMatrix.m}
end{document}
Posted by: Guest on November-16-2020
0

include code in latex

usepackage{listings}
usepackage{color}

definecolor{dkgreen}{rgb}{0,0.6,0}
definecolor{gray}{rgb}{0.5,0.5,0.5}
definecolor{mauve}{rgb}{0.58,0,0.82}

lstset{frame=tb,
  language=Java,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={smallttfamily},
  numbers=none,
  numberstyle=tinycolor{gray},
  keywordstyle=color{blue},
  commentstyle=color{dkgreen},
  stringstyle=color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3
}
Posted by: Guest on October-18-2020

Code answers related to "Assembly"

Browse Popular Code Answers by Language