Commit ab4deff1 authored by Vairis's avatar Vairis
Browse files

pievienotas anotācijas dažādās valodās un href rus URL lietošanai fixed #3, fixed #6

parent 41f24ba0
......@@ -26,7 +26,7 @@
% Valodu atbalsts
\usepackage{polyglossia}
\setdefaultlanguage{latvian}
\setotherlanguages{english,russian}
\setotherlanguages{english,russian,french}
% Fonti -- var rakstīt sistēmas fontu nosaukumus
% Parastais teksta fonts
......@@ -48,6 +48,10 @@
\usepackage{hyperref}
\hypersetup{ colorlinks, citecolor=black, filecolor=black,linkcolor=blue,urlcolor=black }
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{lipsum} %Lai ģenerētu nejaušus tekstus...
%% Mainīt chapteru izskatu - centrēts un definētais sffamily fonts (skatīt augstāk)
\usepackage{titlesec}
\titleformat{\chapter}{\huge\centering\sffamily}{\thechapter}{1pc}{}
......@@ -109,13 +113,32 @@
\defAutors}
\def\defMatrikulasNr{2009123456}
\def\defDarbaNosaukums{Pagātnes, tagadnes un nākotnes aspekti atbildei uz galveno jautājumu}
\def\defDarbaNosaukumsEN{Answer to the Ultimate Question of Life, the Universe, and Everything}
\def\defDarbaNosaukumsFR{La grande question sur la vie, l'univers et le reste}
\def\defDarbaNosaukumsLV{Pagātnes, tagadnes un nākotnes aspekti atbildei uz galveno jautājumu}
\def\defDarbaNosaukumsRU{Ответ на главный вопрос жизни, вселенной и всего такого}
\def\defDarbaVeids{Maģistra darbs}
\def\defFakultatesDekans{Dr.~oec., asoc. prof. I.~Dekāns}
\def\defZinVaditajs{Dr.~phys., prof. S.~Vadītājs}
\def\defGads{2010}
\input{titullapas-dati} %šeit pārdefinējam savus mainīgos (atstāju iepriekšējās rindas, lai varētu redzēt pārdefinēšanu)
%% pievienota anotācijas noformēšana
%\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
%\makeatletter
%\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{}% Removes space above \chapter head
%\setafterchapterskip{1sp}
%defineejam anotaacijas lapas, lai vareetu vienkaarshaak taas izmantot
\def\abstract{
%\section*{\begin{center} \abstractname \end{center}} % start chapter
\vspace*{-4\baselineskip}
\chapter*{\begin{center} \abstractname \end{center} } % start chapter
\vspace*{-2.5\baselineskip}
\addcontentsline{toc}{chapter}{\abstractname} % table of contents line
\markboth{\MakeUppercase{\abstractname}}{} % header mark
}
\def\endabstract{}%\clearpage
%% Beidzot sākam rakstīt dokumentu
\begin{document}
......@@ -161,13 +184,52 @@ Maģistra darbā ir \pageref{LastPage} lapas, un \total{fignum} attēli.
Настоящая магистерская работа содержит \pageref{LastPage} страниц и \total{fignum} рисунков.
}
%%%% Nodaļa bez numerācijas
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
%%%% 1.5 līiniju atstarpe starp rindām
\onehalfspace
{
\selectlanguage{english}
\begin{abstract}
\begin{tabular}{@{}r@{}l@{}}
\parbox[c]{0.3\textwidth}{\textbf{The title:}}&
\parbox[t]{0.65\textwidth}{\defDarbaNosaukumsEN} \\
\parbox[c]{0.3\textwidth}{\textbf{Author:}}&
\parbox[t]{0.65\textwidth}{\defAutors} \\
\parbox[c]{0.3\textwidth}{\textbf{Academic Advisor:}}&
\parbox[t]{0.65\textwidth}{\defZinVaditajs} \\
\parbox[c]{0.3\textwidth}{\textbf{The volume of the work:}}&
\parbox[t]{0.65\textwidth}{\textcolor{black}{\pageref{LastPage}} pages, XX tables, \total{fignum} images, XX equations, XX literature sources, XX appendices} \\
\parbox[c]{0.3\textwidth}{\textbf{Keywords:}}&
\parbox[t]{0.65\textwidth}{ Life, Universe, Questions, Philosophy} \\
&\\
\end{tabular}
%\total{nofimages} % ja nu gadiijumaa vajag custom counter
In the first novel and radio series, a group of hyper-intelligent pan-dimensional beings demand to learn the \textbf{Answer to the Ultimate Question of Life} from the supercomputer, Deep Thought, specially built for this purpose. It takes Deep Thought 7½ million years to compute and check the answer, which turns out to be\textbf{ 42}. Unfortunately, The Ultimate Question itself is unknown.\cite{wiki-en}
The Master’s Paper consists of \pageref{LastPage} pages and \total{fignum} pictures.
\end{abstract}
}
{
\selectlanguage{french}
\begin{abstract}
\begin{tabular}{@{}r@{}l@{}}
\parbox[c]{0.3\textwidth}{\textbf{Titre:}}&
\parbox[t]{0.65\textwidth}{\defDarbaNosaukumsFR} \\
\parbox[c]{0.3\textwidth}{\textbf{Auteur:}}&
\parbox[t]{0.65\textwidth}{\defAutors} \\
\parbox[c]{0.3\textwidth}{\textbf{Encadrants:}}&
\parbox[t]{0.65\textwidth}{\defZinVaditajs} \\
\parbox[c]{0.3\textwidth}{\textbf{Volume:}}&
\parbox[t]{0.65\textwidth}{\text{\pageref{LastPage}} pages, XX tables, \total{fignum} images, XX équations, XX sources de literature, XX annexes} \\
\parbox[c]{0.3\textwidth}{\textbf{Mots cléfs:}}&
\parbox[t]{0.65\textwidth}{ La vie, L'univers, Les questions, La philosphie} \\
&\\
\end{tabular}
Selon Le Guide du voyageur galactique, des chercheurs d'un peuple hyper-intelligent et pan-dimensionnel construisirent le deuxième plus grand ordinateur de tous les temps, Pensées Profondes, pour calculer la réponse à la grande question sur la vie, l'univers et le reste.
%\lipsum[15]
\end{abstract}
}
%%%% Nodaļa bez numerācijas
......@@ -253,7 +315,8 @@ Phrases from The Hitchhiker's Guide to the Galaxy [tiešsaiste] Vikipēdija [sk
{\selectlanguage{russian}
\bibitem{wiki-ru}
Ответ на главный вопрос жизни, вселенной и всего такого [tiešsaiste] Vikipēdija [skatīts 2010. g. 29. februārī]. Pieejams:
\url{http://ru.wikipedia.org/wiki/%D0%9E%D1%82%D0%B2%D0%B5%D1%82_%D0%BD%D0%B0_%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D1%8B%D0%B9_%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81_%D0%B6%D0%B8%D0%B7%D0%BD%D0%B8,_%D0%B2%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9_%D0%B8_%D0%B2%D1%81%D0%B5%D0%B3%D0%BE_%D1%82%D0%B0%D0%BA%D0%BE%D0%B3%D0%BE}
%\url{http://ru.wikipedia.org/wiki/%D0%9E%D1%82%D0%B2%D0%B5%D1%82_%D0%BD%D0%B0_%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D1%8B%D0%B9_%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81_%D0%B6%D0%B8%D0%B7%D0%BD%D0%B8,_%D0%B2%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9_%D0%B8_%D0%B2%D1%81%D0%B5%D0%B3%D0%BE_%D1%82%D0%B0%D0%BA%D0%BE%D0%B3%D0%BE}
\href{http://ru.wikipedia.org/wiki/%D0%9E%D1%82%D0%B2%D0%B5%D1%82_%D0%BD%D0%B0_%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D1%8B%D0%B9_%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81_%D0%B6%D0%B8%D0%B7%D0%BD%D0%B8,_%D0%B2%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9_%D0%B8_%D0%B2%D1%81%D0%B5%D0%B3%D0%BE_%D1%82%D0%B0%D0%BA%D0%BE%D0%B3%D0%BE}{https://ru.wikipedia.org/wiki/Ответ_на_главный_вопрос_жизни,_вселенной_и_всего_такого}
}
......
......@@ -9,6 +9,10 @@
\defAutors}
\def\defMatrikulasNr{2009123456}
\def\defDarbaNosaukums{Pagātnes, tagadnes un nākotnes aspekti atbildei uz galveno jautājumu}
\def\defDarbaNosaukumsEN{Answer to the Ultimate Question of Life, the Universe, and Everything}
\def\defDarbaNosaukumsFR{La grande question sur la vie, l'univers et le reste}
\def\defDarbaNosaukumsLV{Pagātnes, tagadnes un nākotnes aspekti atbildei uz galveno jautājumu}
\def\defDarbaNosaukumsRU{Ответ на главный вопрос жизни, вселенной и всего такого}
\def\defDarbaVeids{Maģistra darbs}
\def\defFakultatesDekans{Dr.~oec., asoc. prof. I.~Dekāns}
\def\defZinVaditajs{Dr.~phys., prof. S.~Vadītājs}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment