#!/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,...
-
Download 7z-exe: https://www.7-zip.org/ Get into cmd window cd Z:\Classes\109year\Semester2\Calculus\B\HW\HW7 md files "C:\Program Fi...
-
Setting up Google Drive with rclone config involves creating a "remote" connection through an interactive terminal wizard. S...
沒有留言:
張貼留言