From 016008eee660e04643b272f7198f9fde1e182170 Mon Sep 17 00:00:00 2001 From: Nam Tran Date: Fri, 31 Mar 2017 01:49:23 -0400 Subject: [PATCH] fancy listings --- stm_study_201611/stm_study.tex | 53 ++++++++++++++++------------------ 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/stm_study_201611/stm_study.tex b/stm_study_201611/stm_study.tex index 24f05fe..5868fc0 100644 --- a/stm_study_201611/stm_study.tex +++ b/stm_study_201611/stm_study.tex @@ -14,22 +14,20 @@ % \usepackage{listings} \usepackage{xcolor} \usepackage{upquote} -% \usepackage{minted} -\usepackage{tcolorbox} -\tcbuselibrary{minted,skins} -\usemintedstyle{monokai} +\usepackage{minted} +\usemintedstyle{perldoc} + +\usepackage{mdframed} \definecolor{greybg}{rgb}{0.25,0.25,0.25} -\newtcblisting{bashcode}{ - listing engine=minted, - colback=bashcodebg, - colframe=black!70, - listing only, - minted style=colorful, - minted language=bash, - minted options={linenos=true,texcl=true}, - left=1mm, -} +\definecolor{yellowbg}{rgb}{0.91, 0.84, 0.42} +\definecolor{bananamania}{rgb}{0.98, 0.91, 0.71} + +\mdfsetup{% + middlelinecolor=red, + middlelinewidth=2pt, + backgroundcolor=yellow!40, + roundcorner=20pt} % \DeclareSIUnit\eVperc{\eV\per\clight} % \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}. % \lstinputlisting[language=bash,frame=single]{listings/code_dir_tree.sh} -% \inputminted{bash}{listings/code_dir_tree.sh} -\tcbinputlisting{% - listing file=listings/code_dir_tree.sh, colback=red!5!white, - colframe=red!25, left=6mm, - minted options={style=tcblatex, numbers=left, numberstyle=\tiny\color{red!75!black}} -} +\begin{mdframed} + \inputminted{bash}{listings/code_dir_tree.sh} +\end{mdframed} \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. @@ -213,14 +208,16 @@ a simple model described by Mukhopadhyay~\cite{Mukhopadhyay.1977}. % breaklines=true, breakatwhitespace=true, % frame=single]{listings/G4EmCaptureCascade.cc} - \inputminted[ - bgcolor=greybg, - breaklines=true, - stepnumber=5, - linenos=true, - firstline=64, - fontsize=\footnotesize, - lastline=93]{c++}{listings/G4EmCaptureCascade.cc} + \begin{mdframed} + \inputminted[ + breaklines=true, + stepnumber=5, + linenos=true, + firstline=64, + % fontsize=\footnotesize, + lastline=93]{c++}{listings/G4EmCaptureCascade.cc} + + \end{mdframed} \item Energies of \end{itemize}