- Right click image
- Click 在新頁中開始圖片
- Click 新頁
- Ctrl-p to print to pdf or printer
sudo shred -vfz /dev/sdX
#!/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
In jupyter lab, use \mylabel instead of \label e.g
<img src="if.png" alt="if example flowchart" style="width: 400px;"/>
\begin{figure}
\centering
\includegraphics{if.png}
\caption{if 流程圖}
\mylabel{fig:if 流程圖}
\end{figure}
After export to LaTeX, run
/home/chiao/scripts/mkLectNote_clean_tex.sh chapterXX.tex
pip install jupyterlab-language-pack-zh-TW
#!/bin/bash
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <delay sec.> <subdirerory>"
exit
fi
feh -r -d -Z -D ${1} #{2}
Save the following codes to add_traditional_Chinese.py:
systemctl --user stop onedrive
systemctl --user disable onedrive
delete the symbolic linksudo rm /etc/systemd/user/default.target.wants/onedrive.service which is linked from /usr/lib/systemd/user/onedrive.service zenity --question --width=100 --ok-label="Shutdown anyway" --cancel-label="Cancel" --title="Shutdown reminder" --text="Shutdown now?"
status="$?"
if [ "$status" = 0 ]; then
zenity --info --width=100 --title="Cancel Shutdown" --text="Cancel Shutdown"
fi
else
gnome-session-quit --power-off
fi
cf: https://askubuntu.com/questions/1237825/how-to-turn-off-software-updater-pop-up-notification
Check with:
gsettings get com.ubuntu.update-notifier no-show-notifications
If shows true, done.
sudo add-apt-repository universe sudo apt-get install fcitx fcitx-chewing「設定」-> 「地區及語言」->「管理安裝的語言」->「調整輸入法系統」,選取fcitx在「語言」tab 中選取並移動「中文台灣」至第一選項logout, then loginDone
sudo vcgencmd get_camera
If exists:
supported=1 detected=1, libcamera interfaces=0
sudo apt-get purge texlive-* -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo /bin/rm -rf /var/lib/texmf
sudo /bin/rm -rf /etc/texmf
sudo /bin/rm -rf /usr/local/share/texmf
sudo /bin/rm -rf /usr/share/doc/texmf
sudo /bin/rm -rf /usr/share/doc/texlive
rm -rf ~/.texlive2021
sudo /bin/rm -rf /var/lib/texmf
Browse the link: Image File Utilities
Download image-utils.zip
https://askubuntu.com/questions/789966/software-updates-crashes-and-will-not-open
sudo aptitude reinstall apt apt-utils aptdaemon\ aptdaemon-data update-manager update-manager-core dbus
Go to
首頁->管理 ->設定-> 內容撰寫 ->文字格式與編輯器
set 文字編輯器 to CKEditor 5
Also, for other 文字格式。