94 lines
1.8 KiB
TeX
94 lines
1.8 KiB
TeX
\usepackage[utf8]{inputenc}
|
|
\usepackage{graphicx}
|
|
\usepackage{url}
|
|
\usepackage{listings}
|
|
\usepackage{svg}
|
|
|
|
\lstdefinelanguage{customvhdl}[]{VHDL}{
|
|
morekeywords=[2]{std_logic, std_logic_vector, natural, integer, bit, string},
|
|
}
|
|
|
|
\lstdefinestyle{default}{
|
|
showstringspaces=false,
|
|
tabsize=4,
|
|
belowcaptionskip=1\baselineskip,
|
|
basicstyle=\footnotesize\ttfamily,
|
|
keywordstyle=\bfseries\color{green!40!black},
|
|
commentstyle=\itshape\color{purple},
|
|
stringstyle=\color{orange},
|
|
breaklines=true,
|
|
xleftmargin=\parindent,
|
|
numbers=left,
|
|
title=\lstname,
|
|
}
|
|
|
|
\lstdefinestyle{vhdlstyle}{
|
|
style=default,
|
|
language=customvhdl,
|
|
keywordstyle=[2]\bfseries\color{blue!80!white},
|
|
backgroundcolor=\color{lightgray!20},
|
|
frame=lrtb,
|
|
}
|
|
|
|
\lstset{
|
|
style=vhdlstyle,
|
|
}
|
|
|
|
\usepackage{biblatex}
|
|
\addbibresource{Diplomschrift.bib}
|
|
|
|
\usepackage{titling}
|
|
\usepackage{graphicx}
|
|
\usepackage{lastpage}
|
|
\usepackage{datetime}
|
|
\yyyymmdddate
|
|
\renewcommand{\dateseparator}{-}
|
|
|
|
\usepackage{titlesec}
|
|
\usepackage{fancyhdr}
|
|
|
|
\usepackage{pst-uml}
|
|
\setlength{\hoffset}{30mm-1in}
|
|
\setlength{\oddsidemargin}{0pt}
|
|
\setlength{\textwidth}{\paperwidth-60mm}
|
|
\addtolength{\textheight}{5em}
|
|
|
|
\setlength{\headwidth}{\textwidth}
|
|
|
|
\setlength{\topmargin}{0pt}
|
|
\addtolength{\voffset}{-1em}
|
|
|
|
\setlength{\parindent}{0pt}
|
|
\setlength{\parskip}{1em}
|
|
|
|
\usepackage{footnote}
|
|
\usepackage{tikz}
|
|
|
|
\newcommand\instrset{rv32i}
|
|
|
|
\newcommand{\entityheader}[2]{
|
|
\lstinputlisting[title=\texttt{#2}]{#1}
|
|
}
|
|
|
|
\usepackage{tcolorbox}
|
|
|
|
\newtcbox{\codeBox}[1][gray]{
|
|
on line,
|
|
arc=2pt,
|
|
colback=black!5,
|
|
colupper=black!80,
|
|
colframe=black!20,
|
|
before upper={
|
|
\rule[-3pt]{0pt}{10pt}
|
|
},
|
|
boxrule=1pt,
|
|
boxsep=0pt,
|
|
left=3pt,
|
|
right=3pt,
|
|
top=2pt,
|
|
bottom=0pt
|
|
}
|
|
\newcommand{\icode}[1]{\codeBox{\texttt{#1}}}
|
|
|
|
% loaded last
|
|
\usepackage{hyperref}
|