Base template

This commit is contained in:
Tanguy Gérôme 2025-04-25 00:23:03 +03:00
parent 2e0499a171
commit 24bf93c1e3
Signed by: tanguy
GPG key ID: 10B2947233740B88
7 changed files with 424 additions and 0 deletions

307
.gitignore vendored Executable file
View file

@ -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

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
assets/Sanomat_wordmark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
assets/jellona.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

3
build.sh Executable file
View file

@ -0,0 +1,3 @@
# ./compress_assets.sh
xelatex mäntyniemen-sanomat.tex
# ./compress_pdf.sh

105
mäntyniemen-sanomat.tex Normal file
View file

@ -0,0 +1,105 @@
\documentclass[finnish,a4paper]{article}
\usepackage[left=1.5cm,right=1.5cm,top=1.5cm,bottom=2cm]{geometry}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{setspace}
\usepackage{lipsum}
\date{\today}
% \newfontfamily{\differenttt}{Climate Crisis 2010}
% \DeclareTextFontCommand{\textdifferenttt}{\differenttt}
\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}
}
\begin{document}
{\centering
\includegraphics[width=0.1\textwidth]{assets/jellona.jpg} \\
}
\vspace{0.32cm}
\includegraphics[width=0.8\textwidth]{assets/Mäntyniemen_Sanomat_wordmark.png} \\
\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
\begin{multicols}{3}
\centering
Vartiosaari, Helsinki
2.5.2025
2 sivua
\end{multicols}
\vspace{-0.20cm}
\noindent\makebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
\begin{multicols}{3}
\lipsum
\noindent\daaah{4cm}\morseprosign{?}\\
\noindent\morse{ABCDEFG}\\
\noindent\morse{HIJKLMNO}\\
\noindent\morse{PQRSTUV}\\
\noindent\morse{WXYZÅÄÖ}\\
\noindent\morse{01234}\\
\noindent\morse{56789}\\
\noindent\morse{?/=:,.}\\
\lipsum
\end{multicols}
\end{document}