Shortcuts

Shortcuts are a way to define and reuse repetitive patterns coming in the command-line. You use them with an option in the spirit of --short cloud, which actually expands to @—marker auto —marker-scale 0.2—line-style no@ (convenient to make dot clouds graphs).

Shortcuts somehow overlap with themes. That is intentional: I don’t want to impose my way of thinking to the users. Having more ways than one to achieve similar goals is a way to do that.

To know currently available shortcuts, use the following command:

ctioga --short-list

It gives an output in the like of

Available shortcuts:
cloud   --marker auto --marker-scale 0.2 --line-style no
filled  --fill y_axis --fill-transparency 0.7

Defining new shortcuts

As you can see, ctioga version 1.6.2 doesn’t come with many shortcuts yet. Fortunately, it is very simple to define new ones. Just add something like that in your .ctiogarc file:

Shortcut.new('std', '--xpdf', '--math', 'sin(x)')

This defines the shortcut std to be the equivalent of following bit of command-line:

--xpdf --math 'sin(x)'

Please note that you need to enclose every single argument in single or double quotes, and that you need to separate them with commas. Note as well, that this is a small Ruby program, so make sure you don’t make syntax errors (though if you follow the above example, it should be fine).