R/lyxutils.r
current_lyx_tempfile.Rd
Can also return e.g. aux file or containing directory.
current_lyx_tempfile(ftype = c("pdf", "aux", "dir", "tex", "lof"), lyxfile = NULL, tmproot = NULL)
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 |
Path to current LyX temporary directory /pdf
Uses the modification date of the tex file in the directory to choose LyX dir in case of ambiguity => last previewed file.
Other LyX: lyx_citekeys
,
lyxexport
, lyxhtml2html
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') }