Add blank template

This commit is contained in:
Tanguy Gérôme 2025-11-08 07:27:26 +02:00
parent bd539e0eed
commit 9017f2e7b7
Signed by: tanguy
GPG key ID: 10B2947233740B88
6 changed files with 381 additions and 7 deletions

16
.gitignore vendored
View file

@ -1,4 +1,12 @@
# ---> TeX
#Saving pdf updates with every commit is quickly gonna make the repo heeaaaaavy
*.pdf
# when publishing the finished pdf, we want to save it
!tassu.2025.1.pdf
#Unwanted MacOS filed
.DS_Store
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
@ -40,8 +48,6 @@
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
*.rubbercache
rubber.cache
## Build tool directories for auxiliary files
# latexrun
@ -141,9 +147,6 @@ acs-*.bib
*.trc
*.xref
# hypdoc
*.hd
# hyperref
*.brf
@ -305,4 +308,3 @@ TSWLatexianTemp*
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
# Uncomment the next line to have this generated file ignored.
#*Notes.bib

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

3
build.sh Executable file
View file

@ -0,0 +1,3 @@
./compress_assets.sh
xelatex tassu.2025.2.tex
#./compress_pdf.sh

6
compress_assets.sh Executable file
View file

@ -0,0 +1,6 @@
for file in `find ./assets/*.{jpg,JPG,jpeg,JPEG} -type f -size +512k`
do
magick "$file" -strip -resize 2048x2048 -interlace Plane -gaussian-blur 0.05 -quality 85% "$file"
magick "$file" -define jpeg:extent=512kb "$file"
done

9
compress_pdf.sh Executable file
View file

@ -0,0 +1,9 @@
gs \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/printer \
-dNOPAUSE \
-dQUIET \
-dBATCH \
-sOutputFile=tassu.2025.2.compressed.pdf \
tassu.2025.2.pdf

354
tassu.2025.2.tex Executable file
View file

