coursera课程字幕批量下载
“一个-韩寒”的 rss 采集

turtlenote - 用 markdown 和 latex 公式做笔记

scturtle posted @ 2012年5月09日 15:27 in python , 8096 阅读

前言

刚交完毕业论文初稿,就随手做了这个想了几天的东西。受 ipython 的 notebook 启发, 觉得用 markdown 和 $latex$ 公式来记某些笔记应该不错, 前些日子试着记了一次,蛮有意思,但是 notebook 卡卡的,而且市面上再无别的替代品, 于是想随手做个试试。


主要实现工具

其实是个跑在 bottle 框架上的小 web app。界面用 bootstrap 弄好看了点儿。markdown 解析用的 python-markdown 这个东西。latex 公式支持用的是 mathJax, 对页面公式重新渲染可参考这个文档。 源码放在 这里,某些包请自备。


主要功能

  • 双栏显示,左边 markdown 源码,右边渲染后结果,其中的 latex 公式由 mathJax 自动渲染。
  • 源码保存成 .md 文件。
  • 从 .md 文件中导入源码。
  • 输出成 html 文件。

Features(Bugs)

  • .md 文件都是保存在运行目录下的 document 文件夹里。
  • 保存成 .md 时,第一次会让你输入 filename,以后就不会了,方便边写边存。
  • 从 .md 文件导入时,会列出 document 下的所有 .md 文件的名字, 然后请输入要载入的(这个实现好挫啊,但是比较简单 ...)。
  • 保存后的 .html 文件在 document/html 下面,事先会清空此文件夹。 保存时会提醒输入 title,若 /document/img 下有与 title 同名的图片文件夹,则会复制过去。
  • 所以插入图片的话,请最好放在 /document/img 下的一个 和 filename(title)相同的文件夹下, 并使用 /img/filename/xxx.png 这种写法。
  • 有关闭页面提醒。

后记

这篇 blog,就是用这个写的,我擦,在 is-programmer.com 上显示的好挫。

删文件时莫名其妙会被只读属性卡,遂有一些诡异的hack。虽然某些实现很莫名其妙,超哥路过时讨论了一下,也没有神马更好的方案。

wr大牛写的东西都那么多人用,我写的东西都基本上是自用啊,/(ㄒoㄒ)/,而且过段时间连自己也不用了,╮( ̄▽ ̄")╭。

 

orbbyrp 说:
2012年5月09日 17:44

我写的东西,写完就不用了啊

Kerala 11th Previous 说:
2022年8月25日 13:01

Kerala Plus Two Old Important Model Question Paper 2023 PDF 2023 is Released in Online Mode. Kerala DHSE Board 11th Arts, Science and Commerce Group Important Model Question Paper 2023 Attachments are Available on This Page. Kerala 11th Previous Paper 2023 Important Model Question Paper 2023 are an Important Two for the Students to Getting High Scores in the Board Examinations. Kerala Plus Two Malayalam, English, Computer Science, Computer Application, Hindi, Chemistry, Statistics, Economics, History, Geology, Physics, Maths, Tamil, Kannada and Other Subjects Last Year Important Model Question Paper 2023 are Download on the Official Website. Kerala State Board Important Model Question Paper 2023 PDF are Given Below.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter