On 1/11/2015 4:55 p.m., LyX Ticket Tracker wrote:
#9627: Make the document name available to preview insets
---------------------------+-------------------------
  Reporter:  aparsloe       |       Owner:  lasgouttes
      Type:  enhancement    |      Status:  new
  Priority:  normal         |   Milestone:  2.2.0
Component:  preview-latex  |     Version:  2.1.3
  Severity:  normal         |  Resolution:
  Keywords:                 |
---------------------------+-------------------------

Comment (by skostysh):

  Is anyone planning to work on this for 2.2.0? It doesn't seem like there
  is even agreement on what to do.

One way of achieving this would be to write a text file to the temporary directory for the given document. The text file has one line containing the document name (without the .lyx extension) and a distinctive file name like lyxjob.name. Latex files, when previewed, can look for lyxjob.name and read it's content. (It's certainly simple to do this with the expl3 macros of LaTeX3.) Thus when lyx_tmpbuf0 etc are created they are not empty, as at present, but contain a one-line file lyxjob.name.

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to