Re: Question on custumising index

2009-11-03 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote:
 How can I get the index with an alphabetical separator as I mention above?
 
 Thanks you for any help or information

If you use xindy (texindy) instead of makeindex, you will get the desired 
layout out of the box.

If you use makeindex, you will have to set up an index style file (*.ist).

I'd recommend xindy, because it is way ahead of makeindex in many respects.

Jürgen


Re: Creating the \independent binary relation within LyX (for independent random variables)

2009-11-03 Thread Guenter Milde
On 2009-11-03, Uwe Stöhr wrote:
 Adam Gustafson schrieb:

 Could someone please let me know how to create the following symbol within
 LyX, I presume within a Math macro?  The LaTeX code that one puts in the
 preamble is:

 \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
 \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

 Copy the preamble code to the preamble of your LyX file. In the LyX
 file, enter \independent in a formula. 

For better visual feedback in LyX, you can put the 

 \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

and transform

 \newcommand{\independent}{\protect\mathpalette{\protect\independenT}{\perp}}
 
into a math-macro (copy the command in the document, mark it and convert
with Ctrl-M). If you copy the \perpl into the LyX box of the math-macro, it
looks reasonably well in LyX.

Günter



Re: Question on custumising index

2009-11-03 Thread Waluyo Adi Siswanto
 If you use xindy (texindy) instead of makeindex, you will get the desired
 layout out of the box.

 If you use makeindex, you will have to set up an index style file (*.ist).

 I'd recommend xindy, because it is way ahead of makeindex in many respects.


Thanks Jurgen
It works,
I just replace the command makeindex -c -q with texindy  -M book-order -q

--
Waluyo


Re: Cannot export to pdf in Mac OSX Snow Leopard

2009-11-03 Thread Anders Ekberg

On 3 nov 2009, at 08.15, Manveru wrote:


...


First of all, thanks for answering.
I've just installed MacTex again, restarted Lyx, nothing changed.  
When I try

to convert the document in any damned format, nothing happens. Please
somebody help. I never needed to install ps2pdf and even googling I  
cannot
find any way to find it for mac... shouldn't it be already  
installed if I

always used Lyx with no problem before??
Greets,


Did you ever use Reconfigure menu option in LyX after TeX distro
re-installation? If not, please try.



Also open the Terminal and give a
sudo texhash
(you need an admin password).

/Anders




Header print suppression

2009-11-03 Thread Jes Andersen
at the beginning of every lyx document there is a:
#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
is there an option anywhere to skip this?

The reason is when using version control systems and users with
different versions of lyx, just opening and saving changes the file,
which is quite annoying.

Best Regards
 Jes


Re: Cannot export to pdf in Mac OSX Snow Leopard

2009-11-03 Thread Luca De Marini
2009/11/3 Anders Ekberg a...@mac.com

 On 3 nov 2009, at 08.15, Manveru wrote:

  ...

  First of all, thanks for answering.
 I've just installed MacTex again, restarted Lyx, nothing changed. When I
 try
 to convert the document in any damned format, nothing happens. Please
 somebody help. I never needed to install ps2pdf and even googling I
 cannot
 find any way to find it for mac... shouldn't it be already installed if I
 always used Lyx with no problem before??
 Greets,


 Did you ever use Reconfigure menu option in LyX after TeX distro
 re-installation? If not, please try.


Of course I did, thanks :)




 Also open the Terminal and give a
 sudo texhash
 (you need an admin password).


Never tried this but it didn't work.
Not the funny thing is that I tried another file (sorry, I didn't think it
could work with another file) and it worked!
So I created a new document, copied everything from the previous one and
copied it in the new one and now it compiles! I really don't understand what
was wrong with my other file, it used to work some months ago! Maybe
something changed in laTex code for preambles? The only different things I
can see from a doc to the other is related to the preamble... Ok guys, in
any case, problem solved, thanks for your assistance :)

Greetings

Luca


Re: Header print suppression

2009-11-03 Thread rgheck

On 11/03/2009 06:41 AM, Jes Andersen wrote:

at the beginning of every lyx document there is a:
#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
is there an option anywhere to skip this?

   

No, unless you edit source.

rh



Re: Question About Custom Layouts and Styles

2009-11-03 Thread rgheck

On 10/30/2009 02:17 PM, Rob Oakes wrote:

Dear Richard and other LyX Users,

I managed to solve a few of the formatting problems.  To change the
section labels from numbers to letters, I added the following to the
nih.cls file:

\def\thesection{\Alph{section}}

That solved the output problem.  Now I am trying to get the labels for
section, subsection, and subsubsection to match the LaTeX output.  I've
been able to figure it out for section:

Style Section
LabelType Counter
LabelCounter  section
LabelString   \Alph{section}
End

But I've been stumped on how to do the same thing for subsection and
subsubsection.  This still show 1.1 and 1.1.1 respectively, but only in
LyX.  The LaTeX output is correct.

   
Did you try just doing the same thing, more or less, in the Subsection 
and Subsubsection styles?


You can also do this in the counter block, e.g.:

Counter subsection
LabelString \Alph{section}.\alph{subsection}
End

I think this may also work:

Counter subsection
LabelString \thesection.\alph{subsection}
End

Like LaTeX.

rh



Re: Header print suppression

2009-11-03 Thread Andrew Sullivan
On Tue, Nov 03, 2009 at 12:41:06PM +0100, Jes Andersen wrote:
 at the beginning of every lyx document there is a:
 #LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
 is there an option anywhere to skip this?
 
 The reason is when using version control systems and users with
 different versions of lyx, just opening and saving changes the file,
 which is quite annoying.

You could suppress it with a filter inbound to your VCS.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.



Re: howto copy external material to lyx working directory

2009-11-03 Thread Manveru
2009/11/1 Egon Alter egon.al...@gmx.net:
 Hi,

 I like to use the pdfx package which needs some external files (icc profile,
 xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can
 tell lyx to copy these files to the tmpbuf folder before compiling?

 thanks

Oh yes, I was thinking about such feature couple of times when people
requests some additional files in latex process through LyX. So
customized copier option could be added to document settings allowing
user to select files which he wants to be copied to temp dir for
processing. This could be a feature request.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Problems including a document

2009-11-03 Thread Manolo Martí­nez

Dear list,

I am working right now with a long document that has chapters as 
separate files, included in a master document. I'm having the following 
problem: chapter 5 exports to pdf perfectly on its own but, when 
included in the master document, this latter document does not export 
-although it does when chapter 5 is not included.


It looks as if something is leading .lyx astray, because the four errors 
it finds are:


missing $ inserted
extra }, or forgotten $
missing $ inserted
missing } inserted

Has anybody ever come across a problem like this?

Thanks
Manolo



Re: Question About Custom Layouts and Styles

2009-11-03 Thread Rob Oakes
Dear Richard and other LyX Users,

Thank you very much for the recommendation, it worked perfectly.  The
final formatting worked out to be:

Counter subsection
  LabelString \Alph{section}.\{subsection}
End

Since this is one of those Write it down or forget it type of things,
I also put together a blog post that describes the whole process.
Granted, most of it is just stolen out of the LyX documentation, but I
find it handy to put together these types of cheat sheets for myself.

If interested, you can find it at:

http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih

The article includes links to download the files.

Cheers,

Rob



Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Jean-Marc Lasgouttes
rgheck rgh...@bobjweil.com writes:
 A fix has been committed: disabling fork() on OSX. We don't know why
 it suddenly stopped working, but it is a limitation of OSX itself.

The workaround has been committed to trunk only, but since I got nobody to
build a binary for testing nothing is happening for branch. Since the
fix leads to a slow down when autosaving (LyX is unresponsive during
this time) I made another patch to speedup saving. This can go to branch
when/if there is significant testing.

Note that the workaround would affect to 10.5 and 10.6 equally, since I
do not know how to query OS version at run time.

JMarc


Re: Problems including a document

2009-11-03 Thread rgheck

On 11/03/2009 10:12 AM, Manolo Martí­nez wrote:

Dear list,

I am working right now with a long document that has chapters as 
separate files, included in a master document. I'm having the 
following problem: chapter 5 exports to pdf perfectly on its own but, 
when included in the master document, this latter document does not 
export -although it does when chapter 5 is not included.


It looks as if something is leading .lyx astray, because the four 
errors it finds are:


missing $ inserted
extra }, or forgotten $
missing $ inserted
missing } inserted

Has anybody ever come across a problem like this?

Is there something in the preamble for chapter 5 that is necessary for 
compilation? LyX will use that preamble when you export it separately, 
but only the master preamble when you compile the whole thing.


Richard



Professional and Scientific Writing Book

2009-11-03 Thread Rob Oakes
Dear LyX Users,

I'm currently working on a book which shows how professional and
scientific writing can be done using purely open source tools.  Any book
about Scientific/Technical/Professional writing on Linux has to include
one (if not more) chapters on LyX.  Other chapters will look at LaTeX,
BibTeX, DocBook and the programs that make working with them easier.

I am writing this letter to see if there are any particular topics which
people would like to see included in the book.  One example: I'm going
to devote a chapter on how to create custom LyX layouts and modules from
existing (or entirely new) LaTeX files.  (I will also be posting several
other examples on a companion website.)

But are there other things that you would like to see?  The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.

Cheers,

Rob Oakes



Re: Professional and Scientific Writing Book

2009-11-03 Thread John Coppens
On Tue, 03 Nov 2009 09:09:49 -0700
Rob Oakes rob.oa...@oak-tree.us wrote:

 But are there other things that you would like to see?  The standard LyX
 documentation is so good that I've found myself struggling to find other
 topics that need to be covered, other than a tremendously quick overview
 of the program and instructions on where to find the docs.

A clear overview of how to use accented (or otherwise punctuated
characteres) would be useful (with indications why it sometimes won't
work). I couldn't get character composition to work in 1.5.x; it
spontaneously re-appeared in 1.6.x (I suspect because of Qt 3.x and Qt
4.x)

I guess this would be particularly useful for writers who only
ocasionally use other languages.

John


Re: Problems including a document

2009-11-03 Thread Manolo Martí­nez
That's not the problem, apparently. I have moved everything to the 
master document's preamble and the strange behaviour recurs. Chapter 5 
compiles. Master document w/o Ch. 5 compiles, but Master document with 
Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary for 
compilation? LyX will use that preamble when you export it separately, 
but only the master preamble when you compile the whole thing.


Richard






Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Stefano Baroni
I'm no unix geek, but if the kernel version is enough, that can be  
found by parsing the output of uname -a or hostinfo. I'm sure  
there are better ways of doing this, but I just wanted to add my 5  
cents to this discussion (not notally selfless, though: I am eagerly  
waiting for this issue to be solved to move to snow leopard ;-) - SB


 On Nov 3, 2009, at 4:22 PM, Jean-Marc Lasgouttes wrote:


rgheck rgh...@bobjweil.com writes:

A fix has been committed: disabling fork() on OSX. We don't know why
it suddenly stopped working, but it is a limitation of OSX itself.


The workaround has been committed to trunk only, but since I got  
nobody to

build a binary for testing nothing is happening for branch. Since the
fix leads to a slow down when autosaving (LyX is unresponsive during
this time) I made another patch to speedup saving. This can go to  
branch

when/if there is significant testing.

Note that the workaround would affect to 10.5 and 10.6 equally,  
since I

do not know how to query OS version at run time.

JMarc


---
Stefano Baroni - SISSADEMOCRITOS National Simulation Center -  
Trieste
http://stefano.baroni.me [+39] 040 3787 406 (tel) -528 (fax) /  
stefanobaroni (skype)


La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html









Re: Professional and Scientific Writing Book

2009-11-03 Thread Les Denham
On Tuesday 03 November 2009 10:09:49 Rob Oakes wrote:
 Dear LyX Users,

 I'm currently working on a book which shows how professional and
 scientific writing can be done using purely open source tools.  Any book
 about Scientific/Technical/Professional writing on Linux has to include
 one (if not more) chapters on LyX.  Other chapters will look at LaTeX,
 BibTeX, DocBook and the programs that make working with them easier.

 I am writing this letter to see if there are any particular topics which
 people would like to see included in the book.  One example: I'm going
 to devote a chapter on how to create custom LyX layouts and modules from
 existing (or entirely new) LaTeX files.  (I will also be posting several
 other examples on a companion website.)

 But are there other things that you would like to see?  The standard LyX
 documentation is so good that I've found myself struggling to find other
 topics that need to be covered, other than a tremendously quick overview
 of the program and instructions on where to find the docs.

Rob,

I would suggest putting in some discussion on how to choose Document Class -- 
not the mechanics of using the menu, but the pros and cons of using different 
classes for different types of document. For example, there are more than 
twenty variants of Article, nine Letters, six Books, five Presentations 
and four Reports in my installation of LyX.  I've been using LyX since 2001, 
and I find myself just using the few classes I'm familiar with: article, 
report, book, memoir, a couple of Komascript classes, and powerdot. 
Suggestions or recommendations for using particular classes for specific 
purposes would be very welcome.

Les
-- 
..
Les Denham


Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the  
master document's preamble and the strange behaviour recurs. Chapter  
5 compiles. Master document w/o Ch. 5 compiles, but Master document  
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary  
for compilation? LyX will use that preamble when you export it  
separately, but only the master preamble when you compile the whole  
thing.


Richard






I suggest that you export everything to LaTeX and try the file include  
there.  You might have more success in tracking down the problem that  
way.

Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Jean-Marc Lasgouttes
Stefano Baroni bar...@sissa.it writes:

 I'm no unix geek, but if the kernel version is enough, that can be
 found by parsing the output of uname -a or hostinfo. I'm sure
 there are better ways of doing this, but I just wanted to add my 5
 cents to this discussion (not notally selfless, though: I am eagerly
 waiting for this issue to be solved to move to snow leopard ;-) - SB

I guess there is a library function that can give me this information,
but I am clueless about darwin libraries.

I see signs that sysctl with KERN_OSREL might help, but this is getting
a bit complicated :)

JMarc


Re: Professional and Scientific Writing Book

2009-11-03 Thread Uwe Stöhr

Rob Oakes schrieb:


The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.


Wow, what a compliment for the docs!
I also don't know what to describe as addition to the docs. Otherwise I would have added it to the 
docs ;-).


But have a look at wiki.lyx.org, you find there many useful information around 
LyX and also some HowTo.

regards Uwe


Re: Problems including a document

2009-11-03 Thread Manolo Martí­nez
Thanks for the suggestion. Surprisingly, LaTeX does compile; with a 
bunch of errors in the .log, to be sure, but none of them fatal.


How can I find out what the compiler was doing when it stumbled upon the 
things that LyX finds offending? The part of the .log file that seems 
relevant is:


[168] [169]
! Missing $ inserted.
inserted text
   $
l.370

?

! Extra }, or forgotten $.
\maththreesuperior -{^3}
   
l.370

?

! Missing $ inserted.
inserted text
   $
l.370

?

! Missing } inserted.
inserted text
   }
l.370

?


Is any of this indicative of which part of which file the compiler was 
working on?


Thanks again,
Manolo

James C. Sutherland escribió:


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the 
master document's preamble and the strange behaviour recurs. Chapter 
5 compiles. Master document w/o Ch. 5 compiles, but Master document 
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary 
for compilation? LyX will use that preamble when you export it 
separately, but only the master preamble when you compile the whole 
thing.


Richard






I suggest that you export everything to LaTeX and try the file include 
there.  You might have more success in tracking down the problem that 
way.




Re: Professional and Scientific Writing Book

2009-11-03 Thread Graham M Smith

Rob

But are there other things that you would like to see?  The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.
  
I wonder if something on Lyx/Sweave/R/Beamer might be useful. This 
combination is unbeatable (and I think unique, ignoring working with 
straight Latex) for anyone with scientific/statistics  related 
teaching/writing/presentations to do, but not immediately obvious how to 
get working, especially  with beamer (I am still trying to sort that out).


Graham







Re: Professional and Scientific Writing Book

2009-11-03 Thread Andrew Sullivan
On Tue, Nov 03, 2009 at 06:14:30PM +0100, Uwe Stöhr wrote:

 But have a look at wiki.lyx.org, you find there many useful
  information around LyX and also some HowTo.

Dealing with Word is a very common question on list, and in
professional and academic circumstances discussing it -- at exhaustive
length, since all of the options are well less than perfect -- would
likely be very helpful.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Professional and Scientific Writing Book

2009-11-03 Thread Stefano Franchi
On 11/03/09, Uwe Stöhr uwesto...@web.de wrote:
Rob Oakes schrieb:

 The standard LyX
 documentation is so good that I've found myself struggling to find other
 topics that need to be covered, other than a tremendously quick overview
 of the program and instructions on where to find the docs.

Wow, what a compliment for the docs!
I also don't know what to describe as addition to the docs. Otherwise I would 
have added it to the 
docs ;-).

But have a look at wiki.lyx.org, you find there many useful information around 
LyX and also some HowTo.

regards Uwe


The LyX documentation is indeed excellent. What I feel is still missing---and 
I have been planning to write, in fact, once I learn the basics---is a task-
oriented more or less step-by-step guide on how to write layouts file for 
(previously created) latex classes and how to extend existing classes purely 
with layouts (a topic Steve Litt has approached, but I think it could be 
extended). The Customizing LyX manual is great and contains lots of details 
on the various commands to be used in layouts (thanks Uwe!), but it could be 
supplemented by a chapter on How to extend the article class [or koma-
article, etc.]. The chapter could show how to add new features to class in 
lyx only, or how to extend the latex class with new features and then create a 
layout to render those in Lyx. 

Cheers,

S. 


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Professional and Scientific Writing Book

2009-11-03 Thread Liviu Andronic
Hello

On 11/3/09, Graham M Smith graham.sm...@myotis.co.uk wrote:
  I wonder if something on Lyx/Sweave/R/Beamer might be useful. This
 combination is unbeatable (and I think unique, ignoring working with
 straight Latex) for anyone with scientific/statistics  related
 teaching/writing/presentations to do, but not immediately obvious how to get
 working, especially  with beamer (I am still trying to sort that out).

I was also thinking about Sweave support as a great selling point for
LyX, so to speak. Another not immediately obvious feature is support
in LyX for various Computer Algebra Systems (CAS), including the
open-source Maxima and Octave. For Sweave, a good reference would be
Gregor Gorjanc's Rnews article [1].

Already mentioned, it would be informative to explain UTF8 support in
LyX (the nuances of the variuos utf8* variants) and propose approaches
to writing multi-lingual documents (including tough-nuts-to-crack,
say, English+Greek+Russian).

Also mentioned, exporting to Word (and the like).. Yesterday
investigating (again) the issue of LaTeX to
anything-other-than-pdf-or-ps-or-dvi, I stumbled upon this interesting
overview [2] of various approaches.

Good luck!
Liviu

PS When the book is made public, please consider dropping a note on this list.

[1] http://cran.r-project.org/doc/Rnews/Rnews_2008-1.pdf
[2] http://biostat.mc.vanderbilt.edu/SweaveConvert


Re: Failing to compile on fresh Kubuntu 9.10 (Karmic) install

2009-11-03 Thread rgheck

On 11/03/2009 05:46 PM, stefano franchi wrote:

Could anyone tell me what I am still missing?

   

Try --without-included-boost.

rh



Re: Question About Custom Layouts and Styles

2009-11-03 Thread Waluyo Adi Siswanto
 Since this is one of those Write it down or forget it type of things,
 I also put together a blog post that describes the whole process.
 Granted, most of it is just stolen out of the LyX documentation, but I
 find it handy to put together these types of cheat sheets for myself.

 If interested, you can find it at:

 http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih

 The article includes links to download the files.


Dear Rob

The article is really interesting and useful.
I am at the moment preparing a guideline for my colleagues how to use
LyX for writing scientific books and reports.
I would like to refer your link as one of the references.

Your permission is highly appreciated.


Regards
-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


File converters based on file extension rather than MIME type?

2009-11-03 Thread Hugo Vincent

Hi,

I'm trying to set up some custom file converters (which take psfrag'd  
EPS files from matlab, do some stuff to the annotations then render  
them to a PDF), and am distinguishing between what stuff gets done  
by file extension. That is, for operation A, I might call the file  
someplot.epstypeA, and set up a file converter in LyX to call my  
script (which I've tested and it works). But for some reason, LyX  
seems to ignore my file extension and just call the plain EPS  
converter because it somehow knows (from MIME type?) that the file is  
still just an EPS file. Is it possible to make LyX prioritize user- 
specified converters over built-in ones?


Thanks,
Hugo


Failing to compile on fresh Kubuntu 9.10 (Karmic) install

2009-11-03 Thread stefano franchi
I am trying to compile the latest stable version of Lyx on a fresh install
of Kubuntu 9.10. After installaiton of qt4 devel libs and g++, the
configuraiton process went through. Compilation fails, though, with this
error:

g++ -DHAVE_CONFIG_H -I. -I.. -DBOOST_USER_CONFIG=config.h -I../boost -O2
-MT named_slot_map.lo -MD -MP -MF .deps/named_slot_map.Tpo -c
libs/signals/src/named_slot_map.cpp -o
named_slot_map.o

In file included from
./boost/mpl/apply.hpp:23,
 from
./boost/iterator/iterator_facade.hpp:34,
 from
./boost/signals/detail/named_slot_map.hpp:19,
 from
libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before
token (
./boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before
token (
In file included from ./boost/mpl/bind.hpp:27,
 from ./boost/mpl/lambda.hpp:18,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before
token (
./boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before
token (
In file included from ./boost/mpl/lambda.hpp:18,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/bind.hpp:364:31: error: missing binary operator before token (
./boost/mpl/bind.hpp:531:31: error: missing binary operator before token (
In file included from ./boost/mpl/lambda.hpp:22,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/aux_/full_lambda.hpp:230:31: error: missing binary operator
before token (
In file included from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply.hpp:138:31: error: missing binary operator before token
(
make[2]: *** [named_slot_map.lo] Error 1
make[2]: Leaving directory `/home/polus-copy/Desktop/Firefox
Downloads/lyx-1.6.4/boost'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/polus-copy/Desktop/Firefox
Downloads/lyx-1.6.4'
make: *** [all] Error 2



Could anyone tell me what I am still missing?




Thanks,

S.
-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Layout file for Problem Set Solutions (making layout for hmcpset.cls)

2009-11-03 Thread Uwe Stöhr

I wrote:

When the layout works for you, ca you please create a new page at our 
Wiki where you provide this layout file and give some installation 
instructions?:

http://wiki.lyx.org/Layouts/Layouts


I've done this now:

http://wiki.lyx.org/Layouts/HMCMathematicsHomeworkClass

regards Uwe


Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 11:23 AM, Manolo Martí nez wrote:

Thanks for the suggestion. Surprisingly, LaTeX does compile; with a  
bunch of errors in the .log, to be sure, but none of them fatal.


How can I find out what the compiler was doing when it stumbled upon  
the things that LyX finds offending? The part of the .log file that  
seems relevant is:


[168] [169]
! Missing $ inserted.
inserted text
  $
l.370
   ?
! Extra }, or forgotten $.
\maththreesuperior -{^3}
  l.370
   ?
! Missing $ inserted.
inserted text
  $
l.370
   ?
! Missing } inserted.
inserted text
  }
l.370
   ?

Is any of this indicative of which part of which file the compiler  
was working on?


Thanks again,
Manolo



Typically LaTeX will get confused, print out something that gives you  
a hint of where it went off a cliff, and then print a lot of messages  
like what you are seeing here.  So I would suggest looking for the  
first occurance of an error out of LaTeX and see if you can determine  
what part of the document it was processing when that error occurred.


Given that the error involves $, I would bet that you either have an  
unterminated math command or you have tried to use a math command  
without enclosing it in the proper $.  You might also look for mis- 
matched braces {}.




RE: Maintaining a translation of a LyX document

2009-11-03 Thread Roland Clobus
Helge Hafting wrote: 
 Roland Clobus wrote:
  I’m wondering if someone encountered this situation before:
 
  I’ve written a LyX document in language A, and now I want to have the
  same contents/images/layout/etc. in language B.
 
  When something changes In the master document in language A, I would
  like to have minimal work to keep the translation to language B up-
 to-date.
 
 I use document branches for this. A branch is an inset that can contain
 anything (text, headings, lists, and so on) and it can be turned
 on and off at will. A branch that is on will be output when you
 print,
 a branch that is off will not.
 
 I have some documents with both Norwegian and English text. Norwegian
 paragraphs/headings then goes in a norwegian branch, English text in an
 english branch. Common stuff, such as figures, is not in any branch so
 they will always print.
 
 To print for a particular language, I enable the corresponding language
 branch and disable the other.
 
 You find branches under Document-Settings

Thank you for the hint.

In the meantime I've investigated further, and have now successfully used po4a 
in LaTeX mode.

I exported the LyX document to LaTex (File|Export|LaTeX (pdflatex). The 
resulting .tex file is then manipulated by the po4a tools. The .po files can be 
sent to the translators, and finally be merged back to the .tex file, which can 
then be converted to PDF using pdflatex.

My workflow:
- Write the document (X.lyx)
- Export to pdflatex
- Extract the texts to nl.po
  $ po4a-gettextize -f latex -m X.tex -p nl.po
  Now the file nl.po can be translated
- Use the translations to create a translated document with exactly the same 
document structure
  $ po4a-translate -f latex -m X.tex -p nl.po -l X.nl.tex
- Update in the X.nl.tex the language preference (for words like 'Figure' and 
'Contents')
  Replace \documentclass[english] to \documentclass[dutch]
- Create a PDF
  $ pdflatex X.nl.tex
  (repeat a few times to update all references)
- Update the original lyx file
- Export to pdflatex again
- Update the original language text in the translation files
  $ po4a-updatepo -f latex -m X.tex -p nl.po
- Update the translation and merge it back (po4a-translate)

With kind regards,
Roland Clobus


Re: Question on custumising index

2009-11-03 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote:
 How can I get the index with an alphabetical separator as I mention above?
 
 Thanks you for any help or information

If you use xindy (texindy) instead of makeindex, you will get the desired 
layout out of the box.

If you use makeindex, you will have to set up an index style file (*.ist).

I'd recommend xindy, because it is way ahead of makeindex in many respects.

Jürgen


Re: Creating the \independent binary relation within LyX (for independent random variables)

2009-11-03 Thread Guenter Milde
On 2009-11-03, Uwe Stöhr wrote:
 Adam Gustafson schrieb:

 Could someone please let me know how to create the following symbol within
 LyX, I presume within a Math macro?  The LaTeX code that one puts in the
 preamble is:

 \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
 \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

 Copy the preamble code to the preamble of your LyX file. In the LyX
 file, enter \independent in a formula. 

For better visual feedback in LyX, you can put the 

 \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

and transform

 \newcommand{\independent}{\protect\mathpalette{\protect\independenT}{\perp}}
 
into a math-macro (copy the command in the document, mark it and convert
with Ctrl-M). If you copy the \perpl into the LyX box of the math-macro, it
looks reasonably well in LyX.

Günter



Re: Question on custumising index

2009-11-03 Thread Waluyo Adi Siswanto
 If you use xindy (texindy) instead of makeindex, you will get the desired
 layout out of the box.

 If you use makeindex, you will have to set up an index style file (*.ist).

 I'd recommend xindy, because it is way ahead of makeindex in many respects.


Thanks Jurgen
It works,
I just replace the command makeindex -c -q with texindy  -M book-order -q

--
Waluyo


Re: Cannot export to pdf in Mac OSX Snow Leopard

2009-11-03 Thread Anders Ekberg

On 3 nov 2009, at 08.15, Manveru wrote:


...


First of all, thanks for answering.
I've just installed MacTex again, restarted Lyx, nothing changed.  
When I try

to convert the document in any damned format, nothing happens. Please
somebody help. I never needed to install ps2pdf and even googling I  
cannot
find any way to find it for mac... shouldn't it be already  
installed if I

always used Lyx with no problem before??
Greets,


Did you ever use Reconfigure menu option in LyX after TeX distro
re-installation? If not, please try.



Also open the Terminal and give a
sudo texhash
(you need an admin password).

/Anders




Header print suppression

2009-11-03 Thread Jes Andersen
at the beginning of every lyx document there is a:
#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
is there an option anywhere to skip this?

The reason is when using version control systems and users with
different versions of lyx, just opening and saving changes the file,
which is quite annoying.

Best Regards
 Jes


Re: Cannot export to pdf in Mac OSX Snow Leopard

2009-11-03 Thread Luca De Marini
2009/11/3 Anders Ekberg a...@mac.com

 On 3 nov 2009, at 08.15, Manveru wrote:

  ...

  First of all, thanks for answering.
 I've just installed MacTex again, restarted Lyx, nothing changed. When I
 try
 to convert the document in any damned format, nothing happens. Please
 somebody help. I never needed to install ps2pdf and even googling I
 cannot
 find any way to find it for mac... shouldn't it be already installed if I
 always used Lyx with no problem before??
 Greets,


 Did you ever use Reconfigure menu option in LyX after TeX distro
 re-installation? If not, please try.


Of course I did, thanks :)




 Also open the Terminal and give a
 sudo texhash
 (you need an admin password).


Never tried this but it didn't work.
Not the funny thing is that I tried another file (sorry, I didn't think it
could work with another file) and it worked!
So I created a new document, copied everything from the previous one and
copied it in the new one and now it compiles! I really don't understand what
was wrong with my other file, it used to work some months ago! Maybe
something changed in laTex code for preambles? The only different things I
can see from a doc to the other is related to the preamble... Ok guys, in
any case, problem solved, thanks for your assistance :)

Greetings

Luca


Re: Header print suppression

2009-11-03 Thread rgheck

On 11/03/2009 06:41 AM, Jes Andersen wrote:

at the beginning of every lyx document there is a:
#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
is there an option anywhere to skip this?

   

No, unless you edit source.

rh



Re: Question About Custom Layouts and Styles

2009-11-03 Thread rgheck

On 10/30/2009 02:17 PM, Rob Oakes wrote:

Dear Richard and other LyX Users,

I managed to solve a few of the formatting problems.  To change the
section labels from numbers to letters, I added the following to the
nih.cls file:

\def\thesection{\Alph{section}}

That solved the output problem.  Now I am trying to get the labels for
section, subsection, and subsubsection to match the LaTeX output.  I've
been able to figure it out for section:

Style Section
LabelType Counter
LabelCounter  section
LabelString   \Alph{section}
End

But I've been stumped on how to do the same thing for subsection and
subsubsection.  This still show 1.1 and 1.1.1 respectively, but only in
LyX.  The LaTeX output is correct.

   
Did you try just doing the same thing, more or less, in the Subsection 
and Subsubsection styles?


You can also do this in the counter block, e.g.:

Counter subsection
LabelString \Alph{section}.\alph{subsection}
End

I think this may also work:

Counter subsection
LabelString \thesection.\alph{subsection}
End

Like LaTeX.

rh



Re: Header print suppression

2009-11-03 Thread Andrew Sullivan
On Tue, Nov 03, 2009 at 12:41:06PM +0100, Jes Andersen wrote:
 at the beginning of every lyx document there is a:
 #LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
 is there an option anywhere to skip this?
 
 The reason is when using version control systems and users with
 different versions of lyx, just opening and saving changes the file,
 which is quite annoying.

You could suppress it with a filter inbound to your VCS.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.



Re: howto copy external material to lyx working directory

2009-11-03 Thread Manveru
2009/11/1 Egon Alter egon.al...@gmx.net:
 Hi,

 I like to use the pdfx package which needs some external files (icc profile,
 xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can
 tell lyx to copy these files to the tmpbuf folder before compiling?

 thanks

Oh yes, I was thinking about such feature couple of times when people
requests some additional files in latex process through LyX. So
customized copier option could be added to document settings allowing
user to select files which he wants to be copied to temp dir for
processing. This could be a feature request.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Problems including a document

2009-11-03 Thread Manolo Martí­nez

Dear list,

I am working right now with a long document that has chapters as 
separate files, included in a master document. I'm having the following 
problem: chapter 5 exports to pdf perfectly on its own but, when 
included in the master document, this latter document does not export 
-although it does when chapter 5 is not included.


It looks as if something is leading .lyx astray, because the four errors 
it finds are:


missing $ inserted
extra }, or forgotten $
missing $ inserted
missing } inserted

Has anybody ever come across a problem like this?

Thanks
Manolo



Re: Question About Custom Layouts and Styles

2009-11-03 Thread Rob Oakes
Dear Richard and other LyX Users,

Thank you very much for the recommendation, it worked perfectly.  The
final formatting worked out to be:

Counter subsection
  LabelString \Alph{section}.\{subsection}
End

Since this is one of those Write it down or forget it type of things,
I also put together a blog post that describes the whole process.
Granted, most of it is just stolen out of the LyX documentation, but I
find it handy to put together these types of cheat sheets for myself.

If interested, you can find it at:

http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih

The article includes links to download the files.

Cheers,

Rob



Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Jean-Marc Lasgouttes
rgheck rgh...@bobjweil.com writes:
 A fix has been committed: disabling fork() on OSX. We don't know why
 it suddenly stopped working, but it is a limitation of OSX itself.

The workaround has been committed to trunk only, but since I got nobody to
build a binary for testing nothing is happening for branch. Since the
fix leads to a slow down when autosaving (LyX is unresponsive during
this time) I made another patch to speedup saving. This can go to branch
when/if there is significant testing.

Note that the workaround would affect to 10.5 and 10.6 equally, since I
do not know how to query OS version at run time.

JMarc


Re: Problems including a document

2009-11-03 Thread rgheck

On 11/03/2009 10:12 AM, Manolo Martí­nez wrote:

Dear list,

I am working right now with a long document that has chapters as 
separate files, included in a master document. I'm having the 
following problem: chapter 5 exports to pdf perfectly on its own but, 
when included in the master document, this latter document does not 
export -although it does when chapter 5 is not included.


It looks as if something is leading .lyx astray, because the four 
errors it finds are:


missing $ inserted
extra }, or forgotten $
missing $ inserted
missing } inserted

Has anybody ever come across a problem like this?

Is there something in the preamble for chapter 5 that is necessary for 
compilation? LyX will use that preamble when you export it separately, 
but only the master preamble when you compile the whole thing.


Richard



Professional and Scientific Writing Book

2009-11-03 Thread Rob Oakes
Dear LyX Users,

I'm currently working on a book which shows how professional and
scientific writing can be done using purely open source tools.  Any book
about Scientific/Technical/Professional writing on Linux has to include
one (if not more) chapters on LyX.  Other chapters will look at LaTeX,
BibTeX, DocBook and the programs that make working with them easier.

I am writing this letter to see if there are any particular topics which
people would like to see included in the book.  One example: I'm going
to devote a chapter on how to create custom LyX layouts and modules from
existing (or entirely new) LaTeX files.  (I will also be posting several
other examples on a companion website.)

But are there other things that you would like to see?  The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.

Cheers,

Rob Oakes



Re: Professional and Scientific Writing Book

2009-11-03 Thread John Coppens
On Tue, 03 Nov 2009 09:09:49 -0700
Rob Oakes rob.oa...@oak-tree.us wrote:

 But are there other things that you would like to see?  The standard LyX
 documentation is so good that I've found myself struggling to find other
 topics that need to be covered, other than a tremendously quick overview
 of the program and instructions on where to find the docs.

A clear overview of how to use accented (or otherwise punctuated
characteres) would be useful (with indications why it sometimes won't
work). I couldn't get character composition to work in 1.5.x; it
spontaneously re-appeared in 1.6.x (I suspect because of Qt 3.x and Qt
4.x)

I guess this would be particularly useful for writers who only
ocasionally use other languages.

John


Re: Problems including a document

2009-11-03 Thread Manolo Martí­nez
That's not the problem, apparently. I have moved everything to the 
master document's preamble and the strange behaviour recurs. Chapter 5 
compiles. Master document w/o Ch. 5 compiles, but Master document with 
Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary for 
compilation? LyX will use that preamble when you export it separately, 
but only the master preamble when you compile the whole thing.


Richard






Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Stefano Baroni
I'm no unix geek, but if the kernel version is enough, that can be  
found by parsing the output of uname -a or hostinfo. I'm sure  
there are better ways of doing this, but I just wanted to add my 5  
cents to this discussion (not notally selfless, though: I am eagerly  
waiting for this issue to be solved to move to snow leopard ;-) - SB


 On Nov 3, 2009, at 4:22 PM, Jean-Marc Lasgouttes wrote:


rgheck rgh...@bobjweil.com writes:

A fix has been committed: disabling fork() on OSX. We don't know why
it suddenly stopped working, but it is a limitation of OSX itself.


The workaround has been committed to trunk only, but since I got  
nobody to

build a binary for testing nothing is happening for branch. Since the
fix leads to a slow down when autosaving (LyX is unresponsive during
this time) I made another patch to speedup saving. This can go to  
branch

when/if there is significant testing.

Note that the workaround would affect to 10.5 and 10.6 equally,  
since I

do not know how to query OS version at run time.

JMarc


---
Stefano Baroni - SISSADEMOCRITOS National Simulation Center -  
Trieste
http://stefano.baroni.me [+39] 040 3787 406 (tel) -528 (fax) /  
stefanobaroni (skype)


La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html









Re: Professional and Scientific Writing Book

2009-11-03 Thread Les Denham
On Tuesday 03 November 2009 10:09:49 Rob Oakes wrote:
 Dear LyX Users,

 I'm currently working on a book which shows how professional and
 scientific writing can be done using purely open source tools.  Any book
 about Scientific/Technical/Professional writing on Linux has to include
 one (if not more) chapters on LyX.  Other chapters will look at LaTeX,
 BibTeX, DocBook and the programs that make working with them easier.

 I am writing this letter to see if there are any particular topics which
 people would like to see included in the book.  One example: I'm going
 to devote a chapter on how to create custom LyX layouts and modules from
 existing (or entirely new) LaTeX files.  (I will also be posting several
 other examples on a companion website.)

 But are there other things that you would like to see?  The standard LyX
 documentation is so good that I've found myself struggling to find other
 topics that need to be covered, other than a tremendously quick overview
 of the program and instructions on where to find the docs.

Rob,

I would suggest putting in some discussion on how to choose Document Class -- 
not the mechanics of using the menu, but the pros and cons of using different 
classes for different types of document. For example, there are more than 
twenty variants of Article, nine Letters, six Books, five Presentations 
and four Reports in my installation of LyX.  I've been using LyX since 2001, 
and I find myself just using the few classes I'm familiar with: article, 
report, book, memoir, a couple of Komascript classes, and powerdot. 
Suggestions or recommendations for using particular classes for specific 
purposes would be very welcome.

Les
-- 
..
Les Denham


Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the  
master document's preamble and the strange behaviour recurs. Chapter  
5 compiles. Master document w/o Ch. 5 compiles, but Master document  
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary  
for compilation? LyX will use that preamble when you export it  
separately, but only the master preamble when you compile the whole  
thing.


Richard






I suggest that you export everything to LaTeX and try the file include  
there.  You might have more success in tracking down the problem that  
way.

Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Jean-Marc Lasgouttes
Stefano Baroni bar...@sissa.it writes:

 I'm no unix geek, but if the kernel version is enough, that can be
 found by parsing the output of uname -a or hostinfo. I'm sure
 there are better ways of doing this, but I just wanted to add my 5
 cents to this discussion (not notally selfless, though: I am eagerly
 waiting for this issue to be solved to move to snow leopard ;-) - SB

I guess there is a library function that can give me this information,
but I am clueless about darwin libraries.

I see signs that sysctl with KERN_OSREL might help, but this is getting
a bit complicated :)

JMarc


Re: Professional and Scientific Writing Book

2009-11-03 Thread Uwe Stöhr

Rob Oakes schrieb:


The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.


Wow, what a compliment for the docs!
I also don't know what to describe as addition to the docs. Otherwise I would have added it to the 
docs ;-).


But have a look at wiki.lyx.org, you find there many useful information around 
LyX and also some HowTo.

regards Uwe


Re: Problems including a document

2009-11-03 Thread Manolo Martí­nez
Thanks for the suggestion. Surprisingly, LaTeX does compile; with a 
bunch of errors in the .log, to be sure, but none of them fatal.


How can I find out what the compiler was doing when it stumbled upon the 
things that LyX finds offending? The part of the .log file that seems 
relevant is:


[168] [169]
! Missing $ inserted.
inserted text
   $
l.370

?

! Extra }, or forgotten $.
\maththreesuperior -{^3}
   
l.370

?

! Missing $ inserted.
inserted text
   $
l.370

?

! Missing } inserted.
inserted text
   }
l.370

?


Is any of this indicative of which part of which file the compiler was 
working on?


Thanks again,
Manolo

James C. Sutherland escribió:


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the 
master document's preamble and the strange behaviour recurs. Chapter 
5 compiles. Master document w/o Ch. 5 compiles, but Master document 
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary 
for compilation? LyX will use that preamble when you export it 
separately, but only the master preamble when you compile the whole 
thing.


Richard






I suggest that you export everything to LaTeX and try the file include 
there.  You might have more success in tracking down the problem that 
way.




Re: Professional and Scientific Writing Book

2009-11-03 Thread Graham M Smith

Rob

But are there other things that you would like to see?  The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.
  
I wonder if something on Lyx/Sweave/R/Beamer might be useful. This 
combination is unbeatable (and I think unique, ignoring working with 
straight Latex) for anyone with scientific/statistics  related 
teaching/writing/presentations to do, but not immediately obvious how to 
get working, especially  with beamer (I am still trying to sort that out).


Graham







Re: Professional and Scientific Writing Book

2009-11-03 Thread Andrew Sullivan
On Tue, Nov 03, 2009 at 06:14:30PM +0100, Uwe Stöhr wrote:

 But have a look at wiki.lyx.org, you find there many useful
  information around LyX and also some HowTo.

Dealing with Word is a very common question on list, and in
professional and academic circumstances discussing it -- at exhaustive
length, since all of the options are well less than perfect -- would
likely be very helpful.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Professional and Scientific Writing Book

2009-11-03 Thread Stefano Franchi
On 11/03/09, Uwe Stöhr uwesto...@web.de wrote:
Rob Oakes schrieb:

 The standard LyX
 documentation is so good that I've found myself struggling to find other
 topics that need to be covered, other than a tremendously quick overview
 of the program and instructions on where to find the docs.

Wow, what a compliment for the docs!
I also don't know what to describe as addition to the docs. Otherwise I would 
have added it to the 
docs ;-).

But have a look at wiki.lyx.org, you find there many useful information around 
LyX and also some HowTo.

regards Uwe


The LyX documentation is indeed excellent. What I feel is still missing---and 
I have been planning to write, in fact, once I learn the basics---is a task-
oriented more or less step-by-step guide on how to write layouts file for 
(previously created) latex classes and how to extend existing classes purely 
with layouts (a topic Steve Litt has approached, but I think it could be 
extended). The Customizing LyX manual is great and contains lots of details 
on the various commands to be used in layouts (thanks Uwe!), but it could be 
supplemented by a chapter on How to extend the article class [or koma-
article, etc.]. The chapter could show how to add new features to class in 
lyx only, or how to extend the latex class with new features and then create a 
layout to render those in Lyx. 

Cheers,

S. 


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Professional and Scientific Writing Book

2009-11-03 Thread Liviu Andronic
Hello

On 11/3/09, Graham M Smith graham.sm...@myotis.co.uk wrote:
  I wonder if something on Lyx/Sweave/R/Beamer might be useful. This
 combination is unbeatable (and I think unique, ignoring working with
 straight Latex) for anyone with scientific/statistics  related
 teaching/writing/presentations to do, but not immediately obvious how to get
 working, especially  with beamer (I am still trying to sort that out).

I was also thinking about Sweave support as a great selling point for
LyX, so to speak. Another not immediately obvious feature is support
in LyX for various Computer Algebra Systems (CAS), including the
open-source Maxima and Octave. For Sweave, a good reference would be
Gregor Gorjanc's Rnews article [1].

Already mentioned, it would be informative to explain UTF8 support in
LyX (the nuances of the variuos utf8* variants) and propose approaches
to writing multi-lingual documents (including tough-nuts-to-crack,
say, English+Greek+Russian).

Also mentioned, exporting to Word (and the like).. Yesterday
investigating (again) the issue of LaTeX to
anything-other-than-pdf-or-ps-or-dvi, I stumbled upon this interesting
overview [2] of various approaches.

Good luck!
Liviu

PS When the book is made public, please consider dropping a note on this list.

[1] http://cran.r-project.org/doc/Rnews/Rnews_2008-1.pdf
[2] http://biostat.mc.vanderbilt.edu/SweaveConvert


Re: Failing to compile on fresh Kubuntu 9.10 (Karmic) install

2009-11-03 Thread rgheck

On 11/03/2009 05:46 PM, stefano franchi wrote:

Could anyone tell me what I am still missing?

   

Try --without-included-boost.

rh



Re: Question About Custom Layouts and Styles

2009-11-03 Thread Waluyo Adi Siswanto
 Since this is one of those Write it down or forget it type of things,
 I also put together a blog post that describes the whole process.
 Granted, most of it is just stolen out of the LyX documentation, but I
 find it handy to put together these types of cheat sheets for myself.

 If interested, you can find it at:

 http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih

 The article includes links to download the files.


Dear Rob

The article is really interesting and useful.
I am at the moment preparing a guideline for my colleagues how to use
LyX for writing scientific books and reports.
I would like to refer your link as one of the references.

Your permission is highly appreciated.


Regards
-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


File converters based on file extension rather than MIME type?

2009-11-03 Thread Hugo Vincent

Hi,

I'm trying to set up some custom file converters (which take psfrag'd  
EPS files from matlab, do some stuff to the annotations then render  
them to a PDF), and am distinguishing between what stuff gets done  
by file extension. That is, for operation A, I might call the file  
someplot.epstypeA, and set up a file converter in LyX to call my  
script (which I've tested and it works). But for some reason, LyX  
seems to ignore my file extension and just call the plain EPS  
converter because it somehow knows (from MIME type?) that the file is  
still just an EPS file. Is it possible to make LyX prioritize user- 
specified converters over built-in ones?


Thanks,
Hugo


Failing to compile on fresh Kubuntu 9.10 (Karmic) install

2009-11-03 Thread stefano franchi
I am trying to compile the latest stable version of Lyx on a fresh install
of Kubuntu 9.10. After installaiton of qt4 devel libs and g++, the
configuraiton process went through. Compilation fails, though, with this
error:

g++ -DHAVE_CONFIG_H -I. -I.. -DBOOST_USER_CONFIG=config.h -I../boost -O2
-MT named_slot_map.lo -MD -MP -MF .deps/named_slot_map.Tpo -c
libs/signals/src/named_slot_map.cpp -o
named_slot_map.o

In file included from
./boost/mpl/apply.hpp:23,
 from
./boost/iterator/iterator_facade.hpp:34,
 from
./boost/signals/detail/named_slot_map.hpp:19,
 from
libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before
token (
./boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before
token (
In file included from ./boost/mpl/bind.hpp:27,
 from ./boost/mpl/lambda.hpp:18,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before
token (
./boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before
token (
In file included from ./boost/mpl/lambda.hpp:18,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/bind.hpp:364:31: error: missing binary operator before token (
./boost/mpl/bind.hpp:531:31: error: missing binary operator before token (
In file included from ./boost/mpl/lambda.hpp:22,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/aux_/full_lambda.hpp:230:31: error: missing binary operator
before token (
In file included from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply.hpp:138:31: error: missing binary operator before token
(
make[2]: *** [named_slot_map.lo] Error 1
make[2]: Leaving directory `/home/polus-copy/Desktop/Firefox
Downloads/lyx-1.6.4/boost'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/polus-copy/Desktop/Firefox
Downloads/lyx-1.6.4'
make: *** [all] Error 2



Could anyone tell me what I am still missing?




Thanks,

S.
-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Layout file for Problem Set Solutions (making layout for hmcpset.cls)

2009-11-03 Thread Uwe Stöhr

I wrote:

When the layout works for you, ca you please create a new page at our 
Wiki where you provide this layout file and give some installation 
instructions?:

http://wiki.lyx.org/Layouts/Layouts


I've done this now:

http://wiki.lyx.org/Layouts/HMCMathematicsHomeworkClass

regards Uwe


Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 11:23 AM, Manolo Martí nez wrote:

Thanks for the suggestion. Surprisingly, LaTeX does compile; with a  
bunch of errors in the .log, to be sure, but none of them fatal.


How can I find out what the compiler was doing when it stumbled upon  
the things that LyX finds offending? The part of the .log file that  
seems relevant is:


[168] [169]
! Missing $ inserted.
inserted text
  $
l.370
   ?
! Extra }, or forgotten $.
\maththreesuperior -{^3}
  l.370
   ?
! Missing $ inserted.
inserted text
  $
l.370
   ?
! Missing } inserted.
inserted text
  }
l.370
   ?

Is any of this indicative of which part of which file the compiler  
was working on?


Thanks again,
Manolo



Typically LaTeX will get confused, print out something that gives you  
a hint of where it went off a cliff, and then print a lot of messages  
like what you are seeing here.  So I would suggest looking for the  
first occurance of an error out of LaTeX and see if you can determine  
what part of the document it was processing when that error occurred.


Given that the error involves $, I would bet that you either have an  
unterminated math command or you have tried to use a math command  
without enclosing it in the proper $.  You might also look for mis- 
matched braces {}.




RE: Maintaining a translation of a LyX document

2009-11-03 Thread Roland Clobus
Helge Hafting wrote: 
 Roland Clobus wrote:
  I’m wondering if someone encountered this situation before:
 
  I’ve written a LyX document in language A, and now I want to have the
  same contents/images/layout/etc. in language B.
 
  When something changes In the master document in language A, I would
  like to have minimal work to keep the translation to language B up-
 to-date.
 
 I use document branches for this. A branch is an inset that can contain
 anything (text, headings, lists, and so on) and it can be turned
 on and off at will. A branch that is on will be output when you
 print,
 a branch that is off will not.
 
 I have some documents with both Norwegian and English text. Norwegian
 paragraphs/headings then goes in a norwegian branch, English text in an
 english branch. Common stuff, such as figures, is not in any branch so
 they will always print.
 
 To print for a particular language, I enable the corresponding language
 branch and disable the other.
 
 You find branches under Document-Settings

Thank you for the hint.

In the meantime I've investigated further, and have now successfully used po4a 
in LaTeX mode.

I exported the LyX document to LaTex (File|Export|LaTeX (pdflatex). The 
resulting .tex file is then manipulated by the po4a tools. The .po files can be 
sent to the translators, and finally be merged back to the .tex file, which can 
then be converted to PDF using pdflatex.

My workflow:
- Write the document (X.lyx)
- Export to pdflatex
- Extract the texts to nl.po
  $ po4a-gettextize -f latex -m X.tex -p nl.po
  Now the file nl.po can be translated
- Use the translations to create a translated document with exactly the same 
document structure
  $ po4a-translate -f latex -m X.tex -p nl.po -l X.nl.tex
- Update in the X.nl.tex the language preference (for words like 'Figure' and 
'Contents')
  Replace \documentclass[english] to \documentclass[dutch]
- Create a PDF
  $ pdflatex X.nl.tex
  (repeat a few times to update all references)
- Update the original lyx file
- Export to pdflatex again
- Update the original language text in the translation files
  $ po4a-updatepo -f latex -m X.tex -p nl.po
- Update the translation and merge it back (po4a-translate)

With kind regards,
Roland Clobus


Re: Question on custumising index

2009-11-03 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote:
> How can I get the index with an alphabetical separator as I mention above?
> 
> Thanks you for any help or information

If you use xindy (texindy) instead of makeindex, you will get the desired 
layout out of the box.

If you use makeindex, you will have to set up an index style file (*.ist).

I'd recommend xindy, because it is way ahead of makeindex in many respects.

Jürgen


Re: Creating the "\independent" binary relation within LyX (for independent random variables)

2009-11-03 Thread Guenter Milde
On 2009-11-03, Uwe Stöhr wrote:
> Adam Gustafson schrieb:

>> Could someone please let me know how to create the following symbol within
>> LyX, I presume within a Math macro?  The LaTeX code that one puts in the
>> preamble is:

>> \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
>> \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

> Copy the preamble code to the preamble of your LyX file. In the LyX
> file, enter "\independent" in a formula. 

For better visual feedback in LyX, you can put the 

>> \def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

and transform

 \newcommand{\independent}{\protect\mathpalette{\protect\independenT}{\perp}}
 
into a math-macro (copy the command in the document, mark it and convert
with Ctrl-M). If you copy the \perpl into the LyX box of the math-macro, it
looks reasonably well in LyX.

Günter



Re: Question on custumising index

2009-11-03 Thread Waluyo Adi Siswanto
> If you use xindy (texindy) instead of makeindex, you will get the desired
> layout out of the box.
>
> If you use makeindex, you will have to set up an index style file (*.ist).
>
> I'd recommend xindy, because it is way ahead of makeindex in many respects.
>

Thanks Jurgen
It works,
I just replace the command "makeindex -c -q" with "texindy  -M book-order -q"

--
Waluyo


Re: Cannot export to pdf in Mac OSX Snow Leopard

2009-11-03 Thread Anders Ekberg

On 3 nov 2009, at 08.15, Manveru wrote:


...


First of all, thanks for answering.
I've just installed MacTex again, restarted Lyx, nothing changed.  
When I try

to convert the document in any damned format, nothing happens. Please
somebody help. I never needed to install ps2pdf and even googling I  
cannot
find any way to find it for mac... shouldn't it be already  
installed if I

always used Lyx with no problem before??
Greets,


Did you ever use "Reconfigure" menu option in LyX after TeX distro
re-installation? If not, please try.



Also open the Terminal and give a
sudo texhash
(you need an admin password).

/Anders




Header print suppression

2009-11-03 Thread Jes Andersen
at the beginning of every lyx document there is a:
"#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
is there an option anywhere to skip this?

The reason is when using version control systems and users with
different versions of lyx, just opening and saving changes the file,
which is quite annoying.

Best Regards
 Jes


Re: Cannot export to pdf in Mac OSX Snow Leopard

2009-11-03 Thread Luca De Marini
2009/11/3 Anders Ekberg 

> On 3 nov 2009, at 08.15, Manveru wrote:
>
>  ...

  First of all, thanks for answering.
>>> I've just installed MacTex again, restarted Lyx, nothing changed. When I
>>> try
>>> to convert the document in any damned format, nothing happens. Please
>>> somebody help. I never needed to install ps2pdf and even googling I
>>> cannot
>>> find any way to find it for mac... shouldn't it be already installed if I
>>> always used Lyx with no problem before??
>>> Greets,
>>>
>>
>> Did you ever use "Reconfigure" menu option in LyX after TeX distro
>> re-installation? If not, please try.
>>
>
Of course I did, thanks :)


>
>
> Also open the Terminal and give a
> sudo texhash
> (you need an admin password).
>

Never tried this but it didn't work.
Not the funny thing is that I tried another file (sorry, I didn't think it
could work with another file) and it worked!
So I created a new document, copied everything from the previous one and
copied it in the new one and now it compiles! I really don't understand what
was wrong with my other file, it used to work some months ago! Maybe
something changed in laTex code for preambles? The only different things I
can see from a doc to the other is related to the preamble... Ok guys, in
any case, problem solved, thanks for your assistance :)

Greetings

Luca


Re: Header print suppression

2009-11-03 Thread rgheck

On 11/03/2009 06:41 AM, Jes Andersen wrote:

at the beginning of every lyx document there is a:
"#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
is there an option anywhere to skip this?

   

No, unless you edit source.

rh



Re: Question About Custom Layouts and Styles

2009-11-03 Thread rgheck

On 10/30/2009 02:17 PM, Rob Oakes wrote:

Dear Richard and other LyX Users,

I managed to solve a few of the formatting problems.  To change the
section labels from numbers to letters, I added the following to the
nih.cls file:

\def\thesection{\Alph{section}}

That solved the output problem.  Now I am trying to get the labels for
section, subsection, and subsubsection to match the LaTeX output.  I've
been able to figure it out for section:

Style Section
LabelType Counter
LabelCounter  section
LabelString   "\Alph{section}"
End

But I've been stumped on how to do the same thing for subsection and
subsubsection.  This still show 1.1 and 1.1.1 respectively, but only in
LyX.  The LaTeX output is correct.

   
Did you try just doing the same thing, more or less, in the Subsection 
and Subsubsection styles?


You can also do this in the counter block, e.g.:

Counter subsection
LabelString "\Alph{section}.\alph{subsection}"
End

I think this may also work:

Counter subsection
LabelString "\thesection.\alph{subsection}"
End

Like LaTeX.

rh



Re: Header print suppression

2009-11-03 Thread Andrew Sullivan
On Tue, Nov 03, 2009 at 12:41:06PM +0100, Jes Andersen wrote:
> at the beginning of every lyx document there is a:
> "#LyX 1.6.2 created this file. For more info see http://www.lyx.org/;
> is there an option anywhere to skip this?
> 
> The reason is when using version control systems and users with
> different versions of lyx, just opening and saving changes the file,
> which is quite annoying.

You could suppress it with a filter inbound to your VCS.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.



Re: howto copy external material to lyx working directory

2009-11-03 Thread Manveru
2009/11/1 Egon Alter :
> Hi,
>
> I like to use the pdfx package which needs some external files (icc profile,
> xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can
> tell lyx to copy these files to the tmpbuf folder before compiling?
>
> thanks

Oh yes, I was thinking about such feature couple of times when people
requests some additional files in latex process through LyX. So
customized copier option could be added to document settings allowing
user to select files which he wants to be copied to temp dir for
processing. This could be a feature request.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Problems including a document

2009-11-03 Thread Manolo Martí­nez

Dear list,

I am working right now with a long document that has chapters as 
separate files, included in a master document. I'm having the following 
problem: chapter 5 exports to pdf perfectly on its own but, when 
included in the master document, this latter document does not export 
-although it does when chapter 5 is not included.


It looks as if something is leading .lyx astray, because the four errors 
it finds are:


missing $ inserted
extra }, or forgotten $
missing $ inserted
missing } inserted

Has anybody ever come across a problem like this?

Thanks
Manolo



Re: Question About Custom Layouts and Styles

2009-11-03 Thread Rob Oakes
Dear Richard and other LyX Users,

Thank you very much for the recommendation, it worked perfectly.  The
final formatting worked out to be:

Counter subsection
  LabelString "\Alph{section}.\{subsection}"
End

Since this is one of those "Write it down or forget it" type of things,
I also put together a blog post that describes the whole process.
Granted, most of it is just stolen out of the LyX documentation, but I
find it handy to put together these types of cheat sheets for myself.

If interested, you can find it at:

http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih

The article includes links to download the files.

Cheers,

Rob



Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Jean-Marc Lasgouttes
rgheck  writes:
> A fix has been committed: disabling fork() on OSX. We don't know why
> it suddenly stopped working, but it is a limitation of OSX itself.

The workaround has been committed to trunk only, but since I got nobody to
build a binary for testing nothing is happening for branch. Since the
fix leads to a slow down when autosaving (LyX is unresponsive during
this time) I made another patch to speedup saving. This can go to branch
when/if there is significant testing.

Note that the workaround would affect to 10.5 and 10.6 equally, since I
do not know how to query OS version at run time.

JMarc


Re: Problems including a document

2009-11-03 Thread rgheck

On 11/03/2009 10:12 AM, Manolo Martí­nez wrote:

Dear list,

I am working right now with a long document that has chapters as 
separate files, included in a master document. I'm having the 
following problem: chapter 5 exports to pdf perfectly on its own but, 
when included in the master document, this latter document does not 
export -although it does when chapter 5 is not included.


It looks as if something is leading .lyx astray, because the four 
errors it finds are:


missing $ inserted
extra }, or forgotten $
missing $ inserted
missing } inserted

Has anybody ever come across a problem like this?

Is there something in the preamble for chapter 5 that is necessary for 
compilation? LyX will use that preamble when you export it separately, 
but only the master preamble when you compile the whole thing.


Richard



Professional and Scientific Writing Book

2009-11-03 Thread Rob Oakes
Dear LyX Users,

I'm currently working on a book which shows how professional and
scientific writing can be done using purely open source tools.  Any book
about Scientific/Technical/Professional writing on Linux has to include
one (if not more) chapters on LyX.  Other chapters will look at LaTeX,
BibTeX, DocBook and the programs that make working with them easier.

I am writing this letter to see if there are any particular topics which
people would like to see included in the book.  One example: I'm going
to devote a chapter on how to create custom LyX layouts and modules from
existing (or entirely new) LaTeX files.  (I will also be posting several
other examples on a companion website.)

But are there other things that you would like to see?  The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.

Cheers,

Rob Oakes



Re: Professional and Scientific Writing Book

2009-11-03 Thread John Coppens
On Tue, 03 Nov 2009 09:09:49 -0700
Rob Oakes  wrote:

> But are there other things that you would like to see?  The standard LyX
> documentation is so good that I've found myself struggling to find other
> topics that need to be covered, other than a tremendously quick overview
> of the program and instructions on where to find the docs.

A clear overview of how to use accented (or otherwise punctuated
characteres) would be useful (with indications why it sometimes won't
work). I couldn't get character composition to work in 1.5.x; it
spontaneously re-appeared in 1.6.x (I suspect because of Qt 3.x and Qt
4.x)

I guess this would be particularly useful for writers who only
ocasionally use other languages.

John


Re: Problems including a document

2009-11-03 Thread Manolo Martí­nez
That's not the problem, apparently. I have moved everything to the 
master document's preamble and the strange behaviour recurs. Chapter 5 
compiles. Master document w/o Ch. 5 compiles, but Master document with 
Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary for 
compilation? LyX will use that preamble when you export it separately, 
but only the master preamble when you compile the whole thing.


Richard






Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Stefano Baroni
I'm no unix geek, but if the kernel version is enough, that can be  
found by parsing the output of "uname -a" or "hostinfo". I'm sure  
there are better ways of doing this, but I just wanted to add my 5  
cents to this discussion (not notally selfless, though: I am eagerly  
waiting for this issue to be solved to move to snow leopard ;-) - SB


 On Nov 3, 2009, at 4:22 PM, Jean-Marc Lasgouttes wrote:


rgheck  writes:

A fix has been committed: disabling fork() on OSX. We don't know why
it suddenly stopped working, but it is a limitation of OSX itself.


The workaround has been committed to trunk only, but since I got  
nobody to

build a binary for testing nothing is happening for branch. Since the
fix leads to a slow down when autosaving (LyX is unresponsive during
this time) I made another patch to speedup saving. This can go to  
branch

when/if there is significant testing.

Note that the workaround would affect to 10.5 and 10.6 equally,  
since I

do not know how to query OS version at run time.

JMarc


---
Stefano Baroni - SISSA  &  DEMOCRITOS National Simulation Center -  
Trieste
http://stefano.baroni.me [+39] 040 3787 406 (tel) -528 (fax) /  
stefanobaroni (skype)


La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html









Re: Professional and Scientific Writing Book

2009-11-03 Thread Les Denham
On Tuesday 03 November 2009 10:09:49 Rob Oakes wrote:
> Dear LyX Users,
>
> I'm currently working on a book which shows how professional and
> scientific writing can be done using purely open source tools.  Any book
> about Scientific/Technical/Professional writing on Linux has to include
> one (if not more) chapters on LyX.  Other chapters will look at LaTeX,
> BibTeX, DocBook and the programs that make working with them easier.
>
> I am writing this letter to see if there are any particular topics which
> people would like to see included in the book.  One example: I'm going
> to devote a chapter on how to create custom LyX layouts and modules from
> existing (or entirely new) LaTeX files.  (I will also be posting several
> other examples on a companion website.)
>
> But are there other things that you would like to see?  The standard LyX
> documentation is so good that I've found myself struggling to find other
> topics that need to be covered, other than a tremendously quick overview
> of the program and instructions on where to find the docs.

Rob,

I would suggest putting in some discussion on how to choose Document Class -- 
not the mechanics of using the menu, but the pros and cons of using different 
classes for different types of document. For example, there are more than 
twenty variants of "Article", nine "Letters", six "Books", five "Presentations" 
and four "Reports" in my installation of LyX.  I've been using LyX since 2001, 
and I find myself just using the few classes I'm familiar with: article, 
report, book, memoir, a couple of Komascript classes, and powerdot. 
Suggestions or recommendations for using particular classes for specific 
purposes would be very welcome.

Les
-- 
..
Les Denham


Re: Problems including a document

2009-11-03 Thread James C. Sutherland


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the  
master document's preamble and the strange behaviour recurs. Chapter  
5 compiles. Master document w/o Ch. 5 compiles, but Master document  
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary  
for compilation? LyX will use that preamble when you export it  
separately, but only the master preamble when you compile the whole  
thing.


Richard






I suggest that you export everything to LaTeX and try the file include  
there.  You might have more success in tracking down the problem that  
way.

Re: LyX 1.6.4.1 and Snow Leopard

2009-11-03 Thread Jean-Marc Lasgouttes
Stefano Baroni  writes:

> I'm no unix geek, but if the kernel version is enough, that can be
> found by parsing the output of "uname -a" or "hostinfo". I'm sure
> there are better ways of doing this, but I just wanted to add my 5
> cents to this discussion (not notally selfless, though: I am eagerly
> waiting for this issue to be solved to move to snow leopard ;-) - SB

I guess there is a library function that can give me this information,
but I am clueless about darwin libraries.

I see signs that sysctl with KERN_OSREL might help, but this is getting
a bit complicated :)

JMarc


Re: Professional and Scientific Writing Book

2009-11-03 Thread Uwe Stöhr

Rob Oakes schrieb:


The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.


Wow, what a compliment for the docs!
I also don't know what to describe as addition to the docs. Otherwise I would have added it to the 
docs ;-).


But have a look at wiki.lyx.org, you find there many useful information around 
LyX and also some HowTo.

regards Uwe


Re: Problems including a document

2009-11-03 Thread Manolo Martí­nez
Thanks for the suggestion. Surprisingly, LaTeX does compile; with a 
bunch of errors in the .log, to be sure, but none of them fatal.


How can I find out what the compiler was doing when it stumbled upon the 
things that LyX finds offending? The part of the .log file that seems 
relevant is:


[168] [169]
! Missing $ inserted.

   $
l.370

?

! Extra }, or forgotten $.
\maththreesuperior ->{^3}
   
l.370

?

! Missing $ inserted.

   $
l.370

?

! Missing } inserted.

   }
l.370

?


Is any of this indicative of which part of which file the compiler was 
working on?


Thanks again,
Manolo

James C. Sutherland escribió:


On Nov 3, 2009, at 9:03 AM, Manolo Martí nez wrote:

That's not the problem, apparently. I have moved everything to the 
master document's preamble and the strange behaviour recurs. Chapter 
5 compiles. Master document w/o Ch. 5 compiles, but Master document 
with Ch. 5 does not.


Thanks for your help, Richard.

Manolo

rgheck escribió:




Is there something in the preamble for chapter 5 that is necessary 
for compilation? LyX will use that preamble when you export it 
separately, but only the master preamble when you compile the whole 
thing.


Richard






I suggest that you export everything to LaTeX and try the file include 
there.  You might have more success in tracking down the problem that 
way.




Re: Professional and Scientific Writing Book

2009-11-03 Thread Graham M Smith

Rob

But are there other things that you would like to see?  The standard LyX
documentation is so good that I've found myself struggling to find other
topics that need to be covered, other than a tremendously quick overview
of the program and instructions on where to find the docs.
  
I wonder if something on Lyx/Sweave/R/Beamer might be useful. This 
combination is unbeatable (and I think unique, ignoring working with 
straight Latex) for anyone with scientific/statistics  related 
teaching/writing/presentations to do, but not immediately obvious how to 
get working, especially  with beamer (I am still trying to sort that out).


Graham







Re: Professional and Scientific Writing Book

2009-11-03 Thread Andrew Sullivan
On Tue, Nov 03, 2009 at 06:14:30PM +0100, Uwe Stöhr wrote:

> But have a look at wiki.lyx.org, you find there many useful
  information around LyX and also some HowTo.

Dealing with Word is a very common question on list, and in
professional and academic circumstances discussing it -- at exhaustive
length, since all of the options are well less than perfect -- would
likely be very helpful.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Professional and Scientific Writing Book

2009-11-03 Thread Stefano Franchi
On 11/03/09, Uwe Stöhr  wrote:
Rob Oakes schrieb:

> The standard LyX
> documentation is so good that I've found myself struggling to find other
> topics that need to be covered, other than a tremendously quick overview
> of the program and instructions on where to find the docs.

Wow, what a compliment for the docs!
I also don't know what to describe as addition to the docs. Otherwise I would 
have added it to the 
docs ;-).

But have a look at wiki.lyx.org, you find there many useful information around 
LyX and also some HowTo.

regards Uwe


The LyX documentation is indeed excellent. What I feel is still missing---and 
I have been planning to write, in fact, once I learn the basics---is a task-
oriented more or less step-by-step guide on how to write layouts file for 
(previously created) latex classes and how to extend existing classes purely 
with layouts (a topic Steve Litt has approached, but I think it could be 
extended). The "Customizing LyX" manual is great and contains lots of details 
on the various commands to be used in layouts (thanks Uwe!), but it could be 
supplemented by a chapter on "How to extend the article class [or koma-
article, etc.]." The chapter could show how to add new features to class in 
lyx only, or how to extend the latex class with new features and then create a 
layout to render those in Lyx. 

Cheers,

S. 


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Professional and Scientific Writing Book

2009-11-03 Thread Liviu Andronic
Hello

On 11/3/09, Graham M Smith  wrote:
>  I wonder if something on Lyx/Sweave/R/Beamer might be useful. This
> combination is unbeatable (and I think unique, ignoring working with
> straight Latex) for anyone with scientific/statistics  related
> teaching/writing/presentations to do, but not immediately obvious how to get
> working, especially  with beamer (I am still trying to sort that out).
>
I was also thinking about Sweave support as a great selling point for
LyX, so to speak. Another not immediately obvious feature is support
in LyX for various Computer Algebra Systems (CAS), including the
open-source Maxima and Octave. For Sweave, a good reference would be
Gregor Gorjanc's Rnews article [1].

Already mentioned, it would be informative to explain UTF8 support in
LyX (the nuances of the variuos utf8* variants) and propose approaches
to writing multi-lingual documents (including tough-nuts-to-crack,
say, English+Greek+Russian).

Also mentioned, exporting to Word (and the like).. Yesterday
investigating (again) the issue of LaTeX to
anything-other-than-pdf-or-ps-or-dvi, I stumbled upon this interesting
overview [2] of various approaches.

Good luck!
Liviu

PS When the book is made public, please consider dropping a note on this list.

[1] http://cran.r-project.org/doc/Rnews/Rnews_2008-1.pdf
[2] http://biostat.mc.vanderbilt.edu/SweaveConvert


Re: Failing to compile on fresh Kubuntu 9.10 (Karmic) install

2009-11-03 Thread rgheck

On 11/03/2009 05:46 PM, stefano franchi wrote:

Could anyone tell me what I am still missing?

   

Try --without-included-boost.

rh



Re: Question About Custom Layouts and Styles

2009-11-03 Thread Waluyo Adi Siswanto
> Since this is one of those "Write it down or forget it" type of things,
> I also put together a blog post that describes the whole process.
> Granted, most of it is just stolen out of the LyX documentation, but I
> find it handy to put together these types of cheat sheets for myself.
>
> If interested, you can find it at:
>
> http://www.oak-tree.us/blog/index.php/2009/11/02/custom-lyx-nih
>
> The article includes links to download the files.
>

Dear Rob

The article is really interesting and useful.
I am at the moment preparing a guideline for my colleagues how to use
LyX for writing scientific books and reports.
I would like to refer your link as one of the references.

Your permission is highly appreciated.


Regards
-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


File converters based on file extension rather than MIME type?

2009-11-03 Thread Hugo Vincent

Hi,

I'm trying to set up some custom file converters (which take psfrag'd  
EPS files from matlab, do some "stuff" to the annotations then render  
them to a PDF), and am distinguishing between what "stuff" gets done  
by file extension. That is, for operation A, I might call the file  
someplot.epstypeA, and set up a file converter in LyX to call my  
script (which I've tested and it works). But for some reason, LyX  
seems to ignore my file extension and just call the plain EPS  
converter because it somehow knows (from MIME type?) that the file is  
still just an EPS file. Is it possible to make LyX prioritize user- 
specified converters over built-in ones?


Thanks,
Hugo


Failing to compile on fresh Kubuntu 9.10 (Karmic) install

2009-11-03 Thread stefano franchi
I am trying to compile the latest stable version of Lyx on a fresh install
of Kubuntu 9.10. After installaiton of qt4 devel libs and g++, the
configuraiton process went through. Compilation fails, though, with this
error:

g++ -DHAVE_CONFIG_H -I. -I.. "-DBOOST_USER_CONFIG=" -I../boost -O2
-MT named_slot_map.lo -MD -MP -MF .deps/named_slot_map.Tpo -c
libs/signals/src/named_slot_map.cpp -o
named_slot_map.o

In file included from
./boost/mpl/apply.hpp:23,
 from
./boost/iterator/iterator_facade.hpp:34,
 from
./boost/signals/detail/named_slot_map.hpp:19,
 from
libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before
token "("
./boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before
token "("
In file included from ./boost/mpl/bind.hpp:27,
 from ./boost/mpl/lambda.hpp:18,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before
token "("
./boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before
token "("
In file included from ./boost/mpl/lambda.hpp:18,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/bind.hpp:364:31: error: missing binary operator before token "("
./boost/mpl/bind.hpp:531:31: error: missing binary operator before token "("
In file included from ./boost/mpl/lambda.hpp:22,
 from ./boost/mpl/apply.hpp:25,
 from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/aux_/full_lambda.hpp:230:31: error: missing binary operator
before token "("
In file included from ./boost/iterator/iterator_facade.hpp:34,
 from ./boost/signals/detail/named_slot_map.hpp:19,
 from libs/signals/src/named_slot_map.cpp:12:
./boost/mpl/apply.hpp:138:31: error: missing binary operator before token
"("
make[2]: *** [named_slot_map.lo] Error 1
make[2]: Leaving directory `/home/polus-copy/Desktop/Firefox
Downloads/lyx-1.6.4/boost'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/polus-copy/Desktop/Firefox
Downloads/lyx-1.6.4'
make: *** [all] Error 2



Could anyone tell me what I am still missing?




Thanks,

S.
-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas A University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Layout file for Problem Set Solutions (making layout for hmcpset.cls)

2009-11-03 Thread Uwe Stöhr

I wrote:

When the layout works for you, ca you please create a new page at our 
Wiki where you provide this layout file and give some installation 
instructions?:

http://wiki.lyx.org/Layouts/Layouts


I've done this now:

http://wiki.lyx.org/Layouts/HMCMathematicsHomeworkClass

regards Uwe


  1   2   >