current_lyx_tempfile: Full path to most recent temporary PDF previewed by LyX

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/lyxutils.r

Description

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

Usage

1
2
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

Details

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

Value

Path to current LyX temporary directory /pdf

Author(s)

jefferis

See Also

Other LyX: lyx_citekeys, lyxexport, lyxhtml2html

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# 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')

## End(Not run)

jefferis/paperutils documentation built on Sept. 20, 2019, 10:20 a.m.