2023年7月26日 星期三

寫論文參考資料: 配色方式

 這邊的討論串有很多資料

https://stats.stackexchange.com/questions/118033/best-series-of-colors-to-use-for-differentiating-series-in-publication-quality

從討論串可以挑選一些顏色參考建議

以下是一些例子


http://vis.stanford.edu/files/2013-SemanticColor-EuroVis.pdf


https://personal.sron.nl/~pault/



https://medialab.github.io/iwanthue/ (可以輸入分群的數量)



寫論文參考資料: 表格樣式

最近學到的新樣式: three line table


 Small Guide to Making Nice Tables

https://people.inf.ethz.ch/markusp/teaching/guides/guide-tables.pdf






2023年7月25日 星期二

投稿錯誤訊息 QQ (Font XXX is not embedded)

今天傳camera ready論文到IEEE上, 然後一直遇到fail, 錯誤訊息說: 

Errors: Font Arial, Arial,Bold is not embedded (165x on page 2) 


論文是用overleaf寫的, 後來查到這篇:

https://www.overleaf.com/learn/latex/Questions/My_submission_was_rejected_by_the_journal_because_%22Font_XYZ_is_not_embedded%22._What_can_I_do%3F


摘錄重點如下:

Alternatively, you can get Overleaf to post-process the PDF for you, though this may cause your project to take some longer time to compile. First, add a file called latexmkrc (without extensions) to your project, and then paste the following line in that file:

$pdflatex = 'pdflatex %O %S; ps2pdf14 -dPDFSETTINGS=/prepress %B.pdf %B-embed.pdf; mv %B-embed.pdf %B.pdf';

You may have to make some kind of small change in your .tex file to trigger a re-compilation and the post-processing to happen.


簡單說就是, 在自己的overleaf專案首頁開一個新的檔案: latexmkrc, 不需要副檔名

裡面貼上這段指令

$pdflatex = 'pdflatex %O %S; ps2pdf14 -dPDFSETTINGS=/prepress %B.pdf %B-embed.pdf; mv %B-embed.pdf %B.pdf';

重新編譯 & 再度上傳就pass了!!

2023年7月18日 星期二

ubuntu 20.04 install podman

 雖然官網的安裝方式有提到 (https://podman.io/docs/installation)

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/Release.key \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
sudo apt-get update -qq
sudo apt-get -qq -y install podman

只是對20.04來說, 這個URL是無效的 QQ

後來參考這篇 (https://phoenixnap.com/kb/install-podman-on-ubuntu) & 自行去撈路徑

修改如下:

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/Release.key \
  | gpg --dearmor \
  | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
    https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" \
  | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null

sudo apt update 

sudo apt install podman