@ -0,0 +1,354 @@
%10MB
\documentclass[10pt,finnish,a5paper]{scrartcl}
\usepackage[left=1.5cm,right=1.5cm,top=1.5cm,bottom=2cm]{geometry}
\usepackage{fontspec}
\usepackage{babel}
\usepackage{microtype}
\usepackage{multicol}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{ragged2e}
\usepackage{graphicx}
\usepackage{wallpaper}
\usepackage{lipsum}
\usepackage[labelformat=empty]{caption}
\usepackage[export]{adjustbox}
\usepackage{calc}
\usepackage{pstricks}
\usepackage{contour}
\usepackage{wrapfig}
\usepackage{multirow}
\usepackage{makecell}
\contourlength{2pt}
% \usepackage{draftwatermark}
% \SetWatermarkText{\textbf{LUONNOS}}
% \SetWatermarkScale{1}
\newenvironment{Figure}
{\par\medskip\noindent\minipage{\linewidth}}
{\endminipage\par\medskip}
\definecolor{link}{HTML}{f7941e}
\RedeclareSectionCommands[tocraggedentrytext]{section}
\setlength{\RaggedRightParindent}{\parindent}
\RaggedRight
\setmainfont[Ligatures=TeX]{Ubuntu}
\newfontfamily\monofont{Ubuntu Mono}
\definecolor{kuru}{HTML}{f7941e}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{2}
\addto\captionsfinnish{\renewcommand{\contentsname}{Tässä numerossa}}
\addtokomafont{sectionentry}{\normalfont}
\addtokomafont{disposition}{\rmfamily\color{kuru}}
\addtokomafont{caption}{\footnotesize}
\setkomafont{subsection}{\normalfont\itshape}
\setenumerate{leftmargin=*}
\setitemize{leftmargin=*}
\frenchspacing
\def\UrlBreaks{\do\/\do-}
\usepackage[automark, autooneside=false]{scrlayer-scrpage}
\pagestyle{scrheadings}
\setkomafont{pageheadfoot}{}% not special font for page head and foot
% \clearpairofpagestyles
% \ihead{\leftmark}
% \ohead{\Ifstr{\leftmark}{\rightbotmark}{}{\rightbotmark}}
% \ohead{\Ifstr{\rightbotmark}{\leftmark}{}{\leftmark}}
\ihead{}
\chead{}
\ohead{\color{kuru}\rightmark}
% \ihead{\headmark}
% \markright{
% }
\cfoot{\pagemark}
% \newcommand{\dit}{\raisebox{0.47ex}{.}}
% \newcommand{\dah}{\raisebox{-0.0ex}{\textbf{-}}}
% \newcommand{\daaah}[1]{\raisebox{0.64ex}{\rule{#1}{2pt}}}
% \usepackage{listings}
% \newcommand{\morse}[1]{\
% \lstset{
% basicstyle=\Large,
% literate={A}{\dit\dah}3{B}{\dah\dit\dit\dit}3{C}{\dah\dit\dah\dit}4
% {D}{\dah\dit\dit}3{E}{\dit}2{F}{\dit\dit\dah\dit}3
% {G}{\dah\dah\dit}4{H}{\dit\dit\dit\dit}3{I}{\dit\dit}2
% {J}{\dit\dah\dah\dah}4{K}{\dah\dit\dah}3{L}{\dit\dah\dit\dit}3
% {M}{\dah\dah}3{N}{\dah\dit}2{O}{\dah\dah\dah}4
% {P}{\dit\dah\dah\dit}4{Q}{\dah\dah\dit\dah}4{R}{\dit\dah\dit}3
% {S}{\dit\dit\dit}3{T}{\dah}2{U}{\dit\dit\dah}3
% {V}{\dit\dit\dit\dah}3{W}{\dit\dah\dah}4{X}{\dah\dit\dit\dah}3
% {Y}{\dah\dit\dah\dah}4{Z}{\dah\dah\dit\dit}3{Å}{\dit\dah\dah\dit\dah}5
% {Ä}{\dit\dah\dit\dah}4{Ö}{\dah\dah\dah\dit}4{0}{\dah\dah\dah\dah\dah}5
% {1}{\dit\dah\dah\dah\dah}5{2}{\dit\dit\dah\dah\dah}5{3}{\dit\dit\dit\dah\dah}5
% {4}{\dit\dit\dit\dit\dah}4{5}{\dit\dit\dit\dit\dit}4{6}{\dah\dit\dit\dit\dit}4
% {7}{\dah\dah\dit\dit\dit}5{8}{\dah\dah\dah\dit\dit}5{9}{\dah\dah\dah\dah\dit}5
% {?}{\dit\dit\dah\dah\dit\dit}5{/}{\dah\dit\dit\dah\dit}5{=}{\dah\dit\dit\dit\dah}4
% {:}{\dah\dah\dah\dit\dit\dit}5{,}{\dah\dah\dit\dit\dah\dah}5{.}{\dit\dah\dit\dah\dit\dah}5
% % {}{}4{}{}4{}{}4
% }
% \lstinline{#1}
% }
% \newcommand{\morseprosign}[1]{\
% \lstset{
% basicstyle=\Large,
% literate={A}{\dit\dah}1{B}{\dah\dit\dit\dit}1{C}{\dah\dit\dah\dit}1
% {D}{\dah\dit\dit}1{E}{\dit}1{F}{\dit\dit\dah\dit}1
% {G}{\dah\dah\dit}1{H}{\dit\dit\dit\dit}1{I}{\dit\dit}1
% {J}{\dit\dah\dah\dah}1{K}{\dah\dit\dah}1{L}{\dit\dah\dit\dit}1
% {M}{\dah\dah}1{N}{\dah\dit}1{O}{\dah\dah\dah}1
% {P}{\dit\dah\dah\dit}1{Q}{\dah\dah\dit\dah}1{R}{\dit\dah\dit}1
% {S}{\dit\dit\dit}1{T}{\dah}1{U}{\dit\dit\dah}1
% {V}{\dit\dit\dit\dah}1{W}{\dit\dah\dah}1{X}{\dah\dit\dit\dah}1
% {Y}{\dah\dit\dah\dah}1{Z}{\dah\dah\dit\dit}1{Å}{\dit\dah\dah\dit\dah}1
% {Ä}{\dit\dah\dit\dah}1{Ö}{\dah\dah\dah\dit}1{0}{\dah\dah\dah\dah\dah}1
% {1}{\dit\dah\dah\dah\dah}1{2}{\dit\dit\dah\dah\dah}1{3}{\dit\dit\dit\dah\dah}1
% {4}{\dit\dit\dit\dit\dah}1{5}{\dit\dit\dit\dit\dit}1{6}{\dah\dit\dit\dit\dit}1
% {7}{\dah\dah\dit\dit\dit}1{8}{\dah\dah\dah\dit\dit}1{9}{\dah\dah\dah\dah\dit}1
% {?}{\dit\dit\dah\dah\dit\dit}1{/}{\dah\dit\dit\dah\dit}1{=}{\dah\dah\dah\dit\dit\dit}1
% {:}{\dah\dah\dah\dit\dit\dit}1{,}{\dah\dah\dit\dit\dah\dah}1{.}{\dit\dah\dit\dah\dit\dah}1
% % {}{}4{}{}4{}{}4
% }
% \lstinline{#1}
% }
% Packages needed:
\usepackage{tikz}
\usepackage[most]{tcolorbox}
\newtcolorbox{kuruboxtitle}[1][]{%
enhanced,
before skip=0mm,after skip=0mm,
width=1\textwidth, boxrule=0mm,
colback=kuru, colframe=kuru, % Colors
sharp corners,
underlay={%
\fill[kuru] ([xshift=-10mm,yshift=2mm]frame.north west) -- ([xshift=8mm]frame.north east)
-- ([xshift=10mm,yshift=-2mm]frame.south east) -- ([xshift=-8mm]frame.south west)
-- cycle;
\fill[white] ([xshift=-6mm,yshift=-2mm]frame.north west) ellipse (1mm and 2mm);
\fill[white] ([xshift=-3mm,yshift=-2mm]frame.north west) ellipse (1mm and 2mm);
\fill[white] ([xshift=-4.5mm,yshift=-6mm]frame.north west) circle (1mm);
\fill[white] ([xshift=-4.5mm,yshift=-9mm]frame.north west) circle (1mm);
},
% drop fuzzy shadow, % Shadow
title={#1},
}
\usepackage{titlesec}
\titleformat
{\section} % command
[display] % shape
{\bfseries\Large} % format
{\thechapter} % label
{0.5ex} % sep
{
\clearpage
\thispagestyle{plain}
\begin{center}
\begin{kuruboxtitle}[]
\color{white}
} % before-code
[
\end{kuruboxtitle}
\end{center}
] % after-code
\titleformat
{\subsection} % command
[display] % shape
{\bfseries\large} % format
{\thechapter} % label
{0.32cm} % sep
{
} % before-code
[
] % after-code
\titleformat
{\subsubsection} % command
[display] % shape
{\bfseries} % format
{\thechapter} % label
{0.16cm} % sep
{
} % before-code
[
] % after-code
\usepackage[colorlinks,linkcolor=black,urlcolor=link]{hyperref}
\renewcommand{\theHsection}{\thepart.section.\thesection}
\urlstyle{same}
\begin{document}
\thispagestyle{empty}
\newgeometry{left=2cm,bottom=0cm}
% \ThisCenterWallPaper{1.08}{assets/no_auto_compression/kansikuva}
% \vspace*{1.28cm}
\vspace*{11cm}
\newtcolorbox{logowhitebox}[1][]{%
enhanced,
before skip=0mm,after skip=0mm,
width=0.67\textwidth, boxrule=0mm,
colback=kuru, colframe=kuru, % Colors
sharp corners,
underlay={%
\fill[white] ([xshift=-2mm,yshift=3mm]frame.north west) -- ([yshift=1mm]frame.north east)
-- ([xshift=1mm,yshift=-3mm]frame.south east) -- ([xshift=-1mm,yshift=-1mm]frame.south west)
-- cycle;
},
% drop fuzzy shadow, % Shadow
title={#1},
}
\begin{logowhitebox}[]
\includegraphics[width=6cm]{assets/no_auto_compression/logo}
\end{logowhitebox}
\vspace*{1.28cm}
\newtcolorbox{kuruboxfrontpage}[1][]{%
enhanced,
before skip=0mm,after skip=0mm,
width=0.7\textwidth, boxrule=0mm,
colback=kuru, colframe=kuru, % Colors
sharp corners,
underlay={%
\fill[kuru] ([xshift=-8mm,yshift=3mm]frame.north west) -- ([yshift=1mm]frame.north east)
-- ([xshift=1mm,yshift=-3mm]frame.south east) -- ([xshift=-7mm,yshift=-1mm]frame.south west)
-- cycle;
\fill[white] ([xshift=-4mm,yshift=-1mm]frame.north west) ellipse (1mm and 2mm);
\fill[white] ([xshift=-1mm,yshift=-1mm]frame.north west) ellipse (1mm and 2mm);
\fill[white] ([xshift=-2.5mm,yshift=-5mm]frame.north west) circle (1mm);
\fill[white] ([xshift=-2.5mm,yshift=-8mm]frame.north west) circle (1mm);
},
% drop fuzzy shadow, % Shadow
title={#1},
}
\begin{kuruboxfrontpage}[]
\color{white}{\large\bfseries 2/2025 Kurkisuon Rusakot ry}
\end{kuruboxfrontpage}
\clearpage
\restoregeometry
\thispagestyle{plain}
% \ThisULCornerWallPaper{1}{assets/no_auto_compression/sisäkansikuva.jpg}
{\color{white}
\noindent \textbf{Tassu 2/2025} \\
\noindent ISSN 2984-5556}
\vfill
% \begin{multicols}{2}
\noindent\textbf{Päätoimittaja:}
Tanguy
\href{mailto:tanguy@gerome.fi}{tanguy@gerome.fi}
\medskip
\noindent\textbf{Muu toimitus:}
Janne
% \textit{Pomppupallot}"-seikkailijavartio
% \textit{Päärynähyttyset}"-tarpojavartio
% \textit{Vene}"-samoajavartio
\medskip
\noindent\textbf{Julkaisija:}
Kurkisuon Rusakot ry, Helsinki
\medskip
\noindent Tarkista lippukunnan ajankohtaiset yhteystiedot nettisivuilta:
\href{https://kurkisuonrusakot.wordpress.com/}{kurkisuonrusakot.wordpress.com}
\medskip
\noindent Etu-, sisä- ja takakannen kuvat:
% Tanguy
% \columnbreak
\vspace{-0.64cm}
\tableofcontents
% \end{multicols}
%STANDARD COLUMNS
% \include{chapters/lpkjohtajantervehdys.tex}
% \include{chapters/tassuennenvahnaan.tex}
% \include{chapters/johtajarusakot.tex}
%MISC COLUMNS
%STORIES FROM RETKI/VAELLUS/LEIRI/EVENT
%Pending the interviews so commented for now. Move maybe to 2/2025.
%\include{chapters/partiomenetelma.tex}
% \include{chapters/morse.tex}
%TIP COLUMNS
%COMPETITIONS
% \include{chapters/neulekilpailu.tex}
% \clearpage\section{Tulossa pian}
\clearpage
\thispagestyle{empty}
\newgeometry{left=2cm,right=1cm,top=1cm,bottom=1cm}
% \ThisCenterWallPaper{1.07}{assets/no_auto_compression/takakansikuva.jpg}~
\vfill
\newtcolorbox{kuruboxendpage}[1][]{%
enhanced,
before skip=0mm,after skip=0mm,
width=0.68\textwidth, boxrule=0mm,
colback=kuru, colframe=kuru, % Colors
sharp corners,
underlay={%
\fill[kuru] ([xshift=-8mm,yshift=3mm]frame.north west) -- ([yshift=1mm]frame.north east)
-- ([xshift=1mm,yshift=-3mm]frame.south east) -- ([xshift=-7mm,yshift=-1mm]frame.south west)
-- cycle;
\fill[white] ([xshift=-4mm,yshift=-1mm]frame.north west) ellipse (1mm and 2mm);
\fill[white] ([xshift=-1mm,yshift=-1mm]frame.north west) ellipse (1mm and 2mm);
\fill[white] ([xshift=-2.5mm,yshift=-5mm]frame.north west) circle (1mm);
\fill[white] ([xshift=-2.5mm,yshift=-8mm]frame.north west) circle (1mm);
},
% drop fuzzy shadow, % Shadow
title={#1},
}
{
\noindent
\begin{addmargin}[0.32cm]{0cm}
\begin{center}
\begin{kuruboxendpage}[]
\color{white}{\Large\bfseries 2/2025 Kurkisuon Rusakot ry}
\end{kuruboxendpage}
\end{center}
\end{addmargin}
}
\end{document}