Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen. https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

233 lines
6.5 KiB

  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % Lachaise Assignment
  3. % Structure Specification File
  4. % Version 1.0 (26/6/2018)
  5. %
  6. % This template originates from:
  7. % http://www.LaTeXTemplates.com
  8. %
  9. % Authors:
  10. % Marion Lachaise & François Févotte
  11. % Vel (vel@LaTeXTemplates.com)
  12. %
  13. % License:
  14. % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
  15. %
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17. %----------------------------------------------------------------------------------------
  18. % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
  19. %----------------------------------------------------------------------------------------
  20. \usepackage[ngerman]{babel} %UMLAUTE
  21. \usepackage{amsmath,amsfonts,stmaryrd,amssymb} % Math packages
  22. \usepackage{enumerate} % Custom item numbers for enumerations
  23. \usepackage[ruled]{algorithm2e} % Algorithms
  24. \usepackage[framemethod=tikz]{mdframed} % Allows defining custom boxed/framed environments
  25. \usepackage{listings} % File listings, with syntax highlighting
  26. \lstset{
  27. basicstyle=\ttfamily, % Typeset listings in monospace font
  28. }
  29. \usepackage{graphicx}
  30. %Path relative to the main .tex file
  31. \graphicspath{ {images/} }
  32. %----------------------------------------------------------------------------------------
  33. % DOCUMENT MARGINS
  34. %----------------------------------------------------------------------------------------
  35. \usepackage{geometry} % Required for adjusting page dimensions and margins
  36. \geometry{
  37. paper=a4paper, % Paper size, change to letterpaper for US letter size
  38. top=2.5cm, % Top margin
  39. bottom=3cm, % Bottom margin
  40. left=2.5cm, % Left margin
  41. right=2.5cm, % Right margin
  42. headheight=14pt, % Header height
  43. footskip=1.5cm, % Space from the bottom margin to the baseline of the footer
  44. headsep=1.2cm, % Space from the top margin to the baseline of the header
  45. %showframe, % Uncomment to show how the type block is set on the page
  46. }
  47. %----------------------------------------------------------------------------------------
  48. % FONTS
  49. %----------------------------------------------------------------------------------------
  50. \usepackage[utf8]{inputenc} % Required for inputting international characters
  51. \usepackage[T1]{fontenc} % Output font encoding for international characters
  52. \usepackage{XCharter} % Use the XCharter fonts
  53. %----------------------------------------------------------------------------------------
  54. % COMMAND LINE ENVIRONMENT
  55. %----------------------------------------------------------------------------------------
  56. % Usage:
  57. % \begin{commandline}
  58. % \begin{verbatim}
  59. % $ ls
  60. %
  61. % Applications Desktop ...
  62. % \end{verbatim}
  63. % \end{commandline}
  64. \mdfdefinestyle{commandline}{
  65. leftmargin=10pt,
  66. rightmargin=10pt,
  67. innerleftmargin=15pt,
  68. middlelinecolor=black!50!white,
  69. middlelinewidth=2pt,
  70. frametitlerule=false,
  71. backgroundcolor=black!5!white,
  72. frametitle={Command Line},
  73. frametitlefont={\normalfont\sffamily\color{white}\hspace{-1em}},
  74. frametitlebackgroundcolor=black!50!white,
  75. nobreak,
  76. }
  77. % Define a custom environment for command-line snapshots
  78. \newenvironment{commandline}{
  79. \medskip
  80. \begin{mdframed}[style=commandline]
  81. }{
  82. \end{mdframed}
  83. \medskip
  84. }
  85. %----------------------------------------------------------------------------------------
  86. % FILE CONTENTS ENVIRONMENT
  87. %----------------------------------------------------------------------------------------
  88. % Usage:
  89. % \begin{file}[optional filename, defaults to "File"]
  90. % File contents, for example, with a listings environment
  91. % \end{file}
  92. \mdfdefinestyle{file}{
  93. innertopmargin=1.6\baselineskip,
  94. innerbottommargin=0.8\baselineskip,
  95. topline=false, bottomline=false,
  96. leftline=false, rightline=false,
  97. leftmargin=2cm,
  98. rightmargin=2cm,
  99. singleextra={%
  100. \draw[fill=black!10!white](P)++(0,-1.2em)rectangle(P-|O);
  101. \node[anchor=north west]
  102. at(P-|O){\ttfamily\mdfilename};
  103. %
  104. \def\l{3em}
  105. \draw(O-|P)++(-\l,0)--++(\l,\l)--(P)--(P-|O)--(O)--cycle;
  106. \draw(O-|P)++(-\l,0)--++(0,\l)--++(\l,0);
  107. },
  108. nobreak,
  109. }
  110. % Define a custom environment for file contents
  111. \newenvironment{file}[1][File]{ % Set the default filename to "File"
  112. \medskip
  113. \newcommand{\mdfilename}{#1}
  114. \begin{mdframed}[style=file]
  115. }{
  116. \end{mdframed}
  117. \medskip
  118. }
  119. %----------------------------------------------------------------------------------------
  120. % NUMBERED QUESTIONS ENVIRONMENT
  121. %----------------------------------------------------------------------------------------
  122. % Usage:
  123. % \begin{question}[optional title]
  124. % Question contents
  125. % \end{question}
  126. \mdfdefinestyle{question}{
  127. innertopmargin=1.2\baselineskip,
  128. innerbottommargin=0.8\baselineskip,
  129. roundcorner=5pt,
  130. nobreak,
  131. singleextra={%
  132. \draw(P-|O)node[xshift=1em,anchor=west,fill=white,draw,rounded corners=5pt]{%
  133. Question \theQuestion\questionTitle};
  134. },
  135. }
  136. \newcounter{Question} % Stores the current question number that gets iterated with each new question
  137. % Define a custom environment for numbered questions
  138. \newenvironment{question}[1][\unskip]{
  139. \bigskip
  140. \stepcounter{Question}
  141. \newcommand{\questionTitle}{~#1}
  142. \begin{mdframed}[style=question]
  143. }{
  144. \end{mdframed}
  145. \medskip
  146. }
  147. %----------------------------------------------------------------------------------------
  148. % WARNING TEXT ENVIRONMENT
  149. %----------------------------------------------------------------------------------------
  150. % Usage:
  151. % \begin{warn}[optional title, defaults to "Warning:"]
  152. % Contents
  153. % \end{warn}
  154. \mdfdefinestyle{warning}{
  155. topline=false, bottomline=false,
  156. leftline=false, rightline=false,
  157. nobreak,
  158. singleextra={%
  159. \draw(P-|O)++(-0.5em,0)node(tmp1){};
  160. \draw(P-|O)++(0.5em,0)node(tmp2){};
  161. \fill[black,rotate around={45:(P-|O)}](tmp1)rectangle(tmp2);
  162. \node at(P-|O){\color{white}\scriptsize\bf !};
  163. \draw[very thick](P-|O)++(0,-1em)--(O);%--(O-|P);
  164. }
  165. }
  166. % Define a custom environment for warning text
  167. \newenvironment{warn}[1][Warning:]{ % Set the default warning to "Warning:"
  168. \medskip
  169. \begin{mdframed}[style=warning]
  170. \noindent{\textbf{#1}}
  171. }{
  172. \end{mdframed}
  173. }
  174. %----------------------------------------------------------------------------------------
  175. % INFORMATION ENVIRONMENT
  176. %----------------------------------------------------------------------------------------
  177. % Usage:
  178. % \begin{info}[optional title, defaults to "Info:"]
  179. % contents
  180. % \end{info}
  181. \mdfdefinestyle{info}{%
  182. topline=false, bottomline=false,
  183. leftline=false, rightline=false,
  184. nobreak,
  185. singleextra={%
  186. \fill[black](P-|O)circle[radius=0.4em];
  187. \node at(P-|O){\color{white}\scriptsize\bf i};
  188. \draw[very thick](P-|O)++(0,-0.8em)--(O);%--(O-|P);
  189. }
  190. }
  191. % Define a custom environment for information
  192. \newenvironment{info}[1][Info:]{ % Set the default title to "Info:"
  193. \medskip
  194. \begin{mdframed}[style=info]
  195. \noindent{\textbf{#1}}
  196. }{
  197. \end{mdframed}
  198. }