## How to specify customized MathJax script?¶

VNote supports a configuration [web]/mathjax_javascript which specifies the location of the MathJax and its configuration to use. The default value may look like this:

[web]
; Location and configuration for Mathjax
mathjax_javascript=https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML


You could download the MathJax (howto) and specify a local copy of the MathJax to use, like mathjax_javascript="file:///home/tamlok/Downloads/MathJax-2.7.2/MathJax.js?config=TeX-MML-AM_CHTML".

You could also specify customized script in GUI settings dialog:

Notes:

• Need to prepend file:// to the local path;
• Using local path may get the fonts wrong. I think a better way is to run a light HTTP server locally.

## How to make VNote more “portable”?¶

VNote will read and store configuration files in the common directory of the operating system to store application data. If you prefer to put these configuration files along with the VNote executable, you coulud copy or create the vnote.ini file in the directory containing VNote executable. VNote will first try to read vnote.ini from where the executable exists.

However, please notice that VNote will store the notebook’s path in the configuration file, so it may read a wrong path and complain about errors if you copy VNote to another computer.

## How to draw diagrams using Mermaid or Flowchart.js?¶

1. Enable Mermaid Diagram and Flowchart.js in the Markdown menu;
2. Re-open opened tabs to let it take effect;
3. For Mermaid, write a fenced code block specified with language mermaid;
4. For Flowchart.js, write a fenced code block specified with language flowchart or flow;

Mermaid example:

mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;



Flowchart.js example:

flowchart
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
io=>inputoutput: catch something...

st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1



## How to open a note in another tab?¶

When Single click to open a note in current tab is enabled, single-click in the note list to open the note in current tab, while double-click to open it in a new tab.