Category: Just about Code

  • Install OpenVPN with IPv6 on Ubuntu

    This article gives out the process of install OpenVPN with IPv6, and to be more specific, it will foucus on the difference with the Ubuntu official document about OpenVPN installation [1]. Before start, You need to check whether your server has IPv6 address. And if you are looking for tips about OpenVPN both with IPv4…

  • Linux下Texlive的ctex包中文字体问题

    不得不先赞一下现在texlive在linux上的安装已经非常方便了,刚更新2012不久 发现在2011就中一直困扰的ctex包中文字体问题还是没有解决,只好自己动手了 错误信息如下: [shell] Invalid fontname `[SIMKAI.TTF]/ICU’, contains ‘[‘ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: “font-not-found” ! ! The font “[SIMKAI.TTF]” cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. !……………………………………….. [/shell] 错误说的很清楚,字体名错误,字体找不到 解决方法如下: 修改ctex-xecjk-winfonts.def Texlive 2012下的相对路径为 /texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def 如果是默认安装位置,完整路径应为 /usr/local/texlive/2012/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def 原始文件如下: [tex] % ctex-xecjk-winfonts.def: Windows…

  • 北航软院本科毕设答辩演示高仿LaTeX模板

    今天答辩,不想用学院给的PPT模板,就写了这个高仿的LaTeX模板,今天展示下来还不错,所以发出来了,如果后几个小班的人有人想用,非常欢迎尝试。需要提醒的是,答辩教室的机器上没有pdf阅读器,需要自带一个,推荐用smartrapdf的portable版。 代码托管在了Github上,这里是传送门,更详细的信息可以看Github上的README。