diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..06f47c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,307 @@ +#Saving pdf updates with every commit is quickly gonna make the repo heeaaaaavy +*.pdf + +#Unwanted MacOS filed +.DS_Store + +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# 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 diff --git a/assets/no_auto_compression/logo.png b/assets/no_auto_compression/logo.png new file mode 100644 index 0000000..7f2cb82 Binary files /dev/null and b/assets/no_auto_compression/logo.png differ diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..7455970 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +./compress_assets.sh +xelatex tassu.2025.1.tex +./compress_pdf.sh diff --git a/chapters/lpkjohtajantervehdys.tex b/chapters/lpkjohtajantervehdys.tex new file mode 100644 index 0000000..3313a8d --- /dev/null +++ b/chapters/lpkjohtajantervehdys.tex @@ -0,0 +1,3 @@ + +\section{Lippukunnanjohtajan tervehdys} + diff --git a/chapters/tassuennenvahnaan.tex b/chapters/tassuennenvahnaan.tex new file mode 100644 index 0000000..920b685 --- /dev/null +++ b/chapters/tassuennenvahnaan.tex @@ -0,0 +1,47 @@ + +\section{Tassu ennen vanhaan} +\textit{Tassu on ilmestynyt säännöllisen epäsäännöllisesti lippukunnan perustamisvuodesta 1986 +lähtien. Tällä palstalla muistellaan menneitä ja julkaistaan valittuja paloja takavuosien +lehdistä.} + +% \textit{Päätoimittaja sai paketin, jossa on vuosikymmeniä Tassun painoksia ja +% yrittää digitalisoida ne lähiaikoina!} + +\vspace*{0.32cm} +% \noindent Tällä kertaa mennään ajassa 20 vuotta taaksepäin, ja katsotaan mitä +% \mbox{KuRu:n} kolkat puuhasivat heidän syysretkellään vuonna 2004: + +\newtcolorbox{StickyNote}[1][]{% + enhanced, + before skip=2mm,after skip=2mm, + width=\textwidth, boxrule=0.2mm, % width of the sticky note + colback=kuru!50!white, colframe=kuru, % Colors + attach boxed title to top right={xshift=0cm,yshift*=0mm-\tcboxedtitleheight}, + varwidth boxed title*=-3cm, + % The titlebox: + boxed title style={frame code={% + \path[left color=kuru,right color=kuru, + middle color=kuru] + ([xshift=-0mm]frame.north west) -- ([xshift=0mm]frame.north east) + [rounded corners=0mm]-- ([xshift=0mm,yshift=0mm]frame.north east) + -- (frame.south east) -- (frame.south west) + -- ([xshift=0mm,yshift=0mm]frame.north west) + [sharp corners]-- cycle; + },interior engine=empty, + }, + sharp corners,rounded corners=southeast,arc is angular,arc=3mm, + % The "folded paper" in the bottom right corner: + underlay={% + \path[fill=kuru!80!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2); + \path[draw=kuru,shorten <=-0.05mm,shorten >=-0.05mm,color=kuru] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2); + }, + % drop fuzzy shadow, % Shadow + % fonttitle=\bfseries, + title={#1} +} + +\vspace*{0.64cm} +\begin{StickyNote}[Julkaistu alunperin Tassussa x/xxxx] + \monofont + +\end{StickyNote} diff --git a/compress_assets.sh b/compress_assets.sh new file mode 100755 index 0000000..921eeff --- /dev/null +++ b/compress_assets.sh @@ -0,0 +1,5 @@ + +for file in `find ./assets/*.jpg -type f -size +512k` +do + convert "$file" -define jpeg:extent=512kb "$file" +done diff --git a/compress_pdf.sh b/compress_pdf.sh new file mode 100755 index 0000000..77b40d1 --- /dev/null +++ b/compress_pdf.sh @@ -0,0 +1,9 @@ +gs \ +-sDEVICE=pdfwrite \ +-dCompatibilityLevel=1.4 \ +-dPDFSETTINGS=/printer \ +-dNOPAUSE \ +-dQUIET \ +-dBATCH \ +-sOutputFile=tassu.2025.1.compressed.pdf \ + tassu.2025.1.pdf diff --git a/tassu.2025.1.tex b/tassu.2025.1.tex new file mode 100644 index 0000000..7b9df17 --- /dev/null +++ b/tassu.2025.1.tex @@ -0,0 +1,243 @@ +%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{multirow} +\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} + +% 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 + +\usepackage[colorlinks,linkcolor=black,urlcolor=link]{hyperref} +\renewcommand{\theHsection}{\thepart.section.\thesection} +\urlstyle{same} + +\begin{document} +\thispagestyle{empty} +\newgeometry{left=1cm} + +% \ThisCenterWallPaper{1.10}{assets/no_auto_compression/kansikuva} + +\vspace*{5.70cm} + +{\noindent\color{kuru}\begin{tabular}{@{}c@{}} +\includegraphics[width=6cm]{assets/no_auto_compression/logo} \\ +\\ + +\newtcolorbox{kuruboxfrontpage}[1][]{% + enhanced, + before skip=0mm,after skip=0mm, + width=0.6\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 1/2025 Kurkisuon Rusakot ry} +\end{kuruboxfrontpage} +% \contour{white}{\large\bfseries 1/2024 Kurkisuon Rusakot ry} +\end{tabular}\par} + +\clearpage +\restoregeometry +\thispagestyle{plain} + +% \ThisULCornerWallPaper{1}{assets/no_auto_compression/sisäkansikuva.jpg} + +\noindent \textbf{Tassu 1/2025} \\ +\noindent ISSN 0783-1536 + +\vfill + +% \begin{multicols}{2} +\noindent\textbf{Päätoimittaja:} + +Tanguy Gérôme + +\href{mailto:tanguy@gerome.fi}{tanguy@gerome.fi} + +\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- ja sisäkannen kuvat: + +xxx + +\noindent Takakannen kuva: + +xxx + +% \columnbreak +\vspace{0.64cm} + +\tableofcontents +% \end{multicols} + +\include{chapters/lpkjohtajantervehdys.tex} + +\include{chapters/tassuennenvahnaan.tex} + +% \section{Muistoja vuodelta 2023: Johtajien kansallispuistokierros Ruotsissa} +% \section{Muistoja vuodelta 2024: Uikun uinti -vaellus 26.–30.6.} + +% \include{chapters/kuvakilpailu.tex} + +% \clearpage\section{Tulossa pian} + + +\clearpage + +\thispagestyle{empty} +% \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 1/2025 Kurkisuon Rusakot ry} + \end{kuruboxendpage} + \end{center} + \end{addmargin} +} +\end{document}