From ecb41ba28066f31019ebd5d08b51cfd2e238d94a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 20 Oct 2022 13:35:43 +0300 Subject: [PATCH] LaTeX/[hello,standardi-asiakirja}.tex: fix language, git-friendlines, my name Resolves: #42 --- LaTeX/hello.tex | 22 +++++++++------------- LaTeX/standardi-asiakirja.tex | 4 ++-- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/LaTeX/hello.tex b/LaTeX/hello.tex index 0c08228..e1cd4fc 100644 --- a/LaTeX/hello.tex +++ b/LaTeX/hello.tex @@ -1,15 +1,12 @@ -% I think this was mandatory, paper size, font size and type -% artikel3 is NL, but more pleasant to European than article +% Zeroth rule: when using git and \LaTeX, one paragraph equals one line, forget staying pretty in plaintext editor +% +% I think this was mandatory, paper size, font size and type artikel3 is NL, but more pleasant to European than article +% % Potentially interesting options: % * onecolumn (default) or twocolumn % * final (default) or draft -\documentclass[a4paper,12pt]{artikel3} -% I am unsure on this being mandatory, but explicit is probably better than -% implicit? -%\usepackage[T1]{fontenc} -% Definitely reduntant, this library book spoke of latin1. Don't uncomment -% with cmap -%\usepackage[utf8]{inputenc} +% * font size can be defined here after a4paper e.g. 12pt +\documentclass[a4paper]{artikel3} % I can specify multiple languages for hyphenation! texlive-babel % The last is main document language \usepackage[english,finnish,esperanto]{babel} @@ -36,15 +33,13 @@ \section*{Hello World!} -Hello Wörld! This is a simple \LaTeX\ template file or similar where I can -cheat how does this work again. Possibly with even comments! +Hello Wörld! This is a simple \LaTeX\ template file or similar where I can cheat how does this work again. Possibly with even comments! \selectlanguage{finnish} \section*{Samahko suomeksi!} -Hei maailma, heitän hiukan suomenkieltäkin tähän asiakirjaan perustellakseni -ääkkösten käyttöä! +Hei maailma, heitän hiukan suomenkieltäkin tähän asiakirjaan perustellakseni ääkkösten käyttöä! \selectlanguage{english} @@ -69,6 +64,7 @@ To have a non-breaking space use \textasciitilde\ (a tilde). A backslash would b If you were to censor things using \textbackslash xblackout containing unicode, the unicode chars would need to be within curly brackets. \selectlanguage{finnish} + \xblackout{T{ä}h{ä}n tapaan!} Kiva suomenkielinen sana on \xblackout{h{ää}y{ö}aie}! % And ends here diff --git a/LaTeX/standardi-asiakirja.tex b/LaTeX/standardi-asiakirja.tex index c3d4188..4367f9a 100644 --- a/LaTeX/standardi-asiakirja.tex +++ b/LaTeX/standardi-asiakirja.tex @@ -1,6 +1,6 @@ % https://github.com/datakurre/vakioasiakirja % ~/texmf/tex/latex/local (`kpsewhich -var-value=TEXMFHOME`) -\documentclass[a4paper,10pt]{vakioasiakirja} +\documentclass[a4paper]{vakioasiakirja} % Last language is the document main language! \usepackage[english,finnish]{babel} % Noto Serif everywhere @@ -9,7 +9,7 @@ \usepackage{cmap} -\author{Mikaela \underline{Aminda} H. M. Suomalainen} +\author{Aminda Suomalainen} \address{ Address details\\