Files
information-processing-1_4t…/packages/info-processing.sty
2025-05-01 00:25:44 +09:00

34 lines
1019 B
TeX

\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]{
}