fancy listings
This commit is contained in:
@@ -14,22 +14,20 @@
|
|||||||
% \usepackage{listings}
|
% \usepackage{listings}
|
||||||
\usepackage{xcolor}
|
\usepackage{xcolor}
|
||||||
\usepackage{upquote}
|
\usepackage{upquote}
|
||||||
% \usepackage{minted}
|
\usepackage{minted}
|
||||||
\usepackage{tcolorbox}
|
\usemintedstyle{perldoc}
|
||||||
\tcbuselibrary{minted,skins}
|
|
||||||
\usemintedstyle{monokai}
|
\usepackage{mdframed}
|
||||||
|
|
||||||
\definecolor{greybg}{rgb}{0.25,0.25,0.25}
|
\definecolor{greybg}{rgb}{0.25,0.25,0.25}
|
||||||
\newtcblisting{bashcode}{
|
\definecolor{yellowbg}{rgb}{0.91, 0.84, 0.42}
|
||||||
listing engine=minted,
|
\definecolor{bananamania}{rgb}{0.98, 0.91, 0.71}
|
||||||
colback=bashcodebg,
|
|
||||||
colframe=black!70,
|
\mdfsetup{%
|
||||||
listing only,
|
middlelinecolor=red,
|
||||||
minted style=colorful,
|
middlelinewidth=2pt,
|
||||||
minted language=bash,
|
backgroundcolor=yellow!40,
|
||||||
minted options={linenos=true,texcl=true},
|
roundcorner=20pt}
|
||||||
left=1mm,
|
|
||||||
}
|
|
||||||
|
|
||||||
% \DeclareSIUnit\eVperc{\eV\per\clight}
|
% \DeclareSIUnit\eVperc{\eV\per\clight}
|
||||||
% \DeclareSIUnit\clight{\text{\ensuremath{c}}}
|
% \DeclareSIUnit\clight{\text{\ensuremath{c}}}
|
||||||
@@ -137,12 +135,9 @@ The simulation and analysis code are located at:
|
|||||||
\url{/mu2e/app/users/namtran/STM_study_201611}.
|
\url{/mu2e/app/users/namtran/STM_study_201611}.
|
||||||
|
|
||||||
% \lstinputlisting[language=bash,frame=single]{listings/code_dir_tree.sh}
|
% \lstinputlisting[language=bash,frame=single]{listings/code_dir_tree.sh}
|
||||||
% \inputminted{bash}{listings/code_dir_tree.sh}
|
\begin{mdframed}
|
||||||
\tcbinputlisting{%
|
\inputminted{bash}{listings/code_dir_tree.sh}
|
||||||
listing file=listings/code_dir_tree.sh, colback=red!5!white,
|
\end{mdframed}
|
||||||
colframe=red!25, left=6mm,
|
|
||||||
minted options={style=tcblatex, numbers=left, numberstyle=\tiny\color{red!75!black}}
|
|
||||||
}
|
|
||||||
|
|
||||||
\texttt{step00} contains configuration files for this simulation and a script to
|
\texttt{step00} contains configuration files for this simulation and a script to
|
||||||
submit all 5098 jobs (correspond to number of input files) to the FermiGrid.
|
submit all 5098 jobs (correspond to number of input files) to the FermiGrid.
|
||||||
@@ -213,14 +208,16 @@ a simple model described by Mukhopadhyay~\cite{Mukhopadhyay.1977}.
|
|||||||
% breaklines=true, breakatwhitespace=true,
|
% breaklines=true, breakatwhitespace=true,
|
||||||
% frame=single]{listings/G4EmCaptureCascade.cc}
|
% frame=single]{listings/G4EmCaptureCascade.cc}
|
||||||
|
|
||||||
|
\begin{mdframed}
|
||||||
\inputminted[
|
\inputminted[
|
||||||
bgcolor=greybg,
|
|
||||||
breaklines=true,
|
breaklines=true,
|
||||||
stepnumber=5,
|
stepnumber=5,
|
||||||
linenos=true,
|
linenos=true,
|
||||||
firstline=64,
|
firstline=64,
|
||||||
fontsize=\footnotesize,
|
% fontsize=\footnotesize,
|
||||||
lastline=93]{c++}{listings/G4EmCaptureCascade.cc}
|
lastline=93]{c++}{listings/G4EmCaptureCascade.cc}
|
||||||
|
|
||||||
|
\end{mdframed}
|
||||||
\item Energies of
|
\item Energies of
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user