calendari en cat
This commit is contained in:
commit
0a72347918
S'han modificat 3 arxius amb 67 adicions i 0 eliminacions
BIN
DodeCalendari.pdf
Normal file
BIN
DodeCalendari.pdf
Normal file
Archivo binario no mostrado.
7
README.md
Normal file
7
README.md
Normal file
|
@ -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.
|
60
main.tex
Normal file
60
main.tex
Normal file
|
@ -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}
|
Loading…
Referencia en una nova incidència