template.tex 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. \documentclass{acm_proc_article-sp}
  2. \usepackage[utf8]{inputenc}
  3. \renewcommand{\paragraph}[1]{\vskip 6pt\noindent\textbf{#1 }}
  4. \usepackage{hyperref}
  5. \usepackage{graphicx}
  6. \usepackage{url}
  7. \providecommand{\tightlist}{%
  8. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  9. $if(title)$
  10. \title{$title$}
  11. $endif$
  12. $if(subtitle)$
  13. \subtitle{$subtitle$}
  14. $endif$
  15. % Add imagehandling
  16. $if(graphics)$
  17. \usepackage{graphicx}
  18. % Redefine \includegraphics so that, unless explicit options are
  19. % given, the image width will not exceed the width of the page.
  20. % Images get their normal width if they fit onto the page, but
  21. % are scaled down if they would overflow the margins.
  22. \makeatletter
  23. \def\ScaleIfNeeded{%
  24. \ifdim\Gin@nat@width>\linewidth
  25. \linewidth
  26. \else
  27. \Gin@nat@width
  28. \fi
  29. }
  30. \makeatother
  31. \let\Oldincludegraphics\includegraphics
  32. {%
  33. \catcode`\@=11\relax%
  34. \gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
  35. }%
  36. $endif$
  37. \numberofauthors{2}
  38. \author{
  39. $for(author)$
  40. \alignauthor $author.name$ \\
  41. \affaddr{$author.affiliation$}\\
  42. \email{$author.email$}
  43. \and $endfor$
  44. }
  45. \date{$date$}
  46. %Remove copyright shit
  47. \permission{}
  48. \conferenceinfo{} {}
  49. \CopyrightYear{}
  50. \crdata{}
  51. % Pandoc syntax highlighting
  52. $if(highlighting-macros)$
  53. $highlighting-macros$
  54. $endif$
  55. $for(header-includes)$
  56. $header-includes$
  57. $endfor$
  58. \begin{document}
  59. $if(title)$
  60. \maketitle
  61. $endif$
  62. $if(abstract)$
  63. \begin{abstract}
  64. $abstract$
  65. \end{abstract}
  66. $endif$
  67. $body$
  68. \setlength{\parindent}{0in}
  69. \end{document}