Can also return e.g. aux file or containing directory.

current_lyx_tempfile(ftype = c("pdf", "aux", "dir", "tex", "lof"),
  lyxfile = NULL, tmproot = NULL)

Arguments

ftype

Type of file (or 'dir' for enclosing directory)

lyxfile

Optional stem or full name of LyX file

tmproot

Optional path to temporary directory containing LyX tempdir

Value

Path to current LyX temporary directory /pdf

Details

Uses the modification date of the tex file in the directory to choose LyX dir in case of ambiguity => last previewed file.

See also

Examples

if (FALSE) { # current lyx pdf current_lyx_tempfile() # current lyx directory current_lyx_tempfile('pdf') # make sure the file is main.lyx current_lyx_tempfile(lyxfile='main.lyx') }