#!/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://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...
沒有留言:
張貼留言