study-notes's People
study-notes's Issues
read: architect-awesome
read:算法之美 : 栈和队列
read:快速理解为啥这个查询使用索引,那个查询不使用索引,学会了才发现:真tm简单
read:2019年C++有哪些发展?
read:Linux 大牛收集的 Linux 性能分析工具合集
read:11个代码质量审核和管理工具,程序员必备!
read:打开黑盒:从 MySQL 架构设计出发,看它是如何执行一条 SQL 语句的?
read: netty的Future异步回调难理解?手写个带回调异步框架就懂了
read:一文带你搞懂 MySQL 分区!
read:数据结构图文解析之:哈夫曼树与哈夫曼编码详解及C++模板实现
read:史上最全的数据库面试题,不看后悔篇!
read:学MySQL,这篇万字总结,真的够用了
study:linux内存管理之DMA
Linux 下的DMA浅析
Sent from PPHub
read:彻底理解cookie、session、token
read:C++17 ,标准库有哪些新变化?
read:都是套路:盘点 Java 面试中链表的几大解题模板方法!
read:百万TPS高吞吐、秒级低延迟,阿里搜索离线平台如何实现?
read:设计一个百万级的消息推送系统!
read:知乎推荐系统的实践及重构之路
read: InnoDB 事务加锁分析
note: useful websites
read:《吊打面试官》系列-缓存雪崩、击穿、穿透
read:解引用NULL为什么会导致程序挂死?
org-mode中使用tikz绘图
原理
由于 divpng 不支持 tikz,因此我们需要借助 imagemagick 将 tikz 生成的 pdf 文件转换为图片文件。
安装imagemagick
*nix系统可通过包管理软件安装:
brew install imagemagick
配置
修改 org-mode 中 latex 的图片生成软件为 imagemagick ,这里以 doom emacs 为例:
(after! org
:config
(setq org-preview-latex-default-process 'imagemagick)
(setq org-latex-packages-alist
'(("" "newpxtext,newpxmath" t)
("" "tikz" t)
("" "tikz-cd" t)
("" "eulervm" t)))
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.6))
(with-eval-after-load "preview"
(add-to-list 'preview-default-preamble "\\PreviewEnvironment{tikzpicture}" t)))
使用
在 org 文件头添加以下配置 :
#+LATEX_HEADER: \usepackage{tikz} \usepackage{pgf -umlcd} \usepgflibrary{arrows} \usepackage{color}
#+PROPERTY: header-args:latex :headers '("\\usepackage{tikz}") :fit yes :imagemagick yes :iminoptions -density 300 :imoutoptions
#+OPTIONS: tex:imagemagick
完成以上步骤,便可以在 latex 代码块中调用 org-latex-preview 方法预览 tikz 绘制的图片了(快捷键 C-c C-x C-l )。
\begin{tikzpicture}
\foreach \n in {0,...,8} {
\pgfmathsetmacro{\x}{mod(\n,3)+.5}
\pgfmathsetmacro{\y}{2.5-div(\n,3)}
\pgfmathsetmacro{\m}{int(\n+1)}
\pgfmathsetmacro{\c}{mod(\n,2) ? "red!40" : "gray!70"}
\fill[\c] (\x-.5,\y-.5) rectangle (\x+.5,\y+.5);
\node at (\x, \y) {\m};
}
\draw (0,0) grid (3,3);
\end{tikzpicture}
参考
read:Linux 中的零拷贝技术,看完这篇文章你就明白了!
read:数据结构图文解析之:哈夫曼树与哈夫曼编码详解及C++模板实现
read:索引很难么?带你从头到尾捋一遍 MySQL 索引结构!
read:结构体成员赋值到底是深拷贝还是浅拷贝?
read:高阶面试题:能聊聊 RocketMQ 是如何基于 Netty 扩展高性能网络通信架构的吗?
read:阿里高级技术专家:整洁的应用架构“长”什么样?
read:这次终于不再为 iptables 犯迷糊了!
read:C语言入坑指南-数组之谜
read: 从操作系统层面理解Linux下的网络IO模型
read:一网打尽:Java 程序员必须了解的计算机底层知识!
read: Redis的n种妙用,不仅仅是缓存
read:Linux 系统结构详解
read:那些奇奇怪怪的缓冲问题
read:为什么 k8s 在阿里能成功?
read:IT架构治理怎么做?先选定框架模型!
read:支付宝的架构到底有多牛逼!还没看完我就跪了!
read:老弟,你连HTTPS 原理都不懂,还给我讲“中间人攻击”,逗我吗...
read:完全整理 | 365篇高质技术文章目录整理,每天一点收获
read:一条简单的更新语句,MySQL是如何加锁的?
read:阿里巴巴为什么能抗住90秒100亿?看完这篇你就明白了!
read:一网打尽:Java 程序员必须了解的计算机底层知识!
read:一个有趣却容易忽略的编译链接问题
read:MySQL中IS NULL、IS NOT NULL、!=不能用索引?胡扯!
read:4 种数据库缓存最终一致性的优缺点对比?最终选择方案四!
read:支付宝和蚂蚁花呗的技术架构及实践
read:CPU 到底是怎么识别代码的?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.