Guest User

Untitled

a guest
May 22nd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.93 KB | None | 0 0
  1. % !TEX TS-program = pdflatex
  2. % !TEX encoding = UTF-8 Unicode
  3.  
  4. % This is a simple template for a LaTeX document using the "article" class.
  5. % See "book", "report", "letter" for other types of document.
  6.  
  7. \documentclass[11pt]{article} % use larger type; default would be 10pt
  8.  
  9. \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
  10.  
  11. %%% Examples of Article customizations
  12. % These packages are optional, depending whether you want the features they provide.
  13. % See the LaTeX Companion or other references for full information.
  14.  
  15. %%% PAGE DIMENSIONS
  16. \usepackage{geometry} % to change the page dimensions
  17. \geometry{a4paper} % or letterpaper (US) or a5paper or....
  18. % \geometry{margins=2in} % for example, change the margins to 2 inches all round
  19. % \geometry{landscape} % set up the page for landscape
  20. %   read geometry.pdf for detailed page layout information
  21.  
  22. \usepackage{graphicx} % support the \includegraphics command and options
  23.  
  24. % \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
  25.  
  26. %%% PACKAGES
  27. \usepackage{booktabs} % for much better looking tables
  28. \usepackage{array} % for better arrays (eg matrices) in maths
  29. \usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
  30. \usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
  31. \usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
  32. % These packages are all incorporated in the memoir class to one degree or another...
  33.  
  34. %%% HEADERS & FOOTERS
  35. \usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
  36. \pagestyle{fancy} % options: empty , plain , fancy
  37. \renewcommand{\headrulewidth}{0pt} % customise the layout...
  38. \lhead{}\chead{}\rhead{}
  39. \lfoot{}\cfoot{\thepage}\rfoot{}
  40.  
  41. %%% SECTION TITLE APPEARANCE
  42. \usepackage{sectsty}
  43. \allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
  44. % (This matches ConTeXt defaults)
  45. \usepackage{pgfplots} % MKA: Added pgfplots for the graphs
  46. %\pgfplotsset{compat=1.3}
  47. \usepackage{listings}
  48.  
  49.  
  50. %%% ToC (table of contents) APPEARANCE
  51. \usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
  52. \usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
  53. \renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
  54. \renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
  55.  
  56. %%% END Article customizations
  57.  
  58. %%% The "real" document content comes below...
  59.  
  60. \title{Brief Article}
  61. \author{The Author}
  62. %\date{} % Activate to display a given date or no date (if empty),
  63.          % otherwise the current date is printed
  64.  
  65. \begin{document}
  66. \maketitle
  67.  
  68. \section{First section}
  69.  
  70. % Preamble:
  71. %\pgfplotsset{width=5cm, compat=1.3}
  72. \begin{tikzpicture}
  73.     \begin{axis}[colormap/ cool]
  74.     \addplot3[surf, shader = interp] {x*(1-x)*y*(1-y)};
  75.     \end{axis}
  76. \end{tikzpicture}
  77.  
  78. \end{document}
Add Comment
Please, Sign In to add comment