Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Olivier Ripoll

Uwe Stöhr wrote:

Helly LyXers,

some of you have already tested one of the development snapshot of LyX 
1.5svn:
http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12083 



Could anybody who has LyX 1.5svn still on the system and use Acrobat 
8/Adobe reader 8 please test out the following:


1. Copy this file to LyX's \bin folder:
http://wiki.lyx.org/uploads/Windows/LyXWinInstaller/PDFViewWin.exe
and rename it to PDFViewWin8.exe

2. Start LyX

3. Open the User's Guide, go there to e.g. section 3 and add a charater


By the way, I noticed that when choosing the Introduction instead of the 
User's Guide, the images were not found.



4. Press the toolbar button for viewing PDF


PDFViewWin8.exe crashed at this point. Same if I launch it as a standalone.


Adobe reader 8 should then be opened showing your file

5. delete the just added character and press the view PDF button again

Adobe reader should not crash and show the beginning of the file. In 
Adobe reader you can now turn back to the last shown PDF document part 
using the feature to go to the last view (via the corresponding button 
or the menu).


Does this work as I described it?

thanks and regards
Uwe


Sorry for the bad news,

Best regards,

Olivier




Re: changing Xfig figures in LyX

2007-02-02 Thread Georg Baum
Philipp Fleig wrote:

 Hello,
 
 ok. Attached you find a sample .lyx + xfig file.
 When I go to preferences in LyX there are a number of converters,
 including some like FIG - EPS, FIG - PDFTEX and FIG - PSTEX, which
 I guess would be the relevant ones.

Yes, they are.

 I read on http://www.xfig.org/ 
 userman/latex_and_xfig.html something about the psfig package. Could
 it be this, which I am missing?

No. Your test file does not include the figure. It includes a file
named ../../../LyX. If I change that to read TestFig.fig, and if I save
TestFig.fig in the same directory as Test.lyx, then it works just fine
here.


Georg



Re: Culmus Hebrew fonts

2007-02-02 Thread Dov Feldstern

Hi!

You should also check out this package: http://nikud.berlios.de/ . It is 
mainly for using nikud, but as a side effect it also uses the culmus 
fonts. It's also really simple to use --- after the initial setup 
(explained on the site), all you need to do is use the culmus package 
instead of babel. I've used it a little bit here and there, but not very 
much --- I'd be happy to hear how this compares to the solution 
described below. Please keep us posted!


It seems to me that perhaps LyX should use this package (or something 
similar) by default, since the default ivritex fonts are not great --- 
especially when it comes to bold or italics... How would one go about 
doing something like that? (not that I have time to do that at the 
moment, but maybe someone else could...?)


Dov

Miki Dovrat wrote:

I actually got it working

I feel I am stating the obvious to the Hebrew users who already KNOW the 
answer and didn't have time to respond.


There is a package called hebfont.sty, written by Boris Lavva, which has 
created macros to use all the hebrew fonts (culmus, and the old default 
ones) as

\DeclareTextFontCommand{\text..}{\fontfamily{somefontname}\selectfont}

The package was apparently installed in Windows by the culmus.exe pointed to 
by the lyx wiki page on setting up Hebrew. I have seen that this package is 
a part of ivritex as well.


He lists there all of the following culmus fonts by their names: david, 
frank, aharoni, drugulin, yad, ellinia, miriam, nachlieli, as well as the 
old fonts which came with previous latex distributions.


These \selectfont commands get cancelled every time a language change is 
made from Hebrew to English or math, so they are good for a few words, a 
paragraph or so, but I found an explanation how to change the default font 
of the entire document and other font related commands here:

http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm

so

\renewcommand{\rmdefault}{ellinia} will change all Hebrew in the document to 
the culmus font Ellinia (for example).


It isn't exactly what I want since it also changes back the English font to 
its default cmr (It was lmodren), so I will actually have to look how to 
change only the left to right parts.


There is much more variety in the culmus fonts, and they look better.

Thanks for everyone who replied on and off the group.

Miki 









Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
So there is no other solution for this crash other then the one I 
shipped with LyX1.5svn as PDFViewWin8.exe :-(

[...]

But how big a problem is this, Uwe? When I'm working on a document and I 
want to see what it looks like I can do 'Update DVI' and when it's right 
I can press the PDF-button.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Ho to write my own paragraph layout or how to change LyX-Code

2007-02-02 Thread Roland Schmitz
Hi List,

i'm looking for an code layout (environment) for LyX, wich automaticly inserts 
line numbers and a table of contents for all listings.
If it's possible to configure this layout to look a bit like old endless 
paper (one line with white background, one with green) this would be exactly 
what i'm looking for, but that would be a goody.
If there is a tutorial how to write layouts, a RTFM with a link will be 
enough.
I knwo i can use the LaTeX listing package, but ERT's are not really 
comfortable.

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz


Re: different headers

2007-02-02 Thread Andreas K .
Bob Lounsbury [EMAIL PROTECTED] writes:

 
 Hello,
 
 Is there a way to have a different custom heading on the first and
 subsequent pages? What I need is a specific left header on the first page
 and then a different specific left header on all the subsequent pages.
 
 Thanks,
 Bob Lounsbury
 

Hi,

Try the fancyhdr package: http://www.tug.org/tex-
archive/help/Catalogue/entries/fancyhdr.html

Regards,
Andreas




[announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Hello LyXTesters,

I published a new version with LyX1.5.0svn from 01-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12153

Now this know problem should be fixed with the new MiKTeX version that comes together with this 
installer:


Known problem:
- LyX's package and class database is incomplete when you don't have an open 
internet
  connection while LyX is first started. (This is a bug in MiKTeX.)
  Workaround: open an internet connection and reconfigure LyX

This hopefully also kills the textclass not found problem. Due to lack of time I haven't tested it 
yet, so I cannot say if this is now really fixed. (I'll check this the next days.)


!You don't need to reinstall MiKTeX to benefit from the fix, just update MiKTeX using its update 
manager before you update LyX 1.5svn!


---

Here are the other changes:

- LyX 1.5svn from 01-02-2007:
  - you can now enter special characters directly to the document ( µ, €, 
etc.)
  - tooltips for menu buttons now appear
  - missing math characters are now displayed
  - nearly all known crashes are fixed
  - updated ExtendedInsets manual (now named Embedded Objects in the Help 
menu)

- fixed crash I introduced with the last release when invoking the thesaurus
- updated to JabRef 2.2

Thanks to Gisela Stöhr:
- updated Slovak translation of the installer

---

happy testing and best regards
Uwe

--- disclaimer ---
LyXsvn builds are for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX1.5svn is still in alpha state, that means it is under very
active development. Therefore things can change every day, so
don't use LyX1.5svn for production!



Re: Beamer class and pdf meta-information

2007-02-02 Thread Jean-Pierre Chretien

To: lyx-users@lists.lyx.org
From: Paul A. Rubin [EMAIL PROTECTED]
Subject: Re: Beamer class and pdf meta-information
Date: Thu, 01 Feb 2007 17:37:14 -0500

Jean-Pierre Chretien wrote:
 Hello,
[...]

I don't know enough LaTeX to know how to access the author and title 
information after \author and \title have been used, but I do know that 
you can put \hypersetup in ERT anywhere in the document -- so if there 
is a way to get the author/title information after the title page, you 
should be able to pass it to do what you want with one (belated) 
invocation of \hypersetup.

This is what I had in mind with the \AtEndDocument command.
I did not know if \hypersetup would work outside the preamble.

I will try again.

Thanks for the info

-- 
Jean-Pierre





Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Olivier Ripoll

Uwe Stöhr wrote:

Hello LyXTesters,

I published a new version with LyX1.5.0svn from 01-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12153 



Now this know problem should be fixed with the new MiKTeX version that 
comes together with this installer:


Known problem:
- LyX's package and class database is incomplete when you don't have an 
open internet

  connection while LyX is first started. (This is a bug in MiKTeX.)
  Workaround: open an internet connection and reconfigure LyX

This hopefully also kills the textclass not found problem. Due to lack 
of time I haven't tested it yet, so I cannot say if this is now really 
fixed. (I'll check this the next days.)


!You don't need to reinstall MiKTeX to benefit from the fix, just update 
MiKTeX using its update manager before you update LyX 1.5svn!



 [snip]

So here are my first results:

- the accentuated letters do work fine.

- The first ^ in a formula still crashes it with En-international keyboard.

- I can do a pdf with it fine, but the update does not work however 
my pdf viewer is Foxit 2.0, not Acrobat (which I do have installed, but 
not as default pdf reader), so it might be related to this.


- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


- The first time I press ctrl-m to type a formula, 4 identical lines are 
printed in the console saying:

QFontengineWin: GetTextMetrics failed ()
No bad effect though, just this message.

Best regards,

Olivier.



Re: Ho to write my own paragraph layout or how to change LyX-Code

2007-02-02 Thread Richard Heck

The documentation for this is at HelpCustomization5.2. If you look at
that and then look at how similar layouts are implemented in the extant
layout classes, you shouldn't have too much trouble. Seeing the line
numbers and the white-green in LyX itself might be a challenge, but
making it possible to use the environments and commands provided by
listings.sty without ERT should not be difficult.

Richard

Roland Schmitz wrote:
 Hi List,

 i'm looking for an code layout (environment) for LyX, wich automaticly 
 inserts 
 line numbers and a table of contents for all listings.
 If it's possible to configure this layout to look a bit like old endless 
 paper (one line with white background, one with green) this would be exactly 
 what i'm looking for, but that would be a goody.
 If there is a tutorial how to write layouts, a RTFM with a link will be 
 enough.
 I knwo i can use the LaTeX listing package, but ERT's are not really 
 comfortable.

   


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re[2]: Font problems of pdf-files generated on Mac

2007-02-02 Thread Alan G Isaac
On Fri, 2 Feb 2007, Anders Ekberg apparently wrote: 
 The question is how do I embed fonts using LyX/TeX? 

I'm not sure what the LyX way is, but I suppose you can 
glean clues from this:
http://eps.berkeley.edu/www/graduate/thesis/Efile_PDF.html

hth,
Alan Isaac






Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Olivier Ripoll 
[EMAIL PROTECTED] wrote.


[...]
- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.

[...]

I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:


C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: different headers

2007-02-02 Thread Bob Lounsbury

On 2/2/07, Andreas K. [EMAIL PROTECTED] wrote:


Bob Lounsbury [EMAIL PROTECTED] writes:


 Hello,

 Is there a way to have a different custom heading on the first and
 subsequent pages? What I need is a specific left header on the first
page
 and then a different specific left header on all the subsequent pages.

 Thanks,
 Bob Lounsbury


Hi,

Try the fancyhdr package: http://www.tug.org/tex-
archive/help/Catalogue/entries/fancyhdr.html

Regards,
Andreas




I've used the fancyhdr package many times, but didn't realize that you could
redefine the default pagestyles like plain, empty. I should have read the
documentation before posting. I guess I got lazy:-). Thanks for the tip.

Bob


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Nick Hopton schrieb:

- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.

[...]

I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:


C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Oh shit! Could you please send me this file please?

I'll have a llok what's going wrong. For me it works.

regards Uwe


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Nick Hopton schrieb:

- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


The problem is that lyx2lyx doesn't convert the files from format 256 to format 258. As workaround 
you can manually change the first line in the LyX-file source.


During yesterday everything worked fine, then I recompiled LyX to prepare a new installer for the 
new MikteX version, and didn't test this.


I'm very sorry and will try to fix this as soon as possible.

regards Uwe


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
 I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:
 C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Oh shit! Could you please send me this file please?

I'll have a llok what's going wrong. For me it works.

regards Uwe


Don't worry, Uwe, it's Alpha software and I'm pleased to be testing it. 
Here's a short little file (a letter) below.


Regards,
Nick.

--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]

#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 256
\begin_document
\begin_header
\textclass letter
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author Nick Hopton 
\end_header

\begin_body

\begin_layout My Address
17 The Ridgeway,
\newline
Caversham,
\newline
Reading,
\newline
RG4 8NX
\end_layout

\begin_layout Telephone
0118 947 7375
\end_layout

\begin_layout Send To Address
Reading Borough Council,
\newline
Traffic Management and Road Safety,
\newline
Civic Centre,
\newline
Reading,
\newline

RG1 7TD.
\end_layout

\begin_layout Opening
Dear Sirs,
\end_layout

\begin_layout Signature
Nick Hopton.
\end_layout

\begin_layout Standard
I am writing to complain about the lack of provision for pedestrians crossing
 the roads at the junction of the Henley Road, Prospect Street, Westbrook
 Road and Peppard Road.
 This is the junction near to the 
\emph on
Prince of Wales
\emph default
 public house, in Caversham.
\end_layout

\begin_layout Standard
The junction is controlled by traffic lights but these do not allow time
 for pedestrians to cross the roads at the junction in safety.
 
\emph on
All
\emph default
 of the crossing-points at the junction pose a serious hazard to pedestrians
 and the one from the Balmore Park steps across the Peppard Road is dangerous
 beyond belief.
 Here the view is very limited and cars travelling up Prospect Street frequently
 speed-up when approaching the lights, often driving through them at high
 speed even though they have turned to red.
\end_layout

\begin_layout Standard
Unless something is done, I am convinced that sooner or later there will
 be a serious and possibly fatal accident at the junction.
 I am not an expert in traffic-management, but I feel that at the very least
 the delay on the lights should be increased to hold the traffic back in
 all directions while pedestrians cross.
 My preferred solution would be the installation of four proper pedestrian-contr
olled crossings.
\end_layout

\begin_layout Closing
Yours faithfully,
\end_layout

\begin_layout cc
Cllr.
 Isobel Ballsdon,
\newline
Cllr.
 Andrew Cumpsty,
\newline
Cllr.
 Jeanette Skeats,
\newline
Cllr.
 Sue Stainthorpe,
\newline
Cllr.
 David Stevens,
\newline
Cllr.
 Steve Waite.
\end_layout

\end_body
\end_document


Re: Culmus Hebrew fonts

2007-02-02 Thread Miki Dovrat
After some more reading in forums I found (and understood, or not) the 
following:

The babel package contains the font encodings and metrics and definitions 
needed to use the Culmus fonts, but not the fonts themselves, which today 
are readily availabe for linux and Windows.

Latex CANNOT have font definitions by encodings, it can only have ONE 
encoding, and ONE font family at any given time, and you can change them, of 
course, but there is no memory for the font used in the encoding. The Hebrew 
font families define font substitutions for the English letters using the 
cmr fonts, so when you define the hebrew font family, your English will be 
in computer modern. It isn't a bad font :).

I think the way to go about it using lyx (and leaving latex's problem as 
they are) is to define the \language english and \language hebrew macros to 
include a font definition as well, if the default fonts aren't used, but 
that is something I don't have the time to begin to learn how to do, and it 
may not be the best solution.

Nikud is nice to have, but it isn't needed in every day life unless you 
write the Bible or childrens' books or poetry, or quote from such sources. 
Lyx already knows how to include vowel points (see Sivan Toledo's page in 
tau.ac.il) - I don't know by which packages, but it works, although 
sometimes the signs are somewhat misplaced. The Nikud package you mentioned 
promises that the vowel points are not misplaced, but I don't know how the 
nikud works in lyx, so I don't know what is the cost of replacing or 
changing lyx  to use this package.

As for the Culmus fonts, they are already incorporated through 
ivritex/babel, so using Nikud won't change anything with respect to that.

Can we have a feature request regarding font definitions for different 
encodings in lyx (and not latex)?

Miki


Dov Feldstern [EMAIL PROTECTED] wrote 
in message news:[EMAIL PROTECTED]
 Hi!

 You should also check out this package: http://nikud.berlios.de/ . It is 
 mainly for using nikud, but as a side effect it also uses the culmus 
 fonts. It's also really simple to use --- after the initial setup 
 (explained on the site), all you need to do is use the culmus package 
 instead of babel. I've used it a little bit here and there, but not very 
 much --- I'd be happy to hear how this compares to the solution described 
 below. Please keep us posted!

 It seems to me that perhaps LyX should use this package (or something 
 similar) by default, since the default ivritex fonts are not great --- 
 especially when it comes to bold or italics... How would one go about 
 doing something like that? (not that I have time to do that at the moment, 
 but maybe someone else could...?)

 Dov

 Miki Dovrat wrote:
 I actually got it working

 I feel I am stating the obvious to the Hebrew users who already KNOW the 
 answer and didn't have time to respond.

 There is a package called hebfont.sty, written by Boris Lavva, which 
 has created macros to use all the hebrew fonts (culmus, and the old 
 default ones) as
 \DeclareTextFontCommand{\text..}{\fontfamily{somefontname}\selectfont}

 The package was apparently installed in Windows by the culmus.exe pointed 
 to by the lyx wiki page on setting up Hebrew. I have seen that this 
 package is a part of ivritex as well.

 He lists there all of the following culmus fonts by their names: david, 
 frank, aharoni, drugulin, yad, ellinia, miriam, nachlieli, as well as the 
 old fonts which came with previous latex distributions.

 These \selectfont commands get cancelled every time a language change is 
 made from Hebrew to English or math, so they are good for a few words, a 
 paragraph or so, but I found an explanation how to change the default 
 font of the entire document and other font related commands here:
 http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm

 so

 \renewcommand{\rmdefault}{ellinia} will change all Hebrew in the document 
 to the culmus font Ellinia (for example).

 It isn't exactly what I want since it also changes back the English font 
 to its default cmr (It was lmodren), so I will actually have to look how 
 to change only the left to right parts.

 There is much more variety in the culmus fonts, and they look better.

 Thanks for everyone who replied on and off the group.

 Miki

 





Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
The problem is that lyx2lyx doesn't convert the files from format 256 
to format 258. As workaround you can manually change the first line in 
the LyX-file source.

[...]

Yes, this works here. It crashes when trying to use the default PDF 
viewer, but works fine when I tell LyX to use AcroRd32.


Thanks for all the hard work.

Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Uwe Stöhr

Olivier Ripoll schrieb:

By the way, I noticed that when choosing the Introduction instead of the 
User's Guide, the images were not found.


This should be fixed in the latest installer I just released.
Have you tested the French Introduction or the English version?

regards Uwe


Re: BibTeX and master documents

2007-02-02 Thread Daniel Lohmann


[EMAIL PROTECTED] schrieb:
 To make it easier to insert citatiosn (if you still need to), you can
 insert a bibliography within each child document, but place it inside a
 *comment*. That way LaTeX won't see it, but LyX will know what
 .bib-files to scan for when showing you the available citations.

Hi,

Excellent suggestion. However, it still has the disadvantage that no bib 
references appear if one prints out a single chapter.


I am looking for some way to conditionally embed the bibliography into the 
child documents. If used (printed) stand alone, a child should have a 
complete bibliography section. If embedded into the master, the 
bibliographies of the children should be ignored.


I have been trying to achieve something like that for a couple of hours, 
but failed - probably because of my lacking knowledge of fundamental LaTex 
concepts. Here is the idea:


1) Define a variable \master in the preamble of the master document before 
including the common preamble:


\def\master
\input{preamble.tex}

2) Define a new \ifnomaster in the common preamble that tests for \master 
being defined or not


% common preamble, input'ed into all children and the master
\newif\ifnomaster
\ifx\master\undefined
  \nomastertrue
\else
  \nomasterfalse
\fi

3) Use ERT boxes to conditionally include the bibliography at the end of 
each child:


??ERT[\ifnomaster]
[BibTeX Generated Bibliography]
ERT[\fi]

This fails so far, probably because my \newif and \def are erroneous.
(It is kind of funny: While there are many LaTeX books and online resources 
that explain how to do fancy things using the xyz package, I always 
struggle when I try to find a good documentation of such basic things.)


Please help :-)

Daniel





On Tue, 30 Jan 2007, Georg Baum wrote:


Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes:

I have just discovered the Insert-File-Child Document option in LyX,

which

is useful for inserting several chapter documents into one master

document.

However, if I use BibTeX references in my chapter documents, they don't
appear correctly in the master output. The best output I have managed so

far

inserts a bibliography at the end of each chapter but the individual
bibliographies include all the references from the entire document (i.e.
from all of the chapters). Is there a way of achieving either 
individual

bibliographies that only include the references cited in their own

chapters

or a single bibliography at the end of the master document?


AFAIK you need some extra packages for the first option, but the 
second one

is easy. Don't include any bibliography in child documents, only include
one in the master.




If you want to enter a new citation in a child you need to open the child
from the master doc, otherwise LyX will not know which .bib file is used.


To make it easier to insert citatiosn (if you still need to), you can 
insert a bibliography within each child document, but place it inside a 
*comment*. That way LaTeX won't see it, but LyX will know what 
.bib-files to scan for when showing you the available citations.


/C



Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Georg Baum
Uwe Stöhr wrote:

 Nick Hopton schrieb:
 
 - I cannot open the documentation, LyX complains about wrong file
 versions that lyx2lyx cannot convert.
 
 The problem is that lyx2lyx doesn't convert the files from format 256 to
 format 258.

Why? Current svn converts these very well.


Georg



Re: BibTeX and master documents

2007-02-02 Thread Richard Heck

Use the technique mentioned here:
http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below.
 1) Define a variable \master in the preamble of the master document
 before including the common preamble:
Define it to mean something.
 \def\master*{whatever}*
 \input{preamble.tex}

Don't need any of this.
 2) Define a new \ifnomaster in the common preamble that tests for
 \master being defined or not

 % common preamble, input'ed into all children and the master
 \newif\ifnomaster
 \ifx\master\undefined
   \nomastertrue
 \else
   \nomasterfalse
 \fi

 3) Use ERT boxes to conditionally include the bibliography at the end
 of each child:

 ??ERT[*\ifx\master\undefined*]
 [BibTeX Generated Bibliography]
 ERT[\fi]
Richard



-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: BibTeX and master documents

2007-02-02 Thread Daniel Watkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel Lohmann wrote:
 I am looking for some way to conditionally embed the bibliography into
 the child documents. If used (printed) stand alone, a child should
 have a complete bibliography section. If embedded into the master, the
 bibliographies of the children should be ignored.
While it's a little hacky, you could just move the bibliographies in and
out of the comments as needs be...

Dan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFw3wb3arasOikFPYRAkE8AJ9mbSGRTTeTLwVA6ubc2ItRVWsFGgCePbnb
+poKmwFJnEKL439oAKvA3Zo=
=IQ7L
-END PGP SIGNATURE-



Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Olivier Ripoll schrieb:

- I can do a pdf with it fine, but the update does not work however 
my pdf viewer is Foxit 2.0, not Acrobat (which I do have installed, but 
not as default pdf reader), so it might be related to this.


I'll have a look, The registry settings made ba Adobe Reader are really complicated. Normally it 
should be correctly detected that Foxit is the default.

Now you have in your preferences for the PDF-format the viewer PDFViewWin7, 
correct?

- The first time I press ctrl-m to type a formula, 4 identical lines are 
printed in the console saying:

QFontengineWin: GetTextMetrics failed ()
No bad effect though, just this message.


Could you please report this to bugzilla?

regards Uwe


LyX 1.3.4-4 does not load, LyX 1.5 svn loads nicely

