mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-11-22 03:09:22 +01:00
LaTeX/hello.tex: set language to esperanto, selectlanguage in the middle, remember section for nbsp and textbackslash
This commit is contained in:
parent
6af7a2e46e
commit
5f4a61b299
@ -11,7 +11,8 @@
|
|||||||
% with cmap
|
% with cmap
|
||||||
%\usepackage[utf8]{inputenc}
|
%\usepackage[utf8]{inputenc}
|
||||||
% I can specify multiple languages for hyphenation! texlive-babel
|
% I can specify multiple languages for hyphenation! texlive-babel
|
||||||
\usepackage[esperanto,english,finnish]{babel}
|
% The last is main document language
|
||||||
|
\usepackage[english,finnish,esperanto]{babel}
|
||||||
% Noto Serif font. Remember to install texlive-fontaxes, texlive-noto
|
% Noto Serif font. Remember to install texlive-fontaxes, texlive-noto
|
||||||
\usepackage{noto-serif}
|
\usepackage{noto-serif}
|
||||||
% texlive-cmap makes pdflatex copy-pasteable
|
% texlive-cmap makes pdflatex copy-pasteable
|
||||||
@ -31,16 +32,22 @@
|
|||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
|
\selectlanguage{english}
|
||||||
|
|
||||||
\section*{Hello World!}
|
\section*{Hello World!}
|
||||||
|
|
||||||
Hello Wörld! This is a simple \LaTeX\ template file or similar where I can
|
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!
|
cheat how does this work again. Possibly with even comments!
|
||||||
|
|
||||||
|
\selectlanguage{finnish}
|
||||||
|
|
||||||
\section*{Samahko suomeksi!}
|
\section*{Samahko suomeksi!}
|
||||||
|
|
||||||
Hei maailma, heitän hiukan suomenkieltäkin tähän asiakirjaan perustellakseni
|
Hei maailma, heitän hiukan suomenkieltäkin tähän asiakirjaan perustellakseni
|
||||||
ääkkösten käyttöä!
|
ääkkösten käyttöä!
|
||||||
|
|
||||||
|
\selectlanguage{english}
|
||||||
|
|
||||||
\section*{Playing with censor}
|
\section*{Playing with censor}
|
||||||
|
|
||||||
\xblackout{If the source is private, this is a secret!
|
\xblackout{If the source is private, this is a secret!
|
||||||
@ -48,9 +55,16 @@ Hei maailma, heitän hiukan suomenkieltäkin tähän asiakirjaan perustellakseni
|
|||||||
So don't go talking about it!}
|
So don't go talking about it!}
|
||||||
|
|
||||||
\def \Password{\censor*{8}}
|
\def \Password{\censor*{8}}
|
||||||
|
\selectlanguage{finnish}
|
||||||
\def \Huippusalainen{\censor*{14}}
|
\def \Huippusalainen{\censor*{14}}
|
||||||
|
|
||||||
Salasana on \Password. Älä unohda salasanan olevan \Password. Tämä tieto on \Huippusalainen.
|
Salasana on \Password. Älä unohda salasanan olevan \Password. Tämä tieto on \Huippusalainen.
|
||||||
|
|
||||||
|
\selectlanguage{english}
|
||||||
|
|
||||||
|
\section*{Remember!}
|
||||||
|
|
||||||
|
To have a non-breaking space use \textasciitilde\ (a tilde). A backslash would be \textbackslash. A forced linechange is \textbackslash\textbackslash.
|
||||||
|
|
||||||
% And ends here
|
% And ends here
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Loading…
Reference in New Issue
Block a user