Re: Question About Custom Layouts and Styles

2009-11-04 Thread Guenter Milde
On 2009-11-03, Rob Oakes wrote:

 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.

...

 If interested, you can find it at:

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

Could you also post the gist of the article and a link to the wiki
(http://wiki.lyx.org)? This way it might get the desired attention more
easily and permanently.

Günter



Re: Professional and Scientific Writing Book

2009-11-04 Thread Liviu Andronic
Hello

On 11/3/09, Rob Oakes rob.oa...@oak-tree.us wrote:
  I'm currently working on a book which shows how professional and
  scientific writing can be done using purely open source tools.  Any book

[..]
  But are there other things that you would like to see?  The standard LyX

For a professional look, the choice of fonts is perhaps a good point
of discussion. In my experience, the default fonts in LyX can yield
unpredictable results, with strange-looking (both on screen and on
paper), unnamed fonts possibly chosen. At the same time, many of us
are non-experts and can make pretty lousy font choices. Some pointers
on the pros and cons of different fonts/font combinations would be
great. (There is a recent thread [1] on the subject.)

Regards
Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg77281.html


Re: Professional and Scientific Writing Book

2009-11-04 Thread Manveru
2009/11/3 Rob Oakes rob.oa...@oak-tree.us:
 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.

Write couple words about microtype and effects achievable by this
package. It is unfortunately not supported under XeTeX (and will not
be) while it makes PDFs really nicer.

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


Re: Professional and Scientific Writing Book

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 8:18 PM, Graham M Smith graham.sm...@myotis.co.ukwrote:

 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).


I absolute second that. I created a slides for an R course in LyX, using
exactly this combination. But I think, there are some points to be ironed
out, e.g. that the converters for R need to be entered manually in LyX and
that many frames I had to enter in ERT boxes, as I did not manage it with
normal LyX frames.

In essence, brilliant combination, but sometimes quite cryptic problems,
which require ERT boxes in LyX - but I love this combination

Rainer


 Graham








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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 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.


A user defined copier definitely works, but I think that in the Document --
Settings dialog, there should be an additional section named Files to
copy, in which one can select files which should be also copied into the
tmpbuf folder. This would make the whole process much easier to handle.

Rainer



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




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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


URL wraping - someone got it working?

2009-11-04 Thread Sven Hoexter
Hi,
did someone succeed in getting wraped and formated URLs in any document?
Background is that I tried to reproduce Debian bug #531992 [1].

The Break links over lines checkbox in the document settings is activated
and the 'breaklinks' setting is set in the tex export.
So I suspect some problems with my toolchain. It would be nice to know if
someone ever got it working and if yes which toolchain he used e.g. the
texlive version and which pdf creation mechanism.
I'm still on texlive 2007 and tried dvipdfm, pdflatex and ps2pdf.
Tried the usual article class and the koma classes so far, none worked.

What did work was using an ERT and the breakurl package as described in
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breaklinks.

Regards,
Sven

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531992
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Re: LyX 1.6.4.1 and Snow Leopard

2009-11-04 Thread Jürgen Spitzmüller
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.

OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report back. 
Also please report whether the autosave slowdown is bearable, or any strange 
behaviour that might occur.

If the fix proves to do what it ought to (i.e., prevent the pseudo-crashes 
on autosave), we will release a patched 1.6.4.2 specifically for Snow 
Leopard soon.

The binary is not such a patched 1.6.4, but rather a snapshot of the current 
1.6.5svn trunk. It should be stable, but be advised it's not officially 
declared stable.

Jürgen



Re: howto copy external material to lyx working directory

2009-11-04 Thread Manveru
2009/11/4 Rainer M Krug r.m.k...@gmail.com:


 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 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.

 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

 Rainer

I would even see a possibility to define list of files to copy and
additionally use and placeholder everywhere you want use such file - I
mean mainly user defined preamble and ERTs.

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


Re: howto copy external material to lyx working directory

2009-11-04 Thread Egon Alter
 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
  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 I tell lyx to copy these files to the tmpbuf folder before 
   compiling?
 
  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.
 
 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

ok - step by step.

First, I define a new filetype e.g. ICC-profile with .icc extension.

Than I define a converter from icc to ??? (I used png, and included the file as 
a 
graph which I commented out manualy - ugly). 

As a copier, I tried ext_copy -e icc $p $r (don't remember the exact variables 
anymore, not well documented), but lyx allways wants to rename the copied files 
to 
number-filename style, so this didn't work. 

There should be some better way!

Egon


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 1:29 PM, Egon Alter egon.al...@gmx.net wrote:

  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
   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 I tell lyx to copy these files to the tmpbuf folder before
 compiling?
  
   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.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.

 ok - step by step.

 First, I define a new filetype e.g. ICC-profile with .icc extension.

 Than I define a converter from icc to ??? (I used png, and included the
 file as a
 graph which I commented out manualy - ugly).

 As a copier, I tried ext_copy -e icc $p $r (don't remember the exact
 variables
 anymore, not well documented), but lyx allways wants to rename the copied
 files to
 number-filename style, so this didn't work.

 There was a discusion on this list recently, which included that aspect:
using a user defined copier to copy files into the tmpbuf directory - I
think it was the one co-operation with co-authors, i.e. sharing and
commenting LyX Documents - but I don't remember exactly. Soeey.

I THINK it involved writing a shell script, which copies the files, and is
doing what another copier is doing. This copier is then re[lace in LyX with
the shell script - but I am not sure.


Rainer


 There should be some better way!

 Egon




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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 12:42 PM, Manveru manv...@manveru.pl wrote:

 2009/11/4 Rainer M Krug r.m.k...@gmail.com:
 
 
  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
 
  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.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.
 
  Rainer

 I would even see a possibility to define list of files to copy and
 additionally use and placeholder everywhere you want use such file


Yes - a list which can also include wildcards - that would be optimal.


 - I mean mainly user defined preamble and ERTs.


sorry - you lost me here.

I am using an external preamble (preamble.tex) which is in the same
directory as the LyX file, and which is included in the lyx file with

\input{preamble.tex}


in the LyX preamble. This is NOT copied automatically, but works, as in the
resulting LaTeX document,


\def\in...@path{{/PATH/TO/DIRECTORY/WITH/test.lyx}}


That gives me an idea: is it possible to define a search path for LaTeX?
Then this one could be set to the LyX directory, and most things should
work.


But still: having the option of files to be copied would be also useful for
Sweave, which use data files to be analysed.


Rainer



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




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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Professional and Scientific Writing Book

2009-11-04 Thread Piero Faustini

 
 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.

Yep. More in general, and I would never stop repeating it, LyX is likely to 
become the choice for thousands of non-geek academics and writers, expecially 
in 
humanistic fields. Thus, all of these topics need to be discussed and explained 
well:

1. Collaborating techniques and strategies (along with the to/from MSWord/Ooo 
conversion)
2. the other half of the skye (read: humanistic fields)
3. BibLaTeX package (useful for all but expecially for humanists)

But if what you want to write is not a online guide, but a book, it doesn't 
have 
to fiddle with tips and tricks to override problem x or problem y. You should 
concentrate in general strategies and choices, and just point to the tricks we 
can find in the mailing lists or googling.
On point 1) I would treat problems with collaborating with Word-like 
environments 
(say 99% of humanistic fields) (there have been recently a thread on this), on 
2) 
the best choices for non-scientific writing, on 3) just explain how good can 
this 
package work for almost all needs.
_
Fatti riconoscere con i biglietti da visita di Messenger
http://www.messenger.it/bigliettiVisita.aspx

Re: Problems including a document

2009-11-04 Thread Helge Hafting

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?


I have had problems with inclusions sometimes. First, the obvious:
* Both documents are the same document class with the same
  document class options?
* No preamble differences?
* Both documents are the same language?

A less obvious problem is when the document inclusion happens in a place 
where you cannot have more than one paragraph, or at least not a 
complete included document. Bad places to have a input/include are:

* nested inside something else, such as a box or table
* in a heading
* in an enumeration/bullet list
* in the middle of some text, especially if that section of text
  is in a foreign language or highlighted in some way.

Input/include should be in a paragraph of its own, on the outermost 
level and with no markup.



Some things to try:
Put the cursor next to the include/input thing. (Try both sides.)
Check that the paragraph is of type standard, and that there is no
foreign language or other markup in effect.

If you don't find anything, try pressing enter on both sides of the
input inset. This shouldn't really change the document, as the inset 
should be in a paragraph of its own already. This ensures that it is.


If all else fails, try exporting the master document to latex. Then
examine the result, especially around the inclusion. Maybe you find the 
problem, or maybe you find a LyX bug of some kind.


Helge Hafting




command syntax

2009-11-04 Thread rafalo

Hello
I am trying to define shortcuts in lyx, and the only command i know is
math-insert  What are the other possibilities? How can i for example
combine two commands, like math-insert \{\] and then go backward one
character, ?
Thank you very much
-- 
View this message in context: 
http://n2.nabble.com/command-syntax-tp3945423p3945423.html
Sent from the LyX - Users mailing list archive at Nabble.com.


RE: command syntax

2009-11-04 Thread Vincent van Ravesteijn - TNW
I am trying to define shortcuts in lyx, and the only
command i know is math-insert  What are the other
possibilities? How can i for example combine two commands,
like math-insert \{\] and then go backward one character,
?
Thank you very much

Have a look at the Help-LyX Functions document dat you can find in
the Help menu. 

If you want to combine commands, search for command-sequence. For
example you can do: 

command-sequence cut; ert-insert; self-insert ; paste; self-insert {};
inset-toggle;

Vincent


http:// renderings in lyx

2009-11-04 Thread Frederick Noronha [फ़रेदरिक नोरो नया] فريدريك نورونيا
Guys, could you tell me if I'm doing something wrong, the
http://whatever.com doesn't render when in lyx. In particuarly the //
looks too far from the text. Should I use some other way of doing
this? Thanks! FN
-- 
FN +91-9822122436 P +91-832-2409490
Updated: http://goabooks.wordpress.com


Re: http:// renderings in lyx

2009-11-04 Thread Mike Meredith
On Wed, 4 Nov 2009 20:43:19 +0530, Frederick Noronha [फ़रेदरिक नोरोनया]
فريدريك نورونيا wrote:
 Guys, could you tell me if I'm doing something wrong, the
 http://whatever.com doesn't render when in lyx. In particuarly the //
 looks too far from the text. Should I use some other way of doing
 this? Thanks! FN

Menu Insert and then URL.


Paragraph Indent Alignment in .layout file

2009-11-04 Thread Rob
Hi,

I changed the alignment of the standard environment in my layout file. I did it
by simply adding these lines to my .layout file:

Style Standard
Align Left
End

This is now ragged right in my layout, as I desire, but I lost the paragraph
indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know what I am
doing.  What should I do to keep my ragged right appearance and the conventional
paragraph indents in my layout?

Thanks.

Rob



Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-04 Thread rgheck


Just reposting this with a more informative title. The binary is here:

 Original Message 
Subject:Re: LyX 1.6.4.1 and Snow Leopard
Date:   Wed, 04 Nov 2009 11:29:05 +0100
From:   Jürgen Spitzmüller sp...@lyx.org
To: lyx-users@lists.lyx.org
Followup-To:gmane.editors.lyx.general



OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report back.
Also please report whether the autosave slowdown is bearable, or any strange
behaviour that might occur.

If the fix proves to do what it ought to (i.e., prevent the pseudo-crashes
on autosave), we will release a patched 1.6.4.2 specifically for Snow
Leopard soon.

The binary is not such a patched 1.6.4, but rather a snapshot of the current
1.6.5svn trunk. It should be stable, but be advised it's not officially
declared stable.

Jürgen



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Uwe Stöhr

Rob schrieb:


This is now ragged right in my layout, as I desire, but I lost the paragraph
indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know what I am
doing.


That's the problem ;-)

Have a look at the Customization manual that you fiond in LyX's Help menu. You find there that you 
have to use


LeftMargin

to specify the margin.

ParIndent

only affects the first line of the paragraph and it is furthermore a sting, not 
a length. So

ParIndent MMM

would do the job.

regards Uwe


Re: http:// renderings in lyx

2009-11-04 Thread Uwe Stöhr

Frederick Noronha [फ़रेदरिक नोरोनया] فريدريك نورونيا schrieb:


Guys, could you tell me if I'm doing something wrong, the
http://whatever.com doesn't render when in lyx. In particuarly the //
looks too far from the text. Should I use some other way of doing
this?


Menu Insert- Hyperlink (or the corresponding toolbar button)

regards Uwe


Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 10:57 AM, Rob wrote:

Hi,

I changed the alignment of the standard environment in my layout file. I did it
by simply adding these lines to my .layout file:

Style Standard
Align Left
End

This is now ragged right in my layout, as I desire, but I lost the paragraph
indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know what I am
doing.  What should I do to keep my ragged right appearance and the conventional
paragraph indents in my layout?

   
First, ParIndent takes a string, like M, as argument. The indent 
will then be as big as the string.


Second, I would suggest putting this kind of thing into a simple module, 
like the attached. Then you can use it with whatever class you want, or not.


Finally, though, yes, I see the problem. This is presumably a bug. Can 
you enter it into the bugtracker?


rh

#\DeclareLyXModule{Test}
#DescriptionBegin
#Test Module
#DescriptionEnd

Format 11

Style Standard
Align Left
ParIndent M
End



Re: URL wraping - someone got it working?

2009-11-04 Thread Uwe Stöhr

Sven Hoexter schrieb:


did someone succeed in getting wraped and formated URLs in any document?
Background is that I tried to reproduce Debian bug #531992 [1].

The Break links over lines checkbox in the document settings is activated
and the 'breaklinks' setting is set in the tex export.


With this settings it works for me, but you need to use Insert-Hyperlink instead 
of Insert-URL.
I'm on Windows using MiKTeX 2.7 with the latest hyperref.

regards Uwe


Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 11:18 AM, Uwe Stöhr wrote:

Rob schrieb:

This is now ragged right in my layout, as I desire, but I lost the 
paragraph

indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know 
what I am

doing.


That's the problem ;-)

As I say in the other message, though, this is definitely a bug. Simply 
setting Align to Left should not kill the indentation, which is set at 
document level, right?


rh



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Rob
Thanks Uwe,

But when I specify

Style Standard
Align  Left
ParIndent  MMM
End

the problems persists.  In fact, no matter the string entry for ParIndent, the
problem persists.  I've looked closely at the customization manual, but cannot
find my solution there.  

thanks.



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 11:36 AM, Rob wrote:

Thanks Uwe,

But when I specify

Style Standard
Align  Left
ParIndent  MMM
End

the problems persists.  In fact, no matter the string entry for ParIndent, the
problem persists.  I've looked closely at the customization manual, but cannot
find my solution there.

   
This seems to be ignored if the alignment isn't Block. There's 
definitely a bug here somewhere.


rh



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Rob
 
 #\DeclareLyXModule{Test}
 #DescriptionBegin
 #Test Module
 #DescriptionEnd
 
 Format 11
 
 Style Standard
   Align Left
   ParIndent M
 End
 
 


Hi RG,  

Thanks for your help with this.  I copied your text 
to make a module and am able to change the margins, 
alignment etc., but still not the paragraph indent.  
Were you able to change the paragraph indent with 
this module as it's written?  Thanks.

Rob



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 12:07 PM, Rob wrote:

#\DeclareLyXModule{Test}
#DescriptionBegin
#Test Module
#DescriptionEnd

Format 11

Style Standard
Align Left
ParIndent M
End


 


Hi RG,

Thanks for your help with this.  I copied your text
to make a module and am able to change the margins,
alignment etc., but still not the paragraph indent.
Were you able to change the paragraph indent with
this module as it's written?  Thanks.

   
No. I only meant it as an example. The parindent problem is elsewhere, 
and there isn't any way to solve it, other than by fixing the bug that 
is causing it.


rh



using of aspell libraries on windows

2009-11-04 Thread Sergey
Hi

i just noticed lyx team maintains up-to-date aspell windows port.
I tried to use with Psi. so i got aspell-mingw tarball
(ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-mingw.zip), compiled Psi
with it, put 2 dlls from tarball (aspell-15.dll and libintl-3.dll) into
directory with Psi.exe, installed russian dictionary from here
(http://wiki.lyx.org/Windows/Aspell6). Started Psi.
As result spellchecking checkbox is not active in Psi.

I guess Psi/aspell for some reason can't find dictionaries. but probably new
aspell (not 0.50) requires some more initialization or smth.

I'd very glad if you guys give me some hints what may be wrong with aspell.



layout files document frontmatter

2009-11-04 Thread 2450help
I am defining a layout where I need to have a few LaTeX definitions  
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I am  
using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString Publication Number
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
End

This does correctly define the LaTeX command I need, but it is placed  
in the document body, not in the frontmatter (before \begin{document})  
where I need it placed.


Any ideas on what I am doing wrong?

James



Re: layout files document frontmatter

2009-11-04 Thread James C. Sutherland


On Nov 4, 2009, at 11:40 AM, 2450h...@gmail.com 2450h...@gmail.com  
wrote:


I am defining a layout where I need to have a few LaTeX definitions  
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I  
am using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString Publication Number
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
End

This does correctly define the LaTeX command I need, but it is  
placed in the document body, not in the frontmatter (before \begin 
{document}) where I need it placed.



To be more clear, I meant preamble and not frontmatter

It doesn't look like there is a way to push information into the  
preamble from within the LyX document, unless you do it in Document- 
Settings, right?


Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Guenter Milde
On 2009-11-04, rgheck wrote:

 I changed the alignment of the standard environment in my layout file.
...
 What should I do to keep my ragged right appearance
 and the conventional paragraph indents in my layout?

 Second, I would suggest putting this kind of thing into a simple module, 

See the leftalign module below.

 Finally, though, yes, I see the problem. This is presumably a bug. Can 
 you enter it into the bugtracker?

It is a bug. I am not sure, whether I submitted it to the bugtracker
already (i.e. 1,5 years ago), though.

Günter




#\DeclareLyXModule{leftalign}
#DescriptionBegin
#Left align text (instead of block align; on screen).
#DescriptionEnd

#Author: Günter Milde mi...@users.sf.net

# Left align instead of block align (on screen)
# -

# As LyX's linebreaking algorithm does not include hyphenation of longer
# words, some very large inter-word spaces frequently occure (especially in
# languages with many long words as, e.g., German).

# Readability can be improved by setting the paragraph alignment 
# in the LyX window to left.
# This does not influence the appearance of the printout.

# Drawbacks: 
#
# * the EditParagraph Settings dialog will display default (left)
#   even if the default alignment of the class is block.
#
# * Paragraph indentation is supressed (therefore currently commented out).


# Style Standard
#   Align Left
# End

#stdlists
Style Itemize
Align Left
End

Style Description
Align Left
End

Style Enumeration
Align Left
End

Style List
Align Left
End

Style Quotation
Align Left
End

Style Quote
Align Left
End

# stdsections
Style Part
Align Left
End

Style Chapter
Align Left
End


Style Section
Align Left
End

Style Subsection
Align Left
End

Style Subsubsection
Align Left
End




Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-04 Thread Dennis Hohmann
Thank you for the binary!

I did a small test and had no autosave pseudo-crashes. Sometimes I imagine that
my overall system runs slower.



Re: Professional and Scientific Writing Book

2009-11-04 Thread Christian Ridderström
I would suggest putting in some discussion on how to choose Document 
Class --


This is a very good idea IMHO. I've used LyX since a long time ago, and 
choosing a suitable class isn't the easiest.


In addition, I'd really like some instructions/examples on how to create 
business like documents. When I've tried, I've found it difficult and 
annoying to try to get the appearance the way the company wants it. (With 
logos, lines and legaleese..). So tips and instructions on that would 
certainly be useful.


Best regads,
Christian





Re: Professional and Scientific Writing Book

2009-11-04 Thread Graham M Smith


In addition, I'd really like some instructions/examples on how to 
create business like documents. When I've tried, I've found it 
difficult and annoying to try to get the appearance the way the company 
wants it. (With logos, lines and legaleese..). So tips and instructions 
on that would certainly be useful


I would also support this.

Graham



Re: layout files document frontmatter

2009-11-04 Thread Paul A. Rubin

James C. Sutherland wrote:


On Nov 4, 2009, at 11:40 AM, 
2450h...@gmail.com 
2450h...@gmail.com wrote:


I am defining a layout where I need to have a few LaTeX definitions 
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I am 
using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
LyxTypecustom
LatexTypecommand
LatexNameICSEnum
CategoryFrontMatter
LabelStringPublication Number
Alignleft
Font
  ShapeSlanted
  Colorgreen
EndFont
LabelFont
  Colorgreen
  SizeSmall
EndFont
End

This does correctly define the LaTeX command I need, but it is placed 
in the document body, not in the frontmatter (before \begin{document}) 
where I need it placed.



To be more clear, I meant preamble and not frontmatter

It doesn't look like there is a way to push information into the 
preamble from within the LyX document, unless you do it in 
Document-Settings, right?




Customization Manual section 5.3.6: you can include

Preamble
  stuff that goes into the preamble
EndPreamble

to do what you want.

/Paul



Re: Professional and Scientific Writing Book

2009-11-04 Thread Rich Shepard

On Wed, 4 Nov 2009, Graham M Smith wrote:


In addition, I'd really like some instructions/examples on how to create
business like documents. When I've tried, I've found it difficult and
annoying to try to get the appearance the way the company wants it. (With
logos, lines and legaleese..). So tips and instructions on that would
certainly be useful



I would also support this.


  Don't know if I can help, but I use LyX for most business reports,
proposals, and permit applications. The document classes are those from the
KOMA-script collection because of their flexibility and ease of
customization and how readily they accept logos above titles and in other
positions. My proposals -- most of them, anyway -- use the letter2 class
with the company logo as the letterhead on the first page and the
addressee's name, date, and page number on continuation pages.

  Much nicer than when I'm forced to use OO.o Writer for this stuff.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: layout files document frontmatter

2009-11-04 Thread James C. Sutherland


On Nov 4, 2009, at 3:35 PM, Paul A. Rubin wrote:


James C. Sutherland wrote:
On Nov 4, 2009, at 11:40 AM, 2450h...@gmail.com  
2450h...@gmail.com wrote:
I am defining a layout where I need to have a few LaTeX  
definitions made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I  
am using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
   LyxTypecustom
   LatexTypecommand
   LatexNameICSEnum
   CategoryFrontMatter
   LabelStringPublication Number
   Alignleft
   Font
 ShapeSlanted
 Colorgreen
   EndFont
   LabelFont
 Colorgreen
 SizeSmall
   EndFont
End

This does correctly define the LaTeX command I need, but it is  
placed in the document body, not in the frontmatter (before \begin 
{document}) where I need it placed.



To be more clear, I meant preamble and not frontmatter
It doesn't look like there is a way to push information into the  
preamble from within the LyX document, unless you do it in Document- 
Settings, right?


Customization Manual section 5.3.6: you can include

Preamble
 stuff that goes into the preamble
EndPreamble

to do what you want.

/Paul



I tried this:

InsetLayout ReportNumber
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString Publication Number
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
Preamble
  \ICSEnum{ICSEnum}
EndPreamble
End

This results in the \ICSEnum{...} being put in the preamble AND the  
body of the document.  How can I make it go ONLY in the preamble?




Re: using of aspell libraries on windows

2009-11-04 Thread Joost Verburg

Sergey wrote:

(ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-mingw.zip), compiled Psi


This is an old file which is no longer maintained, we currently use the 
msvc version.


Joost



Re: Professional and Scientific Writing Book

2009-11-04 Thread Ralf
Rob Oakes rob.oa...@... writes:

 I'm currently working on a book which shows how professional and
 scientific writing can be done using purely open source tools.  

 [snip]
 
 But are there other things that you would like to see?  


Since nobody has mentioned it ...

scientific works mostly include a lot of figures - I am finished now with my
thesis but I struggled immensely with the amount of large figures I had which
messed up most of the layout - I practivally needed to fix every position  of
the figures (lots of ERTs). The requirement that the figures should be as close
as possible to the first reference  did not help as you can imagine. At times I
was so frustrated I glanced at Word which makes this indeed easier. In fact I
think I will use Word for future work - the amount of time is just not worth the
superior look of Latex (however only text/math and a small number of figures is
a totally  different story). Moreover, scientific journal publishers mostly only
except Word files ...

So, how about a section giving tips on how to (strategically  technically)
proceed with large figures (typically exceeding the page borders but still A4)
with the requirement that they should appear close the first reference ...

Cheers
-Ralf



Re: layout files document frontmatter

2009-11-04 Thread rgheck

On 11/04/2009 07:11 PM, James C. Sutherland wrote:


This results in the \ICSEnum{...} being put in the preamble AND the 
body of the document.  How can I make it go ONLY in the preamble?



Try:
InTitle 1
This indicates that this is like \title{} and \author{} and should go 
before the body.


rh



Re: compiling LyX for maemo (arm architecture)

2009-11-04 Thread Stacia Hartleben
Sorry about the late reply.

I was using the included library. When I try the
--without-included-boost flag, it says it can't find it, even though
it's installed. Do I need to put something in my path so it sees the
native version?

On Fri, Oct 23, 2009 at 12:42 AM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Stacia Hartleben baka...@gmail.com writes:

 I don't know the first thing about compiling on OS 2008 (Maemo) for
 Nokia internet tablets. The architecture is armel - do I need to put
 any special flags in while compiling? I have a dev environment set up
 and I think I have all the dependencies (QT libs, etc)

 I have an error as described here:
 http://talk.maemo.org/showthread.php?t=3087

 The error is
 multiple definition of `boost::exception_detail::clone_base* 
 boost::exception_detail::make_cloneboost::exception_detail::error_info_injectorstd::overflow_error
  (boost::exception_detail::error_info_injectorstd::overflow_error 
 const)::bad_alloc'

 For some reason, this exception-related boost method is defined in
 several objects. I never saw this error, actually.

 Is this with included boost library, or a system one?

 JMarc



Re: Question About Custom Layouts and Styles

2009-11-04 Thread Guenter Milde
On 2009-11-03, Rob Oakes wrote:

 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.

...

 If interested, you can find it at:

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

Could you also post the gist of the article and a link to the wiki
(http://wiki.lyx.org)? This way it might get the desired attention more
easily and permanently.

Günter



Re: Professional and Scientific Writing Book

2009-11-04 Thread Liviu Andronic
Hello

On 11/3/09, Rob Oakes rob.oa...@oak-tree.us wrote:
  I'm currently working on a book which shows how professional and
  scientific writing can be done using purely open source tools.  Any book

[..]
  But are there other things that you would like to see?  The standard LyX

For a professional look, the choice of fonts is perhaps a good point
of discussion. In my experience, the default fonts in LyX can yield
unpredictable results, with strange-looking (both on screen and on
paper), unnamed fonts possibly chosen. At the same time, many of us
are non-experts and can make pretty lousy font choices. Some pointers
on the pros and cons of different fonts/font combinations would be
great. (There is a recent thread [1] on the subject.)

Regards
Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg77281.html


Re: Professional and Scientific Writing Book

2009-11-04 Thread Manveru
2009/11/3 Rob Oakes rob.oa...@oak-tree.us:
 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.

Write couple words about microtype and effects achievable by this
package. It is unfortunately not supported under XeTeX (and will not
be) while it makes PDFs really nicer.

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


Re: Professional and Scientific Writing Book

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 8:18 PM, Graham M Smith graham.sm...@myotis.co.ukwrote:

 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).


I absolute second that. I created a slides for an R course in LyX, using
exactly this combination. But I think, there are some points to be ironed
out, e.g. that the converters for R need to be entered manually in LyX and
that many frames I had to enter in ERT boxes, as I did not manage it with
normal LyX frames.

In essence, brilliant combination, but sometimes quite cryptic problems,
which require ERT boxes in LyX - but I love this combination

Rainer


 Graham








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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 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.


A user defined copier definitely works, but I think that in the Document --
Settings dialog, there should be an additional section named Files to
copy, in which one can select files which should be also copied into the
tmpbuf folder. This would make the whole process much easier to handle.

Rainer



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




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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


URL wraping - someone got it working?

2009-11-04 Thread Sven Hoexter
Hi,
did someone succeed in getting wraped and formated URLs in any document?
Background is that I tried to reproduce Debian bug #531992 [1].

The Break links over lines checkbox in the document settings is activated
and the 'breaklinks' setting is set in the tex export.
So I suspect some problems with my toolchain. It would be nice to know if
someone ever got it working and if yes which toolchain he used e.g. the
texlive version and which pdf creation mechanism.
I'm still on texlive 2007 and tried dvipdfm, pdflatex and ps2pdf.
Tried the usual article class and the koma classes so far, none worked.

What did work was using an ERT and the breakurl package as described in
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breaklinks.

Regards,
Sven

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531992
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Re: LyX 1.6.4.1 and Snow Leopard

2009-11-04 Thread Jürgen Spitzmüller
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.

OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report back. 
Also please report whether the autosave slowdown is bearable, or any strange 
behaviour that might occur.

If the fix proves to do what it ought to (i.e., prevent the pseudo-crashes 
on autosave), we will release a patched 1.6.4.2 specifically for Snow 
Leopard soon.

The binary is not such a patched 1.6.4, but rather a snapshot of the current 
1.6.5svn trunk. It should be stable, but be advised it's not officially 
declared stable.

Jürgen



Re: howto copy external material to lyx working directory

2009-11-04 Thread Manveru
2009/11/4 Rainer M Krug r.m.k...@gmail.com:


 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 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.

 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

 Rainer

I would even see a possibility to define list of files to copy and
additionally use and placeholder everywhere you want use such file - I
mean mainly user defined preamble and ERTs.

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


Re: howto copy external material to lyx working directory

2009-11-04 Thread Egon Alter
 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
  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 I tell lyx to copy these files to the tmpbuf folder before 
   compiling?
 
  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.
 
 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

ok - step by step.

First, I define a new filetype e.g. ICC-profile with .icc extension.

Than I define a converter from icc to ??? (I used png, and included the file as 
a 
graph which I commented out manualy - ugly). 

As a copier, I tried ext_copy -e icc $p $r (don't remember the exact variables 
anymore, not well documented), but lyx allways wants to rename the copied files 
to 
number-filename style, so this didn't work. 

There should be some better way!

Egon


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 1:29 PM, Egon Alter egon.al...@gmx.net wrote:

  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
   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 I tell lyx to copy these files to the tmpbuf folder before
 compiling?
  
   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.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.

 ok - step by step.

 First, I define a new filetype e.g. ICC-profile with .icc extension.

 Than I define a converter from icc to ??? (I used png, and included the
 file as a
 graph which I commented out manualy - ugly).

 As a copier, I tried ext_copy -e icc $p $r (don't remember the exact
 variables
 anymore, not well documented), but lyx allways wants to rename the copied
 files to
 number-filename style, so this didn't work.

 There was a discusion on this list recently, which included that aspect:
using a user defined copier to copy files into the tmpbuf directory - I
think it was the one co-operation with co-authors, i.e. sharing and
commenting LyX Documents - but I don't remember exactly. Soeey.

I THINK it involved writing a shell script, which copies the files, and is
doing what another copier is doing. This copier is then re[lace in LyX with
the shell script - but I am not sure.


Rainer


 There should be some better way!

 Egon




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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 12:42 PM, Manveru manv...@manveru.pl wrote:

 2009/11/4 Rainer M Krug r.m.k...@gmail.com:
 
 
  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
 
  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.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.
 
  Rainer

 I would even see a possibility to define list of files to copy and
 additionally use and placeholder everywhere you want use such file


Yes - a list which can also include wildcards - that would be optimal.


 - I mean mainly user defined preamble and ERTs.


sorry - you lost me here.

I am using an external preamble (preamble.tex) which is in the same
directory as the LyX file, and which is included in the lyx file with

\input{preamble.tex}


in the LyX preamble. This is NOT copied automatically, but works, as in the
resulting LaTeX document,


\def\in...@path{{/PATH/TO/DIRECTORY/WITH/test.lyx}}


That gives me an idea: is it possible to define a search path for LaTeX?
Then this one could be set to the LyX directory, and most things should
work.


But still: having the option of files to be copied would be also useful for
Sweave, which use data files to be analysed.


Rainer



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




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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Professional and Scientific Writing Book

2009-11-04 Thread Piero Faustini

 
 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.

Yep. More in general, and I would never stop repeating it, LyX is likely to 
become the choice for thousands of non-geek academics and writers, expecially 
in 
humanistic fields. Thus, all of these topics need to be discussed and explained 
well:

1. Collaborating techniques and strategies (along with the to/from MSWord/Ooo 
conversion)
2. the other half of the skye (read: humanistic fields)
3. BibLaTeX package (useful for all but expecially for humanists)

But if what you want to write is not a online guide, but a book, it doesn't 
have 
to fiddle with tips and tricks to override problem x or problem y. You should 
concentrate in general strategies and choices, and just point to the tricks we 
can find in the mailing lists or googling.
On point 1) I would treat problems with collaborating with Word-like 
environments 
(say 99% of humanistic fields) (there have been recently a thread on this), on 
2) 
the best choices for non-scientific writing, on 3) just explain how good can 
this 
package work for almost all needs.
_
Fatti riconoscere con i biglietti da visita di Messenger
http://www.messenger.it/bigliettiVisita.aspx

Re: Problems including a document

2009-11-04 Thread Helge Hafting

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?


I have had problems with inclusions sometimes. First, the obvious:
* Both documents are the same document class with the same
  document class options?
* No preamble differences?
* Both documents are the same language?

A less obvious problem is when the document inclusion happens in a place 
where you cannot have more than one paragraph, or at least not a 
complete included document. Bad places to have a input/include are:

* nested inside something else, such as a box or table
* in a heading
* in an enumeration/bullet list
* in the middle of some text, especially if that section of text
  is in a foreign language or highlighted in some way.

Input/include should be in a paragraph of its own, on the outermost 
level and with no markup.



Some things to try:
Put the cursor next to the include/input thing. (Try both sides.)
Check that the paragraph is of type standard, and that there is no
foreign language or other markup in effect.

If you don't find anything, try pressing enter on both sides of the
input inset. This shouldn't really change the document, as the inset 
should be in a paragraph of its own already. This ensures that it is.


If all else fails, try exporting the master document to latex. Then
examine the result, especially around the inclusion. Maybe you find the 
problem, or maybe you find a LyX bug of some kind.


Helge Hafting




command syntax

2009-11-04 Thread rafalo

Hello
I am trying to define shortcuts in lyx, and the only command i know is
math-insert  What are the other possibilities? How can i for example
combine two commands, like math-insert \{\] and then go backward one
character, ?
Thank you very much
-- 
View this message in context: 
http://n2.nabble.com/command-syntax-tp3945423p3945423.html
Sent from the LyX - Users mailing list archive at Nabble.com.


RE: command syntax

2009-11-04 Thread Vincent van Ravesteijn - TNW
I am trying to define shortcuts in lyx, and the only
command i know is math-insert  What are the other
possibilities? How can i for example combine two commands,
like math-insert \{\] and then go backward one character,
?
Thank you very much

Have a look at the Help-LyX Functions document dat you can find in
the Help menu. 

If you want to combine commands, search for command-sequence. For
example you can do: 

command-sequence cut; ert-insert; self-insert ; paste; self-insert {};
inset-toggle;

Vincent


http:// renderings in lyx

2009-11-04 Thread Frederick Noronha [फ़रेदरिक नोरो नया] فريدريك نورونيا
Guys, could you tell me if I'm doing something wrong, the
http://whatever.com doesn't render when in lyx. In particuarly the //
looks too far from the text. Should I use some other way of doing
this? Thanks! FN
-- 
FN +91-9822122436 P +91-832-2409490
Updated: http://goabooks.wordpress.com


Re: http:// renderings in lyx

2009-11-04 Thread Mike Meredith
On Wed, 4 Nov 2009 20:43:19 +0530, Frederick Noronha [फ़रेदरिक नोरोनया]
فريدريك نورونيا wrote:
 Guys, could you tell me if I'm doing something wrong, the
 http://whatever.com doesn't render when in lyx. In particuarly the //
 looks too far from the text. Should I use some other way of doing
 this? Thanks! FN

Menu Insert and then URL.


Paragraph Indent Alignment in .layout file

2009-11-04 Thread Rob
Hi,

I changed the alignment of the standard environment in my layout file. I did it
by simply adding these lines to my .layout file:

Style Standard
Align Left
End

This is now ragged right in my layout, as I desire, but I lost the paragraph
indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know what I am
doing.  What should I do to keep my ragged right appearance and the conventional
paragraph indents in my layout?

Thanks.

Rob



Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-04 Thread rgheck


Just reposting this with a more informative title. The binary is here:

 Original Message 
Subject:Re: LyX 1.6.4.1 and Snow Leopard
Date:   Wed, 04 Nov 2009 11:29:05 +0100
From:   Jürgen Spitzmüller sp...@lyx.org
To: lyx-users@lists.lyx.org
Followup-To:gmane.editors.lyx.general



OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report back.
Also please report whether the autosave slowdown is bearable, or any strange
behaviour that might occur.

If the fix proves to do what it ought to (i.e., prevent the pseudo-crashes
on autosave), we will release a patched 1.6.4.2 specifically for Snow
Leopard soon.

The binary is not such a patched 1.6.4, but rather a snapshot of the current
1.6.5svn trunk. It should be stable, but be advised it's not officially
declared stable.

Jürgen



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Uwe Stöhr

Rob schrieb:


This is now ragged right in my layout, as I desire, but I lost the paragraph
indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know what I am
doing.


That's the problem ;-)

Have a look at the Customization manual that you fiond in LyX's Help menu. You find there that you 
have to use


LeftMargin

to specify the margin.

ParIndent

only affects the first line of the paragraph and it is furthermore a sting, not 
a length. So

ParIndent MMM

would do the job.

regards Uwe


Re: http:// renderings in lyx

2009-11-04 Thread Uwe Stöhr

Frederick Noronha [फ़रेदरिक नोरोनया] فريدريك نورونيا schrieb:


Guys, could you tell me if I'm doing something wrong, the
http://whatever.com doesn't render when in lyx. In particuarly the //
looks too far from the text. Should I use some other way of doing
this?


Menu Insert- Hyperlink (or the corresponding toolbar button)

regards Uwe


Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 10:57 AM, Rob wrote:

Hi,

I changed the alignment of the standard environment in my layout file. I did it
by simply adding these lines to my .layout file:

Style Standard
Align Left
End

This is now ragged right in my layout, as I desire, but I lost the paragraph
indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know what I am
doing.  What should I do to keep my ragged right appearance and the conventional
paragraph indents in my layout?

   
First, ParIndent takes a string, like M, as argument. The indent 
will then be as big as the string.


Second, I would suggest putting this kind of thing into a simple module, 
like the attached. Then you can use it with whatever class you want, or not.


Finally, though, yes, I see the problem. This is presumably a bug. Can 
you enter it into the bugtracker?


rh

#\DeclareLyXModule{Test}
#DescriptionBegin
#Test Module
#DescriptionEnd

Format 11

Style Standard
Align Left
ParIndent M
End



Re: URL wraping - someone got it working?

2009-11-04 Thread Uwe Stöhr

Sven Hoexter schrieb:


did someone succeed in getting wraped and formated URLs in any document?
Background is that I tried to reproduce Debian bug #531992 [1].

The Break links over lines checkbox in the document settings is activated
and the 'breaklinks' setting is set in the tex export.


With this settings it works for me, but you need to use Insert-Hyperlink instead 
of Insert-URL.
I'm on Windows using MiKTeX 2.7 with the latest hyperref.

regards Uwe


Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 11:18 AM, Uwe Stöhr wrote:

Rob schrieb:

This is now ragged right in my layout, as I desire, but I lost the 
paragraph

indents in the process.  When I changed the above to this:

Style Standard
ParIndent 30pt
Align Left
End

I still didn't get the paragraph indents.  I definitely do not know 
what I am

doing.


That's the problem ;-)

As I say in the other message, though, this is definitely a bug. Simply 
setting Align to Left should not kill the indentation, which is set at 
document level, right?


rh



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Rob
Thanks Uwe,

But when I specify

Style Standard
Align  Left
ParIndent  MMM
End

the problems persists.  In fact, no matter the string entry for ParIndent, the
problem persists.  I've looked closely at the customization manual, but cannot
find my solution there.  

thanks.



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 11:36 AM, Rob wrote:

Thanks Uwe,

But when I specify

Style Standard
Align  Left
ParIndent  MMM
End

the problems persists.  In fact, no matter the string entry for ParIndent, the
problem persists.  I've looked closely at the customization manual, but cannot
find my solution there.

   
This seems to be ignored if the alignment isn't Block. There's 
definitely a bug here somewhere.


rh



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Rob
 
 #\DeclareLyXModule{Test}
 #DescriptionBegin
 #Test Module
 #DescriptionEnd
 
 Format 11
 
 Style Standard
   Align Left
   ParIndent M
 End
 
 


Hi RG,  

Thanks for your help with this.  I copied your text 
to make a module and am able to change the margins, 
alignment etc., but still not the paragraph indent.  
Were you able to change the paragraph indent with 
this module as it's written?  Thanks.

Rob



Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread rgheck

On 11/04/2009 12:07 PM, Rob wrote:

#\DeclareLyXModule{Test}
#DescriptionBegin
#Test Module
#DescriptionEnd

Format 11

Style Standard
Align Left
ParIndent M
End


 


Hi RG,

Thanks for your help with this.  I copied your text
to make a module and am able to change the margins,
alignment etc., but still not the paragraph indent.
Were you able to change the paragraph indent with
this module as it's written?  Thanks.

   
No. I only meant it as an example. The parindent problem is elsewhere, 
and there isn't any way to solve it, other than by fixing the bug that 
is causing it.


rh



using of aspell libraries on windows

2009-11-04 Thread Sergey
Hi

i just noticed lyx team maintains up-to-date aspell windows port.
I tried to use with Psi. so i got aspell-mingw tarball
(ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-mingw.zip), compiled Psi
with it, put 2 dlls from tarball (aspell-15.dll and libintl-3.dll) into
directory with Psi.exe, installed russian dictionary from here
(http://wiki.lyx.org/Windows/Aspell6). Started Psi.
As result spellchecking checkbox is not active in Psi.

I guess Psi/aspell for some reason can't find dictionaries. but probably new
aspell (not 0.50) requires some more initialization or smth.

I'd very glad if you guys give me some hints what may be wrong with aspell.



layout files document frontmatter

2009-11-04 Thread 2450help
I am defining a layout where I need to have a few LaTeX definitions  
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I am  
using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString Publication Number
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
End

This does correctly define the LaTeX command I need, but it is placed  
in the document body, not in the frontmatter (before \begin{document})  
where I need it placed.


Any ideas on what I am doing wrong?

James



Re: layout files document frontmatter

2009-11-04 Thread James C. Sutherland


On Nov 4, 2009, at 11:40 AM, 2450h...@gmail.com 2450h...@gmail.com  
wrote:


I am defining a layout where I need to have a few LaTeX definitions  
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I  
am using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString Publication Number
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
End

This does correctly define the LaTeX command I need, but it is  
placed in the document body, not in the frontmatter (before \begin 
{document}) where I need it placed.



To be more clear, I meant preamble and not frontmatter

It doesn't look like there is a way to push information into the  
preamble from within the LyX document, unless you do it in Document- 
Settings, right?


Re: Paragraph Indent Alignment in .layout file

2009-11-04 Thread Guenter Milde
On 2009-11-04, rgheck wrote:

 I changed the alignment of the standard environment in my layout file.
...
 What should I do to keep my ragged right appearance
 and the conventional paragraph indents in my layout?

 Second, I would suggest putting this kind of thing into a simple module, 

See the leftalign module below.

 Finally, though, yes, I see the problem. This is presumably a bug. Can 
 you enter it into the bugtracker?

It is a bug. I am not sure, whether I submitted it to the bugtracker
already (i.e. 1,5 years ago), though.

Günter




#\DeclareLyXModule{leftalign}
#DescriptionBegin
#Left align text (instead of block align; on screen).
#DescriptionEnd

#Author: Günter Milde mi...@users.sf.net

# Left align instead of block align (on screen)
# -

# As LyX's linebreaking algorithm does not include hyphenation of longer
# words, some very large inter-word spaces frequently occure (especially in
# languages with many long words as, e.g., German).

# Readability can be improved by setting the paragraph alignment 
# in the LyX window to left.
# This does not influence the appearance of the printout.

# Drawbacks: 
#
# * the EditParagraph Settings dialog will display default (left)
#   even if the default alignment of the class is block.
#
# * Paragraph indentation is supressed (therefore currently commented out).


# Style Standard
#   Align Left
# End

#stdlists
Style Itemize
Align Left
End

Style Description
Align Left
End

Style Enumeration
Align Left
End

Style List
Align Left
End

Style Quotation
Align Left
End

Style Quote
Align Left
End

# stdsections
Style Part
Align Left
End

Style Chapter
Align Left
End


Style Section
Align Left
End

Style Subsection
Align Left
End

Style Subsubsection
Align Left
End




Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-04 Thread Dennis Hohmann
Thank you for the binary!

I did a small test and had no autosave pseudo-crashes. Sometimes I imagine that
my overall system runs slower.



Re: Professional and Scientific Writing Book

2009-11-04 Thread Christian Ridderström
I would suggest putting in some discussion on how to choose Document 
Class --


This is a very good idea IMHO. I've used LyX since a long time ago, and 
choosing a suitable class isn't the easiest.


In addition, I'd really like some instructions/examples on how to create 
business like documents. When I've tried, I've found it difficult and 
annoying to try to get the appearance the way the company wants it. (With 
logos, lines and legaleese..). So tips and instructions on that would 
certainly be useful.


Best regads,
Christian





Re: Professional and Scientific Writing Book

2009-11-04 Thread Graham M Smith


In addition, I'd really like some instructions/examples on how to 
create business like documents. When I've tried, I've found it 
difficult and annoying to try to get the appearance the way the company 
wants it. (With logos, lines and legaleese..). So tips and instructions 
on that would certainly be useful


I would also support this.

Graham



Re: layout files document frontmatter

2009-11-04 Thread Paul A. Rubin

James C. Sutherland wrote:


On Nov 4, 2009, at 11:40 AM, 
2450h...@gmail.com 
2450h...@gmail.com wrote:


I am defining a layout where I need to have a few LaTeX definitions 
made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I am 
using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
LyxTypecustom
LatexTypecommand
LatexNameICSEnum
CategoryFrontMatter
LabelStringPublication Number
Alignleft
Font
  ShapeSlanted
  Colorgreen
EndFont
LabelFont
  Colorgreen
  SizeSmall
EndFont
End

This does correctly define the LaTeX command I need, but it is placed 
in the document body, not in the frontmatter (before \begin{document}) 
where I need it placed.



To be more clear, I meant preamble and not frontmatter

It doesn't look like there is a way to push information into the 
preamble from within the LyX document, unless you do it in 
Document-Settings, right?




Customization Manual section 5.3.6: you can include

Preamble
  stuff that goes into the preamble
EndPreamble

to do what you want.

/Paul



Re: Professional and Scientific Writing Book

2009-11-04 Thread Rich Shepard

On Wed, 4 Nov 2009, Graham M Smith wrote:


In addition, I'd really like some instructions/examples on how to create
business like documents. When I've tried, I've found it difficult and
annoying to try to get the appearance the way the company wants it. (With
logos, lines and legaleese..). So tips and instructions on that would
certainly be useful



I would also support this.


  Don't know if I can help, but I use LyX for most business reports,
proposals, and permit applications. The document classes are those from the
KOMA-script collection because of their flexibility and ease of
customization and how readily they accept logos above titles and in other
positions. My proposals -- most of them, anyway -- use the letter2 class
with the company logo as the letterhead on the first page and the
addressee's name, date, and page number on continuation pages.

  Much nicer than when I'm forced to use OO.o Writer for this stuff.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: layout files document frontmatter

2009-11-04 Thread James C. Sutherland


On Nov 4, 2009, at 3:35 PM, Paul A. Rubin wrote:


James C. Sutherland wrote:
On Nov 4, 2009, at 11:40 AM, 2450h...@gmail.com  
2450h...@gmail.com wrote:
I am defining a layout where I need to have a few LaTeX  
definitions made.  In LaTeX, these would be:


\ICSEnum{12345}
This is not displayed - it is required for the class (.cls) file I  
am using.


In the LyX layout file, I tried the following:

InsetLayout ReportNumber
   LyxTypecustom
   LatexTypecommand
   LatexNameICSEnum
   CategoryFrontMatter
   LabelStringPublication Number
   Alignleft
   Font
 ShapeSlanted
 Colorgreen
   EndFont
   LabelFont
 Colorgreen
 SizeSmall
   EndFont
End

This does correctly define the LaTeX command I need, but it is  
placed in the document body, not in the frontmatter (before \begin 
{document}) where I need it placed.



To be more clear, I meant preamble and not frontmatter
It doesn't look like there is a way to push information into the  
preamble from within the LyX document, unless you do it in Document- 
Settings, right?


Customization Manual section 5.3.6: you can include

Preamble
 stuff that goes into the preamble
EndPreamble

to do what you want.

/Paul



I tried this:

InsetLayout ReportNumber
LyxType custom
LatexType   command
LatexName   ICSEnum
CategoryFrontMatter
LabelString Publication Number
Align   left
Font
  Shape Slanted
  Color green
EndFont
LabelFont
  Color green
  Size  Small
EndFont
Preamble
  \ICSEnum{ICSEnum}
EndPreamble
End

This results in the \ICSEnum{...} being put in the preamble AND the  
body of the document.  How can I make it go ONLY in the preamble?




Re: using of aspell libraries on windows

2009-11-04 Thread Joost Verburg

Sergey wrote:

(ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-mingw.zip), compiled Psi


This is an old file which is no longer maintained, we currently use the 
msvc version.


Joost



Re: Professional and Scientific Writing Book

2009-11-04 Thread Ralf
Rob Oakes rob.oa...@... writes:

 I'm currently working on a book which shows how professional and
 scientific writing can be done using purely open source tools.  

 [snip]
 
 But are there other things that you would like to see?  


Since nobody has mentioned it ...

scientific works mostly include a lot of figures - I am finished now with my
thesis but I struggled immensely with the amount of large figures I had which
messed up most of the layout - I practivally needed to fix every position  of
the figures (lots of ERTs). The requirement that the figures should be as close
as possible to the first reference  did not help as you can imagine. At times I
was so frustrated I glanced at Word which makes this indeed easier. In fact I
think I will use Word for future work - the amount of time is just not worth the
superior look of Latex (however only text/math and a small number of figures is
a totally  different story). Moreover, scientific journal publishers mostly only
except Word files ...

So, how about a section giving tips on how to (strategically  technically)
proceed with large figures (typically exceeding the page borders but still A4)
with the requirement that they should appear close the first reference ...

Cheers
-Ralf



Re: layout files document frontmatter

2009-11-04 Thread rgheck

On 11/04/2009 07:11 PM, James C. Sutherland wrote:


This results in the \ICSEnum{...} being put in the preamble AND the 
body of the document.  How can I make it go ONLY in the preamble?



Try:
InTitle 1
This indicates that this is like \title{} and \author{} and should go 
before the body.


rh



Re: compiling LyX for maemo (arm architecture)

2009-11-04 Thread Stacia Hartleben
Sorry about the late reply.

I was using the included library. When I try the
--without-included-boost flag, it says it can't find it, even though
it's installed. Do I need to put something in my path so it sees the
native version?

On Fri, Oct 23, 2009 at 12:42 AM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Stacia Hartleben baka...@gmail.com writes:

 I don't know the first thing about compiling on OS 2008 (Maemo) for
 Nokia internet tablets. The architecture is armel - do I need to put
 any special flags in while compiling? I have a dev environment set up
 and I think I have all the dependencies (QT libs, etc)

 I have an error as described here:
 http://talk.maemo.org/showthread.php?t=3087

 The error is
 multiple definition of `boost::exception_detail::clone_base* 
 boost::exception_detail::make_cloneboost::exception_detail::error_info_injectorstd::overflow_error
  (boost::exception_detail::error_info_injectorstd::overflow_error 
 const)::bad_alloc'

 For some reason, this exception-related boost method is defined in
 several objects. I never saw this error, actually.

 Is this with included boost library, or a system one?

 JMarc



Re: Question About Custom Layouts and Styles

2009-11-04 Thread Guenter Milde
On 2009-11-03, Rob Oakes wrote:

> 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.

...

> If interested, you can find it at:

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

Could you also post the gist of the article and a link to the wiki
(http://wiki.lyx.org)? This way it might get the desired attention more
easily and permanently.

Günter



Re: Professional and Scientific Writing Book

2009-11-04 Thread Liviu Andronic
Hello

On 11/3/09, Rob Oakes  wrote:
>  I'm currently working on a book which shows how professional and
>  scientific writing can be done using purely open source tools.  Any book
>
[..]
>  But are there other things that you would like to see?  The standard LyX
>
For a professional look, the choice of fonts is perhaps a good point
of discussion. In my experience, the "default" fonts in LyX can yield
unpredictable results, with strange-looking (both on screen and on
paper), unnamed fonts possibly chosen. At the same time, many of us
are non-experts and can make pretty lousy font choices. Some pointers
on the pros and cons of different fonts/font combinations would be
great. (There is a recent thread [1] on the subject.)

Regards
Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg77281.html


Re: Professional and Scientific Writing Book

2009-11-04 Thread Manveru
2009/11/3 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.

Write couple words about microtype and effects achievable by this
package. It is unfortunately not supported under XeTeX (and will not
be) while it makes PDFs really nicer.

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


Re: Professional and Scientific Writing Book

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 8:18 PM, Graham M Smith wrote:

> 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).
>

I absolute second that. I created a slides for an R course in LyX, using
exactly this combination. But I think, there are some points to be ironed
out, e.g. that the converters for R need to be entered manually in LyX and
that many frames I had to enter in ERT boxes, as I did not manage it with
normal LyX frames.

In essence, brilliant combination, but sometimes quite cryptic problems,
which require ERT boxes in LyX - but I love this combination

Rainer


> Graham
>
>
>
>
>
>


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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:

> 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.
>

A user defined copier definitely works, but I think that in the Document --
Settings dialog, there should be an additional section named "Files to
copy", in which one can select files which should be also copied into the
tmpbuf folder. This would make the whole process much easier to handle.

Rainer


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



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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


URL wraping - someone got it working?

2009-11-04 Thread Sven Hoexter
Hi,
did someone succeed in getting wraped and formated URLs in any document?
Background is that I tried to reproduce Debian bug #531992 [1].

The "Break links over lines" checkbox in the document settings is activated
and the 'breaklinks' setting is set in the tex export.
So I suspect some problems with my toolchain. It would be nice to know if
someone ever got it working and if yes which toolchain he used e.g. the
texlive version and which pdf creation mechanism.
I'm still on texlive 2007 and tried dvipdfm, pdflatex and ps2pdf.
Tried the usual article class and the koma classes so far, none worked.

What did work was using an ERT and the breakurl package as described in
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breaklinks.

Regards,
Sven

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531992
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Re: LyX 1.6.4.1 and Snow Leopard

2009-11-04 Thread Jürgen Spitzmüller
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.

OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report back. 
Also please report whether the autosave slowdown is bearable, or any strange 
behaviour that might occur.

If the fix proves to do what it ought to (i.e., prevent the pseudo-crashes 
on autosave), we will release a patched 1.6.4.2 specifically for Snow 
Leopard soon.

The binary is not such a patched 1.6.4, but rather a snapshot of the current 
1.6.5svn trunk. It should be stable, but be advised it's not "officially" 
declared stable.

Jürgen



Re: howto copy external material to lyx working directory

2009-11-04 Thread Manveru
2009/11/4 Rainer M Krug :
>
>
> On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
>>
>> 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.
>
> A user defined copier definitely works, but I think that in the Document --
> Settings dialog, there should be an additional section named "Files to
> copy", in which one can select files which should be also copied into the
> tmpbuf folder. This would make the whole process much easier to handle.
>
> Rainer

I would even see a possibility to define list of files to copy and
additionally use and placeholder everywhere you want use such file - I
mean mainly user defined preamble and ERTs.

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


Re: howto copy external material to lyx working directory

2009-11-04 Thread Egon Alter
> On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
> > 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 I tell lyx to copy these files to the tmpbuf folder before 
> > > compiling?
> >
> > 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.
> 
> A user defined copier definitely works, but I think that in the Document --
> Settings dialog, there should be an additional section named "Files to
> copy", in which one can select files which should be also copied into the
> tmpbuf folder. This would make the whole process much easier to handle.

ok - step by step.

First, I define a new filetype e.g. "ICC-profile" with .icc extension.

Than I define a converter from icc to ??? (I used png, and included the file as 
a 
graph which I commented out manualy - ugly). 

As a copier, I tried ext_copy -e icc $p $r (don't remember the exact variables 
anymore, not well documented), but lyx allways wants to rename the copied files 
to 
-filename style, so this didn't work. 

There should be some better way!

Egon


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 1:29 PM, Egon Alter  wrote:

> > On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
> > > 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 I tell lyx to copy these files to the tmpbuf folder before
> compiling?
> > >
> > > 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.
> >
> > A user defined copier definitely works, but I think that in the Document
> --
> > Settings dialog, there should be an additional section named "Files to
> > copy", in which one can select files which should be also copied into the
> > tmpbuf folder. This would make the whole process much easier to handle.
>
> ok - step by step.
>
> First, I define a new filetype e.g. "ICC-profile" with .icc extension.
>
> Than I define a converter from icc to ??? (I used png, and included the
> file as a
> graph which I commented out manualy - ugly).
>
> As a copier, I tried ext_copy -e icc $p $r (don't remember the exact
> variables
> anymore, not well documented), but lyx allways wants to rename the copied
> files to
> -filename style, so this didn't work.
>
> There was a discusion on this list recently, which included that aspect:
using a user defined copier to copy files into the tmpbuf directory - I
think it was the one co-operation with co-authors, i.e. sharing and
commenting LyX Documents - but I don't remember exactly. Soeey.

I THINK it involved writing a shell script, which copies the files, and is
doing what another copier is doing. This copier is then re[lace in LyX with
the shell script - but I am not sure.


Rainer


> There should be some better way!
>
> Egon
>



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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 12:42 PM, Manveru  wrote:

> 2009/11/4 Rainer M Krug :
> >
> >
> > On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
> >>
> >> 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.
> >
> > A user defined copier definitely works, but I think that in the Document
> --
> > Settings dialog, there should be an additional section named "Files to
> > copy", in which one can select files which should be also copied into the
> > tmpbuf folder. This would make the whole process much easier to handle.
> >
> > Rainer
>
> I would even see a possibility to define list of files to copy and
> additionally use and placeholder everywhere you want use such file


Yes - a list which can also include wildcards - that would be optimal.


> - I mean mainly user defined preamble and ERTs.
>

sorry - you lost me here.

I am using an external preamble (preamble.tex) which is in the same
directory as the LyX file, and which is included in the lyx file with

\input{preamble.tex}


in the LyX preamble. This is NOT copied automatically, but works, as in the
resulting LaTeX document,


\def\in...@path{{/PATH/TO/DIRECTORY/WITH/test.lyx}}


That gives me an idea: is it possible to define a search path for LaTeX?
Then this one could be set to the LyX directory, and most things should
work.


But still: having the option of files to be copied would be also useful for
Sweave, which use data files to be analysed.


Rainer



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



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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Professional and Scientific Writing Book

2009-11-04 Thread Piero Faustini

 
> 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.

Yep. More in general, and I would never stop repeating it, LyX is likely to 
become the choice for thousands of non-geek academics and writers, expecially 
in 
humanistic fields. Thus, all of these topics need to be discussed and explained 
well:

1. Collaborating techniques and strategies (along with the "to/from MSWord/Ooo 
conversion")
2. the other half of the skye (read: humanistic fields)
3. BibLaTeX package (useful for all but expecially for humanists)

But if what you want to write is not a online guide, but a book, it doesn't 
have 
to fiddle with tips and tricks to override problem x or problem y. You should 
concentrate in general strategies and choices, and just point to the tricks we 
can find in the mailing lists or googling.
On point 1) I would treat problems with collaborating with Word-like 
environments 
(say 99% of humanistic fields) (there have been recently a thread on this), on 
2) 
the best choices for non-scientific writing, on 3) just explain how good can 
this 
package work for almost all needs.
_
Fatti riconoscere con i biglietti da visita di Messenger
http://www.messenger.it/bigliettiVisita.aspx

Re: Problems including a document

2009-11-04 Thread Helge Hafting

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?


I have had problems with inclusions sometimes. First, the obvious:
* Both documents are the same document class with the same
  document class options?
* No preamble differences?
* Both documents are the same language?

A less obvious problem is when the document inclusion happens in a place 
where you cannot have more than one paragraph, or at least not a 
complete included document. Bad places to have a input/include are:

* nested inside something else, such as a box or table
* in a heading
* in an enumeration/bullet list
* in the middle of some text, especially if that section of text
  is in a foreign language or highlighted in some way.

Input/include should be in a paragraph of its own, on the outermost 
level and with no markup.



Some things to try:
Put the cursor next to the include/input thing. (Try both sides.)
Check that the paragraph is of type "standard", and that there is no
foreign language or other markup in effect.

If you don't find anything, try pressing enter on both sides of the
input inset. This shouldn't really change the document, as the inset 
should be in a paragraph of its own already. This ensures that it is.


If all else fails, try exporting the master document to latex. Then
examine the result, especially around the inclusion. Maybe you find the 
problem, or maybe you find a LyX bug of some kind.


Helge Hafting




command syntax

2009-11-04 Thread rafalo

Hello
I am trying to define shortcuts in lyx, and the only command i know is
"math-insert ...". What are the other possibilities? How can i for example
combine two commands, like "math-insert \{\]" and then go backward one
character, ?
Thank you very much
-- 
View this message in context: 
http://n2.nabble.com/command-syntax-tp3945423p3945423.html
Sent from the LyX - Users mailing list archive at Nabble.com.


RE: command syntax

2009-11-04 Thread Vincent van Ravesteijn - TNW
>I am trying to define shortcuts in lyx, and the only
>command i know is "math-insert ...". What are the other
>possibilities? How can i for example combine two commands,
>like "math-insert \{\]" and then go backward one character,
>?
>Thank you very much

Have a look at the "Help->LyX Functions" document dat you can find in
the Help menu. 

If you want to combine commands, search for "command-sequence". For
example you can do: 

"command-sequence cut; ert-insert; self-insert ; paste; self-insert {};
inset-toggle;"

Vincent


http:// renderings in lyx

2009-11-04 Thread Frederick Noronha [फ़रेदरिक नोरो नया] فريدريك نورونيا
Guys, could you tell me if I'm doing something wrong, the
http://whatever.com doesn't render when in lyx. In particuarly the //
looks too far from the text. Should I use some other way of doing
this? Thanks! FN
-- 
FN +91-9822122436 P +91-832-2409490
Updated: http://goabooks.wordpress.com


  1   2   >