Re: graphics question
On Sat, 23 Jun 2018 14:34:50 -0400 "Paul A. Rubin" wrote: > On 06/21/2018 02:05 PM, John White wrote: > > When inserting a pdf graphic into a template, and saving the file, > > the next time I open the template, I have to re-insert the graphic, > > even though the graphic is in the same template folder. > > > > However, if I open the same lyx template in dolphin, it opens with > > the graphic shown. > > > > Anyone know how I can save the template in such a manner as will > > show when opened from lyx' with "new from template"? > > > > John > Are you using absolute (not relative) paths to the graphics? Relative > paths will not work, because the new document you are creating will > live in the LyX temp directory, not in the templates directory. I > don't seem to have a problem as long as I use absolute paths. > > Paul IMHO using absolute paths is a bad solution. Some of my books are in git now, and sometimes I clone them into laptop directories with paths different from the one on my desktop. I'd greatly prefer that a document's dependencies travel with it. SteveT Steve Litt June 2018 featured book: Twenty Eight Tales of Troubleshooting http://www.troubleshooters.com/28
Re: Adding local templates directory to dialog
On 06/24/2018 01:38 AM, Stephan Witt wrote: Am 23.06.2018 um 20:44 schrieb Paul A. Rubin : I should know the answer to this but apparently have forgotten. Is there any way to modify the "New from Template" dialog so that local templates (in ~/.lyx/templates on Linux) are one click away? Alternatively, is there a way to add to the list of directory shortcuts on the left side of the dialog (currently "Computer" and my home directory)? My alternate solution is to change the template directory to the local templates in your home directory and place a symbolic link to the system template dir inside it. That way you can reach both places quickly. On a Mac this is done automatically on first configuration. Unfortunately there is no (known) API to modify the list of directory shortcuts on the left side of the dialog automatically. Stephan Thanks, Stephan. That's a good work-around. It would be nice if the paths settings in preferences accepted multiple directories using the same syntax that the operating system paths use (colon separators in Linux) and at least populated the "Look in" select box with them, if not the shortcuts on the right-hand side. Paul