2007-02-02 Thread John Kane
I just moved to a new (for me) computer ( 1G ram,
hurray. My old one with 512K had died and I was using
a clunker with 256k. Still WindowsXP  but ... 

  I had to install a lot of my personal software
including LyX. I tried to install LyX 1.3.4 and first
got a message that it was timing out trying to
download MiXTex, Ghostscript and ImageMagik so I
manually downloaded and installed them and tried
again.  It worked but LyX refused to load.  

After about 3 trys I went and got 1.5 which loaded
perfectly.  Strange.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


float placement refinements

2007-02-02 Thread Ramon Flores
Hi,

I write documents with a lot of figures, so it is not unusual that LyX (latex) 
have to put more than two figures in one page. (I use tpb in the float 
placement box).
The only figures pages, with two or more figures, are OK for me. But when 
LyX(latex) puts two figures in a page with text the results are not so good. 

IMHO,  in this case, two figures + text, LyX(latex) put the figures too close, 
and the caption of the upper one can be confused with a part of the lowest 
one. Anyway I don't like the result.

Is there any way to say to LyX not to put more that one figure in a page with 
text?.
Or alternatively, is there any way to say to LyX to set apart the two figures?

Cheers
Ramon


Re: [announce] LyX150svn from 01-02-2007 for Windows - lyx2lyx solution

2007-02-02 Thread Uwe Stöhr
- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


The problem is that lyx2lyx doesn't convert the files from format 256 to 
format 258. As workaround you can manually change the first line in the 
LyX-file source.


(Sometimes everything goes wrong.)
The file LyX.py was not updated in my build system for an unknown reason so I shipped an outdated 
version. Please replace the one on your LyX 1.5svn system by the attached one.


Sorry again, I was in a hurry today so that I only tested if the installation process works and LyX 
starts.



ergards Uwe
# This file is part of lyx2lyx
# -*- coding: utf-8 -*-
# Copyright (C) 2002-2004 Dekel Tsur [EMAIL PROTECTED]
# Copyright (C) 2002-2006 José Matos [EMAIL PROTECTED]
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

from parser_tools import get_value, check_token, find_token,\
 find_tokens, find_end_of
import os.path
import gzip
import sys
import re
import time

import lyx2lyx_version
version_lyx2lyx = lyx2lyx_version.version

default_debug_level = 2


# Private helper functions

def find_end_of_inset(lines, i):
 Find beginning of inset, where lines[i] is included.
return find_end_of(lines, i, \\begin_inset, \\end_inset)

def generate_minor_versions(major, last_minor_version):
 Generate minor versions, using major as prefix and minor
versions from 0 until last_minor_version, plus the generic version.

Example:

  generate_minor_versions(1.2, 4) -
  [ 1.2, 1.2.0, 1.2.1, 1.2.2, 1.2.3]

return [major] + [major + .%d % i for i in range(last_minor_version + 1)]


# End of helper functions



# Regular expressions used
format_re = re.compile(r(\d)[\.,]?(\d\d))
fileformat = re.compile(r\\lyxformat\s*(\S*))
original_version = re.compile(r.*?LyX ([\d.]*))

##
# file format information:
#  file, supported formats, stable release versions
format_relation = [(0_06,[200], generate_minor_versions(0.6 , 4)),
   (0_08,[210], generate_minor_versions(0.8 , 6) + [0.7]),
   (0_10,[210], generate_minor_versions(0.10, 7) + [0.9]),
   (0_12,[215], generate_minor_versions(0.12, 1) + [0.11]),
   (1_0, [215], generate_minor_versions(1.0 , 4)),
   (1_1, [215], generate_minor_versions(1.1 , 4)),
   (1_1_5,   [216], [1.1.5,1.1.5.1,1.1.5.2,1.1]),
   (1_1_6_0, [217], [1.1.6,1.1.6.1,1.1.6.2,1.1]),
   (1_1_6_3, [218], [1.1.6.3,1.1.6.4,1.1]),
   (1_2, [220], generate_minor_versions(1.2 , 4)),
   (1_3, [221], generate_minor_versions(1.3 , 7)),
   (1_4, range(222,246), generate_minor_versions(1.4 , 3)),
   (1_5, range(246,259), generate_minor_versions(1.5 , 0))]


def formats_list():
 Returns a list with supported file formats.
formats = []
for version in format_relation:
for format in version[1]:
if format not in formats:
formats.append(format)
return formats


def get_end_format():
 Returns the more recent file format available.
return format_relation[-1][1][-1]


def get_backend(textclass):
 For _textclass_ returns its backend.
if textclass == linuxdoc or textclass == manpage:
return linuxdoc
if textclass[:7] == docbook:
return docbook
return latex


def trim_eol(line):
 Remove end of line char(s).
if line[-2:-1] == '\r':
return line[:-2]
else:
return line[:-1]


def get_encoding(language, inputencoding, format):
if format  248:
return utf8
from lyx2lyx_lang import lang
if inputencoding == auto or inputencoding == default:
return lang[language][3]
if inputencoding == :
return latin1
# python does not know the alias latin9
if inputencoding == latin9:
return iso-8859-15
return inputencoding

##
# Class
#
class LyX_Base:
This class carries all the information of the LyX file.

def __init__(self, end_format = 0, input = , output = , error
 = , debug = default_debug_level, try_hard = 0, language = 

Re: float placement refinements

2007-02-02 Thread Uwe Stöhr

Ramon Flores schrieb:

Is there any way to say to LyX not to put more that one figure in a page with 
text?.

Or alternatively, is there any way to say to LyX to set apart the two figures?


This is a wide field to play on. The toys for this are explained in the 
Embedded Insets manual:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/EmbeddedObjects.lyx
which is also available in Spanish:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/es_EmbeddedObjects.lyx

regards Uwe


Re: Comment on Lyx Windows Install: the textclasses not found problem

2007-02-02 Thread Paul A. Rubin

Uwe Stöhr wrote:

Paul A. Rubin schrieb:

Does it?  I've installed the thin version on my home PC a few times. 
The home PC has a dial-up connection (which is off during 
installation) and MikTeX set to ask.  It asks, I say no 
(repeatedly), and installation goes fine.


But if you press yes - same problem. And I got complaints from the 
users, that they don't want to have these windows appearing. And people 
often press yes when the don't understand a computer question. I would 
also press Yes because nobody knows the problematic.




I see your point.  I thought you meant that the bug occurred before the 
user responded to the pop-up.


/Paul



Re: Ho to write my own paragraph layout or how to change LyX-Code

2007-02-02 Thread Steve Litt
On Friday 02 February 2007 06:47, Roland Schmitz wrote:
 Hi List,

 i'm looking for an code layout (environment) for LyX, wich automaticly
 inserts line numbers and a table of contents for all listings.
 If it's possible to configure this layout to look a bit like old endless
 paper (one line with white background, one with green) this would be
 exactly what i'm looking for, but that would be a goody.
 If there is a tutorial how to write layouts, a RTFM with a link will be
 enough.
 I knwo i can use the LaTeX listing package, but ERT's are not really
 comfortable.

I've written some content on the subject of making your own environments in a 
layout file. Start here:

http://www.troubleshooters.com/linux/lyx/index.htm

If you find a way to establish a line counter and print it on each line, 
please let the list know. I think if you find this, something similar to your 
solution will solve Jeremy Reed's horizontal rule before every section 
unless at top or bottom of page? question.

And frankly, I'm very interested myself, in ways that LaTeX can detect and act 
on automatic line and page breaking.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


fancyhdr font size

2007-02-02 Thread Bob Lounsbury

Is there any way to control this?

I've put '\lhead{\small{foo}}' into the preamble, but I would like the
header font to be smaller. So, is there a command lower than '\small'? I've
tried '\smaller' but LyX doesn't like that. Or another way to accomplish
this.

Thanks,
Bob Lounsbury


Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Olivier Ripoll

Uwe Stöhr wrote:

Helly LyXers,

some of you have already tested one of the development snapshot of LyX 
1.5svn:
http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12083 



Could anybody who has LyX 1.5svn still on the system and use Acrobat 
8/Adobe reader 8 please test out the following:


1. Copy this file to LyX's \bin folder:
http://wiki.lyx.org/uploads/Windows/LyXWinInstaller/PDFViewWin.exe
and rename it to PDFViewWin8.exe

2. Start LyX

3. Open the User's Guide, go there to e.g. section 3 and add a charater


By the way, I noticed that when choosing the Introduction instead of the 
User's Guide, the images were not found.



4. Press the toolbar button for viewing PDF


PDFViewWin8.exe crashed at this point. Same if I launch it as a standalone.


Adobe reader 8 should then be opened showing your file

5. delete the just added character and press the view PDF button again

Adobe reader should not crash and show the beginning of the file. In 
Adobe reader you can now turn back to the last shown PDF document part 
using the feature to go to the last view (via the corresponding button 
or the menu).


Does this work as I described it?

thanks and regards
Uwe


Sorry for the bad news,

Best regards,

Olivier




Re: changing Xfig figures in LyX

2007-02-02 Thread Georg Baum
Philipp Fleig wrote:

 Hello,
 
 ok. Attached you find a sample .lyx + xfig file.
 When I go to preferences in LyX there are a number of converters,
 including some like FIG - EPS, FIG - PDFTEX and FIG - PSTEX, which
 I guess would be the relevant ones.

Yes, they are.

 I read on http://www.xfig.org/ 
 userman/latex_and_xfig.html something about the psfig package. Could
 it be this, which I am missing?

No. Your test file does not include the figure. It includes a file
named ../../../LyX. If I change that to read TestFig.fig, and if I save
TestFig.fig in the same directory as Test.lyx, then it works just fine
here.


Georg



Re: Culmus Hebrew fonts

2007-02-02 Thread Dov Feldstern

Hi!

You should also check out this package: http://nikud.berlios.de/ . It is 
mainly for using nikud, but as a side effect it also uses the culmus 
fonts. It's also really simple to use --- after the initial setup 
(explained on the site), all you need to do is use the culmus package 
instead of babel. I've used it a little bit here and there, but not very 
much --- I'd be happy to hear how this compares to the solution 
described below. Please keep us posted!


It seems to me that perhaps LyX should use this package (or something 
similar) by default, since the default ivritex fonts are not great --- 
especially when it comes to bold or italics... How would one go about 
doing something like that? (not that I have time to do that at the 
moment, but maybe someone else could...?)


Dov

Miki Dovrat wrote:

I actually got it working

I feel I am stating the obvious to the Hebrew users who already KNOW the 
answer and didn't have time to respond.


There is a package called hebfont.sty, written by Boris Lavva, which has 
created macros to use all the hebrew fonts (culmus, and the old default 
ones) as

\DeclareTextFontCommand{\text..}{\fontfamily{somefontname}\selectfont}

The package was apparently installed in Windows by the culmus.exe pointed to 
by the lyx wiki page on setting up Hebrew. I have seen that this package is 
a part of ivritex as well.


He lists there all of the following culmus fonts by their names: david, 
frank, aharoni, drugulin, yad, ellinia, miriam, nachlieli, as well as the 
old fonts which came with previous latex distributions.


These \selectfont commands get cancelled every time a language change is 
made from Hebrew to English or math, so they are good for a few words, a 
paragraph or so, but I found an explanation how to change the default font 
of the entire document and other font related commands here:

http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm

so

\renewcommand{\rmdefault}{ellinia} will change all Hebrew in the document to 
the culmus font Ellinia (for example).


It isn't exactly what I want since it also changes back the English font to 
its default cmr (It was lmodren), so I will actually have to look how to 
change only the left to right parts.


There is much more variety in the culmus fonts, and they look better.

Thanks for everyone who replied on and off the group.

Miki 









Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
So there is no other solution for this crash other then the one I 
shipped with LyX1.5svn as PDFViewWin8.exe :-(

[...]

But how big a problem is this, Uwe? When I'm working on a document and I 
want to see what it looks like I can do 'Update DVI' and when it's right 
I can press the PDF-button.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Ho to write my own paragraph layout or how to change LyX-Code

2007-02-02 Thread Roland Schmitz
Hi List,

i'm looking for an code layout (environment) for LyX, wich automaticly inserts 
line numbers and a table of contents for all listings.
If it's possible to configure this layout to look a bit like old endless 
paper (one line with white background, one with green) this would be exactly 
what i'm looking for, but that would be a goody.
If there is a tutorial how to write layouts, a RTFM with a link will be 
enough.
I knwo i can use the LaTeX listing package, but ERT's are not really 
comfortable.

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz


Re: different headers

2007-02-02 Thread Andreas K .
Bob Lounsbury [EMAIL PROTECTED] writes:

 
 Hello,
 
 Is there a way to have a different custom heading on the first and
 subsequent pages? What I need is a specific left header on the first page
 and then a different specific left header on all the subsequent pages.
 
 Thanks,
 Bob Lounsbury
 

Hi,

Try the fancyhdr package: http://www.tug.org/tex-
archive/help/Catalogue/entries/fancyhdr.html

Regards,
Andreas




[announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Hello LyXTesters,

I published a new version with LyX1.5.0svn from 01-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12153

Now this know problem should be fixed with the new MiKTeX version that comes together with this 
installer:


Known problem:
- LyX's package and class database is incomplete when you don't have an open 
internet
  connection while LyX is first started. (This is a bug in MiKTeX.)
  Workaround: open an internet connection and reconfigure LyX

This hopefully also kills the textclass not found problem. Due to lack of time I haven't tested it 
yet, so I cannot say if this is now really fixed. (I'll check this the next days.)


!You don't need to reinstall MiKTeX to benefit from the fix, just update MiKTeX using its update 
manager before you update LyX 1.5svn!


---

Here are the other changes:

- LyX 1.5svn from 01-02-2007:
  - you can now enter special characters directly to the document ( µ, €, 
etc.)
  - tooltips for menu buttons now appear
  - missing math characters are now displayed
  - nearly all known crashes are fixed
  - updated ExtendedInsets manual (now named Embedded Objects in the Help 
menu)

- fixed crash I introduced with the last release when invoking the thesaurus
- updated to JabRef 2.2

Thanks to Gisela Stöhr:
- updated Slovak translation of the installer

---

happy testing and best regards
Uwe

--- disclaimer ---
LyXsvn builds are for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX1.5svn is still in alpha state, that means it is under very
active development. Therefore things can change every day, so
don't use LyX1.5svn for production!



Re: Beamer class and pdf meta-information

2007-02-02 Thread Jean-Pierre Chretien

To: lyx-users@lists.lyx.org
From: Paul A. Rubin [EMAIL PROTECTED]
Subject: Re: Beamer class and pdf meta-information
Date: Thu, 01 Feb 2007 17:37:14 -0500

Jean-Pierre Chretien wrote:
 Hello,
[...]

I don't know enough LaTeX to know how to access the author and title 
information after \author and \title have been used, but I do know that 
you can put \hypersetup in ERT anywhere in the document -- so if there 
is a way to get the author/title information after the title page, you 
should be able to pass it to do what you want with one (belated) 
invocation of \hypersetup.

This is what I had in mind with the \AtEndDocument command.
I did not know if \hypersetup would work outside the preamble.

I will try again.

Thanks for the info

-- 
Jean-Pierre





Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Olivier Ripoll

Uwe Stöhr wrote:

Hello LyXTesters,

I published a new version with LyX1.5.0svn from 01-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12153 



Now this know problem should be fixed with the new MiKTeX version that 
comes together with this installer:


Known problem:
- LyX's package and class database is incomplete when you don't have an 
open internet

  connection while LyX is first started. (This is a bug in MiKTeX.)
  Workaround: open an internet connection and reconfigure LyX

This hopefully also kills the textclass not found problem. Due to lack 
of time I haven't tested it yet, so I cannot say if this is now really 
fixed. (I'll check this the next days.)


!You don't need to reinstall MiKTeX to benefit from the fix, just update 
MiKTeX using its update manager before you update LyX 1.5svn!



 [snip]

So here are my first results:

- the accentuated letters do work fine.

- The first ^ in a formula still crashes it with En-international keyboard.

- I can do a pdf with it fine, but the update does not work however 
my pdf viewer is Foxit 2.0, not Acrobat (which I do have installed, but 
not as default pdf reader), so it might be related to this.


- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


- The first time I press ctrl-m to type a formula, 4 identical lines are 
printed in the console saying:

QFontengineWin: GetTextMetrics failed ()
No bad effect though, just this message.

Best regards,

Olivier.



Re: Ho to write my own paragraph layout or how to change LyX-Code

2007-02-02 Thread Richard Heck

The documentation for this is at HelpCustomization5.2. If you look at
that and then look at how similar layouts are implemented in the extant
layout classes, you shouldn't have too much trouble. Seeing the line
numbers and the white-green in LyX itself might be a challenge, but
making it possible to use the environments and commands provided by
listings.sty without ERT should not be difficult.

Richard

Roland Schmitz wrote:
 Hi List,

 i'm looking for an code layout (environment) for LyX, wich automaticly 
 inserts 
 line numbers and a table of contents for all listings.
 If it's possible to configure this layout to look a bit like old endless 
 paper (one line with white background, one with green) this would be exactly 
 what i'm looking for, but that would be a goody.
 If there is a tutorial how to write layouts, a RTFM with a link will be 
 enough.
 I knwo i can use the LaTeX listing package, but ERT's are not really 
 comfortable.

   


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re[2]: Font problems of pdf-files generated on Mac

2007-02-02 Thread Alan G Isaac
On Fri, 2 Feb 2007, Anders Ekberg apparently wrote: 
 The question is how do I embed fonts using LyX/TeX? 

I'm not sure what the LyX way is, but I suppose you can 
glean clues from this:
http://eps.berkeley.edu/www/graduate/thesis/Efile_PDF.html

hth,
Alan Isaac






Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Olivier Ripoll 
[EMAIL PROTECTED] wrote.


[...]
- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.

[...]

I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:


C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: different headers

2007-02-02 Thread Bob Lounsbury

On 2/2/07, Andreas K. [EMAIL PROTECTED] wrote:


Bob Lounsbury [EMAIL PROTECTED] writes:


 Hello,

 Is there a way to have a different custom heading on the first and
 subsequent pages? What I need is a specific left header on the first
page
 and then a different specific left header on all the subsequent pages.

 Thanks,
 Bob Lounsbury


Hi,

Try the fancyhdr package: http://www.tug.org/tex-
archive/help/Catalogue/entries/fancyhdr.html

Regards,
Andreas




I've used the fancyhdr package many times, but didn't realize that you could
redefine the default pagestyles like plain, empty. I should have read the
documentation before posting. I guess I got lazy:-). Thanks for the tip.

Bob


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Nick Hopton schrieb:

- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.

[...]

I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:


C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Oh shit! Could you please send me this file please?

I'll have a llok what's going wrong. For me it works.

regards Uwe


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Nick Hopton schrieb:

- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


The problem is that lyx2lyx doesn't convert the files from format 256 to format 258. As workaround 
you can manually change the first line in the LyX-file source.


During yesterday everything worked fine, then I recompiled LyX to prepare a new installer for the 
new MikteX version, and didn't test this.


I'm very sorry and will try to fix this as soon as possible.

regards Uwe


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
 I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:
 C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Oh shit! Could you please send me this file please?

I'll have a llok what's going wrong. For me it works.

regards Uwe


Don't worry, Uwe, it's Alpha software and I'm pleased to be testing it. 
Here's a short little file (a letter) below.


Regards,
Nick.

--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]

#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 256
\begin_document
\begin_header
\textclass letter
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author Nick Hopton 
\end_header

\begin_body

\begin_layout My Address
17 The Ridgeway,
\newline
Caversham,
\newline
Reading,
\newline
RG4 8NX
\end_layout

\begin_layout Telephone
0118 947 7375
\end_layout

\begin_layout Send To Address
Reading Borough Council,
\newline
Traffic Management and Road Safety,
\newline
Civic Centre,
\newline
Reading,
\newline

RG1 7TD.
\end_layout

\begin_layout Opening
Dear Sirs,
\end_layout

\begin_layout Signature
Nick Hopton.
\end_layout

\begin_layout Standard
I am writing to complain about the lack of provision for pedestrians crossing
 the roads at the junction of the Henley Road, Prospect Street, Westbrook
 Road and Peppard Road.
 This is the junction near to the 
\emph on
Prince of Wales
\emph default
 public house, in Caversham.
\end_layout

\begin_layout Standard
The junction is controlled by traffic lights but these do not allow time
 for pedestrians to cross the roads at the junction in safety.
 
\emph on
All
\emph default
 of the crossing-points at the junction pose a serious hazard to pedestrians
 and the one from the Balmore Park steps across the Peppard Road is dangerous
 beyond belief.
 Here the view is very limited and cars travelling up Prospect Street frequently
 speed-up when approaching the lights, often driving through them at high
 speed even though they have turned to red.
\end_layout

\begin_layout Standard
Unless something is done, I am convinced that sooner or later there will
 be a serious and possibly fatal accident at the junction.
 I am not an expert in traffic-management, but I feel that at the very least
 the delay on the lights should be increased to hold the traffic back in
 all directions while pedestrians cross.
 My preferred solution would be the installation of four proper pedestrian-contr
olled crossings.
\end_layout

\begin_layout Closing
Yours faithfully,
\end_layout

\begin_layout cc
Cllr.
 Isobel Ballsdon,
\newline
Cllr.
 Andrew Cumpsty,
\newline
Cllr.
 Jeanette Skeats,
\newline
Cllr.
 Sue Stainthorpe,
\newline
Cllr.
 David Stevens,
\newline
Cllr.
 Steve Waite.
\end_layout

\end_body
\end_document


Re: Culmus Hebrew fonts

2007-02-02 Thread Miki Dovrat
After some more reading in forums I found (and understood, or not) the 
following:

The babel package contains the font encodings and metrics and definitions 
needed to use the Culmus fonts, but not the fonts themselves, which today 
are readily availabe for linux and Windows.

Latex CANNOT have font definitions by encodings, it can only have ONE 
encoding, and ONE font family at any given time, and you can change them, of 
course, but there is no memory for the font used in the encoding. The Hebrew 
font families define font substitutions for the English letters using the 
cmr fonts, so when you define the hebrew font family, your English will be 
in computer modern. It isn't a bad font :).

I think the way to go about it using lyx (and leaving latex's problem as 
they are) is to define the \language english and \language hebrew macros to 
include a font definition as well, if the default fonts aren't used, but 
that is something I don't have the time to begin to learn how to do, and it 
may not be the best solution.

Nikud is nice to have, but it isn't needed in every day life unless you 
write the Bible or childrens' books or poetry, or quote from such sources. 
Lyx already knows how to include vowel points (see Sivan Toledo's page in 
tau.ac.il) - I don't know by which packages, but it works, although 
sometimes the signs are somewhat misplaced. The Nikud package you mentioned 
promises that the vowel points are not misplaced, but I don't know how the 
nikud works in lyx, so I don't know what is the cost of replacing or 
changing lyx  to use this package.

As for the Culmus fonts, they are already incorporated through 
ivritex/babel, so using Nikud won't change anything with respect to that.

Can we have a feature request regarding font definitions for different 
encodings in lyx (and not latex)?

Miki


Dov Feldstern [EMAIL PROTECTED] wrote 
in message news:[EMAIL PROTECTED]
 Hi!

 You should also check out this package: http://nikud.berlios.de/ . It is 
 mainly for using nikud, but as a side effect it also uses the culmus 
 fonts. It's also really simple to use --- after the initial setup 
 (explained on the site), all you need to do is use the culmus package 
 instead of babel. I've used it a little bit here and there, but not very 
 much --- I'd be happy to hear how this compares to the solution described 
 below. Please keep us posted!

 It seems to me that perhaps LyX should use this package (or something 
 similar) by default, since the default ivritex fonts are not great --- 
 especially when it comes to bold or italics... How would one go about 
 doing something like that? (not that I have time to do that at the moment, 
 but maybe someone else could...?)

 Dov

 Miki Dovrat wrote:
 I actually got it working

 I feel I am stating the obvious to the Hebrew users who already KNOW the 
 answer and didn't have time to respond.

 There is a package called hebfont.sty, written by Boris Lavva, which 
 has created macros to use all the hebrew fonts (culmus, and the old 
 default ones) as
 \DeclareTextFontCommand{\text..}{\fontfamily{somefontname}\selectfont}

 The package was apparently installed in Windows by the culmus.exe pointed 
 to by the lyx wiki page on setting up Hebrew. I have seen that this 
 package is a part of ivritex as well.

 He lists there all of the following culmus fonts by their names: david, 
 frank, aharoni, drugulin, yad, ellinia, miriam, nachlieli, as well as the 
 old fonts which came with previous latex distributions.

 These \selectfont commands get cancelled every time a language change is 
 made from Hebrew to English or math, so they are good for a few words, a 
 paragraph or so, but I found an explanation how to change the default 
 font of the entire document and other font related commands here:
 http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm

 so

 \renewcommand{\rmdefault}{ellinia} will change all Hebrew in the document 
 to the culmus font Ellinia (for example).

 It isn't exactly what I want since it also changes back the English font 
 to its default cmr (It was lmodren), so I will actually have to look how 
 to change only the left to right parts.

 There is much more variety in the culmus fonts, and they look better.

 Thanks for everyone who replied on and off the group.

 Miki

 





Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
The problem is that lyx2lyx doesn't convert the files from format 256 
to format 258. As workaround you can manually change the first line in 
the LyX-file source.

[...]

Yes, this works here. It crashes when trying to use the default PDF 
viewer, but works fine when I tell LyX to use AcroRd32.


Thanks for all the hard work.

Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Uwe Stöhr

Olivier Ripoll schrieb:

By the way, I noticed that when choosing the Introduction instead of the 
User's Guide, the images were not found.


This should be fixed in the latest installer I just released.
Have you tested the French Introduction or the English version?

regards Uwe


Re: BibTeX and master documents

2007-02-02 Thread Daniel Lohmann


[EMAIL PROTECTED] schrieb:
 To make it easier to insert citatiosn (if you still need to), you can
 insert a bibliography within each child document, but place it inside a
 *comment*. That way LaTeX won't see it, but LyX will know what
 .bib-files to scan for when showing you the available citations.

Hi,

Excellent suggestion. However, it still has the disadvantage that no bib 
references appear if one prints out a single chapter.


I am looking for some way to conditionally embed the bibliography into the 
child documents. If used (printed) stand alone, a child should have a 
complete bibliography section. If embedded into the master, the 
bibliographies of the children should be ignored.


I have been trying to achieve something like that for a couple of hours, 
but failed - probably because of my lacking knowledge of fundamental LaTex 
concepts. Here is the idea:


1) Define a variable \master in the preamble of the master document before 
including the common preamble:


\def\master
\input{preamble.tex}

2) Define a new \ifnomaster in the common preamble that tests for \master 
being defined or not


% common preamble, input'ed into all children and the master
\newif\ifnomaster
\ifx\master\undefined
  \nomastertrue
\else
  \nomasterfalse
\fi

3) Use ERT boxes to conditionally include the bibliography at the end of 
each child:


??ERT[\ifnomaster]
[BibTeX Generated Bibliography]
ERT[\fi]

This fails so far, probably because my \newif and \def are erroneous.
(It is kind of funny: While there are many LaTeX books and online resources 
that explain how to do fancy things using the xyz package, I always 
struggle when I try to find a good documentation of such basic things.)


Please help :-)

Daniel





On Tue, 30 Jan 2007, Georg Baum wrote:


Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes:

I have just discovered the Insert-File-Child Document option in LyX,

which

is useful for inserting several chapter documents into one master

document.

However, if I use BibTeX references in my chapter documents, they don't
appear correctly in the master output. The best output I have managed so

far

inserts a bibliography at the end of each chapter but the individual
bibliographies include all the references from the entire document (i.e.
from all of the chapters). Is there a way of achieving either 
individual

bibliographies that only include the references cited in their own

chapters

or a single bibliography at the end of the master document?


AFAIK you need some extra packages for the first option, but the 
second one

is easy. Don't include any bibliography in child documents, only include
one in the master.




If you want to enter a new citation in a child you need to open the child
from the master doc, otherwise LyX will not know which .bib file is used.


To make it easier to insert citatiosn (if you still need to), you can 
insert a bibliography within each child document, but place it inside a 
*comment*. That way LaTeX won't see it, but LyX will know what 
.bib-files to scan for when showing you the available citations.


/C



Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Georg Baum
Uwe Stöhr wrote:

 Nick Hopton schrieb:
 
 - I cannot open the documentation, LyX complains about wrong file
 versions that lyx2lyx cannot convert.
 
 The problem is that lyx2lyx doesn't convert the files from format 256 to
 format 258.

Why? Current svn converts these very well.


Georg



Re: BibTeX and master documents

2007-02-02 Thread Richard Heck

Use the technique mentioned here:
http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below.
 1) Define a variable \master in the preamble of the master document
 before including the common preamble:
Define it to mean something.
 \def\master*{whatever}*
 \input{preamble.tex}

Don't need any of this.
 2) Define a new \ifnomaster in the common preamble that tests for
 \master being defined or not

 % common preamble, input'ed into all children and the master
 \newif\ifnomaster
 \ifx\master\undefined
   \nomastertrue
 \else
   \nomasterfalse
 \fi

 3) Use ERT boxes to conditionally include the bibliography at the end
 of each child:

 ??ERT[*\ifx\master\undefined*]
 [BibTeX Generated Bibliography]
 ERT[\fi]
Richard



-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: BibTeX and master documents

2007-02-02 Thread Daniel Watkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel Lohmann wrote:
 I am looking for some way to conditionally embed the bibliography into
 the child documents. If used (printed) stand alone, a child should
 have a complete bibliography section. If embedded into the master, the
 bibliographies of the children should be ignored.
While it's a little hacky, you could just move the bibliographies in and
out of the comments as needs be...

Dan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFw3wb3arasOikFPYRAkE8AJ9mbSGRTTeTLwVA6ubc2ItRVWsFGgCePbnb
+poKmwFJnEKL439oAKvA3Zo=
=IQ7L
-END PGP SIGNATURE-



Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Olivier Ripoll schrieb:

- I can do a pdf with it fine, but the update does not work however 
my pdf viewer is Foxit 2.0, not Acrobat (which I do have installed, but 
not as default pdf reader), so it might be related to this.


I'll have a look, The registry settings made ba Adobe Reader are really complicated. Normally it 
should be correctly detected that Foxit is the default.

Now you have in your preferences for the PDF-format the viewer PDFViewWin7, 
correct?

- The first time I press ctrl-m to type a formula, 4 identical lines are 
printed in the console saying:

QFontengineWin: GetTextMetrics failed ()
No bad effect though, just this message.


Could you please report this to bugzilla?

regards Uwe


LyX 1.3.4-4 does not load, LyX 1.5 svn loads nicely

2007-02-02 Thread John Kane
I just moved to a new (for me) computer ( 1G ram,
hurray. My old one with 512K had died and I was using
a clunker with 256k. Still WindowsXP  but ... 

  I had to install a lot of my personal software
including LyX. I tried to install LyX 1.3.4 and first
got a message that it was timing out trying to
download MiXTex, Ghostscript and ImageMagik so I
manually downloaded and installed them and tried
again.  It worked but LyX refused to load.  

After about 3 trys I went and got 1.5 which loaded
perfectly.  Strange.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


float placement refinements

2007-02-02 Thread Ramon Flores
Hi,

I write documents with a lot of figures, so it is not unusual that LyX (latex) 
have to put more than two figures in one page. (I use tpb in the float 
placement box).
The only figures pages, with two or more figures, are OK for me. But when 
LyX(latex) puts two figures in a page with text the results are not so good. 

IMHO,  in this case, two figures + text, LyX(latex) put the figures too close, 
and the caption of the upper one can be confused with a part of the lowest 
one. Anyway I don't like the result.

Is there any way to say to LyX not to put more that one figure in a page with 
text?.
Or alternatively, is there any way to say to LyX to set apart the two figures?

Cheers
Ramon


Re: [announce] LyX150svn from 01-02-2007 for Windows - lyx2lyx solution

2007-02-02 Thread Uwe Stöhr
- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


The problem is that lyx2lyx doesn't convert the files from format 256 to 
format 258. As workaround you can manually change the first line in the 
LyX-file source.


(Sometimes everything goes wrong.)
The file LyX.py was not updated in my build system for an unknown reason so I shipped an outdated 
version. Please replace the one on your LyX 1.5svn system by the attached one.


Sorry again, I was in a hurry today so that I only tested if the installation process works and LyX 
starts.



ergards Uwe
# This file is part of lyx2lyx
# -*- coding: utf-8 -*-
# Copyright (C) 2002-2004 Dekel Tsur [EMAIL PROTECTED]
# Copyright (C) 2002-2006 José Matos [EMAIL PROTECTED]
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

from parser_tools import get_value, check_token, find_token,\
 find_tokens, find_end_of
import os.path
import gzip
import sys
import re
import time

import lyx2lyx_version
version_lyx2lyx = lyx2lyx_version.version

default_debug_level = 2


# Private helper functions

def find_end_of_inset(lines, i):
 Find beginning of inset, where lines[i] is included.
return find_end_of(lines, i, \\begin_inset, \\end_inset)

def generate_minor_versions(major, last_minor_version):
 Generate minor versions, using major as prefix and minor
versions from 0 until last_minor_version, plus the generic version.

Example:

  generate_minor_versions(1.2, 4) -
  [ 1.2, 1.2.0, 1.2.1, 1.2.2, 1.2.3]

return [major] + [major + .%d % i for i in range(last_minor_version + 1)]


# End of helper functions



# Regular expressions used
format_re = re.compile(r(\d)[\.,]?(\d\d))
fileformat = re.compile(r\\lyxformat\s*(\S*))
original_version = re.compile(r.*?LyX ([\d.]*))

##
# file format information:
#  file, supported formats, stable release versions
format_relation = [(0_06,[200], generate_minor_versions(0.6 , 4)),
   (0_08,[210], generate_minor_versions(0.8 , 6) + [0.7]),
   (0_10,[210], generate_minor_versions(0.10, 7) + [0.9]),
   (0_12,[215], generate_minor_versions(0.12, 1) + [0.11]),
   (1_0, [215], generate_minor_versions(1.0 , 4)),
   (1_1, [215], generate_minor_versions(1.1 , 4)),
   (1_1_5,   [216], [1.1.5,1.1.5.1,1.1.5.2,1.1]),
   (1_1_6_0, [217], [1.1.6,1.1.6.1,1.1.6.2,1.1]),
   (1_1_6_3, [218], [1.1.6.3,1.1.6.4,1.1]),
   (1_2, [220], generate_minor_versions(1.2 , 4)),
   (1_3, [221], generate_minor_versions(1.3 , 7)),
   (1_4, range(222,246), generate_minor_versions(1.4 , 3)),
   (1_5, range(246,259), generate_minor_versions(1.5 , 0))]


def formats_list():
 Returns a list with supported file formats.
formats = []
for version in format_relation:
for format in version[1]:
if format not in formats:
formats.append(format)
return formats


def get_end_format():
 Returns the more recent file format available.
return format_relation[-1][1][-1]


def get_backend(textclass):
 For _textclass_ returns its backend.
if textclass == linuxdoc or textclass == manpage:
return linuxdoc
if textclass[:7] == docbook:
return docbook
return latex


def trim_eol(line):
 Remove end of line char(s).
if line[-2:-1] == '\r':
return line[:-2]
else:
return line[:-1]


def get_encoding(language, inputencoding, format):
if format  248:
return utf8
from lyx2lyx_lang import lang
if inputencoding == auto or inputencoding == default:
return lang[language][3]
if inputencoding == :
return latin1
# python does not know the alias latin9
if inputencoding == latin9:
return iso-8859-15
return inputencoding

##
# Class
#
class LyX_Base:
This class carries all the information of the LyX file.

def __init__(self, end_format = 0, input = , output = , error
 = , debug = default_debug_level, try_hard = 0, language = 

Re: float placement refinements

2007-02-02 Thread Uwe Stöhr

Ramon Flores schrieb:

Is there any way to say to LyX not to put more that one figure in a page with 
text?.

Or alternatively, is there any way to say to LyX to set apart the two figures?


This is a wide field to play on. The toys for this are explained in the 
Embedded Insets manual:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/EmbeddedObjects.lyx
which is also available in Spanish:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/es_EmbeddedObjects.lyx

regards Uwe


Re: Comment on Lyx Windows Install: the textclasses not found problem

2007-02-02 Thread Paul A. Rubin

Uwe Stöhr wrote:

Paul A. Rubin schrieb:

Does it?  I've installed the thin version on my home PC a few times. 
The home PC has a dial-up connection (which is off during 
installation) and MikTeX set to ask.  It asks, I say no 
(repeatedly), and installation goes fine.


But if you press yes - same problem. And I got complaints from the 
users, that they don't want to have these windows appearing. And people 
often press yes when the don't understand a computer question. I would 
also press Yes because nobody knows the problematic.




I see your point.  I thought you meant that the bug occurred before the 
user responded to the pop-up.


/Paul



Re: Ho to write my own paragraph layout or how to change LyX-Code

2007-02-02 Thread Steve Litt
On Friday 02 February 2007 06:47, Roland Schmitz wrote:
 Hi List,

 i'm looking for an code layout (environment) for LyX, wich automaticly
 inserts line numbers and a table of contents for all listings.
 If it's possible to configure this layout to look a bit like old endless
 paper (one line with white background, one with green) this would be
 exactly what i'm looking for, but that would be a goody.
 If there is a tutorial how to write layouts, a RTFM with a link will be
 enough.
 I knwo i can use the LaTeX listing package, but ERT's are not really
 comfortable.

I've written some content on the subject of making your own environments in a 
layout file. Start here:

http://www.troubleshooters.com/linux/lyx/index.htm

If you find a way to establish a line counter and print it on each line, 
please let the list know. I think if you find this, something similar to your 
solution will solve Jeremy Reed's horizontal rule before every section 
unless at top or bottom of page? question.

And frankly, I'm very interested myself, in ways that LaTeX can detect and act 
on automatic line and page breaking.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


fancyhdr font size

2007-02-02 Thread Bob Lounsbury

Is there any way to control this?

I've put '\lhead{\small{foo}}' into the preamble, but I would like the
header font to be smaller. So, is there a command lower than '\small'? I've
tried '\smaller' but LyX doesn't like that. Or another way to accomplish
this.

Thanks,
Bob Lounsbury


Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Olivier Ripoll

Uwe Stöhr wrote:

Helly LyXers,

some of you have already tested one of the development snapshot of LyX 
1.5svn:
http://developer.berlios.de/project/showfiles.php?group_id=5117_id=12083 



Could anybody who has LyX 1.5svn still on the system and use Acrobat 
8/Adobe reader 8 please test out the following:


1. Copy this file to LyX's \bin folder:
http://wiki.lyx.org/uploads/Windows/LyXWinInstaller/PDFViewWin.exe
and rename it to PDFViewWin8.exe

2. Start LyX

3. Open the User's Guide, go there to e.g. section 3 and add a charater


By the way, I noticed that when choosing the Introduction instead of the 
User's Guide, the images were not found.



4. Press the toolbar button for viewing PDF


PDFViewWin8.exe crashed at this point. Same if I launch it as a standalone.


Adobe reader 8 should then be opened showing your file

5. delete the just added character and press the view PDF button again

Adobe reader should not crash and show the beginning of the file. In 
Adobe reader you can now turn back to the last shown PDF document part 
using the feature to go to the last view (via the corresponding button 
or the menu).


Does this work as I described it?

thanks and regards
Uwe


Sorry for the bad news,

Best regards,

Olivier




Re: changing Xfig figures in LyX

2007-02-02 Thread Georg Baum
Philipp Fleig wrote:

> Hello,
> 
> ok. Attached you find a sample .lyx + xfig file.
> When I go to preferences in LyX there are a number of converters,
> including some like FIG -> EPS, FIG -> PDFTEX and FIG -> PSTEX, which
> I guess would be the relevant ones.

Yes, they are.

> I read on http://www.xfig.org/ 
> userman/latex_and_xfig.html something about the psfig package. Could
> it be this, which I am missing?

No. Your test file does not include the figure. It includes a file
named ../../../LyX. If I change that to read TestFig.fig, and if I save
TestFig.fig in the same directory as Test.lyx, then it works just fine
here.


Georg



Re: Culmus Hebrew fonts

2007-02-02 Thread Dov Feldstern

Hi!

You should also check out this package: http://nikud.berlios.de/ . It is 
mainly for using nikud, but as a side effect it also uses the culmus 
fonts. It's also really simple to use --- after the initial setup 
(explained on the site), all you need to do is use the culmus package 
instead of babel. I've used it a little bit here and there, but not very 
much --- I'd be happy to hear how this compares to the solution 
described below. Please keep us posted!


It seems to me that perhaps LyX should use this package (or something 
similar) by default, since the default ivritex fonts are not great --- 
especially when it comes to bold or italics... How would one go about 
doing something like that? (not that I have time to do that at the 
moment, but maybe someone else could...?)


Dov

Miki Dovrat wrote:

I actually got it working

I feel I am stating the obvious to the Hebrew users who already KNOW the 
answer and didn't have time to respond.


There is a package called "hebfont.sty", written by Boris Lavva, which has 
created macros to use all the hebrew fonts (culmus, and the old default 
ones) as

\DeclareTextFontCommand{\text..}{\fontfamily{somefontname}\selectfont}

The package was apparently installed in Windows by the culmus.exe pointed to 
by the lyx wiki page on setting up Hebrew. I have seen that this package is 
a part of ivritex as well.


He lists there all of the following culmus fonts by their names: david, 
frank, aharoni, drugulin, yad, ellinia, miriam, nachlieli, as well as the 
old fonts which came with previous latex distributions.


These \selectfont commands get cancelled every time a language change is 
made from Hebrew to English or math, so they are good for a few words, a 
paragraph or so, but I found an explanation how to change the default font 
of the entire document and other font related commands here:

http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm

so

\renewcommand{\rmdefault}{ellinia} will change all Hebrew in the document to 
the culmus font Ellinia (for example).


It isn't exactly what I want since it also changes back the English font to 
its default cmr (It was lmodren), so I will actually have to look how to 
change only the left to right parts.


There is much more variety in the culmus fonts, and they look better.

Thanks for everyone who replied on and off the group.

Miki 









Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, Uwe Stöhr 
<[EMAIL PROTECTED]> wrote.


[...]
So there is no other solution for this crash other then the one I 
shipped with LyX1.5svn as PDFViewWin8.exe :-(

[...]

But how big a problem is this, Uwe? When I'm working on a document and I 
want to see what it looks like I can do 'Update DVI' and when it's right 
I can press the PDF-button.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Ho to write my own paragraph layout or how to change "LyX-Code"

2007-02-02 Thread Roland Schmitz
Hi List,

i'm looking for an code layout (environment) for LyX, wich automaticly inserts 
line numbers and a "table of contents" for all listings.
If it's possible to configure this layout to look a bit like old "endless 
paper" (one line with white background, one with green) this would be exactly 
what i'm looking for, but that would be a goody.
If there is a tutorial how to write layouts, a RTFM with a link will be 
enough.
I knwo i can use the LaTeX "listing package", but ERT's are not really 
comfortable.

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz


Re: different headers

2007-02-02 Thread Andreas K .
Bob Lounsbury <[EMAIL PROTECTED]> writes:

> 
> Hello,
> 
> Is there a way to have a different custom heading on the first and
> subsequent pages? What I need is a specific left header on the first page
> and then a different specific left header on all the subsequent pages.
> 
> Thanks,
> Bob Lounsbury
> 

Hi,

Try the fancyhdr package: http://www.tug.org/tex-
archive/help/Catalogue/entries/fancyhdr.html

Regards,
Andreas




[announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Hello LyXTesters,

I published a new version with LyX1.5.0svn from 01-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117_id=12153

Now this know problem should be fixed with the new MiKTeX version that comes together with this 
installer:


Known problem:
- LyX's package and class database is incomplete when you don't have an open 
internet
  connection while LyX is first started. (This is a bug in MiKTeX.)
  Workaround: open an internet connection and reconfigure LyX

This hopefully also kills the textclass not found problem. Due to lack of time I haven't tested it 
yet, so I cannot say if this is now really fixed. (I'll check this the next days.)


!You don't need to reinstall MiKTeX to benefit from the fix, just update MiKTeX using its update 
manager before you update LyX 1.5svn!


---

Here are the other changes:

- LyX 1.5svn from 01-02-2007:
  - you can now enter special characters directly to the document ( "µ", "€", 
etc.)
  - tooltips for menu buttons now appear
  - missing math characters are now displayed
  - nearly all known crashes are fixed
  - updated ExtendedInsets manual (now named "Embedded Objects" in the Help 
menu)

- fixed crash I introduced with the last release when invoking the thesaurus
- updated to JabRef 2.2

Thanks to Gisela Stöhr:
- updated Slovak translation of the installer

---

happy testing and best regards
Uwe

--- disclaimer ---
LyXsvn builds are for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX1.5svn is still in alpha state, that means it is under very
active development. Therefore things can change every day, so
don't use LyX1.5svn for production!



Re: Beamer class and pdf meta-information

2007-02-02 Thread Jean-Pierre Chretien

>>To: lyx-users@lists.lyx.org
>>From: "Paul A. Rubin" <[EMAIL PROTECTED]>
>>Subject: Re: Beamer class and pdf meta-information
>>Date: Thu, 01 Feb 2007 17:37:14 -0500
>>
>>Jean-Pierre Chretien wrote:
>>> Hello,
[...]
>>
>>I don't know enough LaTeX to know how to access the author and title 
>>information after \author and \title have been used, but I do know that 
>>you can put \hypersetup in ERT anywhere in the document -- so if there 
>>is a way to get the author/title information after the title page, you 
>>should be able to pass it to do what you want with one (belated) 
>>invocation of \hypersetup.

This is what I had in mind with the \AtEndDocument command.
I did not know if \hypersetup would work outside the preamble.

I will try again.

Thanks for the info

-- 
Jean-Pierre





Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Olivier Ripoll

Uwe Stöhr wrote:

Hello LyXTesters,

I published a new version with LyX1.5.0svn from 01-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117_id=12153 



Now this know problem should be fixed with the new MiKTeX version that 
comes together with this installer:


Known problem:
- LyX's package and class database is incomplete when you don't have an 
open internet

  connection while LyX is first started. (This is a bug in MiKTeX.)
  Workaround: open an internet connection and reconfigure LyX

This hopefully also kills the textclass not found problem. Due to lack 
of time I haven't tested it yet, so I cannot say if this is now really 
fixed. (I'll check this the next days.)


!You don't need to reinstall MiKTeX to benefit from the fix, just update 
MiKTeX using its update manager before you update LyX 1.5svn!



> [snip]

So here are my first results:

- the accentuated letters do work fine.

- The first ^ in a formula still crashes it with En-international keyboard.

- I can do a pdf with it fine, but the update does not work however 
my pdf viewer is Foxit 2.0, not Acrobat (which I do have installed, but 
not as default pdf reader), so it might be related to this.


- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


- The first time I press ctrl-m to type a formula, 4 identical lines are 
printed in the console saying:

QFontengineWin: GetTextMetrics failed ()
No bad effect though, just this message.

Best regards,

Olivier.



Re: Ho to write my own paragraph layout or how to change "LyX-Code"

2007-02-02 Thread Richard Heck

The documentation for this is at Help>Customization>5.2. If you look at
that and then look at how similar layouts are implemented in the extant
layout classes, you shouldn't have too much trouble. Seeing the line
numbers and the white-green in LyX itself might be a challenge, but
making it possible to use the environments and commands provided by
listings.sty without ERT should not be difficult.

Richard

Roland Schmitz wrote:
> Hi List,
>
> i'm looking for an code layout (environment) for LyX, wich automaticly 
> inserts 
> line numbers and a "table of contents" for all listings.
> If it's possible to configure this layout to look a bit like old "endless 
> paper" (one line with white background, one with green) this would be exactly 
> what i'm looking for, but that would be a goody.
> If there is a tutorial how to write layouts, a RTFM with a link will be 
> enough.
> I knwo i can use the LaTeX "listing package", but ERT's are not really 
> comfortable.
>
>   


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re[2]: Font problems of pdf-files generated on Mac

2007-02-02 Thread Alan G Isaac
On Fri, 2 Feb 2007, Anders Ekberg apparently wrote: 
> The question is how do I embed fonts using LyX/TeX? 

I'm not sure what the LyX way is, but I suppose you can 
glean clues from this:
http://eps.berkeley.edu/www/graduate/thesis/Efile_PDF.html

hth,
Alan Isaac






Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, Olivier Ripoll 
<[EMAIL PROTECTED]> wrote.


[...]
- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.

[...]

I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:


C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Re: different headers

2007-02-02 Thread Bob Lounsbury

On 2/2/07, Andreas K. <[EMAIL PROTECTED]> wrote:


Bob Lounsbury <[EMAIL PROTECTED]> writes:

>
> Hello,
>
> Is there a way to have a different custom heading on the first and
> subsequent pages? What I need is a specific left header on the first
page
> and then a different specific left header on all the subsequent pages.
>
> Thanks,
> Bob Lounsbury
>

Hi,

Try the fancyhdr package: http://www.tug.org/tex-
archive/help/Catalogue/entries/fancyhdr.html

Regards,
Andreas




I've used the fancyhdr package many times, but didn't realize that you could
redefine the default pagestyles like plain, empty. I should have read the
documentation before posting. I guess I got lazy:-). Thanks for the tip.

Bob


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Nick Hopton schrieb:

- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.

[...]

I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:


C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Oh shit! Could you please send me this file please?

I'll have a llok what's going wrong. For me it works.

regards Uwe


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Nick Hopton schrieb:

- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


The problem is that lyx2lyx doesn't convert the files from format 256 to format 258. As workaround 
you can manually change the first line in the LyX-file source.


During yesterday everything worked fine, then I recompiled LyX to prepare a new installer for the 
new MikteX version, and didn't test this.


I'm very sorry and will try to fix this as soon as possible.

regards Uwe


Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, Uwe Stöhr 
<[EMAIL PROTECTED]> wrote.


[...]
 I can't open *any* of my LyX files (all of them worked with the last 
Alpha release) all I get is this message:
 C:/documents and settings/nick hopton/my documents/hrule_test.lyx is 
from a different version of LyX, but the lyx2lyx script failed to 
convert it.


Oh shit! Could you please send me this file please?

I'll have a llok what's going wrong. For me it works.

regards Uwe


Don't worry, Uwe, it's Alpha software and I'm pleased to be testing it. 
Here's a short little file (a letter) below.


Regards,
Nick.

--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>

#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 256
\begin_document
\begin_header
\textclass letter
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "Nick Hopton" 
\end_header

\begin_body

\begin_layout My Address
17 The Ridgeway,
\newline
Caversham,
\newline
Reading,
\newline
RG4 8NX
\end_layout

\begin_layout Telephone
0118 947 7375
\end_layout

\begin_layout Send To Address
Reading Borough Council,
\newline
Traffic Management and Road Safety,
\newline
Civic Centre,
\newline
Reading,
\newline

RG1 7TD.
\end_layout

\begin_layout Opening
Dear Sirs,
\end_layout

\begin_layout Signature
Nick Hopton.
\end_layout

\begin_layout Standard
I am writing to complain about the lack of provision for pedestrians crossing
 the roads at the junction of the Henley Road, Prospect Street, Westbrook
 Road and Peppard Road.
 This is the junction near to the 
\emph on
Prince of Wales
\emph default
 public house, in Caversham.
\end_layout

\begin_layout Standard
The junction is controlled by traffic lights but these do not allow time
 for pedestrians to cross the roads at the junction in safety.
 
\emph on
All
\emph default
 of the crossing-points at the junction pose a serious hazard to pedestrians
 and the one from the Balmore Park steps across the Peppard Road is dangerous
 beyond belief.
 Here the view is very limited and cars travelling up Prospect Street frequently
 speed-up when approaching the lights, often driving through them at high
 speed even though they have turned to red.
\end_layout

\begin_layout Standard
Unless something is done, I am convinced that sooner or later there will
 be a serious and possibly fatal accident at the junction.
 I am not an expert in traffic-management, but I feel that at the very least
 the delay on the lights should be increased to hold the traffic back in
 all directions while pedestrians cross.
 My preferred solution would be the installation of four proper pedestrian-contr
olled crossings.
\end_layout

\begin_layout Closing
Yours faithfully,
\end_layout

\begin_layout cc
Cllr.
 Isobel Ballsdon,
\newline
Cllr.
 Andrew Cumpsty,
\newline
Cllr.
 Jeanette Skeats,
\newline
Cllr.
 Sue Stainthorpe,
\newline
Cllr.
 David Stevens,
\newline
Cllr.
 Steve Waite.
\end_layout

\end_body
\end_document


Re: Culmus Hebrew fonts

2007-02-02 Thread Miki Dovrat
After some more reading in forums I found (and understood, or not) the 
following:

The babel package contains the font encodings and metrics and definitions 
needed to use the Culmus fonts, but not the fonts themselves, which today 
are readily availabe for linux and Windows.

Latex CANNOT have font definitions by encodings, it can only have ONE 
encoding, and ONE font family at any given time, and you can change them, of 
course, but there is no memory for the font used in the encoding. The Hebrew 
font families define font substitutions for the English letters using the 
cmr fonts, so when you define the hebrew font family, your English will be 
in computer modern. It isn't a bad font :).

I think the way to go about it using lyx (and leaving latex's problem as 
they are) is to define the \language english and \language hebrew macros to 
include a font definition as well, if the default fonts aren't used, but 
that is something I don't have the time to begin to learn how to do, and it 
may not be the best solution.

Nikud is nice to have, but it isn't needed in every day life unless you 
write the Bible or childrens' books or poetry, or quote from such sources. 
Lyx already knows how to include vowel points (see Sivan Toledo's page in 
tau.ac.il) - I don't know by which packages, but it works, although 
sometimes the signs are somewhat misplaced. The Nikud package you mentioned 
promises that the vowel points are not misplaced, but I don't know how the 
nikud works in lyx, so I don't know what is the cost of replacing or 
changing lyx  to use this package.

As for the Culmus fonts, they are already incorporated through 
ivritex/babel, so using Nikud won't change anything with respect to that.

Can we have a "feature request" regarding font definitions for different 
encodings in lyx (and not latex)?

Miki


"Dov Feldstern" <[EMAIL PROTECTED]> wrote 
in message news:[EMAIL PROTECTED]
> Hi!
>
> You should also check out this package: http://nikud.berlios.de/ . It is 
> mainly for using nikud, but as a side effect it also uses the culmus 
> fonts. It's also really simple to use --- after the initial setup 
> (explained on the site), all you need to do is use the culmus package 
> instead of babel. I've used it a little bit here and there, but not very 
> much --- I'd be happy to hear how this compares to the solution described 
> below. Please keep us posted!
>
> It seems to me that perhaps LyX should use this package (or something 
> similar) by default, since the default ivritex fonts are not great --- 
> especially when it comes to bold or italics... How would one go about 
> doing something like that? (not that I have time to do that at the moment, 
> but maybe someone else could...?)
>
> Dov
>
> Miki Dovrat wrote:
>> I actually got it working
>>
>> I feel I am stating the obvious to the Hebrew users who already KNOW the 
>> answer and didn't have time to respond.
>>
>> There is a package called "hebfont.sty", written by Boris Lavva, which 
>> has created macros to use all the hebrew fonts (culmus, and the old 
>> default ones) as
>> \DeclareTextFontCommand{\text..}{\fontfamily{somefontname}\selectfont}
>>
>> The package was apparently installed in Windows by the culmus.exe pointed 
>> to by the lyx wiki page on setting up Hebrew. I have seen that this 
>> package is a part of ivritex as well.
>>
>> He lists there all of the following culmus fonts by their names: david, 
>> frank, aharoni, drugulin, yad, ellinia, miriam, nachlieli, as well as the 
>> old fonts which came with previous latex distributions.
>>
>> These \selectfont commands get cancelled every time a language change is 
>> made from Hebrew to English or math, so they are good for a few words, a 
>> paragraph or so, but I found an explanation how to change the default 
>> font of the entire document and other font related commands here:
>> http://www.cl.cam.ac.uk/~rf10/pstex/latexcommands.htm
>>
>> so
>>
>> \renewcommand{\rmdefault}{ellinia} will change all Hebrew in the document 
>> to the culmus font Ellinia (for example).
>>
>> It isn't exactly what I want since it also changes back the English font 
>> to its default cmr (It was lmodren), so I will actually have to look how 
>> to change only the left to right parts.
>>
>> There is much more variety in the culmus fonts, and they look better.
>>
>> Thanks for everyone who replied on and off the group.
>>
>> Miki
>
> 





Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, Uwe Stöhr 
<[EMAIL PROTECTED]> wrote.


[...]
The problem is that lyx2lyx doesn't convert the files from format 256 
to format 258. As workaround you can manually change the first line in 
the LyX-file source.

[...]

Yes, this works here. It crashes when trying to use the default PDF 
viewer, but works fine when I tell LyX to use AcroRd32.


Thanks for all the hard work.

Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Re: LyX 1.5svn PDF testers needed

2007-02-02 Thread Uwe Stöhr

Olivier Ripoll schrieb:

By the way, I noticed that when choosing the Introduction instead of the 
User's Guide, the images were not found.


This should be fixed in the latest installer I just released.
Have you tested the French Introduction or the English version?

regards Uwe


Re: BibTeX and master documents

2007-02-02 Thread Daniel Lohmann


[EMAIL PROTECTED] schrieb:
> To make it easier to insert citatiosn (if you still need to), you can
> insert a bibliography within each child document, but place it inside a
> *comment*. That way LaTeX won't see it, but LyX will know what
> .bib-files to scan for when showing you the available citations.

Hi,

Excellent suggestion. However, it still has the disadvantage that no bib 
references appear if one prints out a single chapter.


I am looking for some way to conditionally embed the bibliography into the 
child documents. If used (printed) "stand alone", a child should have a 
complete bibliography section. If embedded into the master, the 
bibliographies of the children should be ignored.


I have been trying to achieve something like that for a couple of hours, 
but failed - probably because of my lacking knowledge of fundamental LaTex 
concepts. Here is the idea:


1) Define a variable \master in the preamble of the master document before 
including the common preamble:


\def\master
\input{preamble.tex}

2) Define a new \ifnomaster in the common preamble that tests for \master 
being defined or not


% common preamble, input'ed into all children and the master
\newif\ifnomaster
\ifx\master\undefined
  \nomastertrue
\else
  \nomasterfalse
\fi

3) Use ERT boxes to conditionally include the bibliography at the end of 
each child:


??ERT[\ifnomaster]
[BibTeX Generated Bibliography]
ERT[\fi]

This fails so far, probably because my \newif and \def are erroneous.
(It is kind of funny: While there are many LaTeX books and online resources 
that explain how to do fancy things using the xyz package, I always 
struggle when I try to find a good documentation of such basic things.)


Please help :-)

Daniel





On Tue, 30 Jan 2007, Georg Baum wrote:


Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes:

I have just discovered the Insert->File->Child Document option in LyX,

which

is useful for inserting several chapter documents into one master

document.

However, if I use BibTeX references in my chapter documents, they don't
appear correctly in the master output. The best output I have managed so

far

inserts a bibliography at the end of each chapter but the individual
bibliographies include all the references from the entire document (i.e.
from all of the chapters). Is there a way of achieving either 
individual

bibliographies that only include the references cited in their own

chapters

or a single bibliography at the end of the master document?


AFAIK you need some extra packages for the first option, but the 
second one

is easy. Don't include any bibliography in child documents, only include
one in the master.




If you want to enter a new citation in a child you need to open the child
from the master doc, otherwise LyX will not know which .bib file is used.


To make it easier to insert citatiosn (if you still need to), you can 
insert a bibliography within each child document, but place it inside a 
*comment*. That way LaTeX won't see it, but LyX will know what 
.bib-files to scan for when showing you the available citations.


/C



Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Georg Baum
Uwe Stöhr wrote:

> Nick Hopton schrieb:
> 
>>> - I cannot open the documentation, LyX complains about wrong file
>>> versions that lyx2lyx cannot convert.
> 
> The problem is that lyx2lyx doesn't convert the files from format 256 to
> format 258.

Why? Current svn converts these very well.


Georg



Re: BibTeX and master documents

2007-02-02 Thread Richard Heck

Use the technique mentioned here:
http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below.
> 1) Define a variable \master in the preamble of the master document
> before including the common preamble:
Define it to mean something.
> \def\master*{whatever}*
> \input{preamble.tex}
>
Don't need any of this.
> 2) Define a new \ifnomaster in the common preamble that tests for
> \master being defined or not
>
> % common preamble, input'ed into all children and the master
> \newif\ifnomaster
> \ifx\master\undefined
>   \nomastertrue
> \else
>   \nomasterfalse
> \fi
>
> 3) Use ERT boxes to conditionally include the bibliography at the end
> of each child:
>
> ??ERT[*\ifx\master\undefined*]
> [BibTeX Generated Bibliography]
> ERT[\fi]
Richard



-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: BibTeX and master documents

2007-02-02 Thread Daniel Watkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel Lohmann wrote:
> I am looking for some way to conditionally embed the bibliography into
> the child documents. If used (printed) "stand alone", a child should
> have a complete bibliography section. If embedded into the master, the
> bibliographies of the children should be ignored.
While it's a little hacky, you could just move the bibliographies in and
out of the comments as needs be...

Dan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFw3wb3arasOikFPYRAkE8AJ9mbSGRTTeTLwVA6ubc2ItRVWsFGgCePbnb
+poKmwFJnEKL439oAKvA3Zo=
=IQ7L
-END PGP SIGNATURE-



Re: [announce] LyX150svn from 01-02-2007 for Windows

2007-02-02 Thread Uwe Stöhr

Olivier Ripoll schrieb:

- I can do a pdf with it fine, but the update does not work however 
my pdf viewer is Foxit 2.0, not Acrobat (which I do have installed, but 
not as default pdf reader), so it might be related to this.


I'll have a look, The registry settings made ba Adobe Reader are really complicated. Normally it 
should be correctly detected that Foxit is the default.

Now you have in your preferences for the PDF-format the viewer "PDFViewWin7", 
correct?

- The first time I press ctrl-m to type a formula, 4 identical lines are 
printed in the console saying:

QFontengineWin: GetTextMetrics failed ()
No bad effect though, just this message.


Could you please report this to bugzilla?

regards Uwe


LyX 1.3.4-4 does not load, LyX 1.5 svn loads nicely

2007-02-02 Thread John Kane
I just moved to a new (for me) computer ( 1G ram,
hurray. My old one with 512K had died and I was using
a clunker with 256k. Still WindowsXP  but ... 

  I had to install a lot of my personal software
including LyX. I tried to install LyX 1.3.4 and first
got a message that it was timing out trying to
download MiXTex, Ghostscript and ImageMagik so I
manually downloaded and installed them and tried
again.  It worked but LyX refused to load.  

After about 3 trys I went and got 1.5 which loaded
perfectly.  Strange.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


float placement refinements

2007-02-02 Thread Ramon Flores
Hi,

I write documents with a lot of figures, so it is not unusual that LyX (latex) 
have to put more than two figures in one page. (I use tpb in the float 
placement box).
The only figures pages, with two or more figures, are OK for me. But when 
LyX(latex) puts two figures in a page with text the results are not so good. 

IMHO,  in this case, two figures + text, LyX(latex) put the figures too close, 
and the caption of the upper one can be confused with a part of the lowest 
one. Anyway I don't like the result.

Is there any way to say to LyX not to put more that one figure in a page with 
text?.
Or alternatively, is there any way to say to LyX to set apart the two figures?

Cheers
Ramon


Re: [announce] LyX150svn from 01-02-2007 for Windows - lyx2lyx solution

2007-02-02 Thread Uwe Stöhr
- I cannot open the documentation, LyX complains about wrong file 
versions that lyx2lyx cannot convert.


The problem is that lyx2lyx doesn't convert the files from format 256 to 
format 258. As workaround you can manually change the first line in the 
LyX-file source.


(Sometimes everything goes wrong.)
The file "LyX.py" was not updated in my build system for an unknown reason so I shipped an outdated 
version. Please replace the one on your LyX 1.5svn system by the attached one.


Sorry again, I was in a hurry today so that I only tested if the installation process works and LyX 
starts.



ergards Uwe
# This file is part of lyx2lyx
# -*- coding: utf-8 -*-
# Copyright (C) 2002-2004 Dekel Tsur <[EMAIL PROTECTED]>
# Copyright (C) 2002-2006 José Matos <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

from parser_tools import get_value, check_token, find_token,\
 find_tokens, find_end_of
import os.path
import gzip
import sys
import re
import time

import lyx2lyx_version
version_lyx2lyx = lyx2lyx_version.version

default_debug_level = 2


# Private helper functions

def find_end_of_inset(lines, i):
" Find beginning of inset, where lines[i] is included."
return find_end_of(lines, i, "\\begin_inset", "\\end_inset")

def generate_minor_versions(major, last_minor_version):
""" Generate minor versions, using major as prefix and minor
versions from 0 until last_minor_version, plus the generic version.

Example:

  generate_minor_versions("1.2", 4) ->
  [ "1.2", "1.2.0", "1.2.1", "1.2.2", "1.2.3"]
"""
return [major] + [major + ".%d" % i for i in range(last_minor_version + 1)]


# End of helper functions



# Regular expressions used
format_re = re.compile(r"(\d)[\.,]?(\d\d)")
fileformat = re.compile(r"\\lyxformat\s*(\S*)")
original_version = re.compile(r".*?LyX ([\d.]*)")

##
# file format information:
#  file, supported formats, stable release versions
format_relation = [("0_06",[200], generate_minor_versions("0.6" , 4)),
   ("0_08",[210], generate_minor_versions("0.8" , 6) + ["0.7"]),
   ("0_10",[210], generate_minor_versions("0.10", 7) + ["0.9"]),
   ("0_12",[215], generate_minor_versions("0.12", 1) + ["0.11"]),
   ("1_0", [215], generate_minor_versions("1.0" , 4)),
   ("1_1", [215], generate_minor_versions("1.1" , 4)),
   ("1_1_5",   [216], ["1.1.5","1.1.5.1","1.1.5.2","1.1"]),
   ("1_1_6_0", [217], ["1.1.6","1.1.6.1","1.1.6.2","1.1"]),
   ("1_1_6_3", [218], ["1.1.6.3","1.1.6.4","1.1"]),
   ("1_2", [220], generate_minor_versions("1.2" , 4)),
   ("1_3", [221], generate_minor_versions("1.3" , 7)),
   ("1_4", range(222,246), generate_minor_versions("1.4" , 3)),
   ("1_5", range(246,259), generate_minor_versions("1.5" , 0))]


def formats_list():
" Returns a list with supported file formats."
formats = []
for version in format_relation:
for format in version[1]:
if format not in formats:
formats.append(format)
return formats


def get_end_format():
" Returns the more recent file format available."
return format_relation[-1][1][-1]


def get_backend(textclass):
" For _textclass_ returns its backend."
if textclass == "linuxdoc" or textclass == "manpage":
return "linuxdoc"
if textclass[:7] == "docbook":
return "docbook"
return "latex"


def trim_eol(line):
" Remove end of line char(s)."
if line[-2:-1] == '\r':
return line[:-2]
else:
return line[:-1]


def get_encoding(language, inputencoding, format):
if format > 248:
return "utf8"
from lyx2lyx_lang import lang
if inputencoding == "auto" or inputencoding == "default":
return lang[language][3]
if inputencoding == "":
return "latin1"
# python does not know the alias latin9
if inputencoding == "latin9":
return "iso-8859-15"
return inputencoding

##
# Class
#
class LyX_Base:
"""This class carries all the information of the LyX 

Re: float placement refinements

2007-02-02 Thread Uwe Stöhr

Ramon Flores schrieb:

Is there any way to say to LyX not to put more that one figure in a page with 
text?.

Or alternatively, is there any way to say to LyX to set apart the two figures?


This is a wide field to play on. The toys for this are explained in the 
Embedded Insets manual:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/EmbeddedObjects.lyx
which is also available in Spanish:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/es_EmbeddedObjects.lyx

regards Uwe


Re: Comment on Lyx Windows Install: the "textclasses not found" problem

2007-02-02 Thread Paul A. Rubin

Uwe Stöhr wrote:

Paul A. Rubin schrieb:

Does it?  I've installed the "thin" version on my home PC a few times. 
The home PC has a dial-up connection (which is off during 
installation) and MikTeX set to "ask".  It asks, I say no 
(repeatedly), and installation goes fine.


But if you press "yes" -> same problem. And I got complaints from the 
users, that they don't want to have these windows appearing. And people 
often press yes when the don't understand a computer question. I would 
also press "Yes" because nobody knows the problematic.




I see your point.  I thought you meant that the bug occurred before the 
user responded to the pop-up.


/Paul



Re: Ho to write my own paragraph layout or how to change "LyX-Code"

2007-02-02 Thread Steve Litt
On Friday 02 February 2007 06:47, Roland Schmitz wrote:
> Hi List,
>
> i'm looking for an code layout (environment) for LyX, wich automaticly
> inserts line numbers and a "table of contents" for all listings.
> If it's possible to configure this layout to look a bit like old "endless
> paper" (one line with white background, one with green) this would be
> exactly what i'm looking for, but that would be a goody.
> If there is a tutorial how to write layouts, a RTFM with a link will be
> enough.
> I knwo i can use the LaTeX "listing package", but ERT's are not really
> comfortable.

I've written some content on the subject of making your own environments in a 
layout file. Start here:

http://www.troubleshooters.com/linux/lyx/index.htm

If you find a way to establish a line counter and print it on each line, 
please let the list know. I think if you find this, something similar to your 
solution will solve Jeremy Reed's "horizontal rule before every section 
unless at top or bottom of page?" question.

And frankly, I'm very interested myself, in ways that LaTeX can detect and act 
on automatic line and page breaking.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


fancyhdr font size

2007-02-02 Thread Bob Lounsbury

Is there any way to control this?

I've put '\lhead{\small{foo}}' into the preamble, but I would like the
header font to be smaller. So, is there a command lower than '\small'? I've
tried '\smaller' but LyX doesn't like that. Or another way to accomplish
this.

Thanks,
Bob Lounsbury