From b855a094f8e09c4dc405015d74187020991a3ae7 Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Mon, 29 Apr 2024 20:42:51 +0800 Subject: [PATCH] Clarify description for vt --- doc/tutorial/gf-tutorial.t2t | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/gf-tutorial.t2t b/doc/tutorial/gf-tutorial.t2t index 2c8d909de8..c43382ea00 100644 --- a/doc/tutorial/gf-tutorial.t2t +++ b/doc/tutorial/gf-tutorial.t2t @@ -1265,10 +1265,16 @@ Human eye may prefer to see a visualization: ``visualize_tree = vt``: > parse "this delicious cheese is very Italian" | visualize_tree ``` The tree is generated in postscript (``.ps``) file. The ``-view`` option is used for -telling what command to use to view the file. Its default is ``"open"``, which works -on Mac OS X. On Ubuntu Linux, one can write +telling what command to use to view the file. + +This works on Mac OS X: +``` + > parse "this delicious cheese is very Italian" | visualize_tree -view=open +``` +On Linux, one can write either of ``` > parse "this delicious cheese is very Italian" | visualize_tree -view="eog" + > parse "this delicious cheese is very Italian" | visualize_tree -view=xdg-open ```