Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.15 KB | None | 0 0
  1. \documentclass[11pt,a4paper]{article}
  2. \usepackage[italian]{babel}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage{booktabs}
  6. \usepackage{amsmath}
  7. \usepackage{mathtools}
  8. \usepackage{graphicx}
  9. \usepackage{bm}
  10. \usepackage{tikz}
  11. \usepackage{xcolor,cancel}
  12.  
  13. \newcommand\hcancel[2][black]{\setbox0=\hbox{$#2$}%
  14. \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{1pt}}}}#2}
  15. \usetikzlibrary{arrows.meta}
  16. \usepackage[font={small},labelsep=period,labelfont=bf]{caption}
  17. \DeclarePairedDelimiter\abs{\lvert}{\rvert}%
  18. \DeclarePairedDelimiter\norm{\lVert}{\rVert}%
  19.  
  20. % Swap the definition of \abs* and \norm*, so that \abs
  21. % and \norm resizes the size of the brackets, and the
  22. % starred version does not.
  23. \makeatletter
  24. \let\oldabs\abs
  25. \def\abs{\@ifstar{\oldabs}{\oldabs*}}
  26. %l
  27. \let\oldnorm\norm
  28. \def\norm{\@ifstar{\oldnorm}{\oldnorm*}}
  29. \makeatother
  30.  
  31. \newcommand\tab[1][1cm]{\hspace*{#1}}
  32.  
  33. \date{}
  34. \title{Metodi di correzione dei label bias per algoritmi di Label Propagation}
  35. \author{Simone Scarano}
  36. \begin{document}
  37.  \maketitle
  38.  \newcommand{\pythagwidth}{4cm}
  39.  \newcommand{\pythagheight}{3cm}
  40.  
  41.  \begin{figure}
  42.    \centering
  43.  
  44.    \begin{tikzpicture}
  45.       % A clipped circle is drawn
  46.       \begin{scope}
  47.          \draw (-2,1.5) circle(2.5);
  48.      \end{scope}
  49.  
  50.      \coordinate [label={below right:$A$}] (A) at (0, 0);
  51.      \coordinate [label={above left:$\alpha$}] (H) at (-0.25,0.25);
  52.      \coordinate [label={above right:$B$}] (B) at (0, \pythagheight);
  53.      \coordinate [label={below left:$\beta$}] (V) at (0, 2.75);
  54.      \coordinate [label={below left:$C$}] (C) at (-\pythagwidth, 0);
  55.      \coordinate [label={above right:$\gamma$}] (G) at (-3.5, 0);
  56.      \coordinate [label={left:$D$}] (D) at (-4.5, 1.5);
  57.      \draw [very thick] (A) -- (C) -- (B) -- (A);
  58.      \draw [very thick] (D) -- (C) -- (B) -- (D);
  59.  
  60.      \newcommand{\ranglesize}{0.3cm}
  61.      \draw (A) -- ++ (0, \ranglesize) -- ++ (-\ranglesize, 0) -- ++ (0, -\ranglesize);
  62.      \draw[thick,red] (D) -- ++(-75:\ranglesize) (D) -- ++(15:\ranglesize)
  63.      -- ++ (-75:\ranglesize) -- ++ (15:-\ranglesize);
  64.    \end{tikzpicture}
  65.  \end{figure}
  66.  
  67. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement