Skip to content

Instantly share code, notes, and snippets.

View liuchengxu's full-sized avatar

Liu-Cheng Xu liuchengxu

  • Hangzhou, China
View GitHub Profile
@liuchengxu
liuchengxu / tex_utils.sty
Last active October 6, 2022 15:09
mostly essential packages for tex writing,tested with ctexart.
% usage: \usepackage{my_utils}
% 像正常引用宏包即可: \usepackage{my_utils}
% ctexart环境下已测试
\ProvidesPackage{tex_utils}
\usepackage{bm} % 数学公式环境中粗体效果
\usepackage{url} % 网址
\usepackage{color} % 颜色包
\usepackage{float} % 图片浮动等
\documentclass[
11pt,
xcolor={svgnames},
hyperref={
colorlinks,
citecolor=green,
linkcolor=DeepPink,
anchorcolor=blue
}
]{beamer}%%beamer的hyperref要在这里设置,不要使用usepackage方式
\documentclass[
a4paper,
punct,
space=true,
nospace,
fancyhdr,
fntef,
UTF8,
autoindent = 2, % autoindent = ⟨true|false|数值|带单位的数值⟩
scheme=chinese % scheme = ⟨(chinese)|plain⟩
@liuchengxu
liuchengxu / .vimrc
Created November 30, 2016 14:59
Extracted from vim-better-default, you can use it as a fundamental but still nice vim configuration.
" Neovim has set these as default
if !has('nvim')
set nocompatible
syntax on " Syntax highlighting
filetype plugin indent on " Automatically detect file types
set autoindent " Indent at the same level of the previous line
set autoread " Automatically read a file changed outside of vim
set backspace=indent,eol,start " Backspace for dummies

Keybase proof

I hereby claim:

  • I am liuchengxu on github.
  • I am liuchengxu (https://keybase.io/liuchengxu) on keybase.
  • I have a public key ASBS6M1I0FI0pjXzEKzxBhsKojjhPKOPRSTVTaJTW4VPqQo

To claim this, I am signing this object:

{
"validator": true,
"rpc-external": false,
"ws-external": false,
"log": "info,runtime=info",
"name": "<Your-Node-Name>",
"port": 20222,
"ws-port": 8087,
"rpc-port": 8086,
"pruning": "archive",