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.
 
 
 
 

187 lines
5.0 KiB

  1. \documentclass[a4paper,12pt]{article}
  2. % This file has been generated with Kosmorro version +++KOSMORRO-VERSION+++ (https://kosmorro.space) on +++CURRENT-DATE+++.
  3. % Feel free to modify it at your needs.
  4. %
  5. % To compile this file, you will need to install LaTeX distribution like:
  6. %
  7. % - TeXLive (https://tug.org/texlive/) on Windows and Linux
  8. % - MacTeX (https://www.tug.org/mactex/) on macOS
  9. \usepackage[utf8]{inputenc}
  10. \usepackage[T1]{fontenc}
  11. \usepackage[margin=25mm]{geometry}
  12. \usepackage{graphicx}
  13. \usepackage{hyperref}
  14. \usepackage{xcolor}
  15. \usepackage{fp}
  16. % Command showing the Moon phase
  17. \newcommand{\moonphase}[2]{
  18. \begin{center}
  19. \begin{minipage}{2cm}
  20. \includegraphics[width=\linewidth]{#1}
  21. \end{minipage}
  22. \hspace{5mm}
  23. \begin{minipage}{7cm}
  24. \textbf{\currentmoonphasetitle}\\#2
  25. \end{minipage}
  26. \end{center}
  27. }
  28. % Environment for the ephemerides, when --no-graph is given on the command line
  29. \newenvironment{ephemerides}{
  30. \begin{table}[h]
  31. \centering
  32. \begin{tabular}{lccc}
  33. \textbf{\ephemeridesobjecttitle} &
  34. \textbf{\ephemeridesrisetimetitle} &
  35. \textbf{\ephemeridesculminationtimetitle} &
  36. \textbf{\ephemeridessettimetitle}\\
  37. \hline
  38. }{
  39. \end{tabular}
  40. \end{table}
  41. }
  42. % Command adding an object to the ephemerides environment
  43. \newcommand{\object}[4]{
  44. \hline
  45. \textbf{#1} & {#2} & {#3} & {#4}\\
  46. }
  47. % Environment to insert the ephemerides graph
  48. \newenvironment{graphephemerides}{\setlength{\unitlength}{0.02\linewidth}
  49. \begin{picture}(20,20)
  50. % Axes
  51. \put(0,-2){\vector(1,0){50}}
  52. \multiput(0,-2)(2,0){24}{
  53. \line(0,-1){0.25}
  54. }
  55. \newcounter{hour}
  56. \multiput(-0.25,-3.5)(4,0){12}{
  57. \sffamily\footnotesize
  58. \arabic{hour}\stepcounter{hour}\stepcounter{hour}
  59. }
  60. \put(49,-3.5){\sffamily\footnotesize \hourslabel}
  61. % Graduation
  62. \put(50,-0.5){\sffamily\footnotesize \Pluto}
  63. \put(50,1.5){\sffamily\footnotesize \Neptune}
  64. \put(50,3.5){\sffamily\footnotesize \Uranus}
  65. \put(50,5.5){\sffamily\footnotesize \Saturn}
  66. \put(50,7.5){\sffamily\footnotesize \Jupiter}
  67. \put(50,9.5){\sffamily\footnotesize \Mars}
  68. \put(50,11.5){\sffamily\footnotesize \Venus}
  69. \put(50,13.5){\sffamily\footnotesize \Mercury}
  70. \put(50,15.5){\sffamily\footnotesize \Moon}
  71. \put(50,17.5){\sffamily\footnotesize \Sun}
  72. \multiput(0,0)(0,2){10}{
  73. \color{gray}\line(1,0){48}
  74. }
  75. \linethickness{1.5mm}
  76. }{
  77. \end{picture}
  78. \vspace{1cm}
  79. }
  80. % Command to add an object to the graph
  81. \newcommand{\graphobject}[8]{%
  82. % #1: Y coordinate component
  83. % #2: Color
  84. % #3: Hour rise time
  85. % #4: Minute rise time
  86. % #5: Hour set time
  87. % #6: Minute set time
  88. % #7: Human-readable rise time
  89. % #8: Human-readable set time
  90. \FPeval{\start}{#3*2+(#4/60)*2}%
  91. \FPeval{\length}{#5*2+(#6/60)*2 - \start}%
  92. \FPeval{\starttext}{\start+0.7}%
  93. \FPeval{\endtext}{\start+\length-3.25}%
  94. {\color{#2}%
  95. \put(\start,#1){%
  96. \line(1, 0){\length}%
  97. }}%
  98. \put(\starttext,#1.5){\sffamily\footnotesize #7}%
  99. \put(\endtext,#1.5){\sffamily\footnotesize #8}%
  100. }
  101. \newcommand{\event}[2]{
  102. \textbf{#1} & {#2}\\
  103. }
  104. \newenvironment{events}{
  105. \begin{table}[h]
  106. \begin{tabular}{ll}
  107. }{
  108. \end{tabular}
  109. \end{table}
  110. }
  111. % Commands to handle the translated strings
  112. \newcommand{\currentmoonphasetitle}{+++CURRENT-MOON-PHASE-TITLE+++}
  113. \newcommand{\ephemeridesobjecttitle}{+++EPHEMERIDES-OBJECT+++}
  114. \newcommand{\ephemeridesrisetimetitle}{+++EPHEMERIDES-RISE-TIME+++}
  115. \newcommand{\ephemeridesculminationtimetitle}{+++EPHEMERIDES-CULMINATION-TIME+++}
  116. \newcommand{\ephemeridessettimetitle}{+++EPHEMERIDES-SET-TIME+++}
  117. \newcommand{\hourslabel}{+++GRAPH_LABEL_HOURS+++}
  118. \newcommand{\Pluto}{+++ASTER_PLUTO+++}
  119. \newcommand{\Neptune}{+++ASTER_NEPTUNE+++}
  120. \newcommand{\Uranus}{+++ASTER_URANUS+++}
  121. \newcommand{\Saturn}{+++ASTER_SATURN+++}
  122. \newcommand{\Jupiter}{+++ASTER_JUPITER+++}
  123. \newcommand{\Mars}{+++ASTER_MARS+++}
  124. \newcommand{\Venus}{+++ASTER_VENUS+++}
  125. \newcommand{\Mercury}{+++ASTER_MERCURY+++}
  126. \newcommand{\Moon}{+++ASTER_MOON+++}
  127. \newcommand{\Sun}{+++ASTER_SUN+++}
  128. % Fix Unicode issues
  129. \DeclareUnicodeCharacter{202F}{~}
  130. \DeclareUnicodeCharacter{00B0}{$^\circ$}
  131. \hypersetup{pdfinfo={%
  132. Title={+++DOCUMENT-TITLE+++},
  133. Creator={Kosmorro v+++KOSMORRO-VERSION+++}
  134. }}
  135. \pagenumbering{gobble}
  136. \setcounter{secnumdepth}{0}
  137. \title{\sffamily\href{http://kosmorro.space}{\includegraphics[width=5cm]{+++KOSMORRO-LOGO+++}}\\+++DOCUMENT-TITLE+++}
  138. \date{\vspace{-11mm}\sffamily +++DOCUMENT-DATE+++}
  139. \begin{document}
  140. \maketitle
  141. +++INTRODUCTION+++
  142. \moonphase{+++MOON-PHASE-GRAPHICS+++}{+++CURRENT-MOON-PHASE+++}
  143. %%% BEGIN-EPHEMERIDES-SECTION
  144. \section{\sffamily +++SECTION-EPHEMERIDES+++}
  145. \begin{ephemerides}
  146. +++EPHEMERIDES+++
  147. \end{ephemerides}
  148. %%% END-EPHEMERIDES-SECTION
  149. %%% BEGIN-EVENTS-SECTION
  150. \section{\sffamily +++SECTION-EVENTS+++}
  151. \begin{events}
  152. +++EVENTS+++
  153. \end{events}
  154. %%% END-EVENTS-SECTION
  155. \end{document}