commit 0a72347918f41b53c5f881258aaa11ec4b7780de Author: eduardagbo Date: Sat Dec 3 14:07:01 2022 +0100 calendari en cat diff --git a/DodeCalendari.pdf b/DodeCalendari.pdf new file mode 100644 index 0000000..9afab9c Binary files /dev/null and b/DodeCalendari.pdf differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad1e2fe --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Dodecalendari +modificació del projecte de mostra del modul de latex per mostrar els mesos en català + +ara es pot triar l'any i els diferents colors + +## Compilar + el més fàcil, si no tens LaTex, és crear-te un compte a OverLeaf i fer servir el seu compilador en linea. \ No newline at end of file diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..63dd09c --- /dev/null +++ b/main.tex @@ -0,0 +1,60 @@ +\documentclass[a4paper]{article} +% Folding + calendar example from the PGF manual. +% +% Author: Till Tantau +\usepackage{tikz} +\usetikzlibrary{calendar,folding} +\usepackage{xcolor} + +\definecolor{Col_mes}{HTML}{418B6C} +\definecolor{Col_dissabte}{HTML}{E67A3E} +\definecolor{Col_diumenge}{HTML}{D74643} + +%%%< +\usepackage{verbatim} +\usepackage[active,tightpage]{preview} +\PreviewEnvironment{tikzpicture} +\setlength\PreviewBorder{5pt}% +%%%> + +\begin{comment} +:Title: Foldable dodecahedron with Calendar +:Tags: Calendars; Manual +:Author: Till Tantau + +An example of the folding library and the folding library, straight from +the manual. +\end{comment} +\newcommand{\any}{2023} + +\begin{document} + \def\pgfcalendarmonthname#1{% + \ifcase#1\or Gener\or Febrer\or Març\or Abril\or Maig\or Juny\or Juliol\or Agost\or Setembre\or Octubre\or Novembre\or Desembre\fi + } + \sffamily\scriptsize + \begin{tikzpicture}[transform shape, + every calendar/.style={ + at={(-8ex,4ex)}, + week list, + month label above centered, + month text=\bfseries\textcolor{Col_mes}{\%mt} \%y0, + if={(Saturday) [Col_dissabte!90]}, + if={(Sunday) [Col_diumenge]} + }] + \tikzfoldingdodecahedron[ + folding line length=2.5cm, + face 1={ \calendar [dates=\any-01-01 to \any-01-last];}, + face 2={ \calendar [dates=\any-02-01 to \any-02-last];}, + face 3={ \calendar [dates=\any-03-01 to \any-03-last];}, + face 4={ \calendar [dates=\any-04-01 to \any-04-last];}, + face 5={ \calendar [dates=\any-05-01 to \any-05-last];}, + face 6={ \calendar [dates=\any-06-01 to \any-06-last];}, + face 7={ \calendar [dates=\any-07-01 to \any-07-last];}, + face 8={ \calendar [dates=\any-08-01 to \any-08-last];}, + face 9={ \calendar [dates=\any-09-01 to \any-09-last];}, + face 10={\calendar [dates=\any-10-01 to \any-10-last];}, + face 11={\calendar [dates=\any-11-01 to \any-11-last];}, + face 12={\calendar [dates=\any-12-01 to \any-12-last];} + ]; + \end{tikzpicture} +\end{document} \ No newline at end of file