hongy19’s blog
pdflatex + ctex support Chinese font
- Xelatex could support Chinese with ctex + Truetype/OpenType font. you could search web for detail.
- latex could support Chinese with ctex + tfm/pk font.
- pdflatex need type1 font, so tfm/pk and Truetype/OpenType font doesn’t work. But there are three ways to support Chinese for pdflatex
- ctex + simsum.ttc
- \documentclass[fontset=windows]{ctexart}
- zhmetrics provide tfm file for simsun.
- zhmetrics provide mapping file to map tfm back to simsun.ttf (Truetype), but not for other Chinese ttf font, see /usr/share/texmf-dist/tex/generic/zhmetrics/zhwinfonts.tex
- it embedded Trutype font into pdf.
- ctex + CJKutf8 + gbsn.
- it embedded type1 font into pdf, you could use “pdffonts” to check.
\documentclass[fontset=none]{ctexart}**\usepackage{CJKutf8}
\begin{document}
\begin{CJK*}{UTF8}{gbsn}
你好,世界!
\end{CJK*}
\end{document}
wifi error for raspberry: brcmfmac: brcmf_set_channel: set chanspec 0x100e fail, reason -52
I couldn’t connect to my raspberry pi for several days. Today I conducted a trouble shooting.
At beginning, I think system is down due to flashcard broken but later I found raspyberry still has ipv4/ipv6 address from home router. I tried to ssh but not successful. I ping the server first, ping is Ok. Then I could ssh server successfully.
it seems i am not the only guy who has this issue, see
…python typing check
- Docstring Linter
- pydocstyle
- Style Linter
- pylint
- pycodestyle
- Error Linter:
- pyflake
- pylint
- Complexity Analysis
- mccabe
- flake8
- flake8 = Pyflakes + pycodestyle + mccabe
- type checker:
- mypy
- run it on command line
- run it with language server, for example: pylsp
- run it with Jupyter
- nb-mypy: configure it with ipython configuration or run it with command in jupyter
- jupyter-lsp + pylsp
- Language server
- pyls and pylsp
- prefer to use pylsp instead of pyls, seelink for detail.
- difference between different linter tools