Latex mardown 笔记
Latex
Bold text
有好多方法都能让字体变粗体,大家自己感受一下:
- \(\mathbf{q}\) \mathbf 这个不支持geek character
- \(\boldsymbol{q}\) \boldsymbol
- \(\pmb{q}\) \pmb
- \(q\) 这是正常形态
横向对比更明显 \( \mathbf{q}, \boldsymbol{q}, \pmb{q}, q\)
Markdown
我现在渐渐理解Markdown的精髓了,它就是一个过渡文本和HTML的强大工具,可能不是过渡,是容纳/包括。
直接调用 JS! - Graph
visjs 这个是个非常好的网站,Js + visualization, 这次用的是它的Network
直接把下面这一段复制到markdown里,就可以生成下面的Network啦!
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<style type="text/css">
#mynetwork {
width: 600px;
height: 400px;
border: 1px solid lightgray;
}
</style>
<div id="mynetwork"></div>
<script type="text/javascript">
// create an array with nodes
var nodes = new vis.DataSet([
{id: 1, label: 'Node 1'},
{id: 2, label: 'Node 2'},
{id: 3, label: 'Node 3'},
{id: 4, label: 'Node 4'},
{id: 5, label: 'Node 5'}
]);
// create an array with edges
var edges = new vis.DataSet([
{from: 1, to: 3},
{from: 1, to: 2},
{from: 2, to: 4},
{from: 2, to: 5}
]);
// create a network
var container = document.getElementById('mynetwork');
// provide the data in the vis format
var data = {
nodes: nodes,
edges: edges
};
var options = {};
// initialize your network!
var network = new vis.Network(container, data, options);
</script>