Skip to content
Snippets Groups Projects
Select Git revision
  • 0ae37a6dfee9ae5b316ed5aa450232a495222e16
  • main default protected
2 results

megasoc_configuration_manual.tex

Blame
  • megasoc_configuration_manual.tex 1.12 KiB
    \documentclass{report}
    \usepackage{hyperref}
    \usepackage{tcolorbox,float}
    \usepackage{listings}
    
    \makeatletter
    \newfloat{info@box}{tbp}{loi}[section]% 1: Name of float environment. 2: Default placement (top, bottom, ...). 3: File extension if written to an aux-file (like toc, lof, lot, loa, ...). 4: Numbering within <section/subsection/...>.
    \makeatother
    \floatname{info@box}{Infobox}% Adapt caption.
    \newenvironment{infobox}[1][]{% Create new environment using info@box and tcolorbox
       \begin{info@box}%
          \begin{tcolorbox}[colback=red!15!white,%                    background color
                colframe=red!75!black,%                               frame color
                title=Additional information\ifstrempty{#1}{}{: #1}.% title
             ]%
    }{%
          \end{tcolorbox}%
       \end{info@box}%
    }
    
    \title{megaSoC Configuration Manual}
    \author{\href{http://www.soclabs.org}{SoC Labs}}
    \begin{document}
    \maketitle
    \input{preamble.tex}
    \begin{infobox}
        You must run 'source set\_env.sh' from the megasoc-project directory every time you open a new terminal!
    \end{infobox} \par
     
    \tableofcontents
    \clearpage
    \chapter{Introduction}
    
    \end{document}