Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Ken
Ooops.  Now I have messed up my installation.

I copied the stdtoolbar.inc from the installation folder on C:\Program
Files to the ui folder in my LyX2.0 user directory and was playing
around with it.  But then my toolbar disappeared.  When I tried
deleting the .inc files from my user ui folder so that the defaults
would be used, the toolbars seem to have shrunk.  Please see the
attached screenshot.

I have tried re-installing LyX but this has not helped (as I suspect
the problem is somewhere in my user directory).  Has anyone come
across this issue and happen to know where the incorrect setting may
be?

Thanks,
Ken


On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
 Hello Ken

 On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
 Stephen and Liviu wrote the excellent guide: LyX Essentials
 (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

 Thank you for the kind words.


 In it they write: The View icon is practical for previewing your
 final output, but it is generally a good habit to use File ! Export !
 PDF (pdflatex) to actually export your final PDF document.

 Why?  Is this so that one has a permanent copy of the PDF in the
 relevant folder as opposed to just the PDF placed in the temporary
 folder?

 Basically, yes.


 If that is the reason, then I would agree but often tend to forget to
 export my document every time I am done editing it.  In fact I wish

 This is true in the beginning, but should get better as you get more
 familiar with the LyX work-flow.


 that I could somehow over-ride the View functionality so that the
 generated PDF is always placed in the same folder as the .lyx file ---
 possibly with the word draft appended to it.  In that case I would

 I'm not sure that you want this. For one, at each Export instance you
 will be greated with the 'Overwrite?' dialogue. (I don't know if you
 can turn it off, but if you do it can be dangerous.)


 always have a copy of every document in PDF form compiled to the
 latest version.

 One way to work around would be to create a custom 'Export to PDF'
 button (this is easy) that would always compile the document and
 export it in the desired folder. Then, if you use a well behaved PDF
 viewer such as Evince, each time the file is saved to disk the viewer
 will automatically reload it, meaning that the button will effectively
 act both as 'export' and 'preview'. This way you have to open your PDF
 file only once, and have it regularly updated by LyX.


 This is useful for cases where (a) I want to read one
 of my document without opening LyX or (b) want to quickly send a
 document to someone quickly and don't want to have to compile it (just
 in case for one reason or another the compilation is broken).

 Can anyone suggest either:
 (1) how to over-ride the View function as described above, or
 (2) how to create a new icon which generates a PDF (appended with
 draft) which is saved in my working directory and automatically opened
 for viewing.

 In principle it should be possible to combine the preview and export
 command sequences. For this, check Help  Functions (particularly
 'command-sequence') and some examples on the mailing list (same
 keyword, and perhaps 'keyboard bindings'). For the commands run in the
 menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
 I haven't tested, but it should be as easy as copy/pasting and
 slightly modifying the items of interest.

 Regards
 Liviu

attachment: lyx_toolbar.jpg

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Rainer M Krug
On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:

 Ooops.  Now I have messed up my installation.

 I copied the stdtoolbar.inc from the installation folder on C:\Program
 Files to the ui folder in my LyX2.0 user directory and was playing
 around with it.  But then my toolbar disappeared.  When I tried
 deleting the .inc files from my user ui folder so that the defaults
 would be used, the toolbars seem to have shrunk.  Please see the
 attached screenshot.

 I have tried re-installing LyX but this has not helped (as I suspect
 the problem is somewhere in my user directory).  Has anyone come
 across this issue and happen to know where the incorrect setting may
 be?


No - but if you assume it is caused by something in the user directory, I
would suggest to rename it and start LyX - a default one should be created.

Cheers,

Rainer


 Thanks,
 Ken


 On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
  Hello Ken
 
  On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
  Stephen and Liviu wrote the excellent guide: LyX Essentials
  (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
 
  Thank you for the kind words.
 
 
  In it they write: The View icon is practical for previewing your
  final output, but it is generally a good habit to use File ! Export !
  PDF (pdflatex) to actually export your final PDF document.
 
  Why?  Is this so that one has a permanent copy of the PDF in the
  relevant folder as opposed to just the PDF placed in the temporary
  folder?
 
  Basically, yes.
 
 
  If that is the reason, then I would agree but often tend to forget to
  export my document every time I am done editing it.  In fact I wish
 
  This is true in the beginning, but should get better as you get more
  familiar with the LyX work-flow.
 
 
  that I could somehow over-ride the View functionality so that the
  generated PDF is always placed in the same folder as the .lyx file ---
  possibly with the word draft appended to it.  In that case I would
 
  I'm not sure that you want this. For one, at each Export instance you
  will be greated with the 'Overwrite?' dialogue. (I don't know if you
  can turn it off, but if you do it can be dangerous.)
 
 
  always have a copy of every document in PDF form compiled to the
  latest version.
 
  One way to work around would be to create a custom 'Export to PDF'
  button (this is easy) that would always compile the document and
  export it in the desired folder. Then, if you use a well behaved PDF
  viewer such as Evince, each time the file is saved to disk the viewer
  will automatically reload it, meaning that the button will effectively
  act both as 'export' and 'preview'. This way you have to open your PDF
  file only once, and have it regularly updated by LyX.
 
 
  This is useful for cases where (a) I want to read one
  of my document without opening LyX or (b) want to quickly send a
  document to someone quickly and don't want to have to compile it (just
  in case for one reason or another the compilation is broken).
 
  Can anyone suggest either:
  (1) how to over-ride the View function as described above, or
  (2) how to create a new icon which generates a PDF (appended with
  draft) which is saved in my working directory and automatically opened
  for viewing.
 
  In principle it should be possible to combine the preview and export
  command sequences. For this, check Help  Functions (particularly
  'command-sequence') and some examples on the mailing list (same
  keyword, and perhaps 'keyboard bindings'). For the commands run in the
  menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
  I haven't tested, but it should be as easy as copy/pasting and
  slightly modifying the items of interest.
 
  Regards
  Liviu
 




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Ken
Hi Rainer,

That's a good point.  I renamed C:\Documents and
Settings\Ken\Application Data\LyX2.0 to LyX2.0_old and, as you say, a
new one was created on launching LyX.  However the toolbars are still
missing.  So the problem must be elsewhere.

I am logged on a s Limited XP user so I don't know if any changes
would have occurred in the C:\Program Files\LyX20 folder when I was
playing with the user folder.  Where else might I look for the
culprit?

Thanks,
Ken


On 29 July 2011 09:45, Rainer M Krug r.m.k...@gmail.com wrote:


 On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:

 Ooops.  Now I have messed up my installation.

 I copied the stdtoolbar.inc from the installation folder on C:\Program
 Files to the ui folder in my LyX2.0 user directory and was playing
 around with it.  But then my toolbar disappeared.  When I tried
 deleting the .inc files from my user ui folder so that the defaults
 would be used, the toolbars seem to have shrunk.  Please see the
 attached screenshot.

 I have tried re-installing LyX but this has not helped (as I suspect
 the problem is somewhere in my user directory).  Has anyone come
 across this issue and happen to know where the incorrect setting may
 be?

 No - but if you assume it is caused by something in the user directory, I
 would suggest to rename it and start LyX - a default one should be created.
 Cheers,
 Rainer

 Thanks,
 Ken


 On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
  Hello Ken
 
  On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
  Stephen and Liviu wrote the excellent guide: LyX Essentials
  (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
 
  Thank you for the kind words.
 
 
  In it they write: The View icon is practical for previewing your
  final output, but it is generally a good habit to use File ! Export !
  PDF (pdflatex) to actually export your final PDF document.
 
  Why?  Is this so that one has a permanent copy of the PDF in the
  relevant folder as opposed to just the PDF placed in the temporary
  folder?
 
  Basically, yes.
 
 
  If that is the reason, then I would agree but often tend to forget to
  export my document every time I am done editing it.  In fact I wish
 
  This is true in the beginning, but should get better as you get more
  familiar with the LyX work-flow.
 
 
  that I could somehow over-ride the View functionality so that the
  generated PDF is always placed in the same folder as the .lyx file ---
  possibly with the word draft appended to it.  In that case I would
 
  I'm not sure that you want this. For one, at each Export instance you
  will be greated with the 'Overwrite?' dialogue. (I don't know if you
  can turn it off, but if you do it can be dangerous.)
 
 
  always have a copy of every document in PDF form compiled to the
  latest version.
 
  One way to work around would be to create a custom 'Export to PDF'
  button (this is easy) that would always compile the document and
  export it in the desired folder. Then, if you use a well behaved PDF
  viewer such as Evince, each time the file is saved to disk the viewer
  will automatically reload it, meaning that the button will effectively
  act both as 'export' and 'preview'. This way you have to open your PDF
  file only once, and have it regularly updated by LyX.
 
 
  This is useful for cases where (a) I want to read one
  of my document without opening LyX or (b) want to quickly send a
  document to someone quickly and don't want to have to compile it (just
  in case for one reason or another the compilation is broken).
 
  Can anyone suggest either:
  (1) how to over-ride the View function as described above, or
  (2) how to create a new icon which generates a PDF (appended with
  draft) which is saved in my working directory and automatically opened
  for viewing.
 
  In principle it should be possible to combine the preview and export
  command sequences. For this, check Help  Functions (particularly
  'command-sequence') and some examples on the mailing list (same
  keyword, and perhaps 'keyboard bindings'). For the commands run in the
  menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
  I haven't tested, but it should be as easy as copy/pasting and
  slightly modifying the items of interest.
 
  Regards
  Liviu
 



 --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
 UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :       +33 - (0)9 53 10 27 44
 Cell:       +33 - (0)6 85 62 59 98
 Fax (F):       +33 - (0)9 58 10 27 44

 Fax (D):    +49 - (0)3 21 21 25 22 44

 email:      rai...@krugs.de

 Skype:      RMkrug




Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Rainer M Krug
On Fri, Jul 29, 2011 at 10:50 AM, Ken kmai...@gmail.com wrote:

 Hi Rainer,

 That's a good point.  I renamed C:\Documents and
 Settings\Ken\Application Data\LyX2.0 to LyX2.0_old and, as you say, a
 new one was created on launching LyX.  However the toolbars are still
 missing.  So the problem must be elsewhere.


As far as I remember, LyX has system settings and user settings. If you want
to try to reinstall LyX, I would uninstall it, check that the LyX folder is
deleted as well (but keep a copy of your user directory), and reinstal LyX.

Keep in mind, that all this is coming from a Linux user - so there might be
some places, where LyX stores settings as well (registry? unlikely), which I
am not aware of.


 I am logged on a s Limited XP user so I don't know if any changes
 would have occurred in the C:\Program Files\LyX20 folder when I was
 playing with the user folder.  Where else might I look for the
 culprit?


No idea apart from my suggestions above.

Cheers,

Rainer


 Thanks,
 Ken


 On 29 July 2011 09:45, Rainer M Krug r.m.k...@gmail.com wrote:
 
 
  On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:
 
  Ooops.  Now I have messed up my installation.
 
  I copied the stdtoolbar.inc from the installation folder on C:\Program
  Files to the ui folder in my LyX2.0 user directory and was playing
  around with it.  But then my toolbar disappeared.  When I tried
  deleting the .inc files from my user ui folder so that the defaults
  would be used, the toolbars seem to have shrunk.  Please see the
  attached screenshot.
 
  I have tried re-installing LyX but this has not helped (as I suspect
  the problem is somewhere in my user directory).  Has anyone come
  across this issue and happen to know where the incorrect setting may
  be?
 
  No - but if you assume it is caused by something in the user directory, I
  would suggest to rename it and start LyX - a default one should be
 created.
  Cheers,
  Rainer
 
  Thanks,
  Ken
 
 
  On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
   Hello Ken
  
   On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
   Stephen and Liviu wrote the excellent guide: LyX Essentials
   (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
  
   Thank you for the kind words.
  
  
   In it they write: The View icon is practical for previewing your
   final output, but it is generally a good habit to use File ! Export !
   PDF (pdflatex) to actually export your final PDF document.
  
   Why?  Is this so that one has a permanent copy of the PDF in the
   relevant folder as opposed to just the PDF placed in the temporary
   folder?
  
   Basically, yes.
  
  
   If that is the reason, then I would agree but often tend to forget to
   export my document every time I am done editing it.  In fact I wish
  
   This is true in the beginning, but should get better as you get more
   familiar with the LyX work-flow.
  
  
   that I could somehow over-ride the View functionality so that the
   generated PDF is always placed in the same folder as the .lyx file
 ---
   possibly with the word draft appended to it.  In that case I would
  
   I'm not sure that you want this. For one, at each Export instance you
   will be greated with the 'Overwrite?' dialogue. (I don't know if you
   can turn it off, but if you do it can be dangerous.)
  
  
   always have a copy of every document in PDF form compiled to the
   latest version.
  
   One way to work around would be to create a custom 'Export to PDF'
   button (this is easy) that would always compile the document and
   export it in the desired folder. Then, if you use a well behaved PDF
   viewer such as Evince, each time the file is saved to disk the viewer
   will automatically reload it, meaning that the button will effectively
   act both as 'export' and 'preview'. This way you have to open your PDF
   file only once, and have it regularly updated by LyX.
  
  
   This is useful for cases where (a) I want to read one
   of my document without opening LyX or (b) want to quickly send a
   document to someone quickly and don't want to have to compile it
 (just
   in case for one reason or another the compilation is broken).
  
   Can anyone suggest either:
   (1) how to over-ride the View function as described above, or
   (2) how to create a new icon which generates a PDF (appended with
   draft) which is saved in my working directory and automatically
 opened
   for viewing.
  
   In principle it should be possible to combine the preview and export
   command sequences. For this, check Help  Functions (particularly
   'command-sequence') and some examples on the mailing list (same
   keyword, and perhaps 'keyboard bindings'). For the commands run in the
   menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
   I haven't tested, but it should be as easy as copy/pasting and
   slightly modifying the items of interest.
  
   Regards
   Liviu
  
 
 
 
  --
  Rainer M. Krug, 

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Liviu Andronic
On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:
 Ooops.  Now I have messed up my installation.

Sorry for that.

 I copied the stdtoolbar.inc from the installation folder on C:\Program
 Files to the ui folder in my LyX2.0 user directory and was playing
 around with it.  But then my toolbar disappeared.  When I tried
 deleting the .inc files from my user ui folder so that the defaults
 would be used, the toolbars seem to have shrunk.  Please see the
 attached screenshot.

 I have tried re-installing LyX but this has not helped (as I suspect
 the problem is somewhere in my user directory).  Has anyone come
 across this issue and happen to know where the incorrect setting may
 be?

Follow Rainer's advice, and if that fails, start a new thread on this
list. Also go to View  Toolbars and try hiding/showing them.

Thinking more about your original enquiry, it could be as simple as
the following: define a
command-sequence buffer-view pdf2 ; buffer-export pdf2 ;

command in Tools  Options  Editing  Shortcuts. It seems to work here.
Liviu


Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Ken
Ooops.  Now I have messed up my installation.

I copied the stdtoolbar.inc from the installation folder on C:\Program
Files to the ui folder in my LyX2.0 user directory and was playing
around with it.  But then my toolbar disappeared.  When I tried
deleting the .inc files from my user ui folder so that the defaults
would be used, the toolbars seem to have shrunk.  Please see the
attached screenshot.

I have tried re-installing LyX but this has not helped (as I suspect
the problem is somewhere in my user directory).  Has anyone come
across this issue and happen to know where the incorrect setting may
be?

Thanks,
Ken


On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
 Hello Ken

 On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
 Stephen and Liviu wrote the excellent guide: LyX Essentials
 (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

 Thank you for the kind words.


 In it they write: The View icon is practical for previewing your
 final output, but it is generally a good habit to use File ! Export !
 PDF (pdflatex) to actually export your final PDF document.

 Why?  Is this so that one has a permanent copy of the PDF in the
 relevant folder as opposed to just the PDF placed in the temporary
 folder?

 Basically, yes.


 If that is the reason, then I would agree but often tend to forget to
 export my document every time I am done editing it.  In fact I wish

 This is true in the beginning, but should get better as you get more
 familiar with the LyX work-flow.


 that I could somehow over-ride the View functionality so that the
 generated PDF is always placed in the same folder as the .lyx file ---
 possibly with the word draft appended to it.  In that case I would

 I'm not sure that you want this. For one, at each Export instance you
 will be greated with the 'Overwrite?' dialogue. (I don't know if you
 can turn it off, but if you do it can be dangerous.)


 always have a copy of every document in PDF form compiled to the
 latest version.

 One way to work around would be to create a custom 'Export to PDF'
 button (this is easy) that would always compile the document and
 export it in the desired folder. Then, if you use a well behaved PDF
 viewer such as Evince, each time the file is saved to disk the viewer
 will automatically reload it, meaning that the button will effectively
 act both as 'export' and 'preview'. This way you have to open your PDF
 file only once, and have it regularly updated by LyX.


 This is useful for cases where (a) I want to read one
 of my document without opening LyX or (b) want to quickly send a
 document to someone quickly and don't want to have to compile it (just
 in case for one reason or another the compilation is broken).

 Can anyone suggest either:
 (1) how to over-ride the View function as described above, or
 (2) how to create a new icon which generates a PDF (appended with
 draft) which is saved in my working directory and automatically opened
 for viewing.

 In principle it should be possible to combine the preview and export
 command sequences. For this, check Help  Functions (particularly
 'command-sequence') and some examples on the mailing list (same
 keyword, and perhaps 'keyboard bindings'). For the commands run in the
 menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
 I haven't tested, but it should be as easy as copy/pasting and
 slightly modifying the items of interest.

 Regards
 Liviu

attachment: lyx_toolbar.jpg

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Rainer M Krug
On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:

 Ooops.  Now I have messed up my installation.

 I copied the stdtoolbar.inc from the installation folder on C:\Program
 Files to the ui folder in my LyX2.0 user directory and was playing
 around with it.  But then my toolbar disappeared.  When I tried
 deleting the .inc files from my user ui folder so that the defaults
 would be used, the toolbars seem to have shrunk.  Please see the
 attached screenshot.

 I have tried re-installing LyX but this has not helped (as I suspect
 the problem is somewhere in my user directory).  Has anyone come
 across this issue and happen to know where the incorrect setting may
 be?


No - but if you assume it is caused by something in the user directory, I
would suggest to rename it and start LyX - a default one should be created.

Cheers,

Rainer


 Thanks,
 Ken


 On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
  Hello Ken
 
  On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
  Stephen and Liviu wrote the excellent guide: LyX Essentials
  (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
 
  Thank you for the kind words.
 
 
  In it they write: The View icon is practical for previewing your
  final output, but it is generally a good habit to use File ! Export !
  PDF (pdflatex) to actually export your final PDF document.
 
  Why?  Is this so that one has a permanent copy of the PDF in the
  relevant folder as opposed to just the PDF placed in the temporary
  folder?
 
  Basically, yes.
 
 
  If that is the reason, then I would agree but often tend to forget to
  export my document every time I am done editing it.  In fact I wish
 
  This is true in the beginning, but should get better as you get more
  familiar with the LyX work-flow.
 
 
  that I could somehow over-ride the View functionality so that the
  generated PDF is always placed in the same folder as the .lyx file ---
  possibly with the word draft appended to it.  In that case I would
 
  I'm not sure that you want this. For one, at each Export instance you
  will be greated with the 'Overwrite?' dialogue. (I don't know if you
  can turn it off, but if you do it can be dangerous.)
 
 
  always have a copy of every document in PDF form compiled to the
  latest version.
 
  One way to work around would be to create a custom 'Export to PDF'
  button (this is easy) that would always compile the document and
  export it in the desired folder. Then, if you use a well behaved PDF
  viewer such as Evince, each time the file is saved to disk the viewer
  will automatically reload it, meaning that the button will effectively
  act both as 'export' and 'preview'. This way you have to open your PDF
  file only once, and have it regularly updated by LyX.
 
 
  This is useful for cases where (a) I want to read one
  of my document without opening LyX or (b) want to quickly send a
  document to someone quickly and don't want to have to compile it (just
  in case for one reason or another the compilation is broken).
 
  Can anyone suggest either:
  (1) how to over-ride the View function as described above, or
  (2) how to create a new icon which generates a PDF (appended with
  draft) which is saved in my working directory and automatically opened
  for viewing.
 
  In principle it should be possible to combine the preview and export
  command sequences. For this, check Help  Functions (particularly
  'command-sequence') and some examples on the mailing list (same
  keyword, and perhaps 'keyboard bindings'). For the commands run in the
  menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
  I haven't tested, but it should be as easy as copy/pasting and
  slightly modifying the items of interest.
 
  Regards
  Liviu
 




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Ken
Hi Rainer,

That's a good point.  I renamed C:\Documents and
Settings\Ken\Application Data\LyX2.0 to LyX2.0_old and, as you say, a
new one was created on launching LyX.  However the toolbars are still
missing.  So the problem must be elsewhere.

I am logged on a s Limited XP user so I don't know if any changes
would have occurred in the C:\Program Files\LyX20 folder when I was
playing with the user folder.  Where else might I look for the
culprit?

Thanks,
Ken


On 29 July 2011 09:45, Rainer M Krug r.m.k...@gmail.com wrote:


 On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:

 Ooops.  Now I have messed up my installation.

 I copied the stdtoolbar.inc from the installation folder on C:\Program
 Files to the ui folder in my LyX2.0 user directory and was playing
 around with it.  But then my toolbar disappeared.  When I tried
 deleting the .inc files from my user ui folder so that the defaults
 would be used, the toolbars seem to have shrunk.  Please see the
 attached screenshot.

 I have tried re-installing LyX but this has not helped (as I suspect
 the problem is somewhere in my user directory).  Has anyone come
 across this issue and happen to know where the incorrect setting may
 be?

 No - but if you assume it is caused by something in the user directory, I
 would suggest to rename it and start LyX - a default one should be created.
 Cheers,
 Rainer

 Thanks,
 Ken


 On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
  Hello Ken
 
  On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
  Stephen and Liviu wrote the excellent guide: LyX Essentials
  (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
 
  Thank you for the kind words.
 
 
  In it they write: The View icon is practical for previewing your
  final output, but it is generally a good habit to use File ! Export !
  PDF (pdflatex) to actually export your final PDF document.
 
  Why?  Is this so that one has a permanent copy of the PDF in the
  relevant folder as opposed to just the PDF placed in the temporary
  folder?
 
  Basically, yes.
 
 
  If that is the reason, then I would agree but often tend to forget to
  export my document every time I am done editing it.  In fact I wish
 
  This is true in the beginning, but should get better as you get more
  familiar with the LyX work-flow.
 
 
  that I could somehow over-ride the View functionality so that the
  generated PDF is always placed in the same folder as the .lyx file ---
  possibly with the word draft appended to it.  In that case I would
 
  I'm not sure that you want this. For one, at each Export instance you
  will be greated with the 'Overwrite?' dialogue. (I don't know if you
  can turn it off, but if you do it can be dangerous.)
 
 
  always have a copy of every document in PDF form compiled to the
  latest version.
 
  One way to work around would be to create a custom 'Export to PDF'
  button (this is easy) that would always compile the document and
  export it in the desired folder. Then, if you use a well behaved PDF
  viewer such as Evince, each time the file is saved to disk the viewer
  will automatically reload it, meaning that the button will effectively
  act both as 'export' and 'preview'. This way you have to open your PDF
  file only once, and have it regularly updated by LyX.
 
 
  This is useful for cases where (a) I want to read one
  of my document without opening LyX or (b) want to quickly send a
  document to someone quickly and don't want to have to compile it (just
  in case for one reason or another the compilation is broken).
 
  Can anyone suggest either:
  (1) how to over-ride the View function as described above, or
  (2) how to create a new icon which generates a PDF (appended with
  draft) which is saved in my working directory and automatically opened
  for viewing.
 
  In principle it should be possible to combine the preview and export
  command sequences. For this, check Help  Functions (particularly
  'command-sequence') and some examples on the mailing list (same
  keyword, and perhaps 'keyboard bindings'). For the commands run in the
  menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
  I haven't tested, but it should be as easy as copy/pasting and
  slightly modifying the items of interest.
 
  Regards
  Liviu
 



 --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
 UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :       +33 - (0)9 53 10 27 44
 Cell:       +33 - (0)6 85 62 59 98
 Fax (F):       +33 - (0)9 58 10 27 44

 Fax (D):    +49 - (0)3 21 21 25 22 44

 email:      rai...@krugs.de

 Skype:      RMkrug




Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Rainer M Krug
On Fri, Jul 29, 2011 at 10:50 AM, Ken kmai...@gmail.com wrote:

 Hi Rainer,

 That's a good point.  I renamed C:\Documents and
 Settings\Ken\Application Data\LyX2.0 to LyX2.0_old and, as you say, a
 new one was created on launching LyX.  However the toolbars are still
 missing.  So the problem must be elsewhere.


As far as I remember, LyX has system settings and user settings. If you want
to try to reinstall LyX, I would uninstall it, check that the LyX folder is
deleted as well (but keep a copy of your user directory), and reinstal LyX.

Keep in mind, that all this is coming from a Linux user - so there might be
some places, where LyX stores settings as well (registry? unlikely), which I
am not aware of.


 I am logged on a s Limited XP user so I don't know if any changes
 would have occurred in the C:\Program Files\LyX20 folder when I was
 playing with the user folder.  Where else might I look for the
 culprit?


No idea apart from my suggestions above.

Cheers,

Rainer


 Thanks,
 Ken


 On 29 July 2011 09:45, Rainer M Krug r.m.k...@gmail.com wrote:
 
 
  On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:
 
  Ooops.  Now I have messed up my installation.
 
  I copied the stdtoolbar.inc from the installation folder on C:\Program
  Files to the ui folder in my LyX2.0 user directory and was playing
  around with it.  But then my toolbar disappeared.  When I tried
  deleting the .inc files from my user ui folder so that the defaults
  would be used, the toolbars seem to have shrunk.  Please see the
  attached screenshot.
 
  I have tried re-installing LyX but this has not helped (as I suspect
  the problem is somewhere in my user directory).  Has anyone come
  across this issue and happen to know where the incorrect setting may
  be?
 
  No - but if you assume it is caused by something in the user directory, I
  would suggest to rename it and start LyX - a default one should be
 created.
  Cheers,
  Rainer
 
  Thanks,
  Ken
 
 
  On 26 July 2011 19:26, Liviu Andronic landronim...@gmail.com wrote:
   Hello Ken
  
   On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
   Stephen and Liviu wrote the excellent guide: LyX Essentials
   (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
  
   Thank you for the kind words.
  
  
   In it they write: The View icon is practical for previewing your
   final output, but it is generally a good habit to use File ! Export !
   PDF (pdflatex) to actually export your final PDF document.
  
   Why?  Is this so that one has a permanent copy of the PDF in the
   relevant folder as opposed to just the PDF placed in the temporary
   folder?
  
   Basically, yes.
  
  
   If that is the reason, then I would agree but often tend to forget to
   export my document every time I am done editing it.  In fact I wish
  
   This is true in the beginning, but should get better as you get more
   familiar with the LyX work-flow.
  
  
   that I could somehow over-ride the View functionality so that the
   generated PDF is always placed in the same folder as the .lyx file
 ---
   possibly with the word draft appended to it.  In that case I would
  
   I'm not sure that you want this. For one, at each Export instance you
   will be greated with the 'Overwrite?' dialogue. (I don't know if you
   can turn it off, but if you do it can be dangerous.)
  
  
   always have a copy of every document in PDF form compiled to the
   latest version.
  
   One way to work around would be to create a custom 'Export to PDF'
   button (this is easy) that would always compile the document and
   export it in the desired folder. Then, if you use a well behaved PDF
   viewer such as Evince, each time the file is saved to disk the viewer
   will automatically reload it, meaning that the button will effectively
   act both as 'export' and 'preview'. This way you have to open your PDF
   file only once, and have it regularly updated by LyX.
  
  
   This is useful for cases where (a) I want to read one
   of my document without opening LyX or (b) want to quickly send a
   document to someone quickly and don't want to have to compile it
 (just
   in case for one reason or another the compilation is broken).
  
   Can anyone suggest either:
   (1) how to over-ride the View function as described above, or
   (2) how to create a new icon which generates a PDF (appended with
   draft) which is saved in my working directory and automatically
 opened
   for viewing.
  
   In principle it should be possible to combine the preview and export
   command sequences. For this, check Help  Functions (particularly
   'command-sequence') and some examples on the mailing list (same
   keyword, and perhaps 'keyboard bindings'). For the commands run in the
   menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
   I haven't tested, but it should be as easy as copy/pasting and
   slightly modifying the items of interest.
  
   Regards
   Liviu
  
 
 
 
  --
  Rainer M. Krug, 

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Liviu Andronic
On Fri, Jul 29, 2011 at 10:40 AM, Ken kmai...@gmail.com wrote:
 Ooops.  Now I have messed up my installation.

Sorry for that.

 I copied the stdtoolbar.inc from the installation folder on C:\Program
 Files to the ui folder in my LyX2.0 user directory and was playing
 around with it.  But then my toolbar disappeared.  When I tried
 deleting the .inc files from my user ui folder so that the defaults
 would be used, the toolbars seem to have shrunk.  Please see the
 attached screenshot.

 I have tried re-installing LyX but this has not helped (as I suspect
 the problem is somewhere in my user directory).  Has anyone come
 across this issue and happen to know where the incorrect setting may
 be?

Follow Rainer's advice, and if that fails, start a new thread on this
list. Also go to View  Toolbars and try hiding/showing them.

Thinking more about your original enquiry, it could be as simple as
the following: define a
command-sequence buffer-view pdf2 ; buffer-export pdf2 ;

command in Tools  Options  Editing  Shortcuts. It seems to work here.
Liviu


Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Ken
Ooops.  Now I have messed up my installation.

I copied the stdtoolbar.inc from the installation folder on C:\Program
Files to the "ui" folder in my LyX2.0 user directory and was playing
around with it.  But then my toolbar disappeared.  When I tried
deleting the .inc files from my user ui folder so that the defaults
would be used, the toolbars seem to have shrunk.  Please see the
attached screenshot.

I have tried re-installing LyX but this has not helped (as I suspect
the problem is somewhere in my user directory).  Has anyone come
across this issue and happen to know where the incorrect setting may
be?

Thanks,
Ken


On 26 July 2011 19:26, Liviu Andronic  wrote:
> Hello Ken
>
> On Tue, Jul 26, 2011 at 8:06 PM, Ken  wrote:
>> Stephen and Liviu wrote the excellent guide: "LyX Essentials"
>> (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
>>
> Thank you for the kind words.
>
>
>> In it they write: "The View icon is practical for previewing your
>> final output, but it is generally a good habit to use File ! Export !
>> PDF (pdflatex) to actually export your final PDF document."
>>
>> Why?  Is this so that one has a permanent copy of the PDF in the
>> relevant folder as opposed to just the PDF placed in the temporary
>> folder?
>>
> Basically, yes.
>
>
>> If that is the reason, then I would agree but often tend to forget to
>> export my document every time I am done editing it.  In fact I wish
>>
> This is true in the beginning, but should get better as you get more
> familiar with the LyX work-flow.
>
>
>> that I could somehow over-ride the "View" functionality so that the
>> generated PDF is always placed in the same folder as the .lyx file ---
>> possibly with the word "draft" appended to it.  In that case I would
>>
> I'm not sure that you want this. For one, at each Export instance you
> will be greated with the 'Overwrite?' dialogue. (I don't know if you
> can turn it off, but if you do it can be dangerous.)
>
>
>> always have a copy of every document in PDF form compiled to the
>> latest version.
>>
> One way to work around would be to create a custom 'Export to PDF'
> button (this is easy) that would always compile the document and
> export it in the desired folder. Then, if you use a well behaved PDF
> viewer such as Evince, each time the file is saved to disk the viewer
> will automatically reload it, meaning that the button will effectively
> act both as 'export' and 'preview'. This way you have to open your PDF
> file only once, and have it regularly updated by LyX.
>
>
>> This is useful for cases where (a) I want to read one
>> of my document without opening LyX or (b) want to quickly send a
>> document to someone quickly and don't want to have to compile it (just
>> in case for one reason or another the compilation is broken).
>>
>> Can anyone suggest either:
>> (1) how to over-ride the "View" function as described above, or
>> (2) how to create a new icon which generates a PDF (appended with
>> draft) which is saved in my working directory and automatically opened
>> for viewing.
>>
> In principle it should be possible to combine the preview and export
> command sequences. For this, check Help > Functions (particularly
> 'command-sequence') and some examples on the mailing list (same
> keyword, and perhaps 'keyboard bindings'). For the commands run in the
> menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
> I haven't tested, but it should be as easy as copy/pasting and
> slightly modifying the items of interest.
>
> Regards
> Liviu
>
<>

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Rainer M Krug
On Fri, Jul 29, 2011 at 10:40 AM, Ken  wrote:

> Ooops.  Now I have messed up my installation.
>
> I copied the stdtoolbar.inc from the installation folder on C:\Program
> Files to the "ui" folder in my LyX2.0 user directory and was playing
> around with it.  But then my toolbar disappeared.  When I tried
> deleting the .inc files from my user ui folder so that the defaults
> would be used, the toolbars seem to have shrunk.  Please see the
> attached screenshot.
>
> I have tried re-installing LyX but this has not helped (as I suspect
> the problem is somewhere in my user directory).  Has anyone come
> across this issue and happen to know where the incorrect setting may
> be?
>

No - but if you assume it is caused by something in the user directory, I
would suggest to rename it and start LyX - a default one should be created.

Cheers,

Rainer

>
> Thanks,
> Ken
>
>
> On 26 July 2011 19:26, Liviu Andronic  wrote:
> > Hello Ken
> >
> > On Tue, Jul 26, 2011 at 8:06 PM, Ken  wrote:
> >> Stephen and Liviu wrote the excellent guide: "LyX Essentials"
> >> (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
> >>
> > Thank you for the kind words.
> >
> >
> >> In it they write: "The View icon is practical for previewing your
> >> final output, but it is generally a good habit to use File ! Export !
> >> PDF (pdflatex) to actually export your final PDF document."
> >>
> >> Why?  Is this so that one has a permanent copy of the PDF in the
> >> relevant folder as opposed to just the PDF placed in the temporary
> >> folder?
> >>
> > Basically, yes.
> >
> >
> >> If that is the reason, then I would agree but often tend to forget to
> >> export my document every time I am done editing it.  In fact I wish
> >>
> > This is true in the beginning, but should get better as you get more
> > familiar with the LyX work-flow.
> >
> >
> >> that I could somehow over-ride the "View" functionality so that the
> >> generated PDF is always placed in the same folder as the .lyx file ---
> >> possibly with the word "draft" appended to it.  In that case I would
> >>
> > I'm not sure that you want this. For one, at each Export instance you
> > will be greated with the 'Overwrite?' dialogue. (I don't know if you
> > can turn it off, but if you do it can be dangerous.)
> >
> >
> >> always have a copy of every document in PDF form compiled to the
> >> latest version.
> >>
> > One way to work around would be to create a custom 'Export to PDF'
> > button (this is easy) that would always compile the document and
> > export it in the desired folder. Then, if you use a well behaved PDF
> > viewer such as Evince, each time the file is saved to disk the viewer
> > will automatically reload it, meaning that the button will effectively
> > act both as 'export' and 'preview'. This way you have to open your PDF
> > file only once, and have it regularly updated by LyX.
> >
> >
> >> This is useful for cases where (a) I want to read one
> >> of my document without opening LyX or (b) want to quickly send a
> >> document to someone quickly and don't want to have to compile it (just
> >> in case for one reason or another the compilation is broken).
> >>
> >> Can anyone suggest either:
> >> (1) how to over-ride the "View" function as described above, or
> >> (2) how to create a new icon which generates a PDF (appended with
> >> draft) which is saved in my working directory and automatically opened
> >> for viewing.
> >>
> > In principle it should be possible to combine the preview and export
> > command sequences. For this, check Help > Functions (particularly
> > 'command-sequence') and some examples on the mailing list (same
> > keyword, and perhaps 'keyboard bindings'). For the commands run in the
> > menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
> > I haven't tested, but it should be as easy as copy/pasting and
> > slightly modifying the items of interest.
> >
> > Regards
> > Liviu
> >
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Ken
Hi Rainer,

That's a good point.  I renamed C:\Documents and
Settings\Ken\Application Data\LyX2.0 to LyX2.0_old and, as you say, a
new one was created on launching LyX.  However the toolbars are still
missing.  So the problem must be elsewhere.

I am logged on a s Limited XP user so I don't know if any changes
would have occurred in the C:\Program Files\LyX20 folder when I was
playing with the user folder.  Where else might I look for the
culprit?

Thanks,
Ken


On 29 July 2011 09:45, Rainer M Krug  wrote:
>
>
> On Fri, Jul 29, 2011 at 10:40 AM, Ken  wrote:
>>
>> Ooops.  Now I have messed up my installation.
>>
>> I copied the stdtoolbar.inc from the installation folder on C:\Program
>> Files to the "ui" folder in my LyX2.0 user directory and was playing
>> around with it.  But then my toolbar disappeared.  When I tried
>> deleting the .inc files from my user ui folder so that the defaults
>> would be used, the toolbars seem to have shrunk.  Please see the
>> attached screenshot.
>>
>> I have tried re-installing LyX but this has not helped (as I suspect
>> the problem is somewhere in my user directory).  Has anyone come
>> across this issue and happen to know where the incorrect setting may
>> be?
>
> No - but if you assume it is caused by something in the user directory, I
> would suggest to rename it and start LyX - a default one should be created.
> Cheers,
> Rainer
>>
>> Thanks,
>> Ken
>>
>>
>> On 26 July 2011 19:26, Liviu Andronic  wrote:
>> > Hello Ken
>> >
>> > On Tue, Jul 26, 2011 at 8:06 PM, Ken  wrote:
>> >> Stephen and Liviu wrote the excellent guide: "LyX Essentials"
>> >> (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
>> >>
>> > Thank you for the kind words.
>> >
>> >
>> >> In it they write: "The View icon is practical for previewing your
>> >> final output, but it is generally a good habit to use File ! Export !
>> >> PDF (pdflatex) to actually export your final PDF document."
>> >>
>> >> Why?  Is this so that one has a permanent copy of the PDF in the
>> >> relevant folder as opposed to just the PDF placed in the temporary
>> >> folder?
>> >>
>> > Basically, yes.
>> >
>> >
>> >> If that is the reason, then I would agree but often tend to forget to
>> >> export my document every time I am done editing it.  In fact I wish
>> >>
>> > This is true in the beginning, but should get better as you get more
>> > familiar with the LyX work-flow.
>> >
>> >
>> >> that I could somehow over-ride the "View" functionality so that the
>> >> generated PDF is always placed in the same folder as the .lyx file ---
>> >> possibly with the word "draft" appended to it.  In that case I would
>> >>
>> > I'm not sure that you want this. For one, at each Export instance you
>> > will be greated with the 'Overwrite?' dialogue. (I don't know if you
>> > can turn it off, but if you do it can be dangerous.)
>> >
>> >
>> >> always have a copy of every document in PDF form compiled to the
>> >> latest version.
>> >>
>> > One way to work around would be to create a custom 'Export to PDF'
>> > button (this is easy) that would always compile the document and
>> > export it in the desired folder. Then, if you use a well behaved PDF
>> > viewer such as Evince, each time the file is saved to disk the viewer
>> > will automatically reload it, meaning that the button will effectively
>> > act both as 'export' and 'preview'. This way you have to open your PDF
>> > file only once, and have it regularly updated by LyX.
>> >
>> >
>> >> This is useful for cases where (a) I want to read one
>> >> of my document without opening LyX or (b) want to quickly send a
>> >> document to someone quickly and don't want to have to compile it (just
>> >> in case for one reason or another the compilation is broken).
>> >>
>> >> Can anyone suggest either:
>> >> (1) how to over-ride the "View" function as described above, or
>> >> (2) how to create a new icon which generates a PDF (appended with
>> >> draft) which is saved in my working directory and automatically opened
>> >> for viewing.
>> >>
>> > In principle it should be possible to combine the preview and export
>> > command sequences. For this, check Help > Functions (particularly
>> > 'command-sequence') and some examples on the mailing list (same
>> > keyword, and perhaps 'keyboard bindings'). For the commands run in the
>> > menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
>> > I haven't tested, but it should be as easy as copy/pasting and
>> > slightly modifying the items of interest.
>> >
>> > Regards
>> > Liviu
>> >
>
>
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
> UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel :       +33 - (0)9 53 10 27 44
> Cell:       +33 - (0)6 85 62 59 98
> Fax (F):       +33 - (0)9 58 10 27 44
>
> Fax (D):    +49 - (0)3 21 21 25 

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Rainer M Krug
On Fri, Jul 29, 2011 at 10:50 AM, Ken  wrote:

> Hi Rainer,
>
> That's a good point.  I renamed C:\Documents and
> Settings\Ken\Application Data\LyX2.0 to LyX2.0_old and, as you say, a
> new one was created on launching LyX.  However the toolbars are still
> missing.  So the problem must be elsewhere.
>

As far as I remember, LyX has system settings and user settings. If you want
to try to reinstall LyX, I would uninstall it, check that the LyX folder is
deleted as well (but keep a copy of your user directory), and reinstal LyX.

Keep in mind, that all this is coming from a Linux user - so there might be
some places, where LyX stores settings as well (registry? unlikely), which I
am not aware of.


> I am logged on a s Limited XP user so I don't know if any changes
> would have occurred in the C:\Program Files\LyX20 folder when I was
> playing with the user folder.  Where else might I look for the
> culprit?
>

No idea apart from my suggestions above.

Cheers,

Rainer

>
> Thanks,
> Ken
>
>
> On 29 July 2011 09:45, Rainer M Krug  wrote:
> >
> >
> > On Fri, Jul 29, 2011 at 10:40 AM, Ken  wrote:
> >>
> >> Ooops.  Now I have messed up my installation.
> >>
> >> I copied the stdtoolbar.inc from the installation folder on C:\Program
> >> Files to the "ui" folder in my LyX2.0 user directory and was playing
> >> around with it.  But then my toolbar disappeared.  When I tried
> >> deleting the .inc files from my user ui folder so that the defaults
> >> would be used, the toolbars seem to have shrunk.  Please see the
> >> attached screenshot.
> >>
> >> I have tried re-installing LyX but this has not helped (as I suspect
> >> the problem is somewhere in my user directory).  Has anyone come
> >> across this issue and happen to know where the incorrect setting may
> >> be?
> >
> > No - but if you assume it is caused by something in the user directory, I
> > would suggest to rename it and start LyX - a default one should be
> created.
> > Cheers,
> > Rainer
> >>
> >> Thanks,
> >> Ken
> >>
> >>
> >> On 26 July 2011 19:26, Liviu Andronic  wrote:
> >> > Hello Ken
> >> >
> >> > On Tue, Jul 26, 2011 at 8:06 PM, Ken  wrote:
> >> >> Stephen and Liviu wrote the excellent guide: "LyX Essentials"
> >> >> (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
> >> >>
> >> > Thank you for the kind words.
> >> >
> >> >
> >> >> In it they write: "The View icon is practical for previewing your
> >> >> final output, but it is generally a good habit to use File ! Export !
> >> >> PDF (pdflatex) to actually export your final PDF document."
> >> >>
> >> >> Why?  Is this so that one has a permanent copy of the PDF in the
> >> >> relevant folder as opposed to just the PDF placed in the temporary
> >> >> folder?
> >> >>
> >> > Basically, yes.
> >> >
> >> >
> >> >> If that is the reason, then I would agree but often tend to forget to
> >> >> export my document every time I am done editing it.  In fact I wish
> >> >>
> >> > This is true in the beginning, but should get better as you get more
> >> > familiar with the LyX work-flow.
> >> >
> >> >
> >> >> that I could somehow over-ride the "View" functionality so that the
> >> >> generated PDF is always placed in the same folder as the .lyx file
> ---
> >> >> possibly with the word "draft" appended to it.  In that case I would
> >> >>
> >> > I'm not sure that you want this. For one, at each Export instance you
> >> > will be greated with the 'Overwrite?' dialogue. (I don't know if you
> >> > can turn it off, but if you do it can be dangerous.)
> >> >
> >> >
> >> >> always have a copy of every document in PDF form compiled to the
> >> >> latest version.
> >> >>
> >> > One way to work around would be to create a custom 'Export to PDF'
> >> > button (this is easy) that would always compile the document and
> >> > export it in the desired folder. Then, if you use a well behaved PDF
> >> > viewer such as Evince, each time the file is saved to disk the viewer
> >> > will automatically reload it, meaning that the button will effectively
> >> > act both as 'export' and 'preview'. This way you have to open your PDF
> >> > file only once, and have it regularly updated by LyX.
> >> >
> >> >
> >> >> This is useful for cases where (a) I want to read one
> >> >> of my document without opening LyX or (b) want to quickly send a
> >> >> document to someone quickly and don't want to have to compile it
> (just
> >> >> in case for one reason or another the compilation is broken).
> >> >>
> >> >> Can anyone suggest either:
> >> >> (1) how to over-ride the "View" function as described above, or
> >> >> (2) how to create a new icon which generates a PDF (appended with
> >> >> draft) which is saved in my working directory and automatically
> opened
> >> >> for viewing.
> >> >>
> >> > In principle it should be possible to combine the preview and export
> >> > command sequences. For this, check Help > 

Re: LyX Essentials / View PDF / Export PDF

2011-07-29 Thread Liviu Andronic
On Fri, Jul 29, 2011 at 10:40 AM, Ken  wrote:
> Ooops.  Now I have messed up my installation.
>
Sorry for that.

> I copied the stdtoolbar.inc from the installation folder on C:\Program
> Files to the "ui" folder in my LyX2.0 user directory and was playing
> around with it.  But then my toolbar disappeared.  When I tried
> deleting the .inc files from my user ui folder so that the defaults
> would be used, the toolbars seem to have shrunk.  Please see the
> attached screenshot.
>
> I have tried re-installing LyX but this has not helped (as I suspect
> the problem is somewhere in my user directory).  Has anyone come
> across this issue and happen to know where the incorrect setting may
> be?
>
Follow Rainer's advice, and if that fails, start a new thread on this
list. Also go to View > Toolbars and try hiding/showing them.

Thinking more about your original enquiry, it could be as simple as
the following: define a
command-sequence buffer-view pdf2 ; buffer-export pdf2 ;

command in Tools > Options > Editing > Shortcuts. It seems to work here.
Liviu


LyX Essentials / View PDF / Export PDF

2011-07-26 Thread Ken
Stephen and Liviu wrote the excellent guide: LyX Essentials
(sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

In it they write: The View icon is practical for previewing your
final output, but it is generally a good habit to use File ! Export !
PDF (pdflatex) to actually export your final PDF document.

Why?  Is this so that one has a permanent copy of the PDF in the
relevant folder as opposed to just the PDF placed in the temporary
folder?

If that is the reason, then I would agree but often tend to forget to
export my document every time I am done editing it.  In fact I wish
that I could somehow over-ride the View functionality so that the
generated PDF is always placed in the same folder as the .lyx file ---
possibly with the word draft appended to it.  In that case I would
always have a copy of every document in PDF form compiled to the
latest version.  This is useful for cases where (a) I want to read one
of my document without opening LyX or (b) want to quickly send a
document to someone quickly and don't want to have to compile it (just
in case for one reason or another the compilation is broken).

Can anyone suggest either:
(1) how to over-ride the View function as described above, or
(2) how to create a new icon which generates a PDF (appended with
draft) which is saved in my working directory and automatically opened
for viewing.

Thanks,
Ken


Re: LyX Essentials / View PDF / Export PDF

2011-07-26 Thread Liviu Andronic
Hello Ken

On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
 Stephen and Liviu wrote the excellent guide: LyX Essentials
 (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

Thank you for the kind words.


 In it they write: The View icon is practical for previewing your
 final output, but it is generally a good habit to use File ! Export !
 PDF (pdflatex) to actually export your final PDF document.

 Why?  Is this so that one has a permanent copy of the PDF in the
 relevant folder as opposed to just the PDF placed in the temporary
 folder?

Basically, yes.


 If that is the reason, then I would agree but often tend to forget to
 export my document every time I am done editing it.  In fact I wish

This is true in the beginning, but should get better as you get more
familiar with the LyX work-flow.


 that I could somehow over-ride the View functionality so that the
 generated PDF is always placed in the same folder as the .lyx file ---
 possibly with the word draft appended to it.  In that case I would

I'm not sure that you want this. For one, at each Export instance you
will be greated with the 'Overwrite?' dialogue. (I don't know if you
can turn it off, but if you do it can be dangerous.)


 always have a copy of every document in PDF form compiled to the
 latest version.

One way to work around would be to create a custom 'Export to PDF'
button (this is easy) that would always compile the document and
export it in the desired folder. Then, if you use a well behaved PDF
viewer such as Evince, each time the file is saved to disk the viewer
will automatically reload it, meaning that the button will effectively
act both as 'export' and 'preview'. This way you have to open your PDF
file only once, and have it regularly updated by LyX.


 This is useful for cases where (a) I want to read one
 of my document without opening LyX or (b) want to quickly send a
 document to someone quickly and don't want to have to compile it (just
 in case for one reason or another the compilation is broken).

 Can anyone suggest either:
 (1) how to over-ride the View function as described above, or
 (2) how to create a new icon which generates a PDF (appended with
 draft) which is saved in my working directory and automatically opened
 for viewing.

In principle it should be possible to combine the preview and export
command sequences. For this, check Help  Functions (particularly
'command-sequence') and some examples on the mailing list (same
keyword, and perhaps 'keyboard bindings'). For the commands run in the
menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
I haven't tested, but it should be as easy as copy/pasting and
slightly modifying the items of interest.

Regards
Liviu


LyX Essentials / View PDF / Export PDF

2011-07-26 Thread Ken
Stephen and Liviu wrote the excellent guide: LyX Essentials
(sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

In it they write: The View icon is practical for previewing your
final output, but it is generally a good habit to use File ! Export !
PDF (pdflatex) to actually export your final PDF document.

Why?  Is this so that one has a permanent copy of the PDF in the
relevant folder as opposed to just the PDF placed in the temporary
folder?

If that is the reason, then I would agree but often tend to forget to
export my document every time I am done editing it.  In fact I wish
that I could somehow over-ride the View functionality so that the
generated PDF is always placed in the same folder as the .lyx file ---
possibly with the word draft appended to it.  In that case I would
always have a copy of every document in PDF form compiled to the
latest version.  This is useful for cases where (a) I want to read one
of my document without opening LyX or (b) want to quickly send a
document to someone quickly and don't want to have to compile it (just
in case for one reason or another the compilation is broken).

Can anyone suggest either:
(1) how to over-ride the View function as described above, or
(2) how to create a new icon which generates a PDF (appended with
draft) which is saved in my working directory and automatically opened
for viewing.

Thanks,
Ken


Re: LyX Essentials / View PDF / Export PDF

2011-07-26 Thread Liviu Andronic
Hello Ken

On Tue, Jul 26, 2011 at 8:06 PM, Ken kmai...@gmail.com wrote:
 Stephen and Liviu wrote the excellent guide: LyX Essentials
 (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

Thank you for the kind words.


 In it they write: The View icon is practical for previewing your
 final output, but it is generally a good habit to use File ! Export !
 PDF (pdflatex) to actually export your final PDF document.

 Why?  Is this so that one has a permanent copy of the PDF in the
 relevant folder as opposed to just the PDF placed in the temporary
 folder?

Basically, yes.


 If that is the reason, then I would agree but often tend to forget to
 export my document every time I am done editing it.  In fact I wish

This is true in the beginning, but should get better as you get more
familiar with the LyX work-flow.


 that I could somehow over-ride the View functionality so that the
 generated PDF is always placed in the same folder as the .lyx file ---
 possibly with the word draft appended to it.  In that case I would

I'm not sure that you want this. For one, at each Export instance you
will be greated with the 'Overwrite?' dialogue. (I don't know if you
can turn it off, but if you do it can be dangerous.)


 always have a copy of every document in PDF form compiled to the
 latest version.

One way to work around would be to create a custom 'Export to PDF'
button (this is easy) that would always compile the document and
export it in the desired folder. Then, if you use a well behaved PDF
viewer such as Evince, each time the file is saved to disk the viewer
will automatically reload it, meaning that the button will effectively
act both as 'export' and 'preview'. This way you have to open your PDF
file only once, and have it regularly updated by LyX.


 This is useful for cases where (a) I want to read one
 of my document without opening LyX or (b) want to quickly send a
 document to someone quickly and don't want to have to compile it (just
 in case for one reason or another the compilation is broken).

 Can anyone suggest either:
 (1) how to over-ride the View function as described above, or
 (2) how to create a new icon which generates a PDF (appended with
 draft) which is saved in my working directory and automatically opened
 for viewing.

In principle it should be possible to combine the preview and export
command sequences. For this, check Help  Functions (particularly
'command-sequence') and some examples on the mailing list (same
keyword, and perhaps 'keyboard bindings'). For the commands run in the
menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
I haven't tested, but it should be as easy as copy/pasting and
slightly modifying the items of interest.

Regards
Liviu


LyX Essentials / View PDF / Export PDF

2011-07-26 Thread Ken
Stephen and Liviu wrote the excellent guide: "LyX Essentials"
(sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)

In it they write: "The View icon is practical for previewing your
final output, but it is generally a good habit to use File ! Export !
PDF (pdflatex) to actually export your final PDF document."

Why?  Is this so that one has a permanent copy of the PDF in the
relevant folder as opposed to just the PDF placed in the temporary
folder?

If that is the reason, then I would agree but often tend to forget to
export my document every time I am done editing it.  In fact I wish
that I could somehow over-ride the "View" functionality so that the
generated PDF is always placed in the same folder as the .lyx file ---
possibly with the word "draft" appended to it.  In that case I would
always have a copy of every document in PDF form compiled to the
latest version.  This is useful for cases where (a) I want to read one
of my document without opening LyX or (b) want to quickly send a
document to someone quickly and don't want to have to compile it (just
in case for one reason or another the compilation is broken).

Can anyone suggest either:
(1) how to over-ride the "View" function as described above, or
(2) how to create a new icon which generates a PDF (appended with
draft) which is saved in my working directory and automatically opened
for viewing.

Thanks,
Ken


Re: LyX Essentials / View PDF / Export PDF

2011-07-26 Thread Liviu Andronic
Hello Ken

On Tue, Jul 26, 2011 at 8:06 PM, Ken  wrote:
> Stephen and Liviu wrote the excellent guide: "LyX Essentials"
> (sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf)
>
Thank you for the kind words.


> In it they write: "The View icon is practical for previewing your
> final output, but it is generally a good habit to use File ! Export !
> PDF (pdflatex) to actually export your final PDF document."
>
> Why?  Is this so that one has a permanent copy of the PDF in the
> relevant folder as opposed to just the PDF placed in the temporary
> folder?
>
Basically, yes.


> If that is the reason, then I would agree but often tend to forget to
> export my document every time I am done editing it.  In fact I wish
>
This is true in the beginning, but should get better as you get more
familiar with the LyX work-flow.


> that I could somehow over-ride the "View" functionality so that the
> generated PDF is always placed in the same folder as the .lyx file ---
> possibly with the word "draft" appended to it.  In that case I would
>
I'm not sure that you want this. For one, at each Export instance you
will be greated with the 'Overwrite?' dialogue. (I don't know if you
can turn it off, but if you do it can be dangerous.)


> always have a copy of every document in PDF form compiled to the
> latest version.
>
One way to work around would be to create a custom 'Export to PDF'
button (this is easy) that would always compile the document and
export it in the desired folder. Then, if you use a well behaved PDF
viewer such as Evince, each time the file is saved to disk the viewer
will automatically reload it, meaning that the button will effectively
act both as 'export' and 'preview'. This way you have to open your PDF
file only once, and have it regularly updated by LyX.


> This is useful for cases where (a) I want to read one
> of my document without opening LyX or (b) want to quickly send a
> document to someone quickly and don't want to have to compile it (just
> in case for one reason or another the compilation is broken).
>
> Can anyone suggest either:
> (1) how to over-ride the "View" function as described above, or
> (2) how to create a new icon which generates a PDF (appended with
> draft) which is saved in my working directory and automatically opened
> for viewing.
>
In principle it should be possible to combine the preview and export
command sequences. For this, check Help > Functions (particularly
'command-sequence') and some examples on the mailing list (same
keyword, and perhaps 'keyboard bindings'). For the commands run in the
menus and on the toolbar inspect 'stdmenus.inc' and 'stdtoolbars.inc'.
I haven't tested, but it should be as easy as copy/pasting and
slightly modifying the items of interest.

Regards
Liviu