Reverse search problem (with pipe?) [Windows 7, LyX 2.0.5, SumatraPDF]

2013-02-06 Thread Matthias Hunstig
Hello,

I am trying to setup reverse search under Windows 7 using LyX 2.0.5 and 
SumatraPDF. I followed the instructions in http://wiki.lyx.org/LyX/SyncTeX and 
I think I am almost there.

But this line in lyxeditor.cmd gives an error whenever I double-click on the 
text in SumatraPDF:
%comspec% /q /c (@echo LYXCMD:revdvi:server-goto-file-row:%file% %row%) 
\\.\pipe\lyxpipe.intype \\.\pipe\lyxpipe.outfile:///\\.\pipe\lyxpipe.out
The error is Das System kann die angegebene Datei nicht finden (The system 
cannot find the file specified.)

Does anyone have an idea what I could do to get this last step working? 
Unfortunately I don't.

Regards and thanks in advance,

Matthias


Re: Endnote number size/position

2013-02-06 Thread Maria Gouskova
Nope, this still doesn't work--I get the following error (ps2pdf):

LaTeX Error: \makeenmark undefined.

\renewcommand\makeenmark {\theenmark. }

Try typing return to proceed.
If that doesn't work, type X return to quit.




On Fri, Jan 18, 2013 at 6:48 PM, Julien Rioux jri...@lyx.org wrote:
 On 16/12/2012 4:48 PM, Maria Gouskova wrote:

 On Wed, Nov 14, 2012 at 2:03 PM, Richard Heck rgh...@lyx.org wrote:

 On 10/22/2012 04:19 PM, Maria Gouskova wrote:


 Thanks, Richard--example file attached! It works when everything in
 the preamble is commented out, but the endnote numbers appear as
 superscripts in the Notes section (which is not what I want; I need
 them to be on the main line in normal size, followed by periods and
 then the note text).


 The right command to change is: \@makeenmark, with the @.


 (Sorry about the late response!)

 I replaced the preamble line

 \renewcommand\makeenmark{\theenmark. }

 with

 \renewcommand\@makeenmark{\theenmark. }

 and the result is an Undefined control sequence error:

   \footnote{
 A footnote/endnote A footnote/endnote A footnote/endnote A
 fo...
 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 misspelled it (e.g., `\hobx'), type `I' and the correct
 spelling (e.g., `I\hbox'). Otherwise just continue,
 and I'll forget about whatever was undefined.


 Maria



 The attached seems to work for me. Is this what you are after?

 Regards,
 Julien


Problems with Windows installation [solved]

2013-02-06 Thread Les Denham
Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

To investigate how LyX works on Windows so I could give him advice I
borrowed the only computer in the house with Windows, my wife's
netbook, which dual boots Windows 7 and Linux Mint.

I downloaded the bundle, LyX-2.0.5.1-Bundle-4.exe, and installed it in
Windows 7. I found I had exactly the same problems my friend was
reporting.

To investigate what was happening, I tried to export LaTeX(pdflatex),
using the splash file (examples/splash.lyx) as a test case. It exported
what looked like a perfectly good LaTeX file. I looked around for a way
of testing this file, and found TeXworks, which comes with MikTeX. It
generated a perfect PDF file with no errors.

So I went back to LyX, opened the Messages box to watch where the error
occurred, and tried to export a PDF(pdflatex) file. It worked without
any errors.

So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.

So I suggested to my friend that he try exporting a LaTeX file,
typesetting it using TeXworks, then trying again with LyX. Sure enough,
after using TeXworks to generate one PDF file, LyX can create PDF files
normally.

I have to conclude that the MikTeX installer does not finalize the
installation, but leaves something undone. This missing configuration
is then completed the first time TeXworks is used. Perhaps someone more
familiar with MikTeX could explain this.

Les


Re: Problems with Windows installation [solved]

2013-02-06 Thread EK

  
  
You might try to install TexLive independently, and then install Lyx
(using the non-bundle installer), directing it to the TexLive TeX
engine.
This is how I do it on my XP machine.
Ehud Kaplan

On 02/06/2013 10:49 AM, Les Denham
  wrote:


  Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

To investigate how LyX works on Windows so I could give him advice I
borrowed the only computer in the house with Windows, my wife's
netbook, which dual boots Windows 7 and Linux Mint.

I downloaded the bundle, LyX-2.0.5.1-Bundle-4.exe, and installed it in
Windows 7. I found I had exactly the same problems my friend was
reporting.

To investigate what was happening, I tried to export LaTeX(pdflatex),
using the splash file (examples/splash.lyx) as a test case. It exported
what looked like a perfectly good LaTeX file. I looked around for a way
of testing this file, and found TeXworks, which comes with MikTeX. It
generated a perfect PDF file with no errors.

So I went back to LyX, opened the Messages box to watch where the error
occurred, and tried to export a PDF(pdflatex) file. It worked without
any errors.

So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.

So I suggested to my friend that he try exporting a LaTeX file,
typesetting it using TeXworks, then trying again with LyX. Sure enough,
after using TeXworks to generate one PDF file, LyX can create PDF files
normally.

I have to conclude that the MikTeX installer does not finalize the
installation, but leaves something undone. This missing configuration
is then completed the first time TeXworks is used. Perhaps someone more
familiar with MikTeX could explain this.

Les



-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual  Computational
  Neuroscience
  Director, Center for Excellence in Computational 
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural 
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: husort

2013-02-06 Thread Jürgen Spitzmüller
2013/2/6 Dr. Gyorgy Pota:
 I use husort.pl, a perl program for making index according to the Hungarian
 alphabet. In Lyx I write this command to the place that opens with
 Output/Latex/Custom. When I  use the program with the makeindex parameters
 -c -q then it works but does not differentiate between the accented letters
 and their normal counterparts, that is members of the pairs a, á; e, é; u, ü
 etc. are the same. However, the program is allowed to run with the
 parameters --sort-hu -a as well, which, in principle give the full solution
 to the accented letter problem. In Lyx the program runs with these
 parameters but without making any index. Would you help me, please?

I don't know this script, but if it is run _instead_ of makeindex, I
would place the command at
Tools  Preferences  Output  LaTeX (set the Index Processor to
Custom and add the command below).

Another option for correct Hungarian sorting might be xindy, which is
very good at sorting in different languages.

HTH
Jürgen


Re: Problems with Windows installation [solved]

2013-02-06 Thread Stephen George

Hi Les,


On 7/02/2013 2:49 AM, Les Denham wrote:

Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

Had a similar problem myself just recently.
Had an installation of MikTex/Lyx on my Win7 computer at work.
Had
Lyx 2.0.3-1
MikTex 2.9.4407 (from March last year)

Worked fine in converting my Lyx documents into pdf's

Upgraded both MikTex and Lyx
Lyx 2.0.5.1
MikTex -  updated packages only (something I hadn't done in a while)

Now I could not create pdf's
Seemed to be getting errors that some packages where not installed - but 
everything was working before?

I re-checked that the packages were up to date in MikTex.
Then I checked the settings on MikTex, and I had the setting
Install-Missing-packages-on-fly set for YES

But still I could not generate pdf's, .. recheck Lyx function 
Tools-Reconfigure

   restart Lyx app - no pdf's
   restart PC - no pdf's


So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.


Dont know why but I changed MikTex setting
Install-Missing-packages-on-fly set to ASK-ME-FIRST

Next time I tried to generate a pdf, dialogs boxes started popping up 
asking if to install package, . of course I answered yes.

I guess there was about 5~10 packages installed, then my pdf came out.

Can generate all my lyx files on that PC now.

I am left to speculate what happened, and why automatic and prompted 
updates on fly behaved differently. My only thought was being a work PC 
they have security policies that may have somehow interfered.
Also why did I all of a sudden I need new packages without changing 
anything in my Lyx files, was that because of new dependencies during 
the MikTex update or did the new version of Lyx require the new packages?


Since you found a different work around for what seemed like a similar 
problem (not downloading missing packages properly), I thought I share 
my experience.


Steve


Re: Endnote number size/position

2013-02-06 Thread Julien Rioux
On Wed, Feb 6, 2013 at 8:38 AM, Maria Gouskova gousk...@gmail.com wrote:
 Nope, this still doesn't work--I get the following error (ps2pdf):

 LaTeX Error: \makeenmark undefined.

 \renewcommand\makeenmark {\theenmark. }

 Try typing return to proceed.
 If that doesn't work, type X return to quit.

Works perfectly here, see attached pdf (I removed the \newline to fit
everything on one page). \makeenmark is defined when loading
\usepackage{endnotes}---if it's missing, I can think only of a
mismatch in package version---but \makeenmark is mentioned in the
endnotes documentation, in the changelog entry for 12 January 2003!

Good luck figuring this out!
Regards,
Julien


aendnote_test_file-1.pdf
Description: Adobe PDF document


Re: Figure numbers change tracking

2013-02-06 Thread Scott Kostyshak
On Tue, Feb 5, 2013 at 8:46 AM, EK ehud.kap...@gmail.com wrote:
 Here is a SmallWorkingExample, which illustrates both issues.
 Here the reference to the figure appears as Figure  (no number).

 Ehud Kaplan

Hi Ehud,

Thank you for your example file. However, it is not a working example
file for the following reasons:
1. It does not compile.
2. You did not include your bibtex file. If it's not necessary to
reproduce the problem, then consider not making it a dependency by
including references in your MWE .lyx file.
3. Even if you did include your bibtex file, the path to it is
specific to your computer.
4. You did not include the file p-trode-w-dimensions. Further, because
this file has no name, I have no idea what time of graphic it is. And
thus I have no idea what converter is being called.
5. The path to the picture is not relative.

An MWE (or a SWE) should be compilable out of the box.

You probably didn't send the picture because you didn't want to
increase the size of everyone's inboxes and I appreciate that. But
it's very nice to have an MWE. I wish we had a way where you could
upload your files somewhere and then link to them because not everyone
has access to such a service themselves. Also, you could have used a
1kb picture, or no picture at all, to show the problem.

Regarding your potential bug number 1, I think I see what you are
talking about. Here is the PDF that is produced for me on the
development version of LyX:
https://www.dropbox.com/s/e5rpv153nue0lg0/MWE.pdf
There is no number at all in the reference to the figure. It should be
figure 1 and yet nothing shows up.

Regarding point 2, I didn't try to reproduce this as I have no idea
what converter is being called and I'm not sure if by any change to
the figure you mean a change to the file itself, a change to the
properties of the figure, a change to the caption, or maybe all of the
above. Please specify just one action in the steps you give to
reproduce the behavior you found. You can then note that any of
several actions could also be used for that step.

I hope I'm not coming across as upset. I'm not at all. I think that it
takes time to learn how to write a good MWE. I also think that we are
missing documentation on how to make an MWE specifically in the
context of LyX. A search for MWE at wiki.lyx.org gives nothing. This
is something I would like to work on documenting. Let me know if you
have any suggestions for me.

My guess is that these are LyX bugs. If you are able and willing to
make MWE(s) (either one that shows both problems, or two separate
ones), it would be great if you could open separate bug reports on
www.lyx.org/trac. Please attach any relevant files to each bug report.

Best,

Scott


configuring latex2rtf with LyX 2

2013-02-06 Thread Justin Wood
Hi all. I've read the instructions for using latex2rtf with LyX here
http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf, but can't
get it to work. This is on v2.0.4 on a Win7 box (but I also have an OS X
setup). I've installed latex2rtf as the Win exe and to get around the white
space issue I've made a junction from d:\utils\latex2rtf -- c:\Program Files
(x86)\latex2rtf. I believe this is working correctly as it's picked up in
the configuration log:
INFO: checking for a LaTeX - RTF converter...
INFO: +checking for latex2rtf...  no
INFO: +checking for latex2rt...  yes
DEBUG: Add to RC:
\converter latex  rtflatex2rt -p -S -o $$o $$ineedaux

But nothing I've tried has made the RTF option appear in the File - Export
menu, or View. I'm pretty hazy on what actually governs that in general to
be honest, as many options in Preferences are 'enabled' but do not appear
in the list. I read in the latex2rtf manual that the tmp aux files need to
exist, so I tried running View - PDF (XeTeX) but no joy.

Could the problem be that I'm using XeTeX rather than default LaTeX? Thanks!


~:Justin Wood:~
PhD candidate, *School of **Engineering**  **Information Technology*, Murdoch
University http://www.murdoch.edu.au/


Reverse search problem (with pipe?) [Windows 7, LyX 2.0.5, SumatraPDF]

2013-02-06 Thread Matthias Hunstig
Hello,

I am trying to setup reverse search under Windows 7 using LyX 2.0.5 and 
SumatraPDF. I followed the instructions in http://wiki.lyx.org/LyX/SyncTeX and 
I think I am almost there.

But this line in lyxeditor.cmd gives an error whenever I double-click on the 
text in SumatraPDF:
%comspec% /q /c (@echo LYXCMD:revdvi:server-goto-file-row:%file% %row%) 
\\.\pipe\lyxpipe.intype \\.\pipe\lyxpipe.outfile:///\\.\pipe\lyxpipe.out
The error is Das System kann die angegebene Datei nicht finden (The system 
cannot find the file specified.)

Does anyone have an idea what I could do to get this last step working? 
Unfortunately I don't.

Regards and thanks in advance,

Matthias


Re: Endnote number size/position

2013-02-06 Thread Maria Gouskova
Nope, this still doesn't work--I get the following error (ps2pdf):

LaTeX Error: \makeenmark undefined.

\renewcommand\makeenmark {\theenmark. }

Try typing return to proceed.
If that doesn't work, type X return to quit.




On Fri, Jan 18, 2013 at 6:48 PM, Julien Rioux jri...@lyx.org wrote:
 On 16/12/2012 4:48 PM, Maria Gouskova wrote:

 On Wed, Nov 14, 2012 at 2:03 PM, Richard Heck rgh...@lyx.org wrote:

 On 10/22/2012 04:19 PM, Maria Gouskova wrote:


 Thanks, Richard--example file attached! It works when everything in
 the preamble is commented out, but the endnote numbers appear as
 superscripts in the Notes section (which is not what I want; I need
 them to be on the main line in normal size, followed by periods and
 then the note text).


 The right command to change is: \@makeenmark, with the @.


 (Sorry about the late response!)

 I replaced the preamble line

 \renewcommand\makeenmark{\theenmark. }

 with

 \renewcommand\@makeenmark{\theenmark. }

 and the result is an Undefined control sequence error:

   \footnote{
 A footnote/endnote A footnote/endnote A footnote/endnote A
 fo...
 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 misspelled it (e.g., `\hobx'), type `I' and the correct
 spelling (e.g., `I\hbox'). Otherwise just continue,
 and I'll forget about whatever was undefined.


 Maria



 The attached seems to work for me. Is this what you are after?

 Regards,
 Julien


Problems with Windows installation [solved]

2013-02-06 Thread Les Denham
Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

To investigate how LyX works on Windows so I could give him advice I
borrowed the only computer in the house with Windows, my wife's
netbook, which dual boots Windows 7 and Linux Mint.

I downloaded the bundle, LyX-2.0.5.1-Bundle-4.exe, and installed it in
Windows 7. I found I had exactly the same problems my friend was
reporting.

To investigate what was happening, I tried to export LaTeX(pdflatex),
using the splash file (examples/splash.lyx) as a test case. It exported
what looked like a perfectly good LaTeX file. I looked around for a way
of testing this file, and found TeXworks, which comes with MikTeX. It
generated a perfect PDF file with no errors.

So I went back to LyX, opened the Messages box to watch where the error
occurred, and tried to export a PDF(pdflatex) file. It worked without
any errors.

So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.

So I suggested to my friend that he try exporting a LaTeX file,
typesetting it using TeXworks, then trying again with LyX. Sure enough,
after using TeXworks to generate one PDF file, LyX can create PDF files
normally.

I have to conclude that the MikTeX installer does not finalize the
installation, but leaves something undone. This missing configuration
is then completed the first time TeXworks is used. Perhaps someone more
familiar with MikTeX could explain this.

Les


Re: Problems with Windows installation [solved]

2013-02-06 Thread EK

  
  
You might try to install TexLive independently, and then install Lyx
(using the non-bundle installer), directing it to the TexLive TeX
engine.
This is how I do it on my XP machine.
Ehud Kaplan

On 02/06/2013 10:49 AM, Les Denham
  wrote:


  Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

To investigate how LyX works on Windows so I could give him advice I
borrowed the only computer in the house with Windows, my wife's
netbook, which dual boots Windows 7 and Linux Mint.

I downloaded the bundle, LyX-2.0.5.1-Bundle-4.exe, and installed it in
Windows 7. I found I had exactly the same problems my friend was
reporting.

To investigate what was happening, I tried to export LaTeX(pdflatex),
using the splash file (examples/splash.lyx) as a test case. It exported
what looked like a perfectly good LaTeX file. I looked around for a way
of testing this file, and found TeXworks, which comes with MikTeX. It
generated a perfect PDF file with no errors.

So I went back to LyX, opened the Messages box to watch where the error
occurred, and tried to export a PDF(pdflatex) file. It worked without
any errors.

So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.

So I suggested to my friend that he try exporting a LaTeX file,
typesetting it using TeXworks, then trying again with LyX. Sure enough,
after using TeXworks to generate one PDF file, LyX can create PDF files
normally.

I have to conclude that the MikTeX installer does not finalize the
installation, but leaves something undone. This missing configuration
is then completed the first time TeXworks is used. Perhaps someone more
familiar with MikTeX could explain this.

Les



-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual  Computational
  Neuroscience
  Director, Center for Excellence in Computational 
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural 
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: husort

2013-02-06 Thread Jürgen Spitzmüller
2013/2/6 Dr. Gyorgy Pota:
 I use husort.pl, a perl program for making index according to the Hungarian
 alphabet. In Lyx I write this command to the place that opens with
 Output/Latex/Custom. When I  use the program with the makeindex parameters
 -c -q then it works but does not differentiate between the accented letters
 and their normal counterparts, that is members of the pairs a, á; e, é; u, ü
 etc. are the same. However, the program is allowed to run with the
 parameters --sort-hu -a as well, which, in principle give the full solution
 to the accented letter problem. In Lyx the program runs with these
 parameters but without making any index. Would you help me, please?

I don't know this script, but if it is run _instead_ of makeindex, I
would place the command at
Tools  Preferences  Output  LaTeX (set the Index Processor to
Custom and add the command below).

Another option for correct Hungarian sorting might be xindy, which is
very good at sorting in different languages.

HTH
Jürgen


Re: Problems with Windows installation [solved]

2013-02-06 Thread Stephen George

Hi Les,


On 7/02/2013 2:49 AM, Les Denham wrote:

Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

Had a similar problem myself just recently.
Had an installation of MikTex/Lyx on my Win7 computer at work.
Had
Lyx 2.0.3-1
MikTex 2.9.4407 (from March last year)

Worked fine in converting my Lyx documents into pdf's

Upgraded both MikTex and Lyx
Lyx 2.0.5.1
MikTex -  updated packages only (something I hadn't done in a while)

Now I could not create pdf's
Seemed to be getting errors that some packages where not installed - but 
everything was working before?

I re-checked that the packages were up to date in MikTex.
Then I checked the settings on MikTex, and I had the setting
Install-Missing-packages-on-fly set for YES

But still I could not generate pdf's, .. recheck Lyx function 
Tools-Reconfigure

   restart Lyx app - no pdf's
   restart PC - no pdf's


So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.


Dont know why but I changed MikTex setting
Install-Missing-packages-on-fly set to ASK-ME-FIRST

Next time I tried to generate a pdf, dialogs boxes started popping up 
asking if to install package, . of course I answered yes.

I guess there was about 5~10 packages installed, then my pdf came out.

Can generate all my lyx files on that PC now.

I am left to speculate what happened, and why automatic and prompted 
updates on fly behaved differently. My only thought was being a work PC 
they have security policies that may have somehow interfered.
Also why did I all of a sudden I need new packages without changing 
anything in my Lyx files, was that because of new dependencies during 
the MikTex update or did the new version of Lyx require the new packages?


Since you found a different work around for what seemed like a similar 
problem (not downloading missing packages properly), I thought I share 
my experience.


Steve


Re: Endnote number size/position

2013-02-06 Thread Julien Rioux
On Wed, Feb 6, 2013 at 8:38 AM, Maria Gouskova gousk...@gmail.com wrote:
 Nope, this still doesn't work--I get the following error (ps2pdf):

 LaTeX Error: \makeenmark undefined.

 \renewcommand\makeenmark {\theenmark. }

 Try typing return to proceed.
 If that doesn't work, type X return to quit.

Works perfectly here, see attached pdf (I removed the \newline to fit
everything on one page). \makeenmark is defined when loading
\usepackage{endnotes}---if it's missing, I can think only of a
mismatch in package version---but \makeenmark is mentioned in the
endnotes documentation, in the changelog entry for 12 January 2003!

Good luck figuring this out!
Regards,
Julien


aendnote_test_file-1.pdf
Description: Adobe PDF document


Re: Figure numbers change tracking

2013-02-06 Thread Scott Kostyshak
On Tue, Feb 5, 2013 at 8:46 AM, EK ehud.kap...@gmail.com wrote:
 Here is a SmallWorkingExample, which illustrates both issues.
 Here the reference to the figure appears as Figure  (no number).

 Ehud Kaplan

Hi Ehud,

Thank you for your example file. However, it is not a working example
file for the following reasons:
1. It does not compile.
2. You did not include your bibtex file. If it's not necessary to
reproduce the problem, then consider not making it a dependency by
including references in your MWE .lyx file.
3. Even if you did include your bibtex file, the path to it is
specific to your computer.
4. You did not include the file p-trode-w-dimensions. Further, because
this file has no name, I have no idea what time of graphic it is. And
thus I have no idea what converter is being called.
5. The path to the picture is not relative.

An MWE (or a SWE) should be compilable out of the box.

You probably didn't send the picture because you didn't want to
increase the size of everyone's inboxes and I appreciate that. But
it's very nice to have an MWE. I wish we had a way where you could
upload your files somewhere and then link to them because not everyone
has access to such a service themselves. Also, you could have used a
1kb picture, or no picture at all, to show the problem.

Regarding your potential bug number 1, I think I see what you are
talking about. Here is the PDF that is produced for me on the
development version of LyX:
https://www.dropbox.com/s/e5rpv153nue0lg0/MWE.pdf
There is no number at all in the reference to the figure. It should be
figure 1 and yet nothing shows up.

Regarding point 2, I didn't try to reproduce this as I have no idea
what converter is being called and I'm not sure if by any change to
the figure you mean a change to the file itself, a change to the
properties of the figure, a change to the caption, or maybe all of the
above. Please specify just one action in the steps you give to
reproduce the behavior you found. You can then note that any of
several actions could also be used for that step.

I hope I'm not coming across as upset. I'm not at all. I think that it
takes time to learn how to write a good MWE. I also think that we are
missing documentation on how to make an MWE specifically in the
context of LyX. A search for MWE at wiki.lyx.org gives nothing. This
is something I would like to work on documenting. Let me know if you
have any suggestions for me.

My guess is that these are LyX bugs. If you are able and willing to
make MWE(s) (either one that shows both problems, or two separate
ones), it would be great if you could open separate bug reports on
www.lyx.org/trac. Please attach any relevant files to each bug report.

Best,

Scott


configuring latex2rtf with LyX 2

2013-02-06 Thread Justin Wood
Hi all. I've read the instructions for using latex2rtf with LyX here
http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf, but can't
get it to work. This is on v2.0.4 on a Win7 box (but I also have an OS X
setup). I've installed latex2rtf as the Win exe and to get around the white
space issue I've made a junction from d:\utils\latex2rtf -- c:\Program Files
(x86)\latex2rtf. I believe this is working correctly as it's picked up in
the configuration log:
INFO: checking for a LaTeX - RTF converter...
INFO: +checking for latex2rtf...  no
INFO: +checking for latex2rt...  yes
DEBUG: Add to RC:
\converter latex  rtflatex2rt -p -S -o $$o $$ineedaux

But nothing I've tried has made the RTF option appear in the File - Export
menu, or View. I'm pretty hazy on what actually governs that in general to
be honest, as many options in Preferences are 'enabled' but do not appear
in the list. I read in the latex2rtf manual that the tmp aux files need to
exist, so I tried running View - PDF (XeTeX) but no joy.

Could the problem be that I'm using XeTeX rather than default LaTeX? Thanks!


~:Justin Wood:~
PhD candidate, *School of **Engineering**  **Information Technology*, Murdoch
University http://www.murdoch.edu.au/


Reverse search problem (with pipe?) [Windows 7, LyX 2.0.5, SumatraPDF]

2013-02-06 Thread Matthias Hunstig
Hello,

I am trying to setup reverse search under Windows 7 using LyX 2.0.5 and 
SumatraPDF. I followed the instructions in http://wiki.lyx.org/LyX/SyncTeX and 
I think I am almost there.

But this line in lyxeditor.cmd gives an error whenever I double-click on the 
text in SumatraPDF:
%comspec% /q /c (@echo LYXCMD:revdvi:server-goto-file-row:%file% %row%)> 
\\.\pipe\lyxpipe.in& \\.\pipe\lyxpipe.out
The error is "Das System kann die angegebene Datei nicht finden" (The system 
cannot find the file specified.)

Does anyone have an idea what I could do to get this last step working? 
Unfortunately I don't.

Regards and thanks in advance,

Matthias


Re: Endnote number size/position

2013-02-06 Thread Maria Gouskova
Nope, this still doesn't work--I get the following error (ps2pdf):

LaTeX Error: \makeenmark undefined.

\renewcommand\makeenmark {\theenmark. }

Try typing  to proceed.
If that doesn't work, type X  to quit.




On Fri, Jan 18, 2013 at 6:48 PM, Julien Rioux  wrote:
> On 16/12/2012 4:48 PM, Maria Gouskova wrote:
>>
>> On Wed, Nov 14, 2012 at 2:03 PM, Richard Heck  wrote:
>>>
>>> On 10/22/2012 04:19 PM, Maria Gouskova wrote:


 Thanks, Richard--example file attached! It works when everything in
 the preamble is commented out, but the endnote numbers appear as
 superscripts in the Notes section (which is not what I want; I need
 them to be on the main line in normal size, followed by periods and
 then the note text).
>>>
>>>
>>> The right command to change is: \@makeenmark, with the @.
>>
>>
>> (Sorry about the late response!)
>>
>> I replaced the preamble line
>>
>> \renewcommand\makeenmark{\theenmark. }
>>
>> with
>>
>> \renewcommand\@makeenmark{\theenmark. }
>>
>> and the result is an Undefined control sequence error:
>>
>>   \footnote{
>> A footnote/endnote A footnote/endnote A footnote/endnote A
>> fo...
>> The control sequence at the end of the top line
>> of your error message was never \def'ed. If you have
>> misspelled it (e.g., `\hobx'), type `I' and the correct
>> spelling (e.g., `I\hbox'). Otherwise just continue,
>> and I'll forget about whatever was undefined.
>>
>>
>> Maria
>>
>
>
> The attached seems to work for me. Is this what you are after?
>
> Regards,
> Julien


Problems with Windows installation [solved]

2013-02-06 Thread Les Denham
Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

To investigate how LyX works on Windows so I could give him advice I
borrowed the only computer in the house with Windows, my wife's
netbook, which dual boots Windows 7 and Linux Mint.

I downloaded the bundle, LyX-2.0.5.1-Bundle-4.exe, and installed it in
Windows 7. I found I had exactly the same problems my friend was
reporting.

To investigate what was happening, I tried to export LaTeX(pdflatex),
using the splash file (examples/splash.lyx) as a test case. It exported
what looked like a perfectly good LaTeX file. I looked around for a way
of testing this file, and found TeXworks, which comes with MikTeX. It
generated a perfect PDF file with no errors.

So I went back to LyX, opened the Messages box to watch where the error
occurred, and tried to export a PDF(pdflatex) file. It worked without
any errors.

So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.

So I suggested to my friend that he try exporting a LaTeX file,
typesetting it using TeXworks, then trying again with LyX. Sure enough,
after using TeXworks to generate one PDF file, LyX can create PDF files
normally.

I have to conclude that the MikTeX installer does not finalize the
installation, but leaves something undone. This missing configuration
is then completed the first time TeXworks is used. Perhaps someone more
familiar with MikTeX could explain this.

Les


Re: Problems with Windows installation [solved]

2013-02-06 Thread EK

  
  
You might try to install TexLive independently, and then install Lyx
(using the non-bundle installer), directing it to the TexLive TeX
engine.
This is how I do it on my XP machine.
Ehud Kaplan

On 02/06/2013 10:49 AM, Les Denham
  wrote:


  Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

To investigate how LyX works on Windows so I could give him advice I
borrowed the only computer in the house with Windows, my wife's
netbook, which dual boots Windows 7 and Linux Mint.

I downloaded the bundle, LyX-2.0.5.1-Bundle-4.exe, and installed it in
Windows 7. I found I had exactly the same problems my friend was
reporting.

To investigate what was happening, I tried to export LaTeX(pdflatex),
using the splash file (examples/splash.lyx) as a test case. It exported
what looked like a perfectly good LaTeX file. I looked around for a way
of testing this file, and found TeXworks, which comes with MikTeX. It
generated a perfect PDF file with no errors.

So I went back to LyX, opened the Messages box to watch where the error
occurred, and tried to export a PDF(pdflatex) file. It worked without
any errors.

So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.

So I suggested to my friend that he try exporting a LaTeX file,
typesetting it using TeXworks, then trying again with LyX. Sure enough,
after using TeXworks to generate one PDF file, LyX can create PDF files
normally.

I have to conclude that the MikTeX installer does not finalize the
installation, but leaves something undone. This missing configuration
is then completed the first time TeXworks is used. Perhaps someone more
familiar with MikTeX could explain this.

Les



-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual & Computational
  Neuroscience
  Director, Center for Excellence in Computational &
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural &
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: husort

2013-02-06 Thread Jürgen Spitzmüller
2013/2/6 Dr. Gyorgy Pota:
> I use husort.pl, a perl program for making index according to the Hungarian
> alphabet. In Lyx I write this command to the place that opens with
> Output/Latex/Custom. When I  use the program with the makeindex parameters
> -c -q then it works but does not differentiate between the accented letters
> and their normal counterparts, that is members of the pairs a, á; e, é; u, ü
> etc. are the same. However, the program is allowed to run with the
> parameters --sort-hu -a as well, which, in principle give the full solution
> to the accented letter problem. In Lyx the program runs with these
> parameters but without making any index. Would you help me, please?

I don't know this script, but if it is run _instead_ of makeindex, I
would place the command at
Tools > Preferences > Output > LaTeX (set the Index Processor to
"Custom" and add the command below).

Another option for correct Hungarian sorting might be xindy, which is
very good at sorting in different languages.

HTH
Jürgen


Re: Problems with Windows installation [solved]

2013-02-06 Thread Stephen George

Hi Les,


On 7/02/2013 2:49 AM, Les Denham wrote:

Yesterday I had a friend call me for advice on a Windows XP
installation of Lyx. He had been using LyX for several years without
any problems, and had just updated to 2.0.5.1. Now he could work in
LyX, but could not generate a PDF output. He is running Windows XP on a
netbook.

Had a similar problem myself just recently.
Had an installation of MikTex/Lyx on my Win7 computer at work.
Had
Lyx 2.0.3-1
MikTex 2.9.4407 (from March last year)

Worked fine in converting my Lyx documents into pdf's

Upgraded both MikTex and Lyx
Lyx 2.0.5.1
MikTex -  updated packages only (something I hadn't done in a while)

Now I could not create pdf's
Seemed to be getting errors that some packages where not installed - but 
everything was working before?

I re-checked that the packages were up to date in MikTex.
Then I checked the settings on MikTex, and I had the setting
Install-Missing-packages-on-fly set for YES

But still I could not generate pdf's, .. recheck Lyx function 
Tools->Reconfigure

   restart Lyx app - no pdf's
   restart PC - no pdf's


So I tried another file (the User's Guide, doc/UserGuide.lyx). This
also worked without any errors, but I observed that before generating
the PDF MikTeX downloaded some additional packages.


Dont know why but I changed MikTex setting
Install-Missing-packages-on-fly set to ASK-ME-FIRST

Next time I tried to generate a pdf, dialogs boxes started popping up 
asking if to install package, . of course I answered yes.

I guess there was about 5~10 packages installed, then my pdf came out.

Can generate all my lyx files on that PC now.

I am left to speculate what happened, and why automatic and prompted 
updates on fly behaved differently. My only thought was being a work PC 
they have security policies that may have somehow interfered.
Also why did I all of a sudden I need new packages without changing 
anything in my Lyx files, was that because of new dependencies during 
the MikTex update or did the new version of Lyx require the new packages?


Since you found a different work around for what seemed like a similar 
problem (not downloading missing packages properly), I thought I share 
my experience.


Steve


Re: Endnote number size/position

2013-02-06 Thread Julien Rioux
On Wed, Feb 6, 2013 at 8:38 AM, Maria Gouskova  wrote:
> Nope, this still doesn't work--I get the following error (ps2pdf):
>
> LaTeX Error: \makeenmark undefined.
>
> \renewcommand\makeenmark {\theenmark. }
>
> Try typing  to proceed.
> If that doesn't work, type X  to quit.

Works perfectly here, see attached pdf (I removed the \newline to fit
everything on one page). \makeenmark is defined when loading
\usepackage{endnotes}---if it's missing, I can think only of a
mismatch in package version---but \makeenmark is mentioned in the
endnotes documentation, in the changelog entry for 12 January 2003!

Good luck figuring this out!
Regards,
Julien


aendnote_test_file-1.pdf
Description: Adobe PDF document


Re: Figure numbers & change tracking

2013-02-06 Thread Scott Kostyshak
On Tue, Feb 5, 2013 at 8:46 AM, EK  wrote:
> Here is a SmallWorkingExample, which illustrates both issues.
> Here the reference to the figure appears as Figure  (no number).
>
> Ehud Kaplan

Hi Ehud,

Thank you for your example file. However, it is not a working example
file for the following reasons:
1. It does not compile.
2. You did not include your bibtex file. If it's not necessary to
reproduce the problem, then consider not making it a dependency by
including references in your MWE .lyx file.
3. Even if you did include your bibtex file, the path to it is
specific to your computer.
4. You did not include the file p-trode-w-dimensions. Further, because
this file has no name, I have no idea what time of graphic it is. And
thus I have no idea what converter is being called.
5. The path to the picture is not relative.

An MWE (or a SWE) should be compilable out of the box.

You probably didn't send the picture because you didn't want to
increase the size of everyone's inboxes and I appreciate that. But
it's very nice to have an MWE. I wish we had a way where you could
upload your files somewhere and then link to them because not everyone
has access to such a service themselves. Also, you could have used a
1kb picture, or no picture at all, to show the problem.

Regarding your potential bug number 1, I think I see what you are
talking about. Here is the PDF that is produced for me on the
development version of LyX:
https://www.dropbox.com/s/e5rpv153nue0lg0/MWE.pdf
There is no number at all in the reference to the figure. It should be
figure 1 and yet nothing shows up.

Regarding point 2, I didn't try to reproduce this as I have no idea
what converter is being called and I'm not sure if by "any change to
the figure" you mean a change to the file itself, a change to the
properties of the figure, a change to the caption, or maybe all of the
above. Please specify just one action in the steps you give to
reproduce the behavior you found. You can then note that any of
several actions could also be used for that step.

I hope I'm not coming across as upset. I'm not at all. I think that it
takes time to learn how to write a good MWE. I also think that we are
missing documentation on how to make an MWE specifically in the
context of LyX. A search for "MWE" at wiki.lyx.org gives nothing. This
is something I would like to work on documenting. Let me know if you
have any suggestions for me.

My guess is that these are LyX bugs. If you are able and willing to
make MWE(s) (either one that shows both problems, or two separate
ones), it would be great if you could open separate bug reports on
www.lyx.org/trac. Please attach any relevant files to each bug report.

Best,

Scott


configuring latex2rtf with LyX 2

2013-02-06 Thread Justin Wood
Hi all. I've read the instructions for using latex2rtf with LyX here
http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf, but can't
get it to work. This is on v2.0.4 on a Win7 box (but I also have an OS X
setup). I've installed latex2rtf as the Win exe and to get around the white
space issue I've made a junction from d:\utils\latex2rtf --> c:\Program Files
(x86)\latex2rtf. I believe this is working correctly as it's picked up in
the configuration log:
INFO: checking for a LaTeX -> RTF converter...
INFO: +checking for "latex2rtf"...  no
INFO: +checking for "latex2rt"...  yes
DEBUG: Add to RC:
\converter latex  rtf"latex2rt -p -S -o $$o $$i""needaux"

But nothing I've tried has made the RTF option appear in the File -> Export
menu, or View. I'm pretty hazy on what actually governs that in general to
be honest, as many options in Preferences are 'enabled' but do not appear
in the list. I read in the latex2rtf manual that the tmp aux files need to
exist, so I tried running View -> PDF (XeTeX) but no joy.

Could the problem be that I'm using XeTeX rather than default LaTeX? Thanks!


~:Justin Wood:~
PhD candidate, *School of **Engineering** & **Information Technology*, Murdoch
University