Advertisement
Guest User

MWE that do not compile

a guest
Apr 28th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.32 KB | None | 0 0
  1. \documentclass{article} % Kuthesis class with footnotes enabled
  2. \usepackage[english]{babel}
  3. \usepackage{csquotes}
  4. \usepackage{graphicx} % Commented out \RequirePackage{graphicx} since it disables the passing of options in the \usepackage statement
  5. \usepackage{caption}
  6. \usepackage[list=true]{subcaption} % Provides subfigures with captions and lists them in ToC
  7. \usepackage{amsfonts, amsmath, amssymb} %% AMS packages
  8. \usepackage{esint} % extended set of integrals double closed etc.
  9. \usepackage{textcomp} % We need the SI unit package to use fonts from here
  10. \usepackage{siunitx} %% SI units
  11. \usepackage{microtype} % textcomp is usually needed for this to work properly
  12. \usepackage[usenames, dvipsnames]{xcolor}
  13. \usepackage{hyperref} % Options configured later
  14. \usepackage{hypcap} % For anchorage
  15. \usepackage{float} % For additional position specifiers etc.
  16. \usepackage[backend=biber, backref=true, sorting=none, url=true, style = nature]{biblatex} % Need to implement change the style maybe
  17. % Make the editor recognize the command DONE NOT COMPLETE-xpatch.cwl under /texstudio/completion/user
  18. \usepackage{xpatch} % extending etoolbox commands for bibliography macros
  19. \usepackage[page]{appendix} % for extended functionalities with appendices
  20. \usepackage{minted} % for code highlightning READ THE MANUAL Python installion is required and pdflatex(or xetex etc.) should be run with -shell-escape option
  21. \usepackage{tikz} % for some graphics
  22. % Load the necessary libraries for Tikz
  23. \usetikzlibrary{shapes.geometric, shapes.arrows, decorations.markings}
  24. \usetikzlibrary{arrows.meta}
  25. \usetikzlibrary{intersections}% for "name path".
  26. \usetikzlibrary{fadings}%
  27. \usetikzlibrary{calc,math}
  28. \usepackage{wrapfig}
  29. % Add the bibliography in BibLaTeX format UTF-8 encoding
  30. \addbibresource{ThesisReferences.bib}
  31. %Configure the options dvipsnames for one color is used
  32.  
  33. \begin{document}
  34.     \begin{figure}
  35.         \begin{tikzpicture}
  36.         \tikzmath{\ang = 45;};
  37.         \begin{scope}[thick,decoration={
  38.             markings,
  39.             mark=at position 0.5 with {\arrow{latex}}}
  40.         ]
  41.         \filldraw[red] (-1,0) circle (2pt)
  42.         node[anchor=east, font = \footnotesize] at (-1,-0.2) {$\mathrm{E_0}$};
  43.         \draw[dashed, red] (-1,0) --++({\myangle+90}:1);
  44.         \filldraw[green] (1,0) circle (2pt)
  45.         node[anchor=west, font = \footnotesize] at (1,-0.2) {$\mathrm{E_0}$};
  46.         \draw[postaction={decorate}, red] (-1,0) --++ (\myangle:2);
  47.         \draw[postaction={decorate}, green] (1,0) --++ (\myangle:2);
  48.         \draw[<->, thick] (-1, -0.2) -- (1, -0.2);
  49.         \draw[dashed, green] (1,0) --++ ({\myangle+90}:2.5);
  50.         \draw[<->, thick] (-1,0)++({\myangle+90}:1) --++ (\myangle:{2*cos(\myangle)});
  51.         %       \draw[<->, thick] (-1,0)++({\myangle+90}:1) --++ (\myangle:{2*cos(\myangle) });
  52.         \node[anchor=north, font = \footnotesize]  at  (0, -0.2) {d=$\lambda/2$};
  53.         \end{scope}
  54.         \draw[blue, thick, dash pattern= on 25 off 7 on 50 off 7 on 10] (-2,0) -- (2, 0);
  55.         \node[anchor=west, font = \footnotesize, blue] at (1.5,-0.05) {z}; node[near start, auto] {true}
  56.         \draw[thick,blue,->] ([shift=(0:1)]1,0) arc (0:\myangle:1);
  57.         %   \draw[thick,blue,->] (2,0)  arc (0:\myangle:1);
  58.         \draw (1,0)++({\myangle/2}:1.2) node[rotate=\myangle, anchor=base, blue, font=\normalsize]{$\theta$};
  59.         \draw ({\myangle+90}:1.3) node[rotate=\myangle, anchor=base, black, font=\normalsize]{$d\cos\theta$};
  60.         \end{tikzpicture}
  61.     \end{figure}
  62. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement