#!/bin/bash
TeXfile=$1
LyXfile="${1%.*}.lyx"
sed -i -e '0,/\\maketitle$/d' -e '/^\\end{document}/d' -e '/hypertarget/d' -e 's/\\label.*$//' -e 's/\\section/\\chapter/g' -e 's/\\subsection/\\section/g' -e 's/\\subsubsection/\\subsection/g' -e 's/\\textgreater/>/' $TeXfile
sed -i '1 i\\\\def\\mylabel#1{\\label{#1}}' $TeXfile
#sed -i 's/\/\\/g' $TeXfile
2024年3月23日 星期六
mkLectNote_clean_tex.sh
訂閱:
張貼留言 (Atom)
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://forums.raspberrypi.com/viewtopic.php?t=278033 For linux: First run the command: route -n It will show the metrics of the i...
-
cf: https://askubuntu.com/questions/1276111/error-upgrading-grub-efi-amd64-signed-special-device-old-ssd-does-not-exist sudo mv /var/cache...
沒有留言:
張貼留言