-
-# With this you can send a LyX-Document to a User-defined program. You
-# can specify by adding the tag $$FName where the filename should be
-# put on the defined command. if no $$FName is specified the file is
-# sent in standard input (stdin). There is no default command
-# specified. Example:
-#\custom_export_command "kghostview $$FName"
-#
-# A more elaborate example to create pdf files with ps2pdf would be:
-#\custom_export_command "ps2pdf '$$FName' `basename '$$FName' .ps_tmp`.pdf"
-
-
-# This is the default for the type of contents to be sent to the export
-# command: possible values are lyx, dvi, tex, ps and ascii.
-#\custom_export_format ps
+# The \converter command defines a converter between two formats.
+# LyX uses the defined converters for generating output in various formats,
+# or for importing.
+# The converter command has 4 arguments: The source format, the target format,
+# the command, and additional flags.
+# For example, the following defines a DVI->Postscript converter:
+#\converter dvi ps "dvips -o $$o $$i" ""
+# The variable name $$i is replaced with the name of the source file,
+# and $$o is replaced with the name of the target file.
+# The flags argument is a list of comma separated flags.
+# Known flags are
+# - * : copy the previously defined flags
+# - latex : The converter is latex or its derivatives (pdflatex).
+# - originaldir : The converter must be invoked in the directory of the lyx
+# file and not in the temporary directory. This is needed for tex->html
+# converters in order to be able to read the eps files.
+# - needaux : The converted uses the .aux file, so we need to call latex
+# before running the converter.
+# - resultdir=dir : The converter put all the files in dir.
+# Using "resultdir" is same as "resultdir=$$b".
+# Note: When exporting, the whole directory will be moved from the temporary
+# directory to the target directory.
+# - resultfile=file : Name of main file in the result directory, for example
+# "index.html" or "$$b.html"
+# If "resultfile" is omitted, the name of this file is assumed to be
+# "index.format"
+# - parselog=filtername : filtername is a name of a filter command that takes
+# the converter error log (from stderr), and converts it to a fake latex .log
+# file.
+# For example:
+#\converter latex html "latex2html -split 0 $$i"
+# "originaldir,needaux,resultdir"
+#
+# For literate programming, use something like
+#\converter literate latex "noweave -delay -index $$i >$$o"
+# "parselog=listerrors g"
+#\converter literate program "build-script $$i"
+# "originaldir,parselog=listerrors g"
+
+# The format command is used to define file formats. It has 4 arguments:
+# the format name, the extension, and "pretty name" and menu shortcut.
+# For example
+#\Format latex tex LaTeX L
+
+# The \viewer command is used to define viewers for new formats,
+# or to change the already defined viewers.
+# For example, to use xdvi as the viewer to dvi files use
+#\viewer dvi "xdvi"
+# It can get more involved. Expert users might prefer something like:
+#\viewer dvi "xdvi -s 2 -expert -geometry 1014x720+0+0 -keep -margins 1.5"