Dashed lines in array/matrix environment.

2014-04-22 Thread Rudi Gaelzer
The embedded objects manual teaches us that by using the arydshln package
one can create tables with horizontal/vertical dashed lines.

However, I want to do the same in the math environment.  I need to
represent matrices in block-diagonal notation and the use of dashed lines
is one way to distinguish the different parent matrices.

In math mode I can create horizontal dashes within a pmatrix inserting
\hdashline before the first element of a given line in order to put the
dash over it.  However, for the vertical dashes, I had to resort to ERT:
==
(within the ERT):
\[
\left(\begin{array}{c:c}
a  b \\
\hdashline c  d
\end{array}\right)
\]
==
Notice the {c:c} that puts the vert dash between the columns.

It works but it's not wysiwyg... is there no other way to do this within
LyX?
Thanks.
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread John Kane
 
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some 
problems with some of the custom modules I usually load. 
Actually I have two different problems 
The first problem is that I seem to have lost the ability to use a custom 
module (ShortInsertNames ). Typically, I will have Natbibapa, ShortInsetNames, 
Rnw(knitr)  ToDo loaded. Now when I compile and even when I do Document  I am 
getting an error, “Error reading ShortInsertNames when I try to load 
ShortInsetNames. Both the ToDo and ShortInsetNames are in /home/john/.lyx. 
Interestingly enough Short Label but not Short Ref appears in Custom Insets and 
will insert an Undefined field in the document and I can compile the document.
The second problem is that whenever I try to compile a document with RnW(knitr) 
loaded I get an error message saying 
An error occurred while running: Rscript –verbose –no-save –no-restore 
/usr/share/lyx/scripts/lyxknitr.R 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex 
ISO-8859-15 /home/john/Lyx/
This was occuring before the upgrade to 2.1.0 but there was no problem with 
ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I 
open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup except I 
added some Brother printer drivers to my Windows 7 setup (it's a dual-boot 
machine).
I'd appreciate any suggestions for either problem. If I can get the blasted 
ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to the 
knitr group

I have attached a small example file. 


Custom.moudules.lyx
Description: application/lyx


resize equation output

2014-04-22 Thread Neal Becker
I have the misfortune to be commanded to produce ppt.  So I took one of my 
equations, in lyx.  I chose beamer so I get something that'll look good on a 
slide.  I put 
\beamertemplatenavigationsymbolsempty

so crop will work.

When exported export/pdf(crop), it looks OK, but it's too small.  I import to 
M$ 
PPT by opening in acroread and copy file to clipboard.

So I need something that'll resize the pdf (or convince lyx/beamer to output 
something bigger in the first place).

I tried the latter without success.

Putting in preamble
\geometry{paper=a4paper}

didn't seem help.

Finally, I found this magic incantation:

gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf

Then run through
pdfcrop

Finally, not a bad result (oh, did you want that centered on the slide?)

Any better ideas?



Re: resize equation output

2014-04-22 Thread Neal Becker
Neal Becker wrote:

 I have the misfortune to be commanded to produce ppt.  So I took one of my
 equations, in lyx.  I chose beamer so I get something that'll look good on a
 slide.  I put
 \beamertemplatenavigationsymbolsempty
 
 so crop will work.
 
 When exported export/pdf(crop), it looks OK, but it's too small.  I import to
 M$ PPT by opening in acroread and copy file to clipboard.
 
 So I need something that'll resize the pdf (or convince lyx/beamer to output
 something bigger in the first place).
 
 I tried the latter without success.
 
 Putting in preamble
 \geometry{paper=a4paper}
 
 didn't seem help.
 
 Finally, I found this magic incantation:
 
 gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
 dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf
 
 Then run through
 pdfcrop
 
 Finally, not a bad result (oh, did you want that centered on the slide?)
 
 Any better ideas?

I found another solution:

\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape,border shrink=5mm]

although this is not quite as large as I'd like.  Maybe I can learn the 
pdfpages 
options and improve it.



Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Whenever you have got an error with the Rnw/knitr module, be sure to
look at View-Messages. The error message in the dialog box does not
tell you much about what was really going on, and the real error
message is in the Messages pane.

To LyX developers: I think it will be much more helpful if LyX can
catch the stderr output when R fails and display the error message in
the dialog. The default error message An error occurred while
running is not informative.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Web: http://yihui.name


On Tue, Apr 22, 2014 at 12:50 PM, John Kane jrkrid...@yahoo.ca wrote:
 Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some
 problems with some of the custom modules I usually load.
 Actually I have two different problems
 The first problem is that I seem to have lost the ability to use a custom
 module (ShortInsertNames ). Typically, I will have Natbibapa,
 ShortInsetNames, Rnw(knitr)  ToDo loaded. Now when I compile and even when
 I do Document  I am getting an error, Error reading ShortInsertNames when
 I try to load ShortInsetNames. Both the ToDo and ShortInsetNames are in
 /home/john/.lyx.
 Interestingly enough Short Label but not Short Ref appears in Custom Insets
 and will insert an Undefined field in the document and I can compile the
 document.
 The second problem is that whenever I try to compile a document with
 RnW(knitr) loaded I get an error message saying
 An error occurred while running: Rscript -verbose -no-save -no-restore
 /usr/share/lyx/scripts/lyxknitr.R
 /tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw
 /tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex
 ISO-8859-15 /home/john/Lyx/
 This was occuring before the upgrade to 2.1.0 but there was no problem with
 ShortInsertNames before the upgrade. A look at
 /usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I
 open it, it looks fine.
 The worst of it is, I cannot think of any changes I made to my setup except
 I added some Brother printer drivers to my Windows 7 setup (it's a dual-boot
 machine).
 I'd appreciate any suggestions for either problem. If I can get the blasted
 ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to
 the knitr group

 I have attached a small example file.


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie x...@yihui.name wrote:

 To LyX developers: I think it will be much more helpful if LyX can
 catch the stderr output when R fails and display the error message in
 the dialog. The default error message An error occurred while
 running is not informative.

Makes sense. You might want to open a ticket for this. It is related
to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

As motivation, this has come up in a few places, for example:
http://www.lyx.org/trac/ticket/8940#comment:2
http://stackoverflow.com/questions/16118901/cannot-run-knitr-on-lyx-for-macbook

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie x...@yihui.name wrote:

 To LyX developers: I think it will be much more helpful if LyX can
 catch the stderr output when R fails and display the error message in
 the dialog. The default error message An error occurred while
 running is not informative.

 Makes sense. You might want to open a ticket for this. It is related
 to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Yes, please. Thanks!

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Web: http://yihui.name


On Tue, Apr 22, 2014 at 4:31 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie x...@yihui.name wrote:

 To LyX developers: I think it will be much more helpful if LyX can
 catch the stderr output when R fails and display the error message in
 the dialog. The default error message An error occurred while
 running is not informative.

 Makes sense. You might want to open a ticket for this. It is related
 to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

 If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:44 PM, Yihui Xie x...@yihui.name wrote:
 Yes, please. Thanks!

I guess this is actually a duplicate of #6826.

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr)  ToDo loaded. Now when I compile and even 
when I do Document  I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
/usr/share/lyx/scripts/lyxknitr.R 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex

ISO-8859-15 /home/john/Lyx/
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout Flex:ShortLabel

and

InsetLayout Flex:ShortXRef

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last birth throes of 2.1.0.


Andrew






Re: set default bibliography path on Mac

2014-04-22 Thread David Bickel
Everyone, thank you for your help with setting the preferences on a Macintosh 
to use BibPath, a different .bib path by default.

Based on the links you provided, this worked for me:
1.  sudo su
2.  vi /etc/launchd.conf
3. Make this a line in that file (no quotes): setenv BIBINPUTS BibPath
4. Reboot.

David


David R. Bickel, PhD
Associate Professor
Ottawa Institute of Systems Biology
Biochem., Micro. and I. Department
Mathematics and Statistics Department
University of Ottawa
451 Smyth Road
Ottawa, Ontario K1H 8M5
 
http://www.statomics.com
 
Office Tel: (613) 562-5800 ext. 8670
Office Fax: (613) 562-5185
Office Room: RGN 4510F (Follow the signs to the elevator, and take it to
the fourth floor. Turn left and go all the way to the end of the hall, and
enter the door to the OISB area.)
Lab Tel.: (613) 562-5800 ext. 8304
Lab Room: RGN 4501T



2014-04-12 4:07 GMT-04:00 Stephan Witt st.w...@gmx.net:
 Am 11.04.2014 um 17:02 schrieb David Bickel davidbickel.com+li...@gmail.com:

 I keep my .bib files on Dropbox so I can easily work from multiple computers.

 Is there a way that I can set the preferences on my Macintosh to use a
 different .bib path by default? This needs to be done without
 specifying the whole path in the LyX file.

 On Windows, this is accomplished by modifying the BIBINPUTS
 environment variable, but I do not know how to do something like that
 with MacOS.

 See here for one possibility:
 http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/588442#588442

 Stephan



Dashed lines in array/matrix environment.

2014-04-22 Thread Rudi Gaelzer
The embedded objects manual teaches us that by using the arydshln package
one can create tables with horizontal/vertical dashed lines.

However, I want to do the same in the math environment.  I need to
represent matrices in block-diagonal notation and the use of dashed lines
is one way to distinguish the different parent matrices.

In math mode I can create horizontal dashes within a pmatrix inserting
\hdashline before the first element of a given line in order to put the
dash over it.  However, for the vertical dashes, I had to resort to ERT:
==
(within the ERT):
\[
\left(\begin{array}{c:c}
a  b \\
\hdashline c  d
\end{array}\right)
\]
==
Notice the {c:c} that puts the vert dash between the columns.

It works but it's not wysiwyg... is there no other way to do this within
LyX?
Thanks.
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread John Kane
 
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some 
problems with some of the custom modules I usually load. 
Actually I have two different problems 
The first problem is that I seem to have lost the ability to use a custom 
module (ShortInsertNames ). Typically, I will have Natbibapa, ShortInsetNames, 
Rnw(knitr)  ToDo loaded. Now when I compile and even when I do Document  I am 
getting an error, “Error reading ShortInsertNames when I try to load 
ShortInsetNames. Both the ToDo and ShortInsetNames are in /home/john/.lyx. 
Interestingly enough Short Label but not Short Ref appears in Custom Insets and 
will insert an Undefined field in the document and I can compile the document.
The second problem is that whenever I try to compile a document with RnW(knitr) 
loaded I get an error message saying 
An error occurred while running: Rscript –verbose –no-save –no-restore 
/usr/share/lyx/scripts/lyxknitr.R 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex 
ISO-8859-15 /home/john/Lyx/
This was occuring before the upgrade to 2.1.0 but there was no problem with 
ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I 
open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup except I 
added some Brother printer drivers to my Windows 7 setup (it's a dual-boot 
machine).
I'd appreciate any suggestions for either problem. If I can get the blasted 
ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to the 
knitr group

I have attached a small example file. 


Custom.moudules.lyx
Description: application/lyx


resize equation output

2014-04-22 Thread Neal Becker
I have the misfortune to be commanded to produce ppt.  So I took one of my 
equations, in lyx.  I chose beamer so I get something that'll look good on a 
slide.  I put 
\beamertemplatenavigationsymbolsempty

so crop will work.

When exported export/pdf(crop), it looks OK, but it's too small.  I import to 
M$ 
PPT by opening in acroread and copy file to clipboard.

So I need something that'll resize the pdf (or convince lyx/beamer to output 
something bigger in the first place).

I tried the latter without success.

Putting in preamble
\geometry{paper=a4paper}

didn't seem help.

Finally, I found this magic incantation:

gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf

Then run through
pdfcrop

Finally, not a bad result (oh, did you want that centered on the slide?)

Any better ideas?



Re: resize equation output

2014-04-22 Thread Neal Becker
Neal Becker wrote:

 I have the misfortune to be commanded to produce ppt.  So I took one of my
 equations, in lyx.  I chose beamer so I get something that'll look good on a
 slide.  I put
 \beamertemplatenavigationsymbolsempty
 
 so crop will work.
 
 When exported export/pdf(crop), it looks OK, but it's too small.  I import to
 M$ PPT by opening in acroread and copy file to clipboard.
 
 So I need something that'll resize the pdf (or convince lyx/beamer to output
 something bigger in the first place).
 
 I tried the latter without success.
 
 Putting in preamble
 \geometry{paper=a4paper}
 
 didn't seem help.
 
 Finally, I found this magic incantation:
 
 gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
 dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf
 
 Then run through
 pdfcrop
 
 Finally, not a bad result (oh, did you want that centered on the slide?)
 
 Any better ideas?

I found another solution:

\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape,border shrink=5mm]

although this is not quite as large as I'd like.  Maybe I can learn the 
pdfpages 
options and improve it.



Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Whenever you have got an error with the Rnw/knitr module, be sure to
look at View-Messages. The error message in the dialog box does not
tell you much about what was really going on, and the real error
message is in the Messages pane.

To LyX developers: I think it will be much more helpful if LyX can
catch the stderr output when R fails and display the error message in
the dialog. The default error message An error occurred while
running is not informative.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Web: http://yihui.name


On Tue, Apr 22, 2014 at 12:50 PM, John Kane jrkrid...@yahoo.ca wrote:
 Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some
 problems with some of the custom modules I usually load.
 Actually I have two different problems
 The first problem is that I seem to have lost the ability to use a custom
 module (ShortInsertNames ). Typically, I will have Natbibapa,
 ShortInsetNames, Rnw(knitr)  ToDo loaded. Now when I compile and even when
 I do Document  I am getting an error, Error reading ShortInsertNames when
 I try to load ShortInsetNames. Both the ToDo and ShortInsetNames are in
 /home/john/.lyx.
 Interestingly enough Short Label but not Short Ref appears in Custom Insets
 and will insert an Undefined field in the document and I can compile the
 document.
 The second problem is that whenever I try to compile a document with
 RnW(knitr) loaded I get an error message saying
 An error occurred while running: Rscript -verbose -no-save -no-restore
 /usr/share/lyx/scripts/lyxknitr.R
 /tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw
 /tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex
 ISO-8859-15 /home/john/Lyx/
 This was occuring before the upgrade to 2.1.0 but there was no problem with
 ShortInsertNames before the upgrade. A look at
 /usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I
 open it, it looks fine.
 The worst of it is, I cannot think of any changes I made to my setup except
 I added some Brother printer drivers to my Windows 7 setup (it's a dual-boot
 machine).
 I'd appreciate any suggestions for either problem. If I can get the blasted
 ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to
 the knitr group

 I have attached a small example file.


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie x...@yihui.name wrote:

 To LyX developers: I think it will be much more helpful if LyX can
 catch the stderr output when R fails and display the error message in
 the dialog. The default error message An error occurred while
 running is not informative.

Makes sense. You might want to open a ticket for this. It is related
to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

As motivation, this has come up in a few places, for example:
http://www.lyx.org/trac/ticket/8940#comment:2
http://stackoverflow.com/questions/16118901/cannot-run-knitr-on-lyx-for-macbook

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie x...@yihui.name wrote:

 To LyX developers: I think it will be much more helpful if LyX can
 catch the stderr output when R fails and display the error message in
 the dialog. The default error message An error occurred while
 running is not informative.

 Makes sense. You might want to open a ticket for this. It is related
 to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Yes, please. Thanks!

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Web: http://yihui.name


On Tue, Apr 22, 2014 at 4:31 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie x...@yihui.name wrote:

 To LyX developers: I think it will be much more helpful if LyX can
 catch the stderr output when R fails and display the error message in
 the dialog. The default error message An error occurred while
 running is not informative.

 Makes sense. You might want to open a ticket for this. It is related
 to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

 If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:44 PM, Yihui Xie x...@yihui.name wrote:
 Yes, please. Thanks!

I guess this is actually a duplicate of #6826.

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr)  ToDo loaded. Now when I compile and even 
when I do Document  I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
/usr/share/lyx/scripts/lyxknitr.R 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex

ISO-8859-15 /home/john/Lyx/
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout Flex:ShortLabel

and

InsetLayout Flex:ShortXRef

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last birth throes of 2.1.0.


Andrew






Re: set default bibliography path on Mac

2014-04-22 Thread David Bickel
Everyone, thank you for your help with setting the preferences on a Macintosh 
to use BibPath, a different .bib path by default.

Based on the links you provided, this worked for me:
1.  sudo su
2.  vi /etc/launchd.conf
3. Make this a line in that file (no quotes): setenv BIBINPUTS BibPath
4. Reboot.

David


David R. Bickel, PhD
Associate Professor
Ottawa Institute of Systems Biology
Biochem., Micro. and I. Department
Mathematics and Statistics Department
University of Ottawa
451 Smyth Road
Ottawa, Ontario K1H 8M5
 
http://www.statomics.com
 
Office Tel: (613) 562-5800 ext. 8670
Office Fax: (613) 562-5185
Office Room: RGN 4510F (Follow the signs to the elevator, and take it to
the fourth floor. Turn left and go all the way to the end of the hall, and
enter the door to the OISB area.)
Lab Tel.: (613) 562-5800 ext. 8304
Lab Room: RGN 4501T



2014-04-12 4:07 GMT-04:00 Stephan Witt st.w...@gmx.net:
 Am 11.04.2014 um 17:02 schrieb David Bickel davidbickel.com+li...@gmail.com:

 I keep my .bib files on Dropbox so I can easily work from multiple computers.

 Is there a way that I can set the preferences on my Macintosh to use a
 different .bib path by default? This needs to be done without
 specifying the whole path in the LyX file.

 On Windows, this is accomplished by modifying the BIBINPUTS
 environment variable, but I do not know how to do something like that
 with MacOS.

 See here for one possibility:
 http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/588442#588442

 Stephan



Dashed lines in array/matrix environment.

2014-04-22 Thread Rudi Gaelzer
The embedded objects manual teaches us that by using the arydshln package
one can create tables with horizontal/vertical dashed lines.

However, I want to do the same in the math environment.  I need to
represent matrices in block-diagonal notation and the use of dashed lines
is one way to distinguish the different parent matrices.

In math mode I can create horizontal dashes within a pmatrix inserting
\hdashline before the first element of a given line in order to put the
dash over it.  However, for the vertical dashes, I had to resort to ERT:
==
(within the ERT):
\[
\left(\begin{array}{c:c}
a & b \\
\hdashline c & d
\end{array}\right)
\]
==
Notice the "{c:c}" that puts the vert dash between the columns.

It works but it's not wysiwyg... is there no other way to do this within
LyX?
Thanks.
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread John Kane
 
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some 
problems with some of the custom modules I usually load. 
Actually I have two different problems 
The first problem is that I seem to have lost the ability to use a custom 
module (ShortInsertNames ). Typically, I will have Natbibapa, ShortInsetNames, 
Rnw(knitr) & ToDo loaded. Now when I compile and even when I do Document > I am 
getting an error, “Error reading ShortInsertNames when I try to load 
ShortInsetNames. Both the ToDo and ShortInsetNames are in /home/john/.lyx. 
Interestingly enough Short Label but not Short Ref appears in Custom Insets and 
will insert an Undefined field in the document and I can compile the document.
The second problem is that whenever I try to compile a document with RnW(knitr) 
loaded I get an error message saying 
An error occurred while running: Rscript –verbose –no-save –no-restore 
"/usr/share/lyx/scripts/lyxknitr.R" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex" 
ISO-8859-15 "/home/john/Lyx/"
This was occuring before the upgrade to 2.1.0 but there was no problem with 
ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I 
open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup except I 
added some Brother printer drivers to my Windows 7 setup (it's a dual-boot 
machine).
I'd appreciate any suggestions for either problem. If I can get the blasted 
ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to the 
knitr group

I have attached a small example file. 


Custom.moudules.lyx
Description: application/lyx


resize equation output

2014-04-22 Thread Neal Becker
I have the misfortune to be commanded to produce ppt.  So I took one of my 
equations, in lyx.  I chose beamer so I get something that'll look good on a 
slide.  I put 
\beamertemplatenavigationsymbolsempty

so crop will work.

When exported export/pdf(crop), it looks OK, but it's too small.  I import to 
M$ 
PPT by opening in acroread and copy file to clipboard.

So I need something that'll resize the pdf (or convince lyx/beamer to output 
something bigger in the first place).

I tried the latter without success.

Putting in preamble
\geometry{paper=a4paper}

didn't seem help.

Finally, I found this magic incantation:

gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf

Then run through
pdfcrop

Finally, not a bad result (oh, did you want that centered on the slide?)

Any better ideas?



Re: resize equation output

2014-04-22 Thread Neal Becker
Neal Becker wrote:

> I have the misfortune to be commanded to produce ppt.  So I took one of my
> equations, in lyx.  I chose beamer so I get something that'll look good on a
> slide.  I put
> \beamertemplatenavigationsymbolsempty
> 
> so crop will work.
> 
> When exported export/pdf(crop), it looks OK, but it's too small.  I import to
> M$ PPT by opening in acroread and copy file to clipboard.
> 
> So I need something that'll resize the pdf (or convince lyx/beamer to output
> something bigger in the first place).
> 
> I tried the latter without success.
> 
> Putting in preamble
> \geometry{paper=a4paper}
> 
> didn't seem help.
> 
> Finally, I found this magic incantation:
> 
> gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
> dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf
> 
> Then run through
> pdfcrop
> 
> Finally, not a bad result (oh, did you want that centered on the slide?)
> 
> Any better ideas?

I found another solution:

\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape,border shrink=5mm]

although this is not quite as large as I'd like.  Maybe I can learn the 
pdfpages 
options and improve it.



Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Whenever you have got an error with the Rnw/knitr module, be sure to
look at View->Messages. The error message in the dialog box does not
tell you much about what was really going on, and the real error
message is in the Messages pane.

To LyX developers: I think it will be much more helpful if LyX can
catch the stderr output when R fails and display the error message in
the dialog. The default error message "An error occurred while
running" is not informative.

Regards,
Yihui
--
Yihui Xie 
Web: http://yihui.name


On Tue, Apr 22, 2014 at 12:50 PM, John Kane  wrote:
> Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some
> problems with some of the custom modules I usually load.
> Actually I have two different problems
> The first problem is that I seem to have lost the ability to use a custom
> module (ShortInsertNames ). Typically, I will have Natbibapa,
> ShortInsetNames, Rnw(knitr) & ToDo loaded. Now when I compile and even when
> I do Document > I am getting an error, "Error reading ShortInsertNames when
> I try to load ShortInsetNames. Both the ToDo and ShortInsetNames are in
> /home/john/.lyx.
> Interestingly enough Short Label but not Short Ref appears in Custom Insets
> and will insert an Undefined field in the document and I can compile the
> document.
> The second problem is that whenever I try to compile a document with
> RnW(knitr) loaded I get an error message saying
> An error occurred while running: Rscript -verbose -no-save -no-restore
> "/usr/share/lyx/scripts/lyxknitr.R"
> "/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw"
> "/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex"
> ISO-8859-15 "/home/john/Lyx/"
> This was occuring before the upgrade to 2.1.0 but there was no problem with
> ShortInsertNames before the upgrade. A look at
> /usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I
> open it, it looks fine.
> The worst of it is, I cannot think of any changes I made to my setup except
> I added some Brother printer drivers to my Windows 7 setup (it's a dual-boot
> machine).
> I'd appreciate any suggestions for either problem. If I can get the blasted
> ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to
> the knitr group
>
> I have attached a small example file.


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie  wrote:

> To LyX developers: I think it will be much more helpful if LyX can
> catch the stderr output when R fails and display the error message in
> the dialog. The default error message "An error occurred while
> running" is not informative.

Makes sense. You might want to open a ticket for this. It is related
to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

As motivation, this has come up in a few places, for example:
http://www.lyx.org/trac/ticket/8940#comment:2
http://stackoverflow.com/questions/16118901/cannot-run-knitr-on-lyx-for-macbook

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak  wrote:
> On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie  wrote:
>
>> To LyX developers: I think it will be much more helpful if LyX can
>> catch the stderr output when R fails and display the error message in
>> the dialog. The default error message "An error occurred while
>> running" is not informative.
>
> Makes sense. You might want to open a ticket for this. It is related
> to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Yes, please. Thanks!

Regards,
Yihui
--
Yihui Xie 
Web: http://yihui.name


On Tue, Apr 22, 2014 at 4:31 PM, Scott Kostyshak  wrote:
> On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak  wrote:
>> On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie  wrote:
>>
>>> To LyX developers: I think it will be much more helpful if LyX can
>>> catch the stderr output when R fails and display the error message in
>>> the dialog. The default error message "An error occurred while
>>> running" is not informative.
>>
>> Makes sense. You might want to open a ticket for this. It is related
>> to (but in my opinion different) http://www.lyx.org/trac/ticket/6826
>
> If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:44 PM, Yihui Xie  wrote:
> Yes, please. Thanks!

I guess this is actually a duplicate of #6826.

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr) & ToDo loaded. Now when I compile and even 
when I do Document > I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
"/usr/share/lyx/scripts/lyxknitr.R" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex"

ISO-8859-15 "/home/john/Lyx/"
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout "Flex:ShortLabel"

and

InsetLayout "Flex:ShortXRef"

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last "birth throes" of 2.1.0.


Andrew






Re: set default bibliography path on Mac

2014-04-22 Thread David Bickel
Everyone, thank you for your help with setting the preferences on a Macintosh 
to use BibPath, a different .bib path by default.

Based on the links you provided, this worked for me:
1. > sudo su
2. > vi /etc/launchd.conf
3. Make this a line in that file (no quotes): "setenv BIBINPUTS BibPath"
4. Reboot.

David


David R. Bickel, PhD
Associate Professor
Ottawa Institute of Systems Biology
Biochem., Micro. and I. Department
Mathematics and Statistics Department
University of Ottawa
451 Smyth Road
Ottawa, Ontario K1H 8M5
 
http://www.statomics.com
 
Office Tel: (613) 562-5800 ext. 8670
Office Fax: (613) 562-5185
Office Room: RGN 4510F (Follow the signs to the elevator, and take it to
the fourth floor. Turn left and go all the way to the end of the hall, and
enter the door to the OISB area.)
Lab Tel.: (613) 562-5800 ext. 8304
Lab Room: RGN 4501T



2014-04-12 4:07 GMT-04:00 Stephan Witt :
> Am 11.04.2014 um 17:02 schrieb David Bickel :
>
>> I keep my .bib files on Dropbox so I can easily work from multiple computers.
>>
>> Is there a way that I can set the preferences on my Macintosh to use a
>> different .bib path by default? This needs to be done without
>> specifying the whole path in the LyX file.
>>
>> On Windows, this is accomplished by modifying the BIBINPUTS
>> environment variable, but I do not know how to do something like that
>> with MacOS.
>
> See here for one possibility:
> http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/588442#588442
>
> Stephan