Re: Non-Latin font in document

2012-07-17 Thread Sam Lewis
Walter walter.stanish at gmail.com writes:

 
 I have found XeTeX the best for foreign font output.
 
 I use the following under Document|Settings|LaTeX preamble:
 
 % required for xelatex
 \usepackage{doc} % defines \bibtex macro
 \usepackage{fontspec}
 \usepackage{xunicode}
 \usepackage{xltxtra}
 
 % apparently for fontspec, not sure if actually needed
 \defaultfontfeatures{Mapping=tex-text}
 
 %: --- set up commands for different fonts for each language.
 
 %: - thai font
 \newfontfamily{\TH}[Scale=1.2]{Norasi}
 \newcommand{\thai}[1]{{\TH #1}}


Thank you for the swift reply. It works fine; I can produce pdfs with Thai words
with the correct font!

I have added \newfontfamily\Thai{Norasi} to the preamble and use the ERT
\Thai\emph{a Thai word} in the LyX document. I got an error with the suggested
\newfontfamily{\TH}[Scale=1.2]{Norasi} But that's not a problem. A little bit of
ERT is fine.

I was wondering whether it is also possible to generate OpenDocument outputs
with XeTex, like pdflatex can do. I only got xhtml now, but that seems limited
as I believe there is no way to import this into libreoffice.





Re: Graphics Tools

2012-07-17 Thread Guenter Milde
On 2012-07-16, Steve Litt wrote:

 I use dia for diagrams (kind of what Windows guys use Visio for),
 Inkscape for vector drawing, and Gimp for raster drawing.

 dia exports to .png, which can import directly into LyX. 

However, this means exporting a vector drawing to a raster bitmap.
Dia can also export to PDF and/or Postscript, which is the better choice and
works with LyX like a charm.

Alternatively, you can use the external inset (InsertFileExternal ...)
to insert the dia file itself (with internal conversion by LyX).


 Inkscape
 uses .svg, which can import directly into LyX, for a native format.
 Gimp can write just about any kind of raster format.


Günter



Re: Graphics Tools

2012-07-17 Thread Wolfgang Keller
 Can you please make a few suggestions.

Depends on what you need. Some that haven't been mentioned yet:

- yEd www.yworks.com
- sK1 sk1project.org
- Xara www.xaraxtreme.org
- On MacOS X: Omnigraffle, of course

Wikipedia is very helpful when searching for (especially
free open-source-)software.

Sincerely,

Wolfgang


Re: Graphics Tools

2012-07-17 Thread Liviu Andronic
On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller felip...@gmx.net wrote:
 Wikipedia is very helpful when searching for (especially
 free open-source-)software.

I like alternativeTo for this. :)

Liviu


RE: Graphics Tools

2012-07-17 Thread William R. Buckley
Thank you all for the list of tools.

As my need was urgent, I tried IPE, and it works well, though is 
a bit clunky.

Will try the others, and return a quick sense of utility for each.

wrb

 -Original Message-
 From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
 Behalf Of Liviu Andronic
 Sent: Tuesday, July 17, 2012 5:03 AM
 To: Wolfgang Keller
 Cc: lyx-users@lists.lyx.org
 Subject: Re: Graphics Tools
 
 On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller felip...@gmx.net
 wrote:
  Wikipedia is very helpful when searching for (especially
  free open-source-)software.
 
 I like alternativeTo for this. :)
 
 Liviu



Re: Unable to export to OpenDocument ODF

2012-07-17 Thread Richard Heck

On 07/12/2012 11:52 PM, Ray Rashif wrote:

On 13 July 2012 05:09, Richard Heck rgh...@lyx.org wrote:

On 07/12/2012 02:45 PM, Ray Rashif wrote:

I'm trying to export my entire document to a format which can be
edited in conventional word processing software (OpenOffice, MS Word).
As RTF does not support images, and HTML export does not retain much
of the formatting (e.g. citations, sometimes not even appearing),


Have you tried using LyX's own XHTML export? I've had very good luck using
it for this
purpose.

Yes, that works well. However, I'm not able to open it (the xhtml
file) with any word processor. Most obvioously, MS Word does not
recognise ldquote. I gave up at that point. Do you have any
suggestion for this?

Where is ldquote coming from?

Perhaps you should try opening the file in Libre Office, or some other 
program.


Richard



Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Tue, 17 Jul 2012 07:35:55 + (UTC), Guenter Milde said:
 On 2012-07-16, Steve Litt wrote:
 
  I use dia for diagrams (kind of what Windows guys use Visio for),
  Inkscape for vector drawing, and Gimp for raster drawing.
 
  dia exports to .png, which can import directly into LyX. 
 
 However, this means exporting a vector drawing to a raster bitmap.
 Dia can also export to PDF and/or Postscript, which is the better
 choice and works with LyX like a charm.


Hi Günter,

How about SVG? Lately I've been putting SVG into LyX documents, and SVG
is vector. But I've gotten the impression that LyX incorporates an SVG
image by converting it to a vector graphic.

I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
are standard, and very small byteswize, and they're the native format
of Inkscape. If anyone knows a way to get LyX to use SVG images as
vector graphics, please let me know.

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Graphics Tools

2012-07-17 Thread Murat Yildizoglu
Hi WIlliam,

Ipe's logic is somewhat peculiar, but very powerful when you get used to
it. I have also observed that it generates very small and clean pdf files.

Jpicedt is very powerful if you use with the option PSTricks (in the Menu
Edit/Format). Then you get access to the full potential of Postscript (for
the shape fills for example). But, including PSTricks in a file to be
compiled with pdflatex is rather tricky (but perfectly possible otherwise,
there are web pages explaining how to proceed), so you will rather prefer
the chain Latex-DVI-Postscript-PDF. You also need a JRE to execute it,
since it is Java program.

The advantage of these two programs is the possibility of directly typing
latex command in text boxes (including math), and the coherence you get in
terms of typesetting between the rest of your text and your graphics.

Tikz can also provide such a coherence but the learning cost is higher I
think.

Inkscape has also a plugin (textext if I remember well) that provides this
possibility but I have never been able to make it work under OSX, even
using Macports.

2012/7/17 William R. Buckley bill.buck...@gmail.com

 Thank you all for the list of tools.

 As my need was urgent, I tried IPE, and it works well, though is
 a bit clunky.

 Will try the others, and return a quick sense of utility for each.

 wrb

  -Original Message-
  From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
  Behalf Of Liviu Andronic
  Sent: Tuesday, July 17, 2012 5:03 AM
  To: Wolfgang Keller
  Cc: lyx-users@lists.lyx.org
  Subject: Re: Graphics Tools
 
  On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller felip...@gmx.net
  wrote:
   Wikipedia is very helpful when searching for (especially
   free open-source-)software.
  
  I like alternativeTo for this. :)
 
  Liviu




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Graphics Tools

2012-07-17 Thread Les Denham
On Mon, 16 Jul 2012 08:44:55 -0700
William R. Buckley w...@wrbuckley.com wrote:

 Working with TeX is a bit of a challenge, since it seems not to 
 include much support for abstract drawing.  I have need for figures 
 to appear in a paper, and am not familiar with the toolset usually 
 employed for use to make drawn images suitable for use with TeX.
 
 Can you please make a few suggestions.
 
 wrb
 

One tool I haven't seem mentioned is Grace
(http://plasma-gate.weizmann.ac.il/Grace/).

I've found this a very versatile program, and (on Linux at least) it
has native support from LyX. Look at
http://plasma-gate.weizmann.ac.il/Grace/gallery/
for  examples of what can be done.

Les


RE: Graphics Tools

2012-07-17 Thread Scott Kostyshak
From: Steve Litt [sl...@troubleshooters.com]
Sent: Tuesday, July 17, 2012 1:23 PM

I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
are standard, and very small byteswize, and they're the native format
of Inkscape. If anyone knows a way to get LyX to use SVG images as
vector graphics, please let me know.

Doesn't LyX already do this? If you go to Preferences  File Formats, you will 
see your converters. I have SVG - EPS, SVG - PDF, and SVG - PNG. EPS and PDF 
are both vector formats. Perhaps if you don't have inkscape installed (which is 
what is doing the conversions for me and which is searched for by LyX's 
configure), then your convertor can only convert to a raster format.

Scott

Re: Graphics Tools

2012-07-17 Thread Murat Yildizoglu
I limited my  suggestions to drawing programs. For plotting like Grace, we
have a lot of choices.

I now only use R-Project with ggplot2 for plotting data and Sage for
plotting functions (and other mathematical computations), but I was a Maple
user.


2012/7/17 Les Denham lden...@hal-pc.org

 On Mon, 16 Jul 2012 08:44:55 -0700
 William R. Buckley w...@wrbuckley.com wrote:

  Working with TeX is a bit of a challenge, since it seems not to
  include much support for abstract drawing.  I have need for figures
  to appear in a paper, and am not familiar with the toolset usually
  employed for use to make drawn images suitable for use with TeX.
 
  Can you please make a few suggestions.
 
  wrb
 

 One tool I haven't seem mentioned is Grace
 (http://plasma-gate.weizmann.ac.il/Grace/).

 I've found this a very versatile program, and (on Linux at least) it
 has native support from LyX. Look at
 http://plasma-gate.weizmann.ac.il/Grace/gallery/
 for  examples of what can be done.

 Les




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Tue, 17 Jul 2012 17:53:53 +, Scott Kostyshak said:
 From: Steve Litt [sl...@troubleshooters.com]
 Sent: Tuesday, July 17, 2012 1:23 PM
 
 I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
 are standard, and very small byteswize, and they're the native format
 of Inkscape. If anyone knows a way to get LyX to use SVG images as
 vector graphics, please let me know.
 
 Doesn't LyX already do this? If you go to Preferences  File Formats,
 you will see your converters. I have SVG - EPS, SVG - PDF, and SVG
 - PNG. EPS and PDF are both vector formats. Perhaps if you don't
 have inkscape installed (which is what is doing the conversions for
 me and which is searched for by LyX's configure), then your convertor
 can only convert to a raster format.
 
 Scott

Hi Scott,

You're right!

I looked in /home/slitt/.lyx/cache/, and found lots of SVG's that had
been converted to .pdf. A look in file /home/slitt/.lyx/cache/index
showed the conversions, and it appears that all my SVG's  were
converted to both .pdfs and .eps's. IMHO .pdf is smaller and better
than .eps, and I'm not sure why it made both, or which is used.
Sometimes I use ps2pdf, and sometimes I use pdflatex, and probably that
is why it converts both way.

You've convinced me that, whenever humanly possible, I'll use .svg
graphics with LyX.

Thanks for helping me understand this.

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Knitr chunks, how to insert them?

2012-07-17 Thread Murat Yildizoglu
Thanks Yihui,
That indeed solves my problem.
A strange observation: I was reading the knitter documentation page and
clicked by error on a tikzdevice and observed a sad message on CRAN:

Package ‘tikzDevice’ was removed from the CRAN repository.

Formerly available versions can be obtained from the
archivehttp://cran.r-project.org/src/contrib/Archive/tikzDevice
.

This package has been archived: the maintainer felt unable to provide an
update fixing WARNINGs within reasonable amount of time.

It seems that we do not have any more this very useful device. Very strange
that such a useful library becomes unavailable

Any information about this?


Murat


Le mardi 17 juillet 2012, Yihui Xie a écrit :

 Yes, you are missing the LyX/Sweave manual:
 https://github.com/downloads/yihui/lyx/sweave.pdf

 Or if you do not care about how things work, you can jump straight
 into the LyX/knitr manual:
 https://github.com/downloads/yihui/lyx/knitr.pdf

 Or just use Insert--TeX Code if you care neither of the manuals above :)

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com javascript:;
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA


 On Mon, Jul 16, 2012 at 8:01 PM, Murat Yildizoglu 
 myi...@gmail.comjavascript:;
 wrote:
  Hello,
 
  I am starting to test Knitr, since its possibilities seems much nicer
 that
  Sweave.
  I can compile now the knitr-minimal.lyx provided by Yihui, but I am not
 able
  to find how to insert chunks similar to the ones contained in the example
  file, with a red rectangle around.
  When I choose the paragraph stype chunk (that is the only one connected
 to
  KintR that I can see in the list), I can just type commands, I get the
 red
  text, but the I do not get the nice red rectangle around the chunk. I am
  probably overlooking something completely stupid, but I do not see
 what...
  Is this verbatim? I do not even remember how to introduce verbatim text
 in
  Lyx (I have thought that I would get Verbatim in paragraph styles, but I
 can
  only see Lyx code and it does not put the red rectangle around).
 
  By the way, I do not have any special obsession with the red rectangle, I
  just see that I am not able to reproduce what Yihui has given in the
 example
  file, and imagine that I am missing some functionality...
 
  Any idea on what I am missing?
 
  --
  Prof. Murat Yildizoglu
 
  Université Montesquieu Bordeaux IV
  GREThA (UMR CNRS 5113)
  Avenue Léon Duguit
  33608 Pessac cedex
  France
 
  Bureau : E-331
 
  yi...@u-bordeaux4.fr javascript:;
 
  http://yildizoglu.info
 
  http://www.twitter.com/yildizoglu
 



-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
Well, that is a sad story. CRAN has been killing R packages which do
not pass R CMD check. They have much less tolerance to such packages
now. Unfortunately the author of tikzDevice was unable to update his
package in time
(https://github.com/Sharpie/RTikZDevice/commit/95069e0a1deeb8fb9db028bbb76f227ddfcdc559#commitcomment-1562437).

Although it has been archived, you can still download the tar ball and
install it from source just like you install any *nix packages.

An alternative way to install it, according to
https://github.com/Sharpie/RTikZDevice#obtaining-the-package, is:
install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' )

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu myi...@gmail.com wrote:
 Thanks Yihui,
 That indeed solves my problem.
 A strange observation: I was reading the knitter documentation page and
 clicked by error on a tikzdevice and observed a sad message on CRAN:

 Package ‘tikzDevice’ was removed from the CRAN repository.

 Formerly available versions can be obtained from the archive.

 This package has been archived: the maintainer felt unable to provide an
 update fixing WARNINGs within reasonable amount of time.

 It seems that we do not have any more this very useful device. Very strange
 that such a useful library becomes unavailable

 Any information about this?


 Murat


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Murat Yildizoglu
Ok, reading the tikz discussion list, I have discovered that the
perspectives do not seem so gloom, the developer is preparing a new release
for August that would comply with the constraints of CRAN.
In the mean time the RForge road stays available.

Le mardi 17 juillet 2012, Yihui Xie a écrit :

 Well, that is a sad story. CRAN has been killing R packages which do
 not pass R CMD check. They have much less tolerance to such packages
 now. Unfortunately the author of tikzDevice was unable to update his
 package in time
 (
 https://github.com/Sharpie/RTikZDevice/commit/95069e0a1deeb8fb9db028bbb76f227ddfcdc559#commitcomment-1562437
 ).

 Although it has been archived, you can still download the tar ball and
 install it from source just like you install any *nix packages.

 An alternative way to install it, according to
 https://github.com/Sharpie/RTikZDevice#obtaining-the-package, is:
 install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' )

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com javascript:;
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA


 On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu 
 myi...@gmail.comjavascript:;
 wrote:
  Thanks Yihui,
  That indeed solves my problem.
  A strange observation: I was reading the knitter documentation page and
  clicked by error on a tikzdevice and observed a sad message on CRAN:
 
  Package ‘tikzDevice’ was removed from the CRAN repository.
 
  Formerly available versions can be obtained from the archive.
 
  This package has been archived: the maintainer felt unable to provide an
  update fixing WARNINGs within reasonable amount of time.
 
  It seems that we do not have any more this very useful device. Very
 strange
  that such a useful library becomes unavailable
 
  Any information about this?
 
 
  Murat



-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
You are right. It will come back eventually.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Tue, Jul 17, 2012 at 5:42 PM, Murat Yildizoglu myi...@gmail.com wrote:
 Ok, reading the tikz discussion list, I have discovered that the
 perspectives do not seem so gloom, the developer is preparing a new release
 for August that would comply with the constraints of CRAN.
 In the mean time the RForge road stays available.


configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all the 
document classes are unavailable. i have MiKTeX 2.9 installed in a separate 
folder, but intact with all the standard .cls and .sty files. At first, looking 
at tools-TeX information it showed that it found all the classes and styles 
and 
yet still listed them as unavailable in the document-settings-document class 
pane. When i remove the user directory and rerun configure.py from the command 
prompt, everything looks ok, but tools-TeX information is now blank. when i 
check the ~user\configure.log, it gives:


DEBUG: Removing file lyxmodules.lst
DEBUG: Failed to remove file chkmodules.tex
INFO: +checking list of modules... 
INFO: C:/Apps/Editors/LyX/Resources\layouts\braille.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\customHeadersFooters.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\endnotes.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\enumitem.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\eqs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\figs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\fix-cm.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\fixltx2e.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\foottoend.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\hanging.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\initials.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\knitr.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\lilypond.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\linguistics.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\logicalmkup.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\minimalistic.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\noweb.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\sweave.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\tabs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-extended-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-extended.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-chap-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-chap.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-named.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-sec-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-sec.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-starred.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-std.module
INFO:   done
DEBUG: Removing file textclass.lst
DEBUG: Failed to remove file packages.lst
INFO: checking LaTeX configuration...  default values
INFO: +checking list of textclasses... 
INFO:   done
DEBUG: Failed to remove file chkconfig.vars
DEBUG: Failed to remove file chklatex.ltx
DEBUG: Failed to remove file chklatex.log
DEBUG: Failed to remove file chklayouts.tex
DEBUG: Removing file chkmodules.tex
DEBUG: Failed to remove file missfont.log
DEBUG: Failed to remove file wrap_chkconfig.ltx
DEBUG: Failed to remove file wrap_chkconfig.log


i believe it's the failure to remove files that's causing it to exit 
prematurely. i get verification that it stops too soon because the 
textclass.lst 
file states:

# This file declares layouts and their associated definition files
# (include dir. relative to the place where this file is).
# It contains only default values, since chkconfig.ltx could not be run
# for some reason. Run ./configure.py if you need to update it after a
# configuration change.

i also found in other threads a proper output of configure.py and it included 
listings of the class and style files. The only other thing i can thing to do 
is 
to uninstall 2.0.4 and install the last stable release 2.0.2. Any other ideas?



Re: Graphics Tools

2012-07-17 Thread Pavel Sanda
Steve Litt wrote:
 You've convinced me that, whenever humanly possible, I'll use .svg
 graphics with LyX.

The bad news is that there are cases when the conversion svg-pdf(/eps)
doesn't work well and you are dependent on external tools (either inkscape
or rsvg-convert) which can change any moment and screw up your document
as their version changes.

From longterm  stability view postscript or pdf seems to be better idea
for storing vector graphic (as far as LyX usage is concerned).

Pavel


Re: configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
Erik Hammel hammyz.pub at gmail.com writes:

 
 i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
 the 
 document classes are unavailable. i have MiKTeX 2.9 installed in a separate 
 folder, but intact with all the standard .cls and .sty files. At first, 
looking 
 at tools-TeX information it showed that it found all the classes and styles 
and 
 yet still listed them as unavailable in the document-settings-document 
 class 
 pane. When i remove the user directory and rerun configure.py from the 
 command 
 prompt, everything looks ok, but tools-TeX information is now blank. when i 
 check the ~user\configure.log, it gives:
 
 i believe it's the failure to remove files that's causing it to exit 
 prematurely. i get verification that it stops too soon because the 
textclass.lst 
 file states:
 
 # This file declares layouts and their associated definition files
 # (include dir. relative to the place where this file is).
 # It contains only default values, since chkconfig.ltx could not be run
 # for some reason. Run ./configure.py if you need to update it after a
 # configuration change.




i already figured out a workaround. in the textclass.lst file, all the entries 
looks like this:

article article article false article.cls

if you change all the falses to true, the document classes become 
available. 
still, if anyone is interested, i would like to know how to do it the 
legitimate 
way, since who knows what else is being omitted aside from the classes list.







Re: configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
Erik Hammel hammyz.pub at gmail.com writes:

 
 Erik Hammel hammyz.pub at gmail.com writes:
 
  
  i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
the 
  document classes are unavailable. i have MiKTeX 2.9 installed in a 
separate 
  folder, but intact with all the standard .cls and .sty files. At first, 
 looking 
  at tools-TeX information it showed that it found all the classes and 
  styles 
 and 
  yet still listed them as unavailable in the document-settings-document 
class 
  pane. When i remove the user directory and rerun configure.py from the 
command 
  prompt, everything looks ok, but tools-TeX information is now blank. when 
  i 
  check the ~user\configure.log, it gives:
  
  i believe it's the failure to remove files that's causing it to exit 
  prematurely. i get verification that it stops too soon because the 
 textclass.lst 
  file states:
  
  # This file declares layouts and their associated definition files
  # (include dir. relative to the place where this file is).
  # It contains only default values, since chkconfig.ltx could not be run
  # for some reason. Run ./configure.py if you need to update it after a
  # configuration change.
 
 i already figured out a workaround. in the textclass.lst file, all the 
 entries 
 looks like this:
 
 article article article false article.cls
 
 if you change all the falses to true, the document classes become 
available. 
 still, if anyone is interested, i would like to know how to do it the 
legitimate 
 way, since who knows what else is being omitted aside from the classes list.
 
 


ok, it failed after i tried reconfiguring after installing some other packages. 
those packages aren't at fault, i'm getting an error i got before (from the 
~user\configure.log):

DEBUG: Removing file a b.tex
DEBUG: Removing file a b.log
DEBUG: Failed to remove file texput.log


this error causes the program to exit even before the previous .ltx files. the 
standard output also gives this:

Checking whether TeX allows spaces in file names... yes
Traceback (most recent call last):
  File c:\Apps\Editors\LyX\Resources\configure.py, line 1444, in module
windows_style_tex_paths = checkTeXPaths()
  File c:\Apps\Editors\LyX\Resources\configure.py, line 113, in checkTeXPaths
from ctypes import windll, create_unicode_buffer
  File C:\Program Files (x86)\Python27\lib\ctypes\__init__.py, line 10, in 
module
from _ctypes import Union, Structure, Array
ImportError: DLL load failed: %1 is not a valid Win32 application.


the way i fixed this before to get it slightly further was by upgrading to 
MiKTeX 2.9, but that's what i have installed now. by the way, i have also 
ensured that i have full access rights and ownership of all MiKTeX, LyX, and 
user files and directories. Thanks in advance for your help.




Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Wed, 18 Jul 2012 01:26:37 +0200, Pavel Sanda said:
 Steve Litt wrote:
  You've convinced me that, whenever humanly possible, I'll use .svg
  graphics with LyX.
 
 The bad news is that there are cases when the conversion
 svg-pdf(/eps) doesn't work well and you are dependent on external
 tools (either inkscape or rsvg-convert) which can change any moment
 and screw up your document as their version changes.
 
 From longterm  stability view postscript or pdf seems to be better
 idea for storing vector graphic (as far as LyX usage is concerned).
 
 Pavel


Hi Pavel,

You bring up an excellent point. In this particular case, my graphics
are usually made in Inkscape anyway, so unless Inkscape changes one
heck of a lot, there should be no problem.

Postscript is huge, and my experience is that it makes the finished PDF
huge too. I'll see whether including an SVG results in a materially
different result, visually or byteswise, than a PDF.

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Non-Latin font in document

2012-07-17 Thread Sam Lewis
Walter walter.stanish at gmail.com writes:

 
 I have found XeTeX the best for foreign font output.
 
 I use the following under Document|Settings|LaTeX preamble:
 
 % required for xelatex
 \usepackage{doc} % defines \bibtex macro
 \usepackage{fontspec}
 \usepackage{xunicode}
 \usepackage{xltxtra}
 
 % apparently for fontspec, not sure if actually needed
 \defaultfontfeatures{Mapping=tex-text}
 
 %: --- set up commands for different fonts for each language.
 
 %: - thai font
 \newfontfamily{\TH}[Scale=1.2]{Norasi}
 \newcommand{\thai}[1]{{\TH #1}}


Thank you for the swift reply. It works fine; I can produce pdfs with Thai words
with the correct font!

I have added \newfontfamily\Thai{Norasi} to the preamble and use the ERT
\Thai\emph{a Thai word} in the LyX document. I got an error with the suggested
\newfontfamily{\TH}[Scale=1.2]{Norasi} But that's not a problem. A little bit of
ERT is fine.

I was wondering whether it is also possible to generate OpenDocument outputs
with XeTex, like pdflatex can do. I only got xhtml now, but that seems limited
as I believe there is no way to import this into libreoffice.





Re: Graphics Tools

2012-07-17 Thread Guenter Milde
On 2012-07-16, Steve Litt wrote:

 I use dia for diagrams (kind of what Windows guys use Visio for),
 Inkscape for vector drawing, and Gimp for raster drawing.

 dia exports to .png, which can import directly into LyX. 

However, this means exporting a vector drawing to a raster bitmap.
Dia can also export to PDF and/or Postscript, which is the better choice and
works with LyX like a charm.

Alternatively, you can use the external inset (InsertFileExternal ...)
to insert the dia file itself (with internal conversion by LyX).


 Inkscape
 uses .svg, which can import directly into LyX, for a native format.
 Gimp can write just about any kind of raster format.


Günter



Re: Graphics Tools

2012-07-17 Thread Wolfgang Keller
 Can you please make a few suggestions.

Depends on what you need. Some that haven't been mentioned yet:

- yEd www.yworks.com
- sK1 sk1project.org
- Xara www.xaraxtreme.org
- On MacOS X: Omnigraffle, of course

Wikipedia is very helpful when searching for (especially
free open-source-)software.

Sincerely,

Wolfgang


Re: Graphics Tools

2012-07-17 Thread Liviu Andronic
On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller felip...@gmx.net wrote:
 Wikipedia is very helpful when searching for (especially
 free open-source-)software.

I like alternativeTo for this. :)

Liviu


RE: Graphics Tools

2012-07-17 Thread William R. Buckley
Thank you all for the list of tools.

As my need was urgent, I tried IPE, and it works well, though is 
a bit clunky.

Will try the others, and return a quick sense of utility for each.

wrb

 -Original Message-
 From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
 Behalf Of Liviu Andronic
 Sent: Tuesday, July 17, 2012 5:03 AM
 To: Wolfgang Keller
 Cc: lyx-users@lists.lyx.org
 Subject: Re: Graphics Tools
 
 On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller felip...@gmx.net
 wrote:
  Wikipedia is very helpful when searching for (especially
  free open-source-)software.
 
 I like alternativeTo for this. :)
 
 Liviu



Re: Unable to export to OpenDocument ODF

2012-07-17 Thread Richard Heck

On 07/12/2012 11:52 PM, Ray Rashif wrote:

On 13 July 2012 05:09, Richard Heck rgh...@lyx.org wrote:

On 07/12/2012 02:45 PM, Ray Rashif wrote:

I'm trying to export my entire document to a format which can be
edited in conventional word processing software (OpenOffice, MS Word).
As RTF does not support images, and HTML export does not retain much
of the formatting (e.g. citations, sometimes not even appearing),


Have you tried using LyX's own XHTML export? I've had very good luck using
it for this
purpose.

Yes, that works well. However, I'm not able to open it (the xhtml
file) with any word processor. Most obvioously, MS Word does not
recognise ldquote. I gave up at that point. Do you have any
suggestion for this?

Where is ldquote coming from?

Perhaps you should try opening the file in Libre Office, or some other 
program.


Richard



Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Tue, 17 Jul 2012 07:35:55 + (UTC), Guenter Milde said:
 On 2012-07-16, Steve Litt wrote:
 
  I use dia for diagrams (kind of what Windows guys use Visio for),
  Inkscape for vector drawing, and Gimp for raster drawing.
 
  dia exports to .png, which can import directly into LyX. 
 
 However, this means exporting a vector drawing to a raster bitmap.
 Dia can also export to PDF and/or Postscript, which is the better
 choice and works with LyX like a charm.


Hi Günter,

How about SVG? Lately I've been putting SVG into LyX documents, and SVG
is vector. But I've gotten the impression that LyX incorporates an SVG
image by converting it to a vector graphic.

I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
are standard, and very small byteswize, and they're the native format
of Inkscape. If anyone knows a way to get LyX to use SVG images as
vector graphics, please let me know.

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Graphics Tools

2012-07-17 Thread Murat Yildizoglu
Hi WIlliam,

Ipe's logic is somewhat peculiar, but very powerful when you get used to
it. I have also observed that it generates very small and clean pdf files.

Jpicedt is very powerful if you use with the option PSTricks (in the Menu
Edit/Format). Then you get access to the full potential of Postscript (for
the shape fills for example). But, including PSTricks in a file to be
compiled with pdflatex is rather tricky (but perfectly possible otherwise,
there are web pages explaining how to proceed), so you will rather prefer
the chain Latex-DVI-Postscript-PDF. You also need a JRE to execute it,
since it is Java program.

The advantage of these two programs is the possibility of directly typing
latex command in text boxes (including math), and the coherence you get in
terms of typesetting between the rest of your text and your graphics.

Tikz can also provide such a coherence but the learning cost is higher I
think.

Inkscape has also a plugin (textext if I remember well) that provides this
possibility but I have never been able to make it work under OSX, even
using Macports.

2012/7/17 William R. Buckley bill.buck...@gmail.com

 Thank you all for the list of tools.

 As my need was urgent, I tried IPE, and it works well, though is
 a bit clunky.

 Will try the others, and return a quick sense of utility for each.

 wrb

  -Original Message-
  From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
  Behalf Of Liviu Andronic
  Sent: Tuesday, July 17, 2012 5:03 AM
  To: Wolfgang Keller
  Cc: lyx-users@lists.lyx.org
  Subject: Re: Graphics Tools
 
  On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller felip...@gmx.net
  wrote:
   Wikipedia is very helpful when searching for (especially
   free open-source-)software.
  
  I like alternativeTo for this. :)
 
  Liviu




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Graphics Tools

2012-07-17 Thread Les Denham
On Mon, 16 Jul 2012 08:44:55 -0700
William R. Buckley w...@wrbuckley.com wrote:

 Working with TeX is a bit of a challenge, since it seems not to 
 include much support for abstract drawing.  I have need for figures 
 to appear in a paper, and am not familiar with the toolset usually 
 employed for use to make drawn images suitable for use with TeX.
 
 Can you please make a few suggestions.
 
 wrb
 

One tool I haven't seem mentioned is Grace
(http://plasma-gate.weizmann.ac.il/Grace/).

I've found this a very versatile program, and (on Linux at least) it
has native support from LyX. Look at
http://plasma-gate.weizmann.ac.il/Grace/gallery/
for  examples of what can be done.

Les


RE: Graphics Tools

2012-07-17 Thread Scott Kostyshak
From: Steve Litt [sl...@troubleshooters.com]
Sent: Tuesday, July 17, 2012 1:23 PM

I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
are standard, and very small byteswize, and they're the native format
of Inkscape. If anyone knows a way to get LyX to use SVG images as
vector graphics, please let me know.

Doesn't LyX already do this? If you go to Preferences  File Formats, you will 
see your converters. I have SVG - EPS, SVG - PDF, and SVG - PNG. EPS and PDF 
are both vector formats. Perhaps if you don't have inkscape installed (which is 
what is doing the conversions for me and which is searched for by LyX's 
configure), then your convertor can only convert to a raster format.

Scott

Re: Graphics Tools

2012-07-17 Thread Murat Yildizoglu
I limited my  suggestions to drawing programs. For plotting like Grace, we
have a lot of choices.

I now only use R-Project with ggplot2 for plotting data and Sage for
plotting functions (and other mathematical computations), but I was a Maple
user.


2012/7/17 Les Denham lden...@hal-pc.org

 On Mon, 16 Jul 2012 08:44:55 -0700
 William R. Buckley w...@wrbuckley.com wrote:

  Working with TeX is a bit of a challenge, since it seems not to
  include much support for abstract drawing.  I have need for figures
  to appear in a paper, and am not familiar with the toolset usually
  employed for use to make drawn images suitable for use with TeX.
 
  Can you please make a few suggestions.
 
  wrb
 

 One tool I haven't seem mentioned is Grace
 (http://plasma-gate.weizmann.ac.il/Grace/).

 I've found this a very versatile program, and (on Linux at least) it
 has native support from LyX. Look at
 http://plasma-gate.weizmann.ac.il/Grace/gallery/
 for  examples of what can be done.

 Les




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Tue, 17 Jul 2012 17:53:53 +, Scott Kostyshak said:
 From: Steve Litt [sl...@troubleshooters.com]
 Sent: Tuesday, July 17, 2012 1:23 PM
 
 I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
 are standard, and very small byteswize, and they're the native format
 of Inkscape. If anyone knows a way to get LyX to use SVG images as
 vector graphics, please let me know.
 
 Doesn't LyX already do this? If you go to Preferences  File Formats,
 you will see your converters. I have SVG - EPS, SVG - PDF, and SVG
 - PNG. EPS and PDF are both vector formats. Perhaps if you don't
 have inkscape installed (which is what is doing the conversions for
 me and which is searched for by LyX's configure), then your convertor
 can only convert to a raster format.
 
 Scott

Hi Scott,

You're right!

I looked in /home/slitt/.lyx/cache/, and found lots of SVG's that had
been converted to .pdf. A look in file /home/slitt/.lyx/cache/index
showed the conversions, and it appears that all my SVG's  were
converted to both .pdfs and .eps's. IMHO .pdf is smaller and better
than .eps, and I'm not sure why it made both, or which is used.
Sometimes I use ps2pdf, and sometimes I use pdflatex, and probably that
is why it converts both way.

You've convinced me that, whenever humanly possible, I'll use .svg
graphics with LyX.

Thanks for helping me understand this.

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Knitr chunks, how to insert them?

2012-07-17 Thread Murat Yildizoglu
Thanks Yihui,
That indeed solves my problem.
A strange observation: I was reading the knitter documentation page and
clicked by error on a tikzdevice and observed a sad message on CRAN:

Package ‘tikzDevice’ was removed from the CRAN repository.

Formerly available versions can be obtained from the
archivehttp://cran.r-project.org/src/contrib/Archive/tikzDevice
.

This package has been archived: the maintainer felt unable to provide an
update fixing WARNINGs within reasonable amount of time.

It seems that we do not have any more this very useful device. Very strange
that such a useful library becomes unavailable

Any information about this?


Murat


Le mardi 17 juillet 2012, Yihui Xie a écrit :

 Yes, you are missing the LyX/Sweave manual:
 https://github.com/downloads/yihui/lyx/sweave.pdf

 Or if you do not care about how things work, you can jump straight
 into the LyX/knitr manual:
 https://github.com/downloads/yihui/lyx/knitr.pdf

 Or just use Insert--TeX Code if you care neither of the manuals above :)

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com javascript:;
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA


 On Mon, Jul 16, 2012 at 8:01 PM, Murat Yildizoglu 
 myi...@gmail.comjavascript:;
 wrote:
  Hello,
 
  I am starting to test Knitr, since its possibilities seems much nicer
 that
  Sweave.
  I can compile now the knitr-minimal.lyx provided by Yihui, but I am not
 able
  to find how to insert chunks similar to the ones contained in the example
  file, with a red rectangle around.
  When I choose the paragraph stype chunk (that is the only one connected
 to
  KintR that I can see in the list), I can just type commands, I get the
 red
  text, but the I do not get the nice red rectangle around the chunk. I am
  probably overlooking something completely stupid, but I do not see
 what...
  Is this verbatim? I do not even remember how to introduce verbatim text
 in
  Lyx (I have thought that I would get Verbatim in paragraph styles, but I
 can
  only see Lyx code and it does not put the red rectangle around).
 
  By the way, I do not have any special obsession with the red rectangle, I
  just see that I am not able to reproduce what Yihui has given in the
 example
  file, and imagine that I am missing some functionality...
 
  Any idea on what I am missing?
 
  --
  Prof. Murat Yildizoglu
 
  Université Montesquieu Bordeaux IV
  GREThA (UMR CNRS 5113)
  Avenue Léon Duguit
  33608 Pessac cedex
  France
 
  Bureau : E-331
 
  yi...@u-bordeaux4.fr javascript:;
 
  http://yildizoglu.info
 
  http://www.twitter.com/yildizoglu
 



-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
Well, that is a sad story. CRAN has been killing R packages which do
not pass R CMD check. They have much less tolerance to such packages
now. Unfortunately the author of tikzDevice was unable to update his
package in time
(https://github.com/Sharpie/RTikZDevice/commit/95069e0a1deeb8fb9db028bbb76f227ddfcdc559#commitcomment-1562437).

Although it has been archived, you can still download the tar ball and
install it from source just like you install any *nix packages.

An alternative way to install it, according to
https://github.com/Sharpie/RTikZDevice#obtaining-the-package, is:
install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' )

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu myi...@gmail.com wrote:
 Thanks Yihui,
 That indeed solves my problem.
 A strange observation: I was reading the knitter documentation page and
 clicked by error on a tikzdevice and observed a sad message on CRAN:

 Package ‘tikzDevice’ was removed from the CRAN repository.

 Formerly available versions can be obtained from the archive.

 This package has been archived: the maintainer felt unable to provide an
 update fixing WARNINGs within reasonable amount of time.

 It seems that we do not have any more this very useful device. Very strange
 that such a useful library becomes unavailable

 Any information about this?


 Murat


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Murat Yildizoglu
Ok, reading the tikz discussion list, I have discovered that the
perspectives do not seem so gloom, the developer is preparing a new release
for August that would comply with the constraints of CRAN.
In the mean time the RForge road stays available.

Le mardi 17 juillet 2012, Yihui Xie a écrit :

 Well, that is a sad story. CRAN has been killing R packages which do
 not pass R CMD check. They have much less tolerance to such packages
 now. Unfortunately the author of tikzDevice was unable to update his
 package in time
 (
 https://github.com/Sharpie/RTikZDevice/commit/95069e0a1deeb8fb9db028bbb76f227ddfcdc559#commitcomment-1562437
 ).

 Although it has been archived, you can still download the tar ball and
 install it from source just like you install any *nix packages.

 An alternative way to install it, according to
 https://github.com/Sharpie/RTikZDevice#obtaining-the-package, is:
 install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' )

 Regards,
 Yihui
 --
 Yihui Xie xieyi...@gmail.com javascript:;
 Phone: 515-294-2465 Web: http://yihui.name
 Department of Statistics, Iowa State University
 2215 Snedecor Hall, Ames, IA


 On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu 
 myi...@gmail.comjavascript:;
 wrote:
  Thanks Yihui,
  That indeed solves my problem.
  A strange observation: I was reading the knitter documentation page and
  clicked by error on a tikzdevice and observed a sad message on CRAN:
 
  Package ‘tikzDevice’ was removed from the CRAN repository.
 
  Formerly available versions can be obtained from the archive.
 
  This package has been archived: the maintainer felt unable to provide an
  update fixing WARNINGs within reasonable amount of time.
 
  It seems that we do not have any more this very useful device. Very
 strange
  that such a useful library becomes unavailable
 
  Any information about this?
 
 
  Murat



-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
You are right. It will come back eventually.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Tue, Jul 17, 2012 at 5:42 PM, Murat Yildizoglu myi...@gmail.com wrote:
 Ok, reading the tikz discussion list, I have discovered that the
 perspectives do not seem so gloom, the developer is preparing a new release
 for August that would comply with the constraints of CRAN.
 In the mean time the RForge road stays available.


configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all the 
document classes are unavailable. i have MiKTeX 2.9 installed in a separate 
folder, but intact with all the standard .cls and .sty files. At first, looking 
at tools-TeX information it showed that it found all the classes and styles 
and 
yet still listed them as unavailable in the document-settings-document class 
pane. When i remove the user directory and rerun configure.py from the command 
prompt, everything looks ok, but tools-TeX information is now blank. when i 
check the ~user\configure.log, it gives:


DEBUG: Removing file lyxmodules.lst
DEBUG: Failed to remove file chkmodules.tex
INFO: +checking list of modules... 
INFO: C:/Apps/Editors/LyX/Resources\layouts\braille.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\customHeadersFooters.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\endnotes.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\enumitem.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\eqs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\figs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\fix-cm.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\fixltx2e.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\foottoend.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\hanging.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\initials.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\knitr.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\lilypond.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\linguistics.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\logicalmkup.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\minimalistic.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\noweb.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\sweave.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\tabs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-extended-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-extended.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-chap-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-chap.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-named.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-sec-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-sec.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-starred.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-std.module
INFO:   done
DEBUG: Removing file textclass.lst
DEBUG: Failed to remove file packages.lst
INFO: checking LaTeX configuration...  default values
INFO: +checking list of textclasses... 
INFO:   done
DEBUG: Failed to remove file chkconfig.vars
DEBUG: Failed to remove file chklatex.ltx
DEBUG: Failed to remove file chklatex.log
DEBUG: Failed to remove file chklayouts.tex
DEBUG: Removing file chkmodules.tex
DEBUG: Failed to remove file missfont.log
DEBUG: Failed to remove file wrap_chkconfig.ltx
DEBUG: Failed to remove file wrap_chkconfig.log


i believe it's the failure to remove files that's causing it to exit 
prematurely. i get verification that it stops too soon because the 
textclass.lst 
file states:

# This file declares layouts and their associated definition files
# (include dir. relative to the place where this file is).
# It contains only default values, since chkconfig.ltx could not be run
# for some reason. Run ./configure.py if you need to update it after a
# configuration change.

i also found in other threads a proper output of configure.py and it included 
listings of the class and style files. The only other thing i can thing to do 
is 
to uninstall 2.0.4 and install the last stable release 2.0.2. Any other ideas?



Re: Graphics Tools

2012-07-17 Thread Pavel Sanda
Steve Litt wrote:
 You've convinced me that, whenever humanly possible, I'll use .svg
 graphics with LyX.

The bad news is that there are cases when the conversion svg-pdf(/eps)
doesn't work well and you are dependent on external tools (either inkscape
or rsvg-convert) which can change any moment and screw up your document
as their version changes.

From longterm  stability view postscript or pdf seems to be better idea
for storing vector graphic (as far as LyX usage is concerned).

Pavel


Re: configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
Erik Hammel hammyz.pub at gmail.com writes:

 
 i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
 the 
 document classes are unavailable. i have MiKTeX 2.9 installed in a separate 
 folder, but intact with all the standard .cls and .sty files. At first, 
looking 
 at tools-TeX information it showed that it found all the classes and styles 
and 
 yet still listed them as unavailable in the document-settings-document 
 class 
 pane. When i remove the user directory and rerun configure.py from the 
 command 
 prompt, everything looks ok, but tools-TeX information is now blank. when i 
 check the ~user\configure.log, it gives:
 
 i believe it's the failure to remove files that's causing it to exit 
 prematurely. i get verification that it stops too soon because the 
textclass.lst 
 file states:
 
 # This file declares layouts and their associated definition files
 # (include dir. relative to the place where this file is).
 # It contains only default values, since chkconfig.ltx could not be run
 # for some reason. Run ./configure.py if you need to update it after a
 # configuration change.




i already figured out a workaround. in the textclass.lst file, all the entries 
looks like this:

article article article false article.cls

if you change all the falses to true, the document classes become 
available. 
still, if anyone is interested, i would like to know how to do it the 
legitimate 
way, since who knows what else is being omitted aside from the classes list.







Re: configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
Erik Hammel hammyz.pub at gmail.com writes:

 
 Erik Hammel hammyz.pub at gmail.com writes:
 
  
  i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
the 
  document classes are unavailable. i have MiKTeX 2.9 installed in a 
separate 
  folder, but intact with all the standard .cls and .sty files. At first, 
 looking 
  at tools-TeX information it showed that it found all the classes and 
  styles 
 and 
  yet still listed them as unavailable in the document-settings-document 
class 
  pane. When i remove the user directory and rerun configure.py from the 
command 
  prompt, everything looks ok, but tools-TeX information is now blank. when 
  i 
  check the ~user\configure.log, it gives:
  
  i believe it's the failure to remove files that's causing it to exit 
  prematurely. i get verification that it stops too soon because the 
 textclass.lst 
  file states:
  
  # This file declares layouts and their associated definition files
  # (include dir. relative to the place where this file is).
  # It contains only default values, since chkconfig.ltx could not be run
  # for some reason. Run ./configure.py if you need to update it after a
  # configuration change.
 
 i already figured out a workaround. in the textclass.lst file, all the 
 entries 
 looks like this:
 
 article article article false article.cls
 
 if you change all the falses to true, the document classes become 
available. 
 still, if anyone is interested, i would like to know how to do it the 
legitimate 
 way, since who knows what else is being omitted aside from the classes list.
 
 


ok, it failed after i tried reconfiguring after installing some other packages. 
those packages aren't at fault, i'm getting an error i got before (from the 
~user\configure.log):

DEBUG: Removing file a b.tex
DEBUG: Removing file a b.log
DEBUG: Failed to remove file texput.log


this error causes the program to exit even before the previous .ltx files. the 
standard output also gives this:

Checking whether TeX allows spaces in file names... yes
Traceback (most recent call last):
  File c:\Apps\Editors\LyX\Resources\configure.py, line 1444, in module
windows_style_tex_paths = checkTeXPaths()
  File c:\Apps\Editors\LyX\Resources\configure.py, line 113, in checkTeXPaths
from ctypes import windll, create_unicode_buffer
  File C:\Program Files (x86)\Python27\lib\ctypes\__init__.py, line 10, in 
module
from _ctypes import Union, Structure, Array
ImportError: DLL load failed: %1 is not a valid Win32 application.


the way i fixed this before to get it slightly further was by upgrading to 
MiKTeX 2.9, but that's what i have installed now. by the way, i have also 
ensured that i have full access rights and ownership of all MiKTeX, LyX, and 
user files and directories. Thanks in advance for your help.




Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Wed, 18 Jul 2012 01:26:37 +0200, Pavel Sanda said:
 Steve Litt wrote:
  You've convinced me that, whenever humanly possible, I'll use .svg
  graphics with LyX.
 
 The bad news is that there are cases when the conversion
 svg-pdf(/eps) doesn't work well and you are dependent on external
 tools (either inkscape or rsvg-convert) which can change any moment
 and screw up your document as their version changes.
 
 From longterm  stability view postscript or pdf seems to be better
 idea for storing vector graphic (as far as LyX usage is concerned).
 
 Pavel


Hi Pavel,

You bring up an excellent point. In this particular case, my graphics
are usually made in Inkscape anyway, so unless Inkscape changes one
heck of a lot, there should be no problem.

Postscript is huge, and my experience is that it makes the finished PDF
huge too. I'll see whether including an SVG results in a materially
different result, visually or byteswise, than a PDF.

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Non-Latin font in document

2012-07-17 Thread Sam Lewis
Walter  gmail.com> writes:

> 
> I have found XeTeX the best for foreign font output.
> 
> I use the following under Document|Settings|LaTeX preamble:
> 
> % required for xelatex
> \usepackage{doc} % defines \bibtex macro
> \usepackage{fontspec}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> 
> % apparently for fontspec, not sure if actually needed
> \defaultfontfeatures{Mapping=tex-text}
> 
> %: --- set up commands for different fonts for each language.
> 
> %: - thai font
> \newfontfamily{\TH}[Scale=1.2]{Norasi}
> \newcommand{\thai}[1]{{\TH #1}}


Thank you for the swift reply. It works fine; I can produce pdfs with Thai words
with the correct font!

I have added \newfontfamily\Thai{Norasi} to the preamble and use the ERT
\Thai\emph{a Thai word} in the LyX document. I got an error with the suggested
\newfontfamily{\TH}[Scale=1.2]{Norasi} But that's not a problem. A little bit of
ERT is fine.

I was wondering whether it is also possible to generate OpenDocument outputs
with XeTex, like pdflatex can do. I only got xhtml now, but that seems limited
as I believe there is no way to import this into libreoffice.





Re: Graphics Tools

2012-07-17 Thread Guenter Milde
On 2012-07-16, Steve Litt wrote:

> I use dia for diagrams (kind of what Windows guys use Visio for),
> Inkscape for vector drawing, and Gimp for raster drawing.

> dia exports to .png, which can import directly into LyX. 

However, this means exporting a vector drawing to a raster bitmap.
Dia can also export to PDF and/or Postscript, which is the better choice and
works with LyX like a charm.

Alternatively, you can use the external inset (Insert>File>External ...)
to insert the dia file itself (with internal conversion by LyX).


> Inkscape
> uses .svg, which can import directly into LyX, for a native format.
> Gimp can write just about any kind of raster format.


Günter



Re: Graphics Tools

2012-07-17 Thread Wolfgang Keller
> Can you please make a few suggestions.

Depends on what you need. Some that haven't been mentioned yet:

- yEd www.yworks.com
- sK1 sk1project.org
- Xara www.xaraxtreme.org
- On MacOS X: Omnigraffle, of course

Wikipedia is very helpful when searching for (especially
free open-source-)software.

Sincerely,

Wolfgang


Re: Graphics Tools

2012-07-17 Thread Liviu Andronic
On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller  wrote:
> Wikipedia is very helpful when searching for (especially
> free open-source-)software.
>
I like alternativeTo for this. :)

Liviu


RE: Graphics Tools

2012-07-17 Thread William R. Buckley
Thank you all for the list of tools.

As my need was urgent, I tried IPE, and it works well, though is 
a bit clunky.

Will try the others, and return a quick sense of utility for each.

wrb

> -Original Message-
> From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
> Behalf Of Liviu Andronic
> Sent: Tuesday, July 17, 2012 5:03 AM
> To: Wolfgang Keller
> Cc: lyx-users@lists.lyx.org
> Subject: Re: Graphics Tools
> 
> On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller 
> wrote:
> > Wikipedia is very helpful when searching for (especially
> > free open-source-)software.
> >
> I like alternativeTo for this. :)
> 
> Liviu



Re: Unable to export to OpenDocument ODF

2012-07-17 Thread Richard Heck

On 07/12/2012 11:52 PM, Ray Rashif wrote:

On 13 July 2012 05:09, Richard Heck  wrote:

On 07/12/2012 02:45 PM, Ray Rashif wrote:

I'm trying to export my entire document to a format which can be
edited in conventional word processing software (OpenOffice, MS Word).
As RTF does not support images, and HTML export does not retain much
of the formatting (e.g. citations, sometimes not even appearing),


Have you tried using LyX's own XHTML export? I've had very good luck using
it for this
purpose.

Yes, that works well. However, I'm not able to open it (the xhtml
file) with any word processor. Most obvioously, MS Word does not
recognise "ldquote". I gave up at that point. Do you have any
suggestion for this?

Where is ldquote coming from?

Perhaps you should try opening the file in Libre Office, or some other 
program.


Richard



Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Tue, 17 Jul 2012 07:35:55 + (UTC), Guenter Milde said:
> On 2012-07-16, Steve Litt wrote:
> 
> > I use dia for diagrams (kind of what Windows guys use Visio for),
> > Inkscape for vector drawing, and Gimp for raster drawing.
> 
> > dia exports to .png, which can import directly into LyX. 
> 
> However, this means exporting a vector drawing to a raster bitmap.
> Dia can also export to PDF and/or Postscript, which is the better
> choice and works with LyX like a charm.


Hi Günter,

How about SVG? Lately I've been putting SVG into LyX documents, and SVG
is vector. But I've gotten the impression that LyX incorporates an SVG
image by converting it to a vector graphic.

I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
are standard, and very small byteswize, and they're the native format
of Inkscape. If anyone knows a way to get LyX to use SVG images as
vector graphics, please let me know.

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Graphics Tools

2012-07-17 Thread Murat Yildizoglu
Hi WIlliam,

Ipe's logic is somewhat peculiar, but very powerful when you get used to
it. I have also observed that it generates very small and clean pdf files.

Jpicedt is very powerful if you use with the option PSTricks (in the Menu
Edit/Format). Then you get access to the full potential of Postscript (for
the shape fills for example). But, including PSTricks in a file to be
compiled with pdflatex is rather tricky (but perfectly possible otherwise,
there are web pages explaining how to proceed), so you will rather prefer
the chain Latex->DVI->Postscript-PDF. You also need a JRE to execute it,
since it is Java program.

The advantage of these two programs is the possibility of directly typing
latex command in text boxes (including math), and the coherence you get in
terms of typesetting between the rest of your text and your graphics.

Tikz can also provide such a coherence but the learning cost is higher I
think.

Inkscape has also a plugin (textext if I remember well) that provides this
possibility but I have never been able to make it work under OSX, even
using Macports.

2012/7/17 William R. Buckley 

> Thank you all for the list of tools.
>
> As my need was urgent, I tried IPE, and it works well, though is
> a bit clunky.
>
> Will try the others, and return a quick sense of utility for each.
>
> wrb
>
> > -Original Message-
> > From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
> > Behalf Of Liviu Andronic
> > Sent: Tuesday, July 17, 2012 5:03 AM
> > To: Wolfgang Keller
> > Cc: lyx-users@lists.lyx.org
> > Subject: Re: Graphics Tools
> >
> > On Tue, Jul 17, 2012 at 1:54 PM, Wolfgang Keller 
> > wrote:
> > > Wikipedia is very helpful when searching for (especially
> > > free open-source-)software.
> > >
> > I like alternativeTo for this. :)
> >
> > Liviu
>
>


-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Graphics Tools

2012-07-17 Thread Les Denham
On Mon, 16 Jul 2012 08:44:55 -0700
"William R. Buckley"  wrote:

> Working with TeX is a bit of a challenge, since it seems not to 
> include much support for abstract drawing.  I have need for figures 
> to appear in a paper, and am not familiar with the toolset usually 
> employed for use to make drawn images suitable for use with TeX.
> 
> Can you please make a few suggestions.
> 
> wrb
> 

One tool I haven't seem mentioned is Grace
(http://plasma-gate.weizmann.ac.il/Grace/).

I've found this a very versatile program, and (on Linux at least) it
has native support from LyX. Look at
http://plasma-gate.weizmann.ac.il/Grace/gallery/
for  examples of what can be done.

Les


RE: Graphics Tools

2012-07-17 Thread Scott Kostyshak
From: Steve Litt [sl...@troubleshooters.com]
Sent: Tuesday, July 17, 2012 1:23 PM

>I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
>are standard, and very small byteswize, and they're the native format
>of Inkscape. If anyone knows a way to get LyX to use SVG images as
>vector graphics, please let me know.

Doesn't LyX already do this? If you go to Preferences > File Formats, you will 
see your converters. I have SVG -> EPS, SVG -> PDF, and SVG -> PNG. EPS and PDF 
are both vector formats. Perhaps if you don't have inkscape installed (which is 
what is doing the conversions for me and which is searched for by LyX's 
configure), then your convertor can only convert to a raster format.

Scott

Re: Graphics Tools

2012-07-17 Thread Murat Yildizoglu
I limited my  suggestions to drawing programs. For plotting like Grace, we
have a lot of choices.

I now only use R-Project with ggplot2 for plotting data and Sage for
plotting functions (and other mathematical computations), but I was a Maple
user.


2012/7/17 Les Denham 

> On Mon, 16 Jul 2012 08:44:55 -0700
> "William R. Buckley"  wrote:
>
> > Working with TeX is a bit of a challenge, since it seems not to
> > include much support for abstract drawing.  I have need for figures
> > to appear in a paper, and am not familiar with the toolset usually
> > employed for use to make drawn images suitable for use with TeX.
> >
> > Can you please make a few suggestions.
> >
> > wrb
> >
>
> One tool I haven't seem mentioned is Grace
> (http://plasma-gate.weizmann.ac.il/Grace/).
>
> I've found this a very versatile program, and (on Linux at least) it
> has native support from LyX. Look at
> http://plasma-gate.weizmann.ac.il/Grace/gallery/
> for  examples of what can be done.
>
> Les
>



-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Tue, 17 Jul 2012 17:53:53 +, Scott Kostyshak said:
> From: Steve Litt [sl...@troubleshooters.com]
> Sent: Tuesday, July 17, 2012 1:23 PM
> 
> >I'd **LOVE** for LyX to use SVG images as vector graphics. SVG images
> >are standard, and very small byteswize, and they're the native format
> >of Inkscape. If anyone knows a way to get LyX to use SVG images as
> >vector graphics, please let me know.
> 
> Doesn't LyX already do this? If you go to Preferences > File Formats,
> you will see your converters. I have SVG -> EPS, SVG -> PDF, and SVG
> -> PNG. EPS and PDF are both vector formats. Perhaps if you don't
> have inkscape installed (which is what is doing the conversions for
> me and which is searched for by LyX's configure), then your convertor
> can only convert to a raster format.
> 
> Scott

Hi Scott,

You're right!

I looked in /home/slitt/.lyx/cache/, and found lots of SVG's that had
been converted to .pdf. A look in file /home/slitt/.lyx/cache/index
showed the conversions, and it appears that all my SVG's  were
converted to both .pdfs and .eps's. IMHO .pdf is smaller and better
than .eps, and I'm not sure why it made both, or which is used.
Sometimes I use ps2pdf, and sometimes I use pdflatex, and probably that
is why it converts both way.

You've convinced me that, whenever humanly possible, I'll use .svg
graphics with LyX.

Thanks for helping me understand this.

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Knitr chunks, how to insert them?

2012-07-17 Thread Murat Yildizoglu
Thanks Yihui,
That indeed solves my problem.
A strange observation: I was reading the knitter documentation page and
clicked by error on a tikzdevice and observed a sad message on CRAN:

Package ‘tikzDevice’ was removed from the CRAN repository.

Formerly available versions can be obtained from the
archive
.

This package has been archived: the maintainer felt unable to provide an
update fixing WARNINGs within reasonable amount of time.

It seems that we do not have any more this very useful device. Very strange
that such a useful library becomes unavailable

Any information about this?


Murat


Le mardi 17 juillet 2012, Yihui Xie a écrit :

> Yes, you are missing the LyX/Sweave manual:
> https://github.com/downloads/yihui/lyx/sweave.pdf
>
> Or if you do not care about how things work, you can jump straight
> into the LyX/knitr manual:
> https://github.com/downloads/yihui/lyx/knitr.pdf
>
> Or just use Insert-->TeX Code if you care neither of the manuals above :)
>
> Regards,
> Yihui
> --
> Yihui Xie >
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
>
>
> On Mon, Jul 16, 2012 at 8:01 PM, Murat Yildizoglu 
> >
> wrote:
> > Hello,
> >
> > I am starting to test Knitr, since its possibilities seems much nicer
> that
> > Sweave.
> > I can compile now the knitr-minimal.lyx provided by Yihui, but I am not
> able
> > to find how to insert chunks similar to the ones contained in the example
> > file, with a red rectangle around.
> > When I choose the paragraph stype chunk (that is the only one connected
> to
> > KintR that I can see in the list), I can just type commands, I get the
> red
> > text, but the I do not get the nice red rectangle around the chunk. I am
> > probably overlooking something completely stupid, but I do not see
> what...
> > Is this verbatim? I do not even remember how to introduce verbatim text
> in
> > Lyx (I have thought that I would get Verbatim in paragraph styles, but I
> can
> > only see Lyx code and it does not put the red rectangle around).
> >
> > By the way, I do not have any special obsession with the red rectangle, I
> > just see that I am not able to reproduce what Yihui has given in the
> example
> > file, and imagine that I am missing some functionality...
> >
> > Any idea on what I am missing?
> >
> > --
> > Prof. Murat Yildizoglu
> >
> > Université Montesquieu Bordeaux IV
> > GREThA (UMR CNRS 5113)
> > Avenue Léon Duguit
> > 33608 Pessac cedex
> > France
> >
> > Bureau : E-331
> >
> > yi...@u-bordeaux4.fr 
> >
> > http://yildizoglu.info
> >
> > http://www.twitter.com/yildizoglu
> >
>


-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
Well, that is a sad story. CRAN has been "killing" R packages which do
not pass R CMD check. They have much less tolerance to such packages
now. Unfortunately the author of tikzDevice was unable to update his
package in time
(https://github.com/Sharpie/RTikZDevice/commit/95069e0a1deeb8fb9db028bbb76f227ddfcdc559#commitcomment-1562437).

Although it has been archived, you can still download the tar ball and
install it from source just like you install any *nix packages.

An alternative way to install it, according to
https://github.com/Sharpie/RTikZDevice#obtaining-the-package, is:
install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' )

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu  wrote:
> Thanks Yihui,
> That indeed solves my problem.
> A strange observation: I was reading the knitter documentation page and
> clicked by error on a tikzdevice and observed a sad message on CRAN:
>
> Package ‘tikzDevice’ was removed from the CRAN repository.
>
> Formerly available versions can be obtained from the archive.
>
> This package has been archived: the maintainer felt unable to provide an
> update fixing WARNINGs within reasonable amount of time.
>
> It seems that we do not have any more this very useful device. Very strange
> that such a useful library becomes unavailable
>
> Any information about this?
>
>
> Murat


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Murat Yildizoglu
Ok, reading the tikz discussion list, I have discovered that the
perspectives do not seem so gloom, the developer is preparing a new release
for August that would comply with the constraints of CRAN.
In the mean time the RForge road stays available.

Le mardi 17 juillet 2012, Yihui Xie a écrit :

> Well, that is a sad story. CRAN has been "killing" R packages which do
> not pass R CMD check. They have much less tolerance to such packages
> now. Unfortunately the author of tikzDevice was unable to update his
> package in time
> (
> https://github.com/Sharpie/RTikZDevice/commit/95069e0a1deeb8fb9db028bbb76f227ddfcdc559#commitcomment-1562437
> ).
>
> Although it has been archived, you can still download the tar ball and
> install it from source just like you install any *nix packages.
>
> An alternative way to install it, according to
> https://github.com/Sharpie/RTikZDevice#obtaining-the-package, is:
> install.packages( 'tikzDevice', repos='http://r-forge.r-project.org' )
>
> Regards,
> Yihui
> --
> Yihui Xie >
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
>
>
> On Tue, Jul 17, 2012 at 5:07 PM, Murat Yildizoglu 
> >
> wrote:
> > Thanks Yihui,
> > That indeed solves my problem.
> > A strange observation: I was reading the knitter documentation page and
> > clicked by error on a tikzdevice and observed a sad message on CRAN:
> >
> > Package ‘tikzDevice’ was removed from the CRAN repository.
> >
> > Formerly available versions can be obtained from the archive.
> >
> > This package has been archived: the maintainer felt unable to provide an
> > update fixing WARNINGs within reasonable amount of time.
> >
> > It seems that we do not have any more this very useful device. Very
> strange
> > that such a useful library becomes unavailable
> >
> > Any information about this?
> >
> >
> > Murat
>


-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

Bureau : E-331

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


Re: Knitr chunks, how to insert them?

2012-07-17 Thread Yihui Xie
You are right. It will come back eventually.

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Tue, Jul 17, 2012 at 5:42 PM, Murat Yildizoglu  wrote:
> Ok, reading the tikz discussion list, I have discovered that the
> perspectives do not seem so gloom, the developer is preparing a new release
> for August that would comply with the constraints of CRAN.
> In the mean time the RForge road stays available.


configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all the 
document classes are "unavailable". i have MiKTeX 2.9 installed in a separate 
folder, but intact with all the standard .cls and .sty files. At first, looking 
at tools->TeX information it showed that it found all the classes and styles 
and 
yet still listed them as unavailable in the document->settings->document class 
pane. When i remove the user directory and rerun configure.py from the command 
prompt, everything looks ok, but tools->TeX information is now blank. when i 
check the ~user\configure.log, it gives:


DEBUG: Removing file lyxmodules.lst
DEBUG: Failed to remove file chkmodules.tex
INFO: +checking list of modules... 
INFO: C:/Apps/Editors/LyX/Resources\layouts\braille.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\customHeadersFooters.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\endnotes.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\enumitem.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\eqs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\figs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\fix-cm.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\fixltx2e.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\foottoend.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\hanging.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\initials.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\knitr.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\lilypond.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\linguistics.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\logicalmkup.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\minimalistic.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\noweb.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\sweave.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\tabs-within-sections.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-extended-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams-extended.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-ams.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-chap-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-chap.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-named.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-sec-bytype.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-sec.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-starred.module
INFO: C:/Apps/Editors/LyX/Resources\layouts\theorems-std.module
INFO:   done
DEBUG: Removing file textclass.lst
DEBUG: Failed to remove file packages.lst
INFO: checking LaTeX configuration...  default values
INFO: +checking list of textclasses... 
INFO:   done
DEBUG: Failed to remove file chkconfig.vars
DEBUG: Failed to remove file chklatex.ltx
DEBUG: Failed to remove file chklatex.log
DEBUG: Failed to remove file chklayouts.tex
DEBUG: Removing file chkmodules.tex
DEBUG: Failed to remove file missfont.log
DEBUG: Failed to remove file wrap_chkconfig.ltx
DEBUG: Failed to remove file wrap_chkconfig.log


i believe it's the failure to remove files that's causing it to exit 
prematurely. i get verification that it stops too soon because the 
textclass.lst 
file states:

# This file declares layouts and their associated definition files
# (include dir. relative to the place where this file is).
# It contains only default values, since chkconfig.ltx could not be run
# for some reason. Run ./configure.py if you need to update it after a
# configuration change.

i also found in other threads a proper output of configure.py and it included 
listings of the class and style files. The only other thing i can thing to do 
is 
to uninstall 2.0.4 and install the last stable release 2.0.2. Any other ideas?



Re: Graphics Tools

2012-07-17 Thread Pavel Sanda
Steve Litt wrote:
> You've convinced me that, whenever humanly possible, I'll use .svg
> graphics with LyX.

The bad news is that there are cases when the conversion svg->pdf(/eps)
doesn't work well and you are dependent on external tools (either inkscape
or rsvg-convert) which can change any moment and screw up your document
as their version changes.

>From longterm & stability view postscript or pdf seems to be better idea
for storing vector graphic (as far as LyX usage is concerned).

Pavel


Re: configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
Erik Hammel  gmail.com> writes:

> 
> i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
> the 
> document classes are "unavailable". i have MiKTeX 2.9 installed in a separate 
> folder, but intact with all the standard .cls and .sty files. At first, 
looking 
> at tools->TeX information it showed that it found all the classes and styles 
and 
> yet still listed them as unavailable in the document->settings->document 
> class 
> pane. When i remove the user directory and rerun configure.py from the 
> command 
> prompt, everything looks ok, but tools->TeX information is now blank. when i 
> check the ~user\configure.log, it gives:
> 
> i believe it's the failure to remove files that's causing it to exit 
> prematurely. i get verification that it stops too soon because the 
textclass.lst 
> file states:
> 
> # This file declares layouts and their associated definition files
> # (include dir. relative to the place where this file is).
> # It contains only default values, since chkconfig.ltx could not be run
> # for some reason. Run ./configure.py if you need to update it after a
> # configuration change.




i already figured out a workaround. in the textclass.lst file, all the entries 
looks like this:

"article" "article" "article" "false" "article.cls"

if you change all the "false"s to "true", the document classes become 
available. 
still, if anyone is interested, i would like to know how to do it the 
legitimate 
way, since who knows what else is being omitted aside from the classes list.







Re: configure.py exiting prematurely

2012-07-17 Thread Erik Hammel
Erik Hammel  gmail.com> writes:

> 
> Erik Hammel  gmail.com> writes:
> 
> > 
> > i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
the 
> > document classes are "unavailable". i have MiKTeX 2.9 installed in a 
separate 
> > folder, but intact with all the standard .cls and .sty files. At first, 
> looking 
> > at tools->TeX information it showed that it found all the classes and 
> > styles 
> and 
> > yet still listed them as unavailable in the document->settings->document 
class 
> > pane. When i remove the user directory and rerun configure.py from the 
command 
> > prompt, everything looks ok, but tools->TeX information is now blank. when 
> > i 
> > check the ~user\configure.log, it gives:
> > 
> > i believe it's the failure to remove files that's causing it to exit 
> > prematurely. i get verification that it stops too soon because the 
> textclass.lst 
> > file states:
> > 
> > # This file declares layouts and their associated definition files
> > # (include dir. relative to the place where this file is).
> > # It contains only default values, since chkconfig.ltx could not be run
> > # for some reason. Run ./configure.py if you need to update it after a
> > # configuration change.
> 
> i already figured out a workaround. in the textclass.lst file, all the 
> entries 
> looks like this:
> 
> "article" "article" "article" "false" "article.cls"
> 
> if you change all the "false"s to "true", the document classes become 
available. 
> still, if anyone is interested, i would like to know how to do it the 
legitimate 
> way, since who knows what else is being omitted aside from the classes list.
> 
> 


ok, it failed after i tried reconfiguring after installing some other packages. 
those packages aren't at fault, i'm getting an error i got before (from the 
~user\configure.log):

DEBUG: Removing file a b.tex
DEBUG: Removing file a b.log
DEBUG: Failed to remove file texput.log


this error causes the program to exit even before the previous .ltx files. the 
standard output also gives this:

Checking whether TeX allows spaces in file names... yes
Traceback (most recent call last):
  File "c:\Apps\Editors\LyX\Resources\configure.py", line 1444, in 
windows_style_tex_paths = checkTeXPaths()
  File "c:\Apps\Editors\LyX\Resources\configure.py", line 113, in checkTeXPaths
from ctypes import windll, create_unicode_buffer
  File "C:\Program Files (x86)\Python27\lib\ctypes\__init__.py", line 10, in 

from _ctypes import Union, Structure, Array
ImportError: DLL load failed: %1 is not a valid Win32 application.


the way i fixed this before to get it slightly further was by upgrading to 
MiKTeX 2.9, but that's what i have installed now. by the way, i have also 
ensured that i have full access rights and ownership of all MiKTeX, LyX, and 
user files and directories. Thanks in advance for your help.




Re: Graphics Tools

2012-07-17 Thread Steve Litt
On Wed, 18 Jul 2012 01:26:37 +0200, Pavel Sanda said:
> Steve Litt wrote:
> > You've convinced me that, whenever humanly possible, I'll use .svg
> > graphics with LyX.
> 
> The bad news is that there are cases when the conversion
> svg->pdf(/eps) doesn't work well and you are dependent on external
> tools (either inkscape or rsvg-convert) which can change any moment
> and screw up your document as their version changes.
> 
> From longterm & stability view postscript or pdf seems to be better
> idea for storing vector graphic (as far as LyX usage is concerned).
> 
> Pavel


Hi Pavel,

You bring up an excellent point. In this particular case, my graphics
are usually made in Inkscape anyway, so unless Inkscape changes one
heck of a lot, there should be no problem.

Postscript is huge, and my experience is that it makes the finished PDF
huge too. I'll see whether including an SVG results in a materially
different result, visually or byteswise, than a PDF.

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance