Initial commit
This commit is contained in:
33
packages/info-processing.sty
Normal file
33
packages/info-processing.sty
Normal file
@@ -0,0 +1,33 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{info-processing}[2025/04/10 Commands and Environments for Information Processing Class Report]
|
||||
|
||||
\usepackage{luacode}
|
||||
\usepackage[dvipsnames]{xcolor}
|
||||
\usepackage{fancybox}
|
||||
\usepackage{ascmac}
|
||||
\usepackage{fancyvrb}
|
||||
|
||||
\makeatletter
|
||||
\newif\ifFV@bgcolor
|
||||
\newbox\FV@bgbox
|
||||
\define@key{FV}{bgcolor}{\FV@bgcolortrue\def\FV@bgcolor{#1}}
|
||||
\define@key{FV}{framecolor}{\FV@bgcolortrue\def\FV@framecolor{#1}}
|
||||
\def\FV@framecolor{white}
|
||||
|
||||
\def\FV@BeginVBox{%
|
||||
\leavevmode\ifFV@bgcolor\setbox\FV@bgbox=\fi
|
||||
\hbox\ifx\FV@boxwidth\relax\else to\FV@boxwidth\fi\bgroup
|
||||
\ifcase\FV@baseline\vbox\or\vtop\or$\vcenter\fi\bgroup}
|
||||
\def\FV@EndVBox{\egroup\ifmmode$\fi\hfil\egroup
|
||||
\ifFV@bgcolor\fcolorbox{\FV@framecolor}{\FV@bgcolor}{\box\FV@bgbox}\fi}
|
||||
\makeatother
|
||||
|
||||
\newenvironment{syntax}[1][]
|
||||
{\VerbatimEnvironment
|
||||
\begin{itembox}[l]{\sffamily Syntax: #1}\begin{BVerbatim}[bgcolor=Black,frame=lines,commandchars=\$\{\}]}
|
||||
{\end{BVerbatim}\end{itembox}}
|
||||
|
||||
\newcommand{\resultIO}[2]{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user