⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icedump.sty

📁 Cracker终结者——提供最优秀的软件保护技术
💻 STY
字号:
%-----------------------------------------------------------------------------------
% icedump.sty for use with LaTeX mode screendump
% version 1.2.0
% date 2000/03/01
%
% OK, here goes, I know nothing about LaTeX packages, but I'll try to do one :)
% TeXperts, please let me know how this can be improved. --- Ghiribizzo
%
% WARNING: some of the macros have not been fully tested, so may contain errors.
% if you spot any bugs, please let us know on the icedump forum (linked from
% icedump.tsx.org).
%-----------------------------------------------------------------------------------
% need the following packages
%
\RequirePackage[dvips]{color}
\RequirePackage{amssymb}
%-----------------------------------------------------------------------------------
% These macros were kindly provided by igNorAMUS
%
% "... cleaning and improving is planned for the next version!" --- igNorAMUS
%-----------------------------------------------------------------------------------
% some simple macros - i'm sure they are by no means nice, but who cares
%
%
\newcount\SIcolumns\SIcolumns=80
\newbox\minuscharbox\newbox\tmpcolbox
\newdimen\SIpgwidth\newdimen\tmpcolwidth\newdimen\tmpcolswidth
\setbox\minuscharbox=\hbox{\footnotesize\texttt{-}}
\SIpgwidth=\wd\minuscharbox\multiply\SIpgwidth by\SIcolumns
\def\toSIwidth#1{\hbox to\SIpgwidth{#1}}
\def\midline{\leaders\hrule height0.85ex depth-0.75ex}
\def\lightgrey{lightgrey}\def\darkgrey{darkgrey}
\def\lineandtext#1#2#3{%
  \tmpcolwidth=\wd\minuscharbox\multiply\tmpcolwidth by #1%
  \advance\tmpcolwidth by-\wd\minuscharbox\advance\tmpcolwidth by-0.17em%
  \advance\tmpcolwidth by-\tmpcolswidth%
  \setbox\tmpcolbox=\hbox{\hbox to\tmpcolwidth{\midline\hfil}%
  \,\ifx:#2:\texttt{#3}\else\textcolor{#2}{\texttt{#3}}\fi\,}%
  \advance\tmpcolswidth by\wd\tmpcolbox\copy\tmpcolbox}
%\def\putinlinenone{\clrbox{black}{green}{hfil\midline\hfil}}\\[-1pt]}
\def\putinlineone#1#2{\clrbox{black}{green}{\tmpcolswidth=0pt\toSIwidth{%
  \lineandtext{"#1}{green}{#2}\midline\hfil}}\\[-1pt]}
\def\putinlinetwo#1#2#3#4{\clrbox{black}{green}{\tmpcolswidth=0pt\toSIwidth{%
  \lineandtext{"#1}{green}{#2}\lineandtext{"#3}{green}{#4}\midline\hfil}}\\[-1pt]}
\def\putinlinethree#1#2#3#4#5#6{\clrbox{black}{green}{\tmpcolswidth=0pt\toSIwidth{%
  \lineandtext{"#1}{green}{#2}\lineandtext{"#3}{green}{#4}\lineandtext{"#5}{cyan}{#6}%
  \midline\hfil}}\\[-1pt]}
\def\putinlinefour#1#2#3#4#5#6#7#8{\clrbox{black}{green}{\tmpcolswidth=0pt\toSIwidth{%
  \lineandtext{"#1}{green}{#2}\lineandtext{"#3}{green}{#4}\lineandtext{"#5}{green}{#6}%
  \lineandtext{"#7}{cyan}{#8}\midline\hfil}}\\[-1pt]}
\def\clrtxt#1#2{{\def\param{#1}\ifx\param\empty{#2}\else%
  \ifx\param\lightgrey\textcolor[gray]{0.9}{#2}\else%
  \ifx\param\darkgrey\textcolor[gray]{0.5}{#2}\else\textcolor{#1}{#2}\fi\fi\fi}}
\def\clrbox#1#2#3{{\def\param{#1}\ifx\param\empty\clrtxt{#2}{#3}\else%
  \ifx\param\lightgrey\colorbox[gray]{0.9}{\clrtxt{#2}{#3}}\else%
  \ifx\param\darkgrey\colorbox[gray]{0.5}{\clrtxt{#2}{#3}}\else%
  \colorbox{#1}{\clrtxt{#2}{#3}}\fi\fi\fi}}
\def\SIline#1#2#3{\clrbox{#1}{#2}{\toSIwidth{\texttt{\hss\hbox to 0pt{\phantom{x}\hss}#3\hss}}}\\[-1pt]}
\def\textcolour#1#2{{\def\param{#1}\ifx\param\empty{#2}\else%
  \ifx\param\lightgrey\textcolor[gray]{0.9}{\texttt{#2}}\else%
  \ifx\param\darkgrey\textcolor[gray]{0.5}{\texttt{#2}}\else\textcolor{#1}{\texttt{#2}}\fi\fi\fi}}
%-----------------------------------------------------------------------------------
% Macros to replace the arrows with graphical ones. You can alter these to display,
% say, text mode equivalents if you prefer.
%
\def\SIuparrow{\hbox to 0pt{$\blacktriangle$\hss}~}
\def\SIuparrowsml{\hbox to 0pt{\hskip1pt$\uparrow$\hss}~}
\def\SIdownarrowsml{\hbox to 0pt{\hskip1pt$\downarrow$\hss}~}
\def\SIarrowleft{\hbox to 0pt{$\blacktriangleleft$\hss}~}
\def\SIarrowright{\hbox to 0pt{$\blacktriangleright$}~}
\def\SIdownarrow{\hbox to 0pt{$\blacktriangledown$\hss}~}
%-----------------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -