Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjpost/nvalt-files
nvALT preview templates and image archiving service
https://github.com/mjpost/nvalt-files
Last synced: about 2 months ago
JSON representation
nvALT preview templates and image archiving service
- Host: GitHub
- URL: https://github.com/mjpost/nvalt-files
- Owner: mjpost
- Created: 2014-05-06T19:09:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-21T12:03:14.000Z (over 9 years ago)
- Last Synced: 2023-04-09T20:57:28.109Z (almost 2 years ago)
- Language: CSS
- Size: 620 KB
- Stars: 29
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### nvALT configuration files
I use nvALT extensively for research notes. The files in this archive
provide these functions:- [Bootstrap](http://getbootstrap.com)-based,
[MathJAX](http://www.mathjax.org)-enabled templates for previews
- An Automator workflow implementing a Finder service that archives
image files to a canonical location and copies a
[Markdown](http://daringfireball.net/projects/markdown/)-formatted
image URL to that image, enabling each incorporation of images.Here is an example of the nvALT window with a MathJAX-enabled preview:
![](images/example.png)
These templates began with templates
[published by Brett Terpstra](http://brettterpstra.com/2013/04/06/customizing-the-nvalt-preview/). I
modified them to remove evidence of the "Lopash" them and to add
support for [MathJAX](http://www.mathjax.org).### What you'll get
* Support for [MathJAX](http://www.mathjax.org) in notes
* Automatic highlighting of code blocks with [highlight.js](http://softwaremaniacs.org/soft/highlight/en/)
* A basic implementation of [Widon't](http://shauninman.com/archive/2006/08/22/widont_wordpress_plugin) for headlines.
* Smooth scrolling when clicking footnotes and anchors.
* A "back to top" link that appears when scrolling down a note.### Installation
0. Download and install [nvALT](http://brettterpstra.com/projects/nvalt/).
1. First, back up any custom files you've created previously. These
files are located under `$HOME/Library/Application Support/nvALT/`.$ cd "$HOME/Library/Application Support/"
$ mv nvALT nvALT.bak2. Move or download this archive to that location:
$ cd "$HOME/Library/Application Support/"
$ git clone [email protected]:mjpost/nvALT-files nvALT3. Download and install MathJAX to the directory `mathjax` in the
`nvALT` directory above.You should now have the following files in your Support folder:
custom.css
highlight.pack.js
jquery.min.js
template.html
mathjax/
README.md
MathJax.js
...4. Install the Automator workflow by double-clicking on the file
`nvALT archive.workflow`.5. Install a keyboard shortcut for the workflow. Place it under System Preferences →
Keyboard → Shortcuts → App Shortcuts → All Applications. The name
should be "nvALT archive" (exactly). I use ^⌘a as my shortcut.Now, on any image file in Finder, you can click this shortcut (or
select it from the Finder Services menu. The image will be copied
to a directory within `$HOME/Library/Application
Support/nvALT/Media/{YEAR}/{MONTH}`, and a Markdown-formatted relative path to this
file will be placed on the clipboard, to be pasted into your nvALT document.