Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Written with TexdStudio compiled using pdftex 3.14159265-2.6-1.40.17 TeXLive 2016
- % or the other engine xetex 3.14159265-2.6-0.99996 TeXLive 2016
- %txs:///pdflatex | txs:///biber | txs:///nomenclindex | txs:///pdflatex | txs:///pdflatex
- %pdflatex.exe -synctex=1 -shell-escape -interaction=nonstopmode %.tex
- % Shell escape is necessary for minted
- % Note that the bib file is encoded in UTF-8
- %biber --bblencoding=UTF-8 --bibencoding=UTF-8 "OngunArisevMSc" ;)
- \documentclass[titlepage, footnotes, a4paper]{kuthesismod} % Kuthesis class with footnotes enabled
- % The class(cls) file can be put into texmf tree and hashed with the command texhash(for TeXLive)
- \input{macros} % the macros for kuthesis class
- \usepackage{ifxetex}% load different packages with/without XeLaTex
- \ifxetex
- \usepackage{fontspec}% provides \setmainfont
- \setmainfont[Numbers=OldStyle,Ligatures=Common,Mapping=tex-text]{Linux Libertine O}% public domain font % or use the libertine package instead
- \else % packages below are not needed with UTF8 based engines
- \usepackage[utf8]{inputenc} % I write in UTF8
- \usepackage[T1]{fontenc} % 256 glyphs are sufficient for our purposes
- \usepackage{lmodern}
- \fi
- \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[english, intoc]{nomencl} % nomenclature package use glossaries for having references to pages the symbols are used
- \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}
- %% The following packages are not necessary
- % Geometry package distorts this class
- %\usepackage{calc} % Calculation functionality without need for TeX primitives
- \usepackage{wrapfig}
- %\usepackage{braket} % Braket notation
- %\usepackage{rotating} % For sideways environment
- % Add the bibliography in BibLaTeX format UTF-8 encoding
- \addbibresource{ThesisReferences.bib}
- % Customize backref text
- \DefineBibliographyStrings{english}{%
- backrefpage = {\hspace*{-1ex}}, % Do not have space right after the bracket
- backrefpages = {\hspace*{-1ex}},
- }
- % Remove URLs from non-misc(if false) type bib entries
- \AtEveryBibitem{%
- \ifentrytype{misc}{%
- }{%
- \clearfield{url}%
- \clearfield{urldate}%
- }%
- }
- %% Length modifications
- \setlength{\nomlabelwidth}{7cm} % Nomenclature item separation left-right
- %\setlength{\headheight}{15pt} % this was necessary and class file is modified accordingly
- %\pretolerance = 150
- %\emergencystretch=3em $ need a value of 4em without microtype package
- %\setlength{\parskip}{1em plus 0.1em} %spacing between paragraph
- %\setlength{\nomitemsep}{-\parsep} % Nomenclature item vertical separation
- %\setlength{\textheight}{\topskip + 30\baselineskip}
- %% Show the box contents to diagnose overfull/underfull boxes
- %\showboxbreadth=50
- %\showboxdepth=50
- %\typeout{The text height is \the\textheight}
- %\typeout{The base line skip is \the\baselineskip}
- % Additional configuration commands
- \xpatchbibmacro{pageref}{parens}{brackets}{}{} % Backref uses brackets instead of paranthesis
- \makenomenclature % this should be in the preamble and makeindex needs to be run afterwards see nomencl doc
- \hypersetup{linkcolor=wine-stain, citecolor=ForestGreen, urlcolor=blue, colorlinks=true, linktoc= page, pdfauthor={Ongun Arısev},
- pdftitle={Ongun Arısev Msc. Thesis},
- pdfsubject={Mode Coupling},
- pdfkeywords={Thesis, Nanophotonics, Plasmonics, SPP}} % Color the page number in TOC
- %Configure the options dvipsnames for one color is used
- \colorlet{wine-stain}{red!80!black} % New color
- \graphicspath{{Figures/}} % Graphics path
- \DeclareGraphicsExtensions{.png} % Possible graphics extensions(since compiler is pdflatex I do not use eps format)
- % Set the caption font size and type
- \captionsetup{font=normalsize,labelfont={bf,sf}}
- \captionsetup[sub]{font=scriptsize,labelfont={bf,sf}}
- \newcommand{\figref}[1]{Figure~\ref{#1}}
- \newcommand{\tabref}[1]{Table~\ref{#1}}
- \renewcommand{\eqref}[1]{Equation~\ref{#1}}
- \newcommand{\chapref}[1]{Chapter~\ref{#1}}
- %\renewcommand{\autoref}[1]{\hyperref[#1]{Example~\ref*{#1}}} % Trying to emulate autoref command
- \newcommand*\chem[1]{\ensuremath{\mathrm{#1}}} % Basic chemical formula
- \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) --++({\ang+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) --++ (\ang:2);
- \draw[postaction={decorate}, green] (1,0) --++ (\ang:2);
- \draw[<->, thick] (-1, -0.2) -- (1, -0.2);
- \draw[dashed, green] (1,0) --++ ({\ang+90}:2.5);
- \draw[<->, thick] (-1,0)++({\ang+90}:1) --++ (\ang:{2*cos(\ang)});
- % \draw[<->, thick] (-1,0)++({\ang+90}:1) --++ (\ang:{2*cos(\ang) });
- \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:\ang:1);
- % \draw[thick,blue,->] (2,0) arc (0:\ang:1);
- \draw (1,0)++({\ang/2}:1.2) node[rotate=\ang, anchor=base, blue, font=\normalsize]{$\theta$};
- \draw ({\ang+90}:1.3) node[rotate=\ang, anchor=base, black, font=\normalsize]{$d\cos\theta$};
- \end{tikzpicture}
- \end{figure}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement