Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.13 KB | None | 0 0
  1. \documentclass[12pt]{article} %document type
  2. \usepackage{amssymb,amsmath,amsthm,xfrac, mathtools} % for math
  3. \usepackage[margin=1in]{geometry} % margins
  4. \usepackage{tikz}       % for graphics
  5. \usepackage{lastpage}   % for page numbers
  6. \usepackage{lipsum} %dummy text
  7. \usetikzlibrary{shapes.geometric, arrows}
  8.  
  9. \usepackage{lscape} %for landscape
  10.  
  11.  
  12. \usepackage[labelfont=bf]{caption}
  13.  
  14. %%%%%%%%%%%%%%%%%%%%%%%
  15.  
  16. \begin{document}
  17.  
  18.  
  19. \textbf{Bold Text} \\ %newline character
  20. \textit{Italic Text} \\[0.5cm] %optional height
  21. \textsc{Small Caps Text}
  22.  
  23. \lipsum[1]
  24.  
  25. \begin{figure}[h]
  26. \centering
  27. \begin{tikzpicture}
  28.     \draw [->] [ultra thick] [black] (0,0) node[anchor=east, color=black]{$0$} -- (4,0) node[anchor=west, color=black] {$x$};
  29.     \draw [->][ultra thick] [black] (0,0) -- (0,4) node[anchor=south, color=black] {$y$};
  30.  
  31.     \draw [->, ultra thick, red, domain=0:4] plot (\x, {0.25*\x^2)});
  32.     \draw (2.45,1.35) node[anchor=west, red] {$\frac{x^2}{4}$};
  33.     \draw [help lines] (0,0) grid (4,4);
  34. \end{tikzpicture}
  35. \caption{Plot of $x^2/4$}
  36. \end{figure}
  37.  
  38. \lipsum[2]
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. \newpage
  52.  
  53. \tikzstyle{style1} = [ellipse, minimum width=1cm, minimum height=1cm, text centered, draw=black]
  54. \tikzstyle{empty} = [draw=none]
  55. \tikzstyle{arrow} = [thick, ->, >=stealth]
  56.  
  57. \begin{tikzpicture}[node distance=2.3cm]
  58.  
  59.     \node (1) [style1] {$R_H$};
  60.     \node (e1) [empty, left of=1] {$\mu_H$};
  61.     \draw [arrow] (1) -- (e1);
  62.     \node (2) [style1, above of=1] {$I_H$};
  63.     \node (e2) [empty, left of=2] {$\mu_H$};
  64.     \draw [arrow] (2) -- (e2);
  65.     \draw [arrow] (2) -- node[anchor=west]{$\beta_H$} (1);
  66.     \node (3) [style1, above of=2] {$E_H$};
  67.     \node (e3) [empty, left of=3] {$\mu_H$};
  68.     \draw [arrow] (3) -- (e3);
  69.     \draw [arrow] (3) -- node[anchor=west]{$\theta_H$} (2);
  70.    
  71.     \node (5) [style1, right of=1, xshift=1cm] {$I_N$};
  72.     \draw [arrow] (3) -- (5);
  73.    
  74.     \node (4) [style1, above of=3] {$S_H$};
  75.     \draw [arrow] (4) -- (5);
  76.  
  77. \end{tikzpicture}
  78.  
  79. \newpage
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. \begin{landscape}
  90.  
  91.  
  92.     $$ \begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ 7 & 8 \\ 9 & 10  \end{pmatrix} $$
  93. \vfill %maximum spacing
  94. % \\[0.5cm] %controlled spacing, top-aligned
  95.     $$ \begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ 7 & 8 \\ 9 & 10  \end{pmatrix} $$
  96.  
  97. \end{landscape}
  98.  
  99. \newpage
  100.  
  101. \begin{figure}[h]
  102. \centering
  103. \begin{tabular}{| r || l | c |}
  104. \multicolumn{2}{r}{you have this long this text} & c \\ %multiple column span. arguments: 2 (number of columns to span) r (alignment, right) text
  105. \hline
  106. a long bit of text & 2 & 3 \\
  107. \hline
  108. 3 & 4 \\
  109. \hline
  110. 5 & 6 \\
  111. \hline
  112. \hline
  113. \end{tabular}
  114. \caption{Table}
  115. \end{figure}
  116.  
  117. %http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics
  118.  
  119. \begin{align*}
  120. x &= y \\
  121. 2x &= 2y \\
  122. \underbrace{x y^z \dfrac{x}{z^3} \sqrt{2x^4} \frac{4}{x} e^{-2x+4}}_{x} &= 0 \\
  123. \overbrace{x}^{y} &= 0 \\
  124. \intertext{My result is:} %text within an align or align* environment that doesn't interrupt the alignment flow
  125. \Aboxed{E &= mc^2} \\ %across alignment character `&', use \Aboxed{} from the `mathtools` package
  126. \text{or you can have} &= \boxed{x=y} %or, when not across an alignment, just use \boxed{}.
  127. \end{align*}
  128.        
  129. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement