how to modify figure name

2011-06-28 Thread Hady Ariwibowo Teguh
Dear All,
I'm using lyx 1.6. I have problem about how to name the figure. Just like this:
Figure .2.a
How to add a on the last part??
Thanks 
Teguh
CFD Engineer



RE: no classes available after installation of 1.6.10 and 2.0.0-3

2011-06-28 Thread Matthias Hunstig
Hello,

I must correct myself:

 One thing you might try is to delete the local LyX directory for the limited 
 rights user, then restart LyX (as the limited rights user) and let it try to 
 rebuild that directory.  I think the directory is usually stored at 
 C:\Documents and Settings\limited rights user id\Application Data\lyx.  
 (Unfortunately I don't have access to a Win XP machine anymore.)  Just 
 delete the entire directory.  I you have modified any bind or layout files, 
 you might want to back those up first, but if this is an out-of-the-box LyX 
 installation there is nothing there you need to worry about.

I tried that (directories are actually called LyX2.0 and lyx16). It worked for 
1.6.10 - thanks for the help - but for 2.0.0 the problem persists. So it 
probably is related to some change from 1.6 to 2.0.

It only partly worked for 1.6.10. I now have a very limited and to my eyes 
strange selection of classes available, the rest is still markes as 
unavailable; see attachment.

In 2.0.0., there are still not classes available in the menu at all.

Matthias

attachment: classes_lyx1.6.10.png

Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Hi,

I have imported a beamer document written previously by Scientific Word
(portable latex). The \begin{frame} and \end{frame} instruction have been
imported as evel red boxes. This is not a problem in itself, but now, when I
introduce a section between two frames Lyx introduces a \lyxframeend
instruction that I do need and that seems to crash the compilation of my
file (I get an emergency stop in Latex, without further information - I have
exported to latex and compiled by hand to see what is going on).

Is this normal that Lyx introduces these \lyxframeend commands even if I
have not used the New Frame environment? How can I correct the problem?
Is \lyxframeend an intelligent problem that is able to check if a frame is
already open (in which case, my problem could be caused by something else)?

Thank you very much for your help!

Murat

PS. I also send the message to developers, hoping that they would better
know how \lyxframeend works.

-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Just to complete my previous mail by an example, I get the following type
strange codings (copied from the View latex code window):

\end{frame}

 \lyxframeend{}\section{Blabla}


The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced
without a selection by me of a frame environment.


Murat


2011/6/28 Murat Yildizoglu myi...@gmail.com

 Hi,

 I have imported a beamer document written previously by Scientific Word
 (portable latex). The \begin{frame} and \end{frame} instruction have been
 imported as evel red boxes. This is not a problem in itself, but now, when I
 introduce a section between two frames Lyx introduces a \lyxframeend
 instruction that I do need and that seems to crash the compilation of my
 file (I get an emergency stop in Latex, without further information - I have
 exported to latex and compiled by hand to see what is going on).

 Is this normal that Lyx introduces these \lyxframeend commands even if I
 have not used the New Frame environment? How can I correct the problem?
 Is \lyxframeend an intelligent problem that is able to check if a frame is
 already open (in which case, my problem could be caused by something else)?

 Thank you very much for your help!

 Murat

 PS. I also send the message to developers, hoping that they would better
 know how \lyxframeend works.

 --
 Prof. Murat Yildizoglu
 Université Paul Cézanne (Aix-Marseille 3)
 GREQAM (UMR CNRS 6579)
 Centre de la Vieille Charité
 2, rue de la Charité
 13236 Marseille cedex 02

 Bureau 320
 Tel : +33 4 91 14 07 27 (standard)
 Tel : +33 4 91 14 07 70 (secrétariat)
 Tel : +33 4 91 14 07 47 (bureau)
 Fax : +33 4 91 90 02 27

 e-mail: murat.yildizo...@univ-cezanne.fr
 www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
 http://www.twitter.com/yildizoglu
 __




-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Noun (smallcaps) in Section title

2011-06-28 Thread Manolo Martínez

Hello everyone,

A quick question. If I use the Noun character style in a Section title, 
article(paper) ignores me and renders it in lowercase. Is there a way to 
override the style in this particular respect?


Thanks a lot,
Manolo


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread Richard Heck
On 06/27/2011 11:53 PM, PG wrote:
 Hi all,

 Is there a way to make formatted reference in Lyx 2.0 capitalized?
 Currently when I cross-reference to a subsection, it will produce Latex code
 \subref{xxx}, and the result will be section X.Y. I'd like to make the
 section capitalized, but I can't find the option or settings to. I think I 
 can
 do it by replacing the \subref with \Subref in Latex code, but does Lyx 
 has
 this option?

Unfortunately, LyX 2.0 does not support this option. LyX 2.1 will. Until
then, you can either (a) do it in ERT, exactly as you suggest, or (b)
use prettyref instead of refstyle, which will uppercase everything. (So
with refstyle, you are in the opposite case as with prettyref.)

Richard



Re: Lyx and Beamer

2011-06-28 Thread Richard Heck
On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:
 Just to complete my previous mail by an example, I get the following
 type strange codings (copied from the View latex code window): 

 \end{frame}

 \lyxframeend{}\section{Blabla}


 The \end{frame} comes from an Evil Red box and \lyxframeend{} is
 introduced without a selection by me of a frame environment.


LyX's beamer support is kind of strange, in part because of LyX's
limited ability to handle arguments and in part because frames act like
insets but are rendered more like commands. This is why there is the odd
\lyxframeend{} macro. Anyway, it does not surprise me that LyX has
trouble importing beamer files properly. I think the only thing you can
really do is clean it up manually.

Richard



Re: Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Thanks Richard,

This is really bad news for me, since I have a whole bunch of course beamers
that I would like to convert to Lyx, since I am trying to definitely ditch
Scientific Word (after having lived for some time with both SW and Lyx).

My beamer documents are not particularly fancy, with some pauses and
\onslide etc. options, but Lys seems to suffer a lot from the conversion. I
also clean all comments from the .tex files, since they fill the Lyx window,
without any real use. This helps Lyx, but it is not very efficient in
conversion. Moreover, the error messages I get from Latex are not always
very helpful (but this another problem, well known by me from my latex by
hand days ;-)  ).

Lyx is not able to recognize \section like commands and translate them to
its environment structure (this is how I got the \lyxframeend problem: I
wanted to have more readable section titles, by selection the corresponding
environment for them). Neither options really get through the conversion
(for onslide, for example, \onslide gets in an ERB but not its option, but
this does not seem to annoy latex, so no problem here).

This is really very annoying indeed... We can only gain our co-authors to
Lyx if the conversion from Latex is quite painless.

How other people handle this? I really would not like to have to recreate
everything from scratch (even partially, since I have a lot of files to
convert).

Murat


2011/6/28 Richard Heck rgh...@comcast.net

 **
 On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:

 Just to complete my previous mail by an example, I get the following type
 strange codings (copied from the View latex code window):

  \end{frame}

 \lyxframeend{}\section{Blabla}


  The \end{frame} comes from an Evil Red box and \lyxframeend{} is
 introduced without a selection by me of a frame environment.


   LyX's beamer support is kind of strange, in part because of LyX's
 limited ability to handle arguments and in part because frames act like
 insets but are rendered more like commands. This is why there is the odd
 \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble
 importing beamer files properly. I think the only thing you can really do is
 clean it up manually.

 Richard




-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread PG
Richard Heck rgheck at comcast.net writes:
 
 Unfortunately, LyX 2.0 does not support this option. LyX 2.1 will. Until
 then, you can either (a) do it in ERT, exactly as you suggest, or (b)
 use prettyref instead of refstyle, which will uppercase everything. (So
 with refstyle, you are in the opposite case as with prettyref.)
 
 Richard
 
 

Thanks! I think I'll just do it by the ugly way for now, 
using ERT or manually type Section.  
Looking forward to the release of Lyx 21!

PG



Re: Lyx and Beamer

2011-06-28 Thread Richard Heck
On 06/28/2011 10:27 AM, Murat Yildizoglu wrote:
 Thanks Richard,

 This is really bad news for me, since I have a whole bunch of course
 beamers that I would like to convert to Lyx, since I am trying to
 definitely ditch Scientific Word (after having lived for some time
 with both SW and Lyx). 

 My beamer documents are not particularly fancy, with some pauses and
 \onslide etc. options, but Lys seems to suffer a lot from the
 conversion. I also clean all comments from the .tex files, since they
 fill the Lyx window, without any real use. This helps Lyx, but it is
 not very efficient in conversion. Moreover, the error messages I get
 from Latex are not always very helpful (but this another problem, well
 known by me from my latex by hand days ;-)  ).

 Lyx is not able to recognize \section like commands and translate them
 to its environment structure (this is how I got the \lyxframeend
 problem: I wanted to have more readable section titles, by selection
 the corresponding environment for them). Neither options really get
 through the conversion (for onslide, for example, \onslide gets in an
 ERB but not its option, but this does not seem to annoy latex, so no
 problem here).

 This is really very annoying indeed... We can only gain our co-authors
 to Lyx if the conversion from Latex is quite painless.

 How other people handle this? I really would not like to have to
 recreate everything from scratch (even partially, since I have a lot
 of files to convert).

If I were doing this, I'd write a Perl script to handle the clean up.
I've done this already with old documents converted from WordPerfect,
but of course your needs will be different.

Richard



html5 presentation support?

2011-06-28 Thread Rainer M Krug
Hi

I just saw some html5 presentations (e.g. http://slides.html5rocks.com ) and
they seem to a be a great alternative to pdf presentations with beamer et
al. Is there anybody looking into the possibility of creating those via e.g.
eLyXer?

I think it would be absolutely great if this could be included in LyX. For
an example of export exporter for emacs org-mode, see
https://gist.github.com/509761

Cheers,

Rainer

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

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

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: Lyx and Beamer

2011-06-28 Thread José Matos
On Tuesday 28 June 2011 15:42:08 Richard Heck wrote:
 If I were doing this, I'd write a Perl script to handle the clean up.
 I've done this already with old documents converted from WordPerfect,
 but of course your needs will be different.
 
 Richard

Due to this I have python scripts (no surprise here :-) ) to convert from lyx 
to latex. I have in my todo list to clean the output the other way around but 
I have not yet found time to complete this task. :-(

-- 
José Abílio


Re: how to modify figure name

2011-06-28 Thread Diego Queiroz
On Tue, Jun 28, 2011 at 4:18 AM, Hady Ariwibowo Teguh huget_te...@ymail.com
 wrote:

 Dear All,
 I'm using lyx 1.6. I have problem about how to name the figure. Just like
 this:
 Figure .2.a
 How to add a on the last part??
 Thanks
 Teguh
 CFD Engineer


Teguh,

You need to use sub floats.
To achieve this on LyX, just insert a float inside another float.

This way, the caption of the sub-float is automatically named 2a, 2b and so
on.


Best regards,
---
Diego Queiroz


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread David L. Johnson

On 06/28/2011 10:30 AM, PG wrote:


Thanks! I think I'll just do it by the ugly way for now,
using ERT or manually type Section.
Looking forward to the release of Lyx 21!



One way to do things like this -- not officially sanctioned, of course, 
but worth a try, is to make one such change manually, then examine the 
Lyx files in an editor (pre and post change) to see what the replacement 
text is, and do a global search and replace (or, if you are good at 
this, you can write a perl script or some such) on the file.  Things 
like this may or may not be possible to do within LyX, but may work in 
an external editor.


--

David L. Johnson

It is a scientifically proven fact that a mid life crisis can only be
cured by something racy and Italian.  Bianchis and Colnagos are a lot
cheaper than Maserattis and Ferraris.
-- Glenn Davies



Re: Can't convert

2011-06-28 Thread ehud.kap...@gmail.com
Actually, I have switched away from Miktex on Windows to TexLive, to 
make my Windows and Linux Latexs more similar to each other.

EK

On 06/25/2011 10:05 AM, Paul A. Rubin wrote:


On 06/24/2011 08:22 PM, William Hanson wrote:
I have a folder named MIKTEX2.7 in Program Files, so I suppose I'm 
using MiKTeX.

You are.  Pretty much everyone on Windows is.
  But I know very little about how LyX works.  Also, I don't know 
what you mean when you say, open a command prompt and run 'kpsewhich 
article.cls' .
Click Start  Run (or hold down the Windows key and hit R) and type 
'cmd', then click the button to do it (I forget what the button says, 
probably Ok or Run).  That should open a window with a DOS 
prompt.  At the prompt, type 'kpsewhich article.cls' and see what 
happens.  Don't type the single quotes (') either place.


Paul





what is the productivity of lyx

2011-06-28 Thread Wei-Dong Lian
Hi everyone,

Thanks a lot for the contribution work by lyx team. I have written my thesis
and articles in lyx for a long time. I found it the best frontend of latex,
for tables and equations. This is the advantage of lyx, and also lyx is
an integrated IDE environment not like autex in emacs, everything should be
configured by yourself.

Sometimes, when I write equations and tables, I really enjoy the input in
lyx, cause I could input all frequently-used math symbols by shortcuts, I
also changed the prefix of math shortcut, it is very convenient. This
is great. I reconfigure the shortcuts, I nearly drop off my mouse. Still, I
need to use mouse for 5% input in lyx.

However, when I want to refer to labels and citations, each time, a dialog
pops up and I need to select some items and finish it, even with dialog
shortcuts (e.g. Alt+a,b,c,f,g,e,h), it is a bit boring. When inserting a
figure or table, one also needs to finish the pop-up dialog. They really
affects the productivity of writing.

What do you think about it?

I have some suggestions, for example,

1. can we define some templates such that one can insert figure floats with
one graphics or two graphics, or four graphics, and these styles have been
set as we defined a priori.
2. as for inserting label references or citations, other than answering a
popup dialog, can we consider some GUI style like ido (e.g. ido in emacs)?
it will indicates us some items to select, not a dialog, we can directly
type something to filter these items and select one item by a confirm
shortcut, just like ido-find-file in emacs. it might be continent.
Indeed, each time, we do not need to change the style for each item. In most
cases, for the popup dialog in lyx, I just select the essential information
and then confirm it.

What about your ideas?

Sincerely,

-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe Structure et Simulation
B.P. 92101
44321 Nantes cedex 3
FRANCE


Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Yihui Xie
Obviously you are using pgfSweave, and the problem came from the fact
that your plot contained a character string x  y which is not a
legal string in your context (because  is a special character that
needs to be escaped).

Two approaches to fix the problem:

1. change the title, e.g.

prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF', main =
'no special characters here')

2. use sanitize=TRUE in your chunk options (so that  will be replaced
by \); see ?sanitizeTexString in the tikzDevice package for details

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 Mon, Jun 27, 2011 at 9:44 PM, Lucas lth...@mail.unomaha.edu wrote:
 When I try to use the TSA::prewhiten function from within a Sweave (or
 pgfSweave, the bug triggers either way it seems) code chunk inside a LyX
 document, I get this error:

 20:35:49.417: Preview: Fontsize 10pt
 20:35:49.418: Preview: PDFoutput 1
 20:35:49.419: ! Misplaced alignment tab character .
 20:35:49.420: l.17 ...ale=1.2004768372] (TeX) {\bfseries x 
 20:35:49.421:                                                    y%
 20:35:49.422: Here is how much of TeX's memory you used:
 20:35:49.428:  9510 strings out of 495061
 20:35:49.429:  179132 string characters out of 1182621
 20:35:49.430:  210888 words of memory out of 300
 20:35:49.431:  12540 multiletter control sequences out of 15000+5
 20:35:49.432:  5179 words of font info for 16 fonts, out of 300 for 9000
 20:35:49.433:  28 hyphenation exceptions out of 8191
 20:35:49.439:  56i,3n,55p,425b,492s stack positions out of
 5000i,500n,1p,20b,5s
 20:35:49.440:
 20:35:49.441: !  == Fatal error occurred, no output PDF file produced!
 20:35:49.442: Error in getMetricsFromLatex(TeXMetrics) :
 20:35:49.443: TeX was unable to calculate metrics for the following string
 20:35:49.444: or character:
 20:35:49.449:
 20:35:49.450:   x  y
 20:35:49.451:
 20:35:49.452: Common reasons for failure include:
 20:35:49.453:   * The string contains a character which is special to LaTeX
 unless
 20:35:49.454:     escaped properly, such as % or $.
 20:35:49.455:   * The string makes use of LaTeX commands provided by a package
 and
 20:35:49.464:     the tikzDevice was not told to load the package.
 20:35:49.466:
 20:35:49.468: The contents of the LaTeX log of the aborted run have been 
 printed
 above,
 20:35:49.471: it may contain additional details as to why the metric 
 calculation
 failed.

 Document that reproduces this error (requires a working R+Sweave+LyX setup 
 with
 the 'TSA' R package from 
 http://cran.r-project.org/web/packages/TSA/index.html):
 #LyX 2.0 created this file. For more info see http://www.lyx.org/
 \lyxformat 413
 \begin_document
 \begin_header
 \textclass article
 \use_default_options true
 \begin_modules
 sweave
 \end_modules
 \maintain_unincluded_children false
 \language english
 \language_package default
 \inputencoding utf8
 \fontencoding global
 \font_roman default
 \font_sans default
 \font_typewriter default
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
 \font_osf false
 \font_sf_scale 100
 \font_tt_scale 100

 \graphics default
 \default_output_format default
 \output_sync 0
 \bibtex_command default
 \index_command default
 \paperfontsize default
 \spacing single
 \use_hyperref false
 \papersize default
 \use_geometry false
 \use_amsmath 1
 \use_esint 1
 \use_mhchem 1
 \use_mathdots 1
 \cite_engine basic
 \use_bibtopic false
 \use_indices false
 \paperorientation portrait
 \suppress_date false
 \use_refstyle 1
 \index Index
 \shortcut idx
 \color #008000
 \end_index
 \secnumdepth 3
 \tocdepth 3
 \paragraph_separation indent
 \paragraph_indentation default
 \quotes_language english
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
 \tracking_changes false
 \output_changes false
 \html_math_output 0
 \html_css_as_file 0
 \html_be_strict false
 \end_header

 \begin_body

 \begin_layout Chunk
 explode,fig=true,height=3,width=5=
 \end_layout

 \begin_layout Chunk
 library(TSA)
 \end_layout

 \begin_layout Chunk
 data(bluebird)
 \end_layout

 \begin_layout Chunk
 prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF')
 \end_layout

 \begin_layout Chunk
 @
 \end_layout

 \end_body
 \end_document

 --Lucas





Re: html5 presentation support?

2011-06-28 Thread Alex Fernandez
Hi Rainer,

On Tue, Jun 28, 2011 at 4:48 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 I just saw some html5 presentations (e.g. http://slides.html5rocks.com ) and
 they seem to a be a great alternative to pdf presentations with beamer et
 al. Is there anybody looking into the possibility of creating those via e.g.
 eLyXer?

It sounds interesting, but I am not looking into it at the moment.
However (and here comes the inevitable contribution request), I accept
patches :)  If you try it you will find eLyXer very flexible in terms
of twisting its output.

 I think it would be absolutely great if this could be included in LyX. For
 an example of export exporter for emacs org-mode,
 see  https://gist.github.com/509761

I agree.

Thanks,

Alex.


Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Lucas
Yihui Xie xie at yihui.name writes:

...
 
 2. use sanitize=TRUE in your chunk options (so that  will be replaced
 by \); see ?sanitizeTexString in the tikzDevice package for details

That did the trick.  Thanks again!

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




how to modify figure name

2011-06-28 Thread Hady Ariwibowo Teguh
Dear All,
I'm using lyx 1.6. I have problem about how to name the figure. Just like this:
Figure .2.a
How to add a on the last part??
Thanks 
Teguh
CFD Engineer



RE: no classes available after installation of 1.6.10 and 2.0.0-3

2011-06-28 Thread Matthias Hunstig
Hello,

I must correct myself:

 One thing you might try is to delete the local LyX directory for the limited 
 rights user, then restart LyX (as the limited rights user) and let it try to 
 rebuild that directory.  I think the directory is usually stored at 
 C:\Documents and Settings\limited rights user id\Application Data\lyx.  
 (Unfortunately I don't have access to a Win XP machine anymore.)  Just 
 delete the entire directory.  I you have modified any bind or layout files, 
 you might want to back those up first, but if this is an out-of-the-box LyX 
 installation there is nothing there you need to worry about.

I tried that (directories are actually called LyX2.0 and lyx16). It worked for 
1.6.10 - thanks for the help - but for 2.0.0 the problem persists. So it 
probably is related to some change from 1.6 to 2.0.

It only partly worked for 1.6.10. I now have a very limited and to my eyes 
strange selection of classes available, the rest is still markes as 
unavailable; see attachment.

In 2.0.0., there are still not classes available in the menu at all.

Matthias

attachment: classes_lyx1.6.10.png

Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Hi,

I have imported a beamer document written previously by Scientific Word
(portable latex). The \begin{frame} and \end{frame} instruction have been
imported as evel red boxes. This is not a problem in itself, but now, when I
introduce a section between two frames Lyx introduces a \lyxframeend
instruction that I do need and that seems to crash the compilation of my
file (I get an emergency stop in Latex, without further information - I have
exported to latex and compiled by hand to see what is going on).

Is this normal that Lyx introduces these \lyxframeend commands even if I
have not used the New Frame environment? How can I correct the problem?
Is \lyxframeend an intelligent problem that is able to check if a frame is
already open (in which case, my problem could be caused by something else)?

Thank you very much for your help!

Murat

PS. I also send the message to developers, hoping that they would better
know how \lyxframeend works.

-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Just to complete my previous mail by an example, I get the following type
strange codings (copied from the View latex code window):

\end{frame}

 \lyxframeend{}\section{Blabla}


The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced
without a selection by me of a frame environment.


Murat


2011/6/28 Murat Yildizoglu myi...@gmail.com

 Hi,

 I have imported a beamer document written previously by Scientific Word
 (portable latex). The \begin{frame} and \end{frame} instruction have been
 imported as evel red boxes. This is not a problem in itself, but now, when I
 introduce a section between two frames Lyx introduces a \lyxframeend
 instruction that I do need and that seems to crash the compilation of my
 file (I get an emergency stop in Latex, without further information - I have
 exported to latex and compiled by hand to see what is going on).

 Is this normal that Lyx introduces these \lyxframeend commands even if I
 have not used the New Frame environment? How can I correct the problem?
 Is \lyxframeend an intelligent problem that is able to check if a frame is
 already open (in which case, my problem could be caused by something else)?

 Thank you very much for your help!

 Murat

 PS. I also send the message to developers, hoping that they would better
 know how \lyxframeend works.

 --
 Prof. Murat Yildizoglu
 Université Paul Cézanne (Aix-Marseille 3)
 GREQAM (UMR CNRS 6579)
 Centre de la Vieille Charité
 2, rue de la Charité
 13236 Marseille cedex 02

 Bureau 320
 Tel : +33 4 91 14 07 27 (standard)
 Tel : +33 4 91 14 07 70 (secrétariat)
 Tel : +33 4 91 14 07 47 (bureau)
 Fax : +33 4 91 90 02 27

 e-mail: murat.yildizo...@univ-cezanne.fr
 www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
 http://www.twitter.com/yildizoglu
 __




-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Noun (smallcaps) in Section title

2011-06-28 Thread Manolo Martínez

Hello everyone,

A quick question. If I use the Noun character style in a Section title, 
article(paper) ignores me and renders it in lowercase. Is there a way to 
override the style in this particular respect?


Thanks a lot,
Manolo


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread Richard Heck
On 06/27/2011 11:53 PM, PG wrote:
 Hi all,

 Is there a way to make formatted reference in Lyx 2.0 capitalized?
 Currently when I cross-reference to a subsection, it will produce Latex code
 \subref{xxx}, and the result will be section X.Y. I'd like to make the
 section capitalized, but I can't find the option or settings to. I think I 
 can
 do it by replacing the \subref with \Subref in Latex code, but does Lyx 
 has
 this option?

Unfortunately, LyX 2.0 does not support this option. LyX 2.1 will. Until
then, you can either (a) do it in ERT, exactly as you suggest, or (b)
use prettyref instead of refstyle, which will uppercase everything. (So
with refstyle, you are in the opposite case as with prettyref.)

Richard



Re: Lyx and Beamer

2011-06-28 Thread Richard Heck
On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:
 Just to complete my previous mail by an example, I get the following
 type strange codings (copied from the View latex code window): 

 \end{frame}

 \lyxframeend{}\section{Blabla}


 The \end{frame} comes from an Evil Red box and \lyxframeend{} is
 introduced without a selection by me of a frame environment.


LyX's beamer support is kind of strange, in part because of LyX's
limited ability to handle arguments and in part because frames act like
insets but are rendered more like commands. This is why there is the odd
\lyxframeend{} macro. Anyway, it does not surprise me that LyX has
trouble importing beamer files properly. I think the only thing you can
really do is clean it up manually.

Richard



Re: Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Thanks Richard,

This is really bad news for me, since I have a whole bunch of course beamers
that I would like to convert to Lyx, since I am trying to definitely ditch
Scientific Word (after having lived for some time with both SW and Lyx).

My beamer documents are not particularly fancy, with some pauses and
\onslide etc. options, but Lys seems to suffer a lot from the conversion. I
also clean all comments from the .tex files, since they fill the Lyx window,
without any real use. This helps Lyx, but it is not very efficient in
conversion. Moreover, the error messages I get from Latex are not always
very helpful (but this another problem, well known by me from my latex by
hand days ;-)  ).

Lyx is not able to recognize \section like commands and translate them to
its environment structure (this is how I got the \lyxframeend problem: I
wanted to have more readable section titles, by selection the corresponding
environment for them). Neither options really get through the conversion
(for onslide, for example, \onslide gets in an ERB but not its option, but
this does not seem to annoy latex, so no problem here).

This is really very annoying indeed... We can only gain our co-authors to
Lyx if the conversion from Latex is quite painless.

How other people handle this? I really would not like to have to recreate
everything from scratch (even partially, since I have a lot of files to
convert).

Murat


2011/6/28 Richard Heck rgh...@comcast.net

 **
 On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:

 Just to complete my previous mail by an example, I get the following type
 strange codings (copied from the View latex code window):

  \end{frame}

 \lyxframeend{}\section{Blabla}


  The \end{frame} comes from an Evil Red box and \lyxframeend{} is
 introduced without a selection by me of a frame environment.


   LyX's beamer support is kind of strange, in part because of LyX's
 limited ability to handle arguments and in part because frames act like
 insets but are rendered more like commands. This is why there is the odd
 \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble
 importing beamer files properly. I think the only thing you can really do is
 clean it up manually.

 Richard




-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread PG
Richard Heck rgheck at comcast.net writes:
 
 Unfortunately, LyX 2.0 does not support this option. LyX 2.1 will. Until
 then, you can either (a) do it in ERT, exactly as you suggest, or (b)
 use prettyref instead of refstyle, which will uppercase everything. (So
 with refstyle, you are in the opposite case as with prettyref.)
 
 Richard
 
 

Thanks! I think I'll just do it by the ugly way for now, 
using ERT or manually type Section.  
Looking forward to the release of Lyx 21!

PG



Re: Lyx and Beamer

2011-06-28 Thread Richard Heck
On 06/28/2011 10:27 AM, Murat Yildizoglu wrote:
 Thanks Richard,

 This is really bad news for me, since I have a whole bunch of course
 beamers that I would like to convert to Lyx, since I am trying to
 definitely ditch Scientific Word (after having lived for some time
 with both SW and Lyx). 

 My beamer documents are not particularly fancy, with some pauses and
 \onslide etc. options, but Lys seems to suffer a lot from the
 conversion. I also clean all comments from the .tex files, since they
 fill the Lyx window, without any real use. This helps Lyx, but it is
 not very efficient in conversion. Moreover, the error messages I get
 from Latex are not always very helpful (but this another problem, well
 known by me from my latex by hand days ;-)  ).

 Lyx is not able to recognize \section like commands and translate them
 to its environment structure (this is how I got the \lyxframeend
 problem: I wanted to have more readable section titles, by selection
 the corresponding environment for them). Neither options really get
 through the conversion (for onslide, for example, \onslide gets in an
 ERB but not its option, but this does not seem to annoy latex, so no
 problem here).

 This is really very annoying indeed... We can only gain our co-authors
 to Lyx if the conversion from Latex is quite painless.

 How other people handle this? I really would not like to have to
 recreate everything from scratch (even partially, since I have a lot
 of files to convert).

If I were doing this, I'd write a Perl script to handle the clean up.
I've done this already with old documents converted from WordPerfect,
but of course your needs will be different.

Richard



html5 presentation support?

2011-06-28 Thread Rainer M Krug
Hi

I just saw some html5 presentations (e.g. http://slides.html5rocks.com ) and
they seem to a be a great alternative to pdf presentations with beamer et
al. Is there anybody looking into the possibility of creating those via e.g.
eLyXer?

I think it would be absolutely great if this could be included in LyX. For
an example of export exporter for emacs org-mode, see
https://gist.github.com/509761

Cheers,

Rainer

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

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

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: Lyx and Beamer

2011-06-28 Thread José Matos
On Tuesday 28 June 2011 15:42:08 Richard Heck wrote:
 If I were doing this, I'd write a Perl script to handle the clean up.
 I've done this already with old documents converted from WordPerfect,
 but of course your needs will be different.
 
 Richard

Due to this I have python scripts (no surprise here :-) ) to convert from lyx 
to latex. I have in my todo list to clean the output the other way around but 
I have not yet found time to complete this task. :-(

-- 
José Abílio


Re: how to modify figure name

2011-06-28 Thread Diego Queiroz
On Tue, Jun 28, 2011 at 4:18 AM, Hady Ariwibowo Teguh huget_te...@ymail.com
 wrote:

 Dear All,
 I'm using lyx 1.6. I have problem about how to name the figure. Just like
 this:
 Figure .2.a
 How to add a on the last part??
 Thanks
 Teguh
 CFD Engineer


Teguh,

You need to use sub floats.
To achieve this on LyX, just insert a float inside another float.

This way, the caption of the sub-float is automatically named 2a, 2b and so
on.


Best regards,
---
Diego Queiroz


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread David L. Johnson

On 06/28/2011 10:30 AM, PG wrote:


Thanks! I think I'll just do it by the ugly way for now,
using ERT or manually type Section.
Looking forward to the release of Lyx 21!



One way to do things like this -- not officially sanctioned, of course, 
but worth a try, is to make one such change manually, then examine the 
Lyx files in an editor (pre and post change) to see what the replacement 
text is, and do a global search and replace (or, if you are good at 
this, you can write a perl script or some such) on the file.  Things 
like this may or may not be possible to do within LyX, but may work in 
an external editor.


--

David L. Johnson

It is a scientifically proven fact that a mid life crisis can only be
cured by something racy and Italian.  Bianchis and Colnagos are a lot
cheaper than Maserattis and Ferraris.
-- Glenn Davies



Re: Can't convert

2011-06-28 Thread ehud.kap...@gmail.com
Actually, I have switched away from Miktex on Windows to TexLive, to 
make my Windows and Linux Latexs more similar to each other.

EK

On 06/25/2011 10:05 AM, Paul A. Rubin wrote:


On 06/24/2011 08:22 PM, William Hanson wrote:
I have a folder named MIKTEX2.7 in Program Files, so I suppose I'm 
using MiKTeX.

You are.  Pretty much everyone on Windows is.
  But I know very little about how LyX works.  Also, I don't know 
what you mean when you say, open a command prompt and run 'kpsewhich 
article.cls' .
Click Start  Run (or hold down the Windows key and hit R) and type 
'cmd', then click the button to do it (I forget what the button says, 
probably Ok or Run).  That should open a window with a DOS 
prompt.  At the prompt, type 'kpsewhich article.cls' and see what 
happens.  Don't type the single quotes (') either place.


Paul





what is the productivity of lyx

2011-06-28 Thread Wei-Dong Lian
Hi everyone,

Thanks a lot for the contribution work by lyx team. I have written my thesis
and articles in lyx for a long time. I found it the best frontend of latex,
for tables and equations. This is the advantage of lyx, and also lyx is
an integrated IDE environment not like autex in emacs, everything should be
configured by yourself.

Sometimes, when I write equations and tables, I really enjoy the input in
lyx, cause I could input all frequently-used math symbols by shortcuts, I
also changed the prefix of math shortcut, it is very convenient. This
is great. I reconfigure the shortcuts, I nearly drop off my mouse. Still, I
need to use mouse for 5% input in lyx.

However, when I want to refer to labels and citations, each time, a dialog
pops up and I need to select some items and finish it, even with dialog
shortcuts (e.g. Alt+a,b,c,f,g,e,h), it is a bit boring. When inserting a
figure or table, one also needs to finish the pop-up dialog. They really
affects the productivity of writing.

What do you think about it?

I have some suggestions, for example,

1. can we define some templates such that one can insert figure floats with
one graphics or two graphics, or four graphics, and these styles have been
set as we defined a priori.
2. as for inserting label references or citations, other than answering a
popup dialog, can we consider some GUI style like ido (e.g. ido in emacs)?
it will indicates us some items to select, not a dialog, we can directly
type something to filter these items and select one item by a confirm
shortcut, just like ido-find-file in emacs. it might be continent.
Indeed, each time, we do not need to change the style for each item. In most
cases, for the popup dialog in lyx, I just select the essential information
and then confirm it.

What about your ideas?

Sincerely,

-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe Structure et Simulation
B.P. 92101
44321 Nantes cedex 3
FRANCE


Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Yihui Xie
Obviously you are using pgfSweave, and the problem came from the fact
that your plot contained a character string x  y which is not a
legal string in your context (because  is a special character that
needs to be escaped).

Two approaches to fix the problem:

1. change the title, e.g.

prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF', main =
'no special characters here')

2. use sanitize=TRUE in your chunk options (so that  will be replaced
by \); see ?sanitizeTexString in the tikzDevice package for details

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 Mon, Jun 27, 2011 at 9:44 PM, Lucas lth...@mail.unomaha.edu wrote:
 When I try to use the TSA::prewhiten function from within a Sweave (or
 pgfSweave, the bug triggers either way it seems) code chunk inside a LyX
 document, I get this error:

 20:35:49.417: Preview: Fontsize 10pt
 20:35:49.418: Preview: PDFoutput 1
 20:35:49.419: ! Misplaced alignment tab character .
 20:35:49.420: l.17 ...ale=1.2004768372] (TeX) {\bfseries x 
 20:35:49.421:                                                    y%
 20:35:49.422: Here is how much of TeX's memory you used:
 20:35:49.428:  9510 strings out of 495061
 20:35:49.429:  179132 string characters out of 1182621
 20:35:49.430:  210888 words of memory out of 300
 20:35:49.431:  12540 multiletter control sequences out of 15000+5
 20:35:49.432:  5179 words of font info for 16 fonts, out of 300 for 9000
 20:35:49.433:  28 hyphenation exceptions out of 8191
 20:35:49.439:  56i,3n,55p,425b,492s stack positions out of
 5000i,500n,1p,20b,5s
 20:35:49.440:
 20:35:49.441: !  == Fatal error occurred, no output PDF file produced!
 20:35:49.442: Error in getMetricsFromLatex(TeXMetrics) :
 20:35:49.443: TeX was unable to calculate metrics for the following string
 20:35:49.444: or character:
 20:35:49.449:
 20:35:49.450:   x  y
 20:35:49.451:
 20:35:49.452: Common reasons for failure include:
 20:35:49.453:   * The string contains a character which is special to LaTeX
 unless
 20:35:49.454:     escaped properly, such as % or $.
 20:35:49.455:   * The string makes use of LaTeX commands provided by a package
 and
 20:35:49.464:     the tikzDevice was not told to load the package.
 20:35:49.466:
 20:35:49.468: The contents of the LaTeX log of the aborted run have been 
 printed
 above,
 20:35:49.471: it may contain additional details as to why the metric 
 calculation
 failed.

 Document that reproduces this error (requires a working R+Sweave+LyX setup 
 with
 the 'TSA' R package from 
 http://cran.r-project.org/web/packages/TSA/index.html):
 #LyX 2.0 created this file. For more info see http://www.lyx.org/
 \lyxformat 413
 \begin_document
 \begin_header
 \textclass article
 \use_default_options true
 \begin_modules
 sweave
 \end_modules
 \maintain_unincluded_children false
 \language english
 \language_package default
 \inputencoding utf8
 \fontencoding global
 \font_roman default
 \font_sans default
 \font_typewriter default
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
 \font_osf false
 \font_sf_scale 100
 \font_tt_scale 100

 \graphics default
 \default_output_format default
 \output_sync 0
 \bibtex_command default
 \index_command default
 \paperfontsize default
 \spacing single
 \use_hyperref false
 \papersize default
 \use_geometry false
 \use_amsmath 1
 \use_esint 1
 \use_mhchem 1
 \use_mathdots 1
 \cite_engine basic
 \use_bibtopic false
 \use_indices false
 \paperorientation portrait
 \suppress_date false
 \use_refstyle 1
 \index Index
 \shortcut idx
 \color #008000
 \end_index
 \secnumdepth 3
 \tocdepth 3
 \paragraph_separation indent
 \paragraph_indentation default
 \quotes_language english
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
 \tracking_changes false
 \output_changes false
 \html_math_output 0
 \html_css_as_file 0
 \html_be_strict false
 \end_header

 \begin_body

 \begin_layout Chunk
 explode,fig=true,height=3,width=5=
 \end_layout

 \begin_layout Chunk
 library(TSA)
 \end_layout

 \begin_layout Chunk
 data(bluebird)
 \end_layout

 \begin_layout Chunk
 prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF')
 \end_layout

 \begin_layout Chunk
 @
 \end_layout

 \end_body
 \end_document

 --Lucas





Re: html5 presentation support?

2011-06-28 Thread Alex Fernandez
Hi Rainer,

On Tue, Jun 28, 2011 at 4:48 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 I just saw some html5 presentations (e.g. http://slides.html5rocks.com ) and
 they seem to a be a great alternative to pdf presentations with beamer et
 al. Is there anybody looking into the possibility of creating those via e.g.
 eLyXer?

It sounds interesting, but I am not looking into it at the moment.
However (and here comes the inevitable contribution request), I accept
patches :)  If you try it you will find eLyXer very flexible in terms
of twisting its output.

 I think it would be absolutely great if this could be included in LyX. For
 an example of export exporter for emacs org-mode,
 see  https://gist.github.com/509761

I agree.

Thanks,

Alex.


Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Lucas
Yihui Xie xie at yihui.name writes:

...
 
 2. use sanitize=TRUE in your chunk options (so that  will be replaced
 by \); see ?sanitizeTexString in the tikzDevice package for details

That did the trick.  Thanks again!

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




how to modify figure name

2011-06-28 Thread Hady Ariwibowo Teguh
Dear All,
I'm using lyx 1.6. I have problem about how to name the figure. Just like this:
"Figure .2.a"
How to add "a" on the last part??
Thanks 
Teguh
CFD Engineer



RE: no classes available after installation of 1.6.10 and 2.0.0-3

2011-06-28 Thread Matthias Hunstig
Hello,

I must correct myself:

>> One thing you might try is to delete the local LyX directory for the limited 
>> rights user, then restart LyX (as the limited rights user) and let it try to 
>> rebuild that directory.  I think the directory is usually stored at 
>> C:\Documents and Settings\\Application Data\lyx.  
>> (Unfortunately I don't have access to a Win XP machine anymore.)  Just 
>> delete the entire directory.  I you have modified any bind or layout files, 
>> you might want to back those up first, but if this is an out-of-the-box LyX 
>> installation there is nothing there you need to worry about.

>I tried that (directories are actually called LyX2.0 and lyx16). It worked for 
>1.6.10 - thanks for the help - but for 2.0.0 the problem persists. So it 
>probably is related to some change from 1.6 to 2.0.

It only partly worked for 1.6.10. I now have a very limited and to my eyes 
strange selection of classes available, the rest is still markes as 
unavailable; see attachment.

In 2.0.0., there are still not classes available in the menu at all.

Matthias

<>

Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Hi,

I have imported a beamer document written previously by Scientific Word
(portable latex). The \begin{frame} and \end{frame} instruction have been
imported as evel red boxes. This is not a problem in itself, but now, when I
introduce a section between two frames Lyx introduces a \lyxframeend
instruction that I do need and that seems to crash the compilation of my
file (I get an emergency stop in Latex, without further information - I have
exported to latex and compiled by hand to see what is going on).

Is this normal that Lyx introduces these \lyxframeend commands even if I
have not used the New Frame environment? How can I correct the problem?
Is \lyxframeend an intelligent problem that is able to check if a frame is
already open (in which case, my problem could be caused by something else)?

Thank you very much for your help!

Murat

PS. I also send the message to developers, hoping that they would better
know how \lyxframeend works.

-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Just to complete my previous mail by an example, I get the following type
strange codings (copied from the View latex code window):

\end{frame}

 \lyxframeend{}\section{Blabla}


The \end{frame} comes from an Evil Red box and \lyxframeend{} is introduced
without a selection by me of a frame environment.


Murat


2011/6/28 Murat Yildizoglu 

> Hi,
>
> I have imported a beamer document written previously by Scientific Word
> (portable latex). The \begin{frame} and \end{frame} instruction have been
> imported as evel red boxes. This is not a problem in itself, but now, when I
> introduce a section between two frames Lyx introduces a \lyxframeend
> instruction that I do need and that seems to crash the compilation of my
> file (I get an emergency stop in Latex, without further information - I have
> exported to latex and compiled by hand to see what is going on).
>
> Is this normal that Lyx introduces these \lyxframeend commands even if I
> have not used the New Frame environment? How can I correct the problem?
> Is \lyxframeend an intelligent problem that is able to check if a frame is
> already open (in which case, my problem could be caused by something else)?
>
> Thank you very much for your help!
>
> Murat
>
> PS. I also send the message to developers, hoping that they would better
> know how \lyxframeend works.
>
> --
> Prof. Murat Yildizoglu
> Université Paul Cézanne (Aix-Marseille 3)
> GREQAM (UMR CNRS 6579)
> Centre de la Vieille Charité
> 2, rue de la Charité
> 13236 Marseille cedex 02
>
> Bureau 320
> Tel : +33 4 91 14 07 27 (standard)
> Tel : +33 4 91 14 07 70 (secrétariat)
> Tel : +33 4 91 14 07 47 (bureau)
> Fax : +33 4 91 90 02 27
>
> e-mail: murat.yildizo...@univ-cezanne.fr
> www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
> http://www.twitter.com/yildizoglu
> __
>



-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Noun (smallcaps) in Section title

2011-06-28 Thread Manolo Martínez

Hello everyone,

A quick question. If I use the Noun character style in a Section title, 
article(paper) ignores me and renders it in lowercase. Is there a way to 
override the style in this particular respect?


Thanks a lot,
Manolo


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread Richard Heck
On 06/27/2011 11:53 PM, PG wrote:
> Hi all,
>
> Is there a way to make formatted reference in Lyx 2.0 capitalized?
> Currently when I cross-reference to a subsection, it will produce Latex code
> "\subref{xxx}", and the result will be "section X.Y". I'd like to make the
> "section" capitalized, but I can't find the option or settings to. I think I 
> can
> do it by replacing the "\subref" with "\Subref" in Latex code, but does Lyx 
> has
> this option?
>
Unfortunately, LyX 2.0 does not support this option. LyX 2.1 will. Until
then, you can either (a) do it in ERT, exactly as you suggest, or (b)
use prettyref instead of refstyle, which will uppercase everything. (So
with refstyle, you are in the opposite case as with prettyref.)

Richard



Re: Lyx and Beamer

2011-06-28 Thread Richard Heck
On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:
> Just to complete my previous mail by an example, I get the following
> type strange codings (copied from the View latex code window): 
>
> \end{frame}
>
> \lyxframeend{}\section{Blabla}
>
>
> The \end{frame} comes from an Evil Red box and \lyxframeend{} is
> introduced without a selection by me of a frame environment.
>
>
LyX's beamer support is kind of strange, in part because of LyX's
limited ability to handle arguments and in part because frames act like
insets but are rendered more like commands. This is why there is the odd
\lyxframeend{} macro. Anyway, it does not surprise me that LyX has
trouble importing beamer files properly. I think the only thing you can
really do is clean it up manually.

Richard



Re: Lyx and Beamer

2011-06-28 Thread Murat Yildizoglu
Thanks Richard,

This is really bad news for me, since I have a whole bunch of course beamers
that I would like to convert to Lyx, since I am trying to definitely ditch
Scientific Word (after having lived for some time with both SW and Lyx).

My beamer documents are not particularly fancy, with some pauses and
\onslide etc. options, but Lys seems to suffer a lot from the conversion. I
also clean all comments from the .tex files, since they fill the Lyx window,
without any real use. This helps Lyx, but it is not very efficient in
conversion. Moreover, the error messages I get from Latex are not always
very helpful (but this another problem, well known by me from my latex by
hand days ;-)  ).

Lyx is not able to recognize \section like commands and translate them to
its environment structure (this is how I got the \lyxframeend problem: I
wanted to have more readable section titles, by selection the corresponding
environment for them). Neither options really get through the conversion
(for onslide, for example, \onslide gets in an ERB but not its option, but
this does not seem to annoy latex, so no problem here).

This is really very annoying indeed... We can only gain our co-authors to
Lyx if the conversion from Latex is quite painless.

How other people handle this? I really would not like to have to recreate
everything from scratch (even partially, since I have a lot of files to
convert).

Murat


2011/6/28 Richard Heck 

> **
> On 06/28/2011 09:28 AM, Murat Yildizoglu wrote:
>
> Just to complete my previous mail by an example, I get the following type
> strange codings (copied from the View latex code window):
>
>  \end{frame}
>
> \lyxframeend{}\section{Blabla}
>
>
>  The \end{frame} comes from an Evil Red box and \lyxframeend{} is
> introduced without a selection by me of a frame environment.
>
>
>   LyX's beamer support is kind of strange, in part because of LyX's
> limited ability to handle arguments and in part because frames act like
> insets but are rendered more like commands. This is why there is the odd
> \lyxframeend{} macro. Anyway, it does not surprise me that LyX has trouble
> importing beamer files properly. I think the only thing you can really do is
> clean it up manually.
>
> Richard
>
>


-- 
Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread PG
Richard Heck  comcast.net> writes:
> 
> Unfortunately, LyX 2.0 does not support this option. LyX 2.1 will. Until
> then, you can either (a) do it in ERT, exactly as you suggest, or (b)
> use prettyref instead of refstyle, which will uppercase everything. (So
> with refstyle, you are in the opposite case as with prettyref.)
> 
> Richard
> 
> 

Thanks! I think I'll just do it by the ugly way for now, 
using ERT or manually type "Section".  
Looking forward to the release of Lyx 21!

PG



Re: Lyx and Beamer

2011-06-28 Thread Richard Heck
On 06/28/2011 10:27 AM, Murat Yildizoglu wrote:
> Thanks Richard,
>
> This is really bad news for me, since I have a whole bunch of course
> beamers that I would like to convert to Lyx, since I am trying to
> definitely ditch Scientific Word (after having lived for some time
> with both SW and Lyx). 
>
> My beamer documents are not particularly fancy, with some pauses and
> \onslide etc. options, but Lys seems to suffer a lot from the
> conversion. I also clean all comments from the .tex files, since they
> fill the Lyx window, without any real use. This helps Lyx, but it is
> not very efficient in conversion. Moreover, the error messages I get
> from Latex are not always very helpful (but this another problem, well
> known by me from my latex by hand days ;-)  ).
>
> Lyx is not able to recognize \section like commands and translate them
> to its environment structure (this is how I got the \lyxframeend
> problem: I wanted to have more readable section titles, by selection
> the corresponding environment for them). Neither options really get
> through the conversion (for onslide, for example, \onslide gets in an
> ERB but not its option, but this does not seem to annoy latex, so no
> problem here).
>
> This is really very annoying indeed... We can only gain our co-authors
> to Lyx if the conversion from Latex is quite painless.
>
> How other people handle this? I really would not like to have to
> recreate everything from scratch (even partially, since I have a lot
> of files to convert).
>
If I were doing this, I'd write a Perl script to handle the clean up.
I've done this already with old documents converted from WordPerfect,
but of course your needs will be different.

Richard



html5 presentation support?

2011-06-28 Thread Rainer M Krug
Hi

I just saw some html5 presentations (e.g. http://slides.html5rocks.com ) and
they seem to a be a great alternative to pdf presentations with beamer et
al. Is there anybody looking into the possibility of creating those via e.g.
eLyXer?

I think it would be absolutely great if this could be included in LyX. For
an example of export exporter for emacs org-mode, see
https://gist.github.com/509761

Cheers,

Rainer

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

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

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: Lyx and Beamer

2011-06-28 Thread José Matos
On Tuesday 28 June 2011 15:42:08 Richard Heck wrote:
> If I were doing this, I'd write a Perl script to handle the clean up.
> I've done this already with old documents converted from WordPerfect,
> but of course your needs will be different.
> 
> Richard

Due to this I have python scripts (no surprise here :-) ) to convert from lyx 
to latex. I have in my todo list to clean the output the other way around but 
I have not yet found time to complete this task. :-(

-- 
José Abílio


Re: how to modify figure name

2011-06-28 Thread Diego Queiroz
On Tue, Jun 28, 2011 at 4:18 AM, Hady Ariwibowo Teguh  wrote:

> Dear All,
> I'm using lyx 1.6. I have problem about how to name the figure. Just like
> this:
> "Figure .2.a"
> How to add "a" on the last part??
> Thanks
> Teguh
> CFD Engineer
>
>
Teguh,

You need to use sub floats.
To achieve this on LyX, just insert a float inside another float.

This way, the caption of the sub-float is automatically named 2a, 2b and so
on.


Best regards,
---
Diego Queiroz


Re: How to make formatted cross-reference capitalized in Lyx 2.0?

2011-06-28 Thread David L. Johnson

On 06/28/2011 10:30 AM, PG wrote:


Thanks! I think I'll just do it by the ugly way for now,
using ERT or manually type "Section".
Looking forward to the release of Lyx 21!



One way to do things like this -- not officially sanctioned, of course, 
but worth a try, is to make one such change manually, then examine the 
Lyx files in an editor (pre and post change) to see what the replacement 
text is, and do a global search and replace (or, if you are good at 
this, you can write a perl script or some such) on the file.  Things 
like this may or may not be possible to do within LyX, but may work in 
an external editor.


--

David L. Johnson

It is a scientifically proven fact that a mid life crisis can only be
cured by something racy and Italian.  Bianchis and Colnagos are a lot
cheaper than Maserattis and Ferraris.
-- Glenn Davies



Re: Can't convert

2011-06-28 Thread ehud.kap...@gmail.com
Actually, I have switched away from Miktex on Windows to TexLive, to 
make my Windows and Linux Latexs more similar to each other.

EK

On 06/25/2011 10:05 AM, Paul A. Rubin wrote:


On 06/24/2011 08:22 PM, William Hanson wrote:
I have a folder named "MIKTEX2.7 in Program Files, so I suppose I'm 
using MiKTeX.

You are.  Pretty much everyone on Windows is.
  But I know very little about how LyX works.  Also, I don't know 
what you mean when you say, "open a command prompt and run 'kpsewhich 
article.cls' ".
Click Start > Run (or hold down the Windows key and hit R) and type 
'cmd', then click the button to do it (I forget what the button says, 
probably "Ok" or "Run").  That should open a window with a DOS 
prompt.  At the prompt, type 'kpsewhich article.cls' and see what 
happens.  Don't type the single quotes (') either place.


Paul





what is the productivity of lyx

2011-06-28 Thread Wei-Dong Lian
Hi everyone,

Thanks a lot for the contribution work by lyx team. I have written my thesis
and articles in lyx for a long time. I found it the best frontend of latex,
for tables and equations. This is the advantage of lyx, and also lyx is
an integrated IDE environment not like autex in emacs, everything should be
configured by yourself.

Sometimes, when I write equations and tables, I really enjoy the input in
lyx, cause I could input all frequently-used math symbols by shortcuts, I
also changed the prefix of math shortcut, it is very convenient. This
is great. I reconfigure the shortcuts, I nearly drop off my mouse. Still, I
need to use mouse for 5% input in lyx.

However, when I want to refer to labels and citations, each time, a dialog
pops up and I need to select some items and finish it, even with dialog
shortcuts (e.g. Alt+a,b,c,f,g,e,h), it is a bit boring. When inserting a
figure or table, one also needs to finish the pop-up dialog. They really
affects the productivity of writing.

What do you think about it?

I have some suggestions, for example,

1. can we define some templates such that one can insert figure floats with
one graphics or two graphics, or four graphics, and these styles have been
set as we defined a priori.
2. as for inserting label references or citations, other than answering a
popup dialog, can we consider some GUI style like ido (e.g. ido in emacs)?
it will indicates us some items to select, not a dialog, we can directly
type something to filter these items and select one item by a confirm
shortcut, just like ido-find-file in emacs. it might be continent.
Indeed, each time, we do not need to change the style for each item. In most
cases, for the popup dialog in lyx, I just select the essential information
and then confirm it.

What about your ideas?

Sincerely,

-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe "Structure et Simulation"
B.P. 92101
44321 Nantes cedex 3
FRANCE


Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Yihui Xie
Obviously you are using pgfSweave, and the problem came from the fact
that your plot contained a character string "x & y" which is not a
legal string in your context (because & is a special character that
needs to be escaped).

Two approaches to fix the problem:

1. change the title, e.g.

prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF', main =
'no special characters here')

2. use sanitize=TRUE in your chunk options (so that & will be replaced
by \&); see ?sanitizeTexString in the tikzDevice package for details

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, Jun 27, 2011 at 9:44 PM, Lucas  wrote:
> When I try to use the TSA::prewhiten function from within a Sweave (or
> pgfSweave, the bug triggers either way it seems) code chunk inside a LyX
> document, I get this error:
>
> 20:35:49.417: Preview: Fontsize 10pt
> 20:35:49.418: Preview: PDFoutput 1
> 20:35:49.419: ! Misplaced alignment tab character &.
> 20:35:49.420: l.17 ...ale=1.2004768372] (TeX) {\bfseries x &
> 20:35:49.421:                                                    y%
> 20:35:49.422: Here is how much of TeX's memory you used:
> 20:35:49.428:  9510 strings out of 495061
> 20:35:49.429:  179132 string characters out of 1182621
> 20:35:49.430:  210888 words of memory out of 300
> 20:35:49.431:  12540 multiletter control sequences out of 15000+5
> 20:35:49.432:  5179 words of font info for 16 fonts, out of 300 for 9000
> 20:35:49.433:  28 hyphenation exceptions out of 8191
> 20:35:49.439:  56i,3n,55p,425b,492s stack positions out of
> 5000i,500n,1p,20b,5s
> 20:35:49.440:
> 20:35:49.441: !  ==> Fatal error occurred, no output PDF file produced!
> 20:35:49.442: Error in getMetricsFromLatex(TeXMetrics) :
> 20:35:49.443: TeX was unable to calculate metrics for the following string
> 20:35:49.444: or character:
> 20:35:49.449:
> 20:35:49.450:   x & y
> 20:35:49.451:
> 20:35:49.452: Common reasons for failure include:
> 20:35:49.453:   * The string contains a character which is special to LaTeX
> unless
> 20:35:49.454:     escaped properly, such as % or $.
> 20:35:49.455:   * The string makes use of LaTeX commands provided by a package
> and
> 20:35:49.464:     the tikzDevice was not told to load the package.
> 20:35:49.466:
> 20:35:49.468: The contents of the LaTeX log of the aborted run have been 
> printed
> above,
> 20:35:49.471: it may contain additional details as to why the metric 
> calculation
> failed.
>
> Document that reproduces this error (requires a working R+Sweave+LyX setup 
> with
> the 'TSA' R package from 
> http://cran.r-project.org/web/packages/TSA/index.html):
> #LyX 2.0 created this file. For more info see http://www.lyx.org/
> \lyxformat 413
> \begin_document
> \begin_header
> \textclass article
> \use_default_options true
> \begin_modules
> sweave
> \end_modules
> \maintain_unincluded_children false
> \language english
> \language_package default
> \inputencoding utf8
> \fontencoding global
> \font_roman default
> \font_sans default
> \font_typewriter default
> \font_default_family default
> \use_non_tex_fonts false
> \font_sc false
> \font_osf false
> \font_sf_scale 100
> \font_tt_scale 100
>
> \graphics default
> \default_output_format default
> \output_sync 0
> \bibtex_command default
> \index_command default
> \paperfontsize default
> \spacing single
> \use_hyperref false
> \papersize default
> \use_geometry false
> \use_amsmath 1
> \use_esint 1
> \use_mhchem 1
> \use_mathdots 1
> \cite_engine basic
> \use_bibtopic false
> \use_indices false
> \paperorientation portrait
> \suppress_date false
> \use_refstyle 1
> \index Index
> \shortcut idx
> \color #008000
> \end_index
> \secnumdepth 3
> \tocdepth 3
> \paragraph_separation indent
> \paragraph_indentation default
> \quotes_language english
> \papercolumns 1
> \papersides 1
> \paperpagestyle default
> \tracking_changes false
> \output_changes false
> \html_math_output 0
> \html_css_as_file 0
> \html_be_strict false
> \end_header
>
> \begin_body
>
> \begin_layout Chunk
> <>=
> \end_layout
>
> \begin_layout Chunk
> library(TSA)
> \end_layout
>
> \begin_layout Chunk
> data(bluebird)
> \end_layout
>
> \begin_layout Chunk
> prewhiten(y=diff(bluebird)[,1],x=diff(bluebird)[,2],ylab='CCF')
> \end_layout
>
> \begin_layout Chunk
> @
> \end_layout
>
> \end_body
> \end_document
>
> --Lucas
>
>
>


Re: html5 presentation support?

2011-06-28 Thread Alex Fernandez
Hi Rainer,

On Tue, Jun 28, 2011 at 4:48 PM, Rainer M Krug  wrote:
> I just saw some html5 presentations (e.g. http://slides.html5rocks.com ) and
> they seem to a be a great alternative to pdf presentations with beamer et
> al. Is there anybody looking into the possibility of creating those via e.g.
> eLyXer?

It sounds interesting, but I am not looking into it at the moment.
However (and here comes the inevitable contribution request), I accept
patches :)  If you try it you will find eLyXer very flexible in terms
of twisting its output.

> I think it would be absolutely great if this could be included in LyX. For
> an example of export exporter for emacs org-mode,
> see  https://gist.github.com/509761

I agree.

Thanks,

Alex.


Re: Bizarre R (TSA package) + Sweave LaTeX error

2011-06-28 Thread Lucas
Yihui Xie  yihui.name> writes:

...
> 
> 2. use sanitize=TRUE in your chunk options (so that & will be replaced
> by \&); see ?sanitizeTexString in the tikzDevice package for details

That did the trick.  Thanks again!

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