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

📄 tex3patch

📁 gcc-2.95.3 Linux下最常用的C编译器
💻
字号:
#!/bin/sh# Auxiliary script to work around TeX 3.0 bug.      ---- tex3patch  ----# patches texinfo.tex in current directory, or in directory given as arg.ANYVERSION=nofor arg in $1 $2do	case $arg in 		--dammit | -d ) ANYVERSION=yes ;;		* ) dir=$arg	esacdoneif [ -z "$dir" ]; then  dir='.'fiif [ \( 2 -lt $# \) -o \     \( ! -f $dir/texinfo.tex \)   ]; then  echo "To patch texinfo.tex for peaceful coexistence with Unix TeX 3.0,"  echo "run    $0"  echo "with no arguments in the same directory as texinfo.tex; or run"  echo "       $0 DIRECTORY"  echo "(where DIRECTORY is a path leading to texinfo.tex)."  exitfiif [ -z "$TMPDIR" ]; then  TMPDIR=/tmpfiecho "Checking for \`dummy.tfm'"( cd $TMPDIR; tex '\relax \batchmode \font\foo=dummy \bye' )grep -s '3.0' $TMPDIR/texput.logif [ 1 = "$?" -a "$ANYVERSION" != "yes" ]; then	echo "You probably do not need this patch,"        echo "since your TeX does not seem to be version 3.0."	echo "If you insist on applying the patch, run $0"	echo "again with the option \`--dammit'"	exitfigrep -s 'file not found' $TMPDIR/texput.logif [ 0 = $? ]; then	echo "This patch requires the dummy font metric file \`dummy.tfm',"	echo "which does not seem to be part of your TeX installation."	echo "Please get your TeX maintainer to install \`dummy.tfm',"	echo "then run this script again."	exitfirm $TMPDIR/texput.logecho "Patching $dir/texinfo.tex"sed -e 's/%%*\\font\\nullfont/\\font\\nullfont/' \    $dir/texinfo.tex >$TMPDIR/texinfo.texmv $dir/texinfo.tex $dir/texinfo.tex-distrib; mv $TMPDIR/texinfo.tex $dirif [ 0 = $? ]; then	echo "Patched $dir/texinfo.tex to avoid TeX 3.0 bug."	echo "The original version is saved as $dir/texinfo.tex-distrib."else	echo "Patch failed.  Sorry."fi----------------------------------------tex3patch ends

⌨️ 快捷键说明

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