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