Guest User

Untitled

a guest
Nov 18th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. %!TEX program = xelatex
  2. documentclass[
  3. draft=false, % final mode
  4. paper=portrait,
  5. twoside=false,
  6. open=right,
  7. parskip=full,
  8. headings=big,
  9. version=last, %
  10. italian, % language (passed to babel and other packages)
  11. % (ngerman, english, french, ...)
  12. ]{scrbook} % Classes: scrartcl, scrreprt, scrbook
  13.  
  14. % ----------------------
  15. % DIMENSIONI PAGINA
  16. % ----------------------
  17. setlength{oddsidemargin}{0.3cm}
  18. setlength{textwidth}{0.7textwidth}
  19. setlength{marginparwidth}{2marginparwidth}
  20.  
  21.  
  22. usepackage{lmodern}
  23. usepackage{amsmath} % advanced math symbols pkg
  24. usepackage{amsthm, amsthm}
  25. usepackage[utf8]{inputenc} % utf8 encoding
  26. usepackage{graphicx} % pictures support
  27. usepackage{longtable} % table on multiple pages support
  28. usepackage[italian]{babel} % language support
  29. usepackage{enumitem} % custom enumeration support
  30. usepackage{rotating} % Rotating pictures support
  31. usepackage{floatrow} % Support for floated images
  32. usepackage{hyperref} % Support for href in toc
  33. usepackage{marvosym} % Currency symbols
  34. usepackage{fancyhdr} % Fancy headers
  35. usepackage{array}
  36. usepackage{footnote}
  37. usepackage{setspace}
  38. usepackage{afterpage} % Permette di mettere i numeri di pagina nel footer se si usa il package Fancyhdr
  39. usepackage{textcomp} % Package for copyright glyph
  40. usepackage[newfloat]{minted} % Package for highlight code
  41. usepackage{appendix} %Package for appendices
  42. usepackage{chngcntr} %Package for list of figures numeration
  43. usepackage{csquotes}
  44. usepackage{fontspec}
  45. usepackage[protrusion=true]{microtype}
  46.  
  47.  
  48. % ----------------------
  49. % CUSTOMIZATION CAPITOLI
  50. % ----------------------
  51. usepackage{xcolor}
  52. usepackage{graphicx}
  53. usepackage{etoolbox}
  54. usepackage{blindtext}
  55.  
  56. input{preamble/style-chapter}
  57.  
  58. renewcommand*{sectionformat}{%
  59. llap{thesectionenskip}%
  60. }
  61.  
  62. renewcommand*{subsectionformat}{%
  63. llap{thesubsectionenskip}%
  64. }
  65.  
  66. % ----------------------
  67. % FOOTNOTE AL MARGINE
  68. % ----------------------
  69. usepackage{marginfix} % --> gestisce correttamente il posizionamento ai margini
  70. usepackage[%
  71. bottom, % Footnotes appear always on bottom. This is necessary
  72. stable, % Make footnotes stable in section titles
  73. perpage, % Reset on each page
  74. side, % Place footnotes in the margin
  75. ragged, % Use RaggedRight
  76. marginal,
  77. norule, % suppress rule above footnotes
  78. multiple, % rearrange multiple footnotes intelligent in the text.
  79. ]{footmisc}
  80. setlength{footnotemargin}{0.1mm} % --> distanza numero di nota a pie di pagine e testo
  81. definecolor{footnotecolor}{RGB}{78, 78, 78}
  82. deffootnotelayout{raggedrightcolor{footnotecolor}} % --> raggedright coincide con text-align:left
  83.  
  84.  
  85. % ----------------------
  86. % CAPTION CUSTOMIZATION
  87. % ----------------------
  88. usepackage[
  89. format=plain,
  90. justification=raggedright,
  91. singlelinecheck=false
  92. ]{caption}
  93. captionsetup{figurename=FIGURE, labelsep=colon}
  94. captionsetup[figure]{font={color=footnotecolor,it,footnotesize},labelfont={color=black,bf,it,scriptsize}}
  95. captionsetup[listing]{font={color=footnotecolor,it,footnotesize},labelfont={color=black,bf,it,scriptsize}}
  96. renewcommand*{figureformat}{ % --> elimina un punto di troppo sulla numerazione delle figure
  97. figurename~thefigure
  98. % autodot% DELETED
  99. }
  100.  
  101. % ----------------------
  102. % FLOATING
  103. % ----------------------
  104. floatsetup{
  105. margins=hangright,
  106. capposition=beside,
  107. capbesideposition={bottom,right},
  108. floatwidth=textwidth
  109. }
Add Comment
Please, Sign In to add comment