Commit fa6c6113 authored by Vairis's avatar Vairis
Browse files

atdalīju atsauču likšanu failos links books articles, fixed #7

parent aff0566a
......@@ -51,39 +51,27 @@
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{lipsum} %Lai ģenerētu nejaušus tekstus...
\usepackage{listings}
\usepackage{color}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{ %
backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
basicstyle=\footnotesize, % the size of the fonts that are used for the code
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to bottom
commentstyle=\color{mygreen}, % comment style
deletekeywords={...}, % if you want to delete keywords from the given language
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
extendedchars=false, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
frame=single, % adds a frame around the code
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
keywordstyle=\color{blue}, % keyword style
language=Octave, % the language of the code
morekeywords={*,...}, % if you want to add more keywords to the set
numbers=left, % where to put the line-numbers; possible values are (none, left, right)
numbersep=5pt, % how far the line-numbers are from the code
numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{mymauve}, % string literal style
tabsize=2, % sets default tabsize to 2 spaces
title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
\usepackage{listingsutf8}
\usepackage{xcolor}
%\usepackage{inconsolata}
\lstset{
language=bash, %% Troque para PHP, C, Java, etc... bash é o padrão
basicstyle=\ttfamily\small,
numberstyle=\footnotesize,
numbers=left,
backgroundcolor=\color{gray!10},
frame=single,
tabsize=2,
rulecolor=\color{black!30},
title=\lstname,
escapeinside={\%*}{*)},
breaklines=true,
breakatwhitespace=true,
framextopmargin=2pt,
framexbottommargin=2pt,
extendedchars=false,
inputencoding=utf8
}
......@@ -137,6 +125,10 @@
\def\oldfigure{} \let\oldfigure=\figure
\def\figure{\stepcounter{fignum}\oldfigure}
%defineejam atsauču skaitītāju
\newtotcounter{citnum}
\def\oldbibitem{} \let\oldbibitem=\bibitem
\def\bibitem{\stepcounter{citnum}\oldbibitem}
%% Attēlu numerācija
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}.}
......@@ -237,7 +229,7 @@ Maģistra darbā ir \pageref{LastPage} lapas, un \total{fignum} attēli.
\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, \total{nofappendices}~appendices} \\
\parbox[t]{0.65\textwidth}{\textcolor{black}{\pageref{LastPage}} pages, XX~tables, \total{fignum}~images, XX~equations, \total{citnum}~literature sources, \total{nofappendices}~appendices} \\
\parbox[c]{0.3\textwidth}{\textbf{Keywords:}}&
\parbox[t]{0.65\textwidth}{ Life, Universe, Questions, Philosophy} \\
&\\
......@@ -259,7 +251,7 @@ In the first novel and radio series, a group of hyper-intelligent pan-dimensiona
\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, \total{nofappendices}~annexes} \\
\parbox[t]{0.65\textwidth}{\text{\pageref{LastPage}} pages, XX~tables, \total{fignum}~images, XX~équations, \total{citnum}~sources de literature, \total{nofappendices}~annexes} \\
\parbox[c]{0.3\textwidth}{\textbf{Mots cléfs:}}&
\parbox[t]{0.65\textwidth}{ La vie, L'univers, Les questions, La philosphie} \\
&\\
......@@ -335,31 +327,11 @@ Bieži plaģiātismu izraisa nekorekta citēšana vai atsauču neievietošana da
\input{secinajumi-un-priekslikumi} %% Ērtāk visu failā secinajumi-un-priesklikumi.tex
\begin{thebibliography}{99}
% \clearpage
\bibliographystyle{unsrt}
\selectlanguage{latvian}
\bibliography{links,articles,books} %to load the *.bib files ../articles,../books,
\addcontentsline{toc}{chapter}{Izmantotās literatūras un avotu saraksts}
\bibitem{ans-picture}
File:Answer to Life.png [tiešsaiste] Vikipēdija [skatīts 2010. g. 29. februārī]. Pieejams:
\url{http://en.wikipedia.org/wiki/File:Answer_to_Life.png}
\bibitem{wiki-en}
Phrases from The Hitchhiker's Guide to the Galaxy [tiešsaiste] Vikipēdija [skatīts 2010. g. 29. februārī]. Pieejams:
\url{http://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker's_Guide_to_the_Galaxy}
%% Bibliogrāfija krievu valodā - \selectlanguage tikai tāpēc, ka standarta fontā nav kirilicas.
{\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}
\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/Ответ_на_главный_вопрос_жизни,_вселенной_и_всего_такого}
}
\end{thebibliography}
\chapter*{Galvojums}
\addcontentsline{toc}{chapter}{Galvojums}
......
@MISC{wiki-en,
month = "May",
year = 2017,
note= "Phrases from The Hitchhiker's Guide to the Galaxy",
howpublished = "\url{http://en.wikipedia.org/wiki/Phrases_from_The_Hitchhiker's_Guide_to_the_Galaxy}",
}
@MISC{wiki-ru,
month = "March",
year = 2017,
note= "Ответ на главный вопрос жизни, вселенной и всего такого",
howpublished = "\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/Ответ_на_главный_вопрос_жизни,_вселенной_и_всего_такого}",
}
@MISC{ans-picture,
month = "April",
year = 2014,
note= "File:Answer to Life.png",
howpublished = "\url{http://en.wikipedia.org/wiki/File:Answer_to_Life.png}",
}
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