Re: Tables without oldstylenums

2007-09-06 Thread Niklas Huldén

Helge Hafting wrote:

Niklas Huldén wrote:

Hi!

I have a lengthy (300 p) humanistic manuscript and have enabled 
\usepackage[osf]mathpazo as to get oldstyle figures across the whole 
document. However, I also have 50+ tables and if I've understood 
correctly one should not use oldstylenums except in the main text 
body. Is there any way to exclude these table floats from the generic 
option. I could of course mark every number in every table float as 
math mode but that would seem to be a lengthy operation, as would 
indeed be replacing all numbers in the text with ERT. Any suggestions?

Unfortunately, LyX doesn't have options for turning
oldstyle on/off for pieces of text - only for the whole document.
At least if you use version 1.5.
Various solutions:

1. Use ERT everywhere - but too much work.

2. Redefine the latex tabular environment so that it issues the
   no oldstyle command in addition to everything else it does.
   Then all tables comes out without oldstyle numbers.
   I don't know if this is feasible though.

Version 1.5 may offer a solution if you're willing to
create a custom layout file. Understanding layout files is
some work, but gives these options:

3. Make a charstyle for not oldstyle numbers.  You can then mark
   anything and apply this style - the numbers marked will no
   longer be old-style.  Easier than converting to math, because
   you can (probably) mark whole tables instead of hunting for
   each little number. You can also use this charstyle for numbers
   in uppercase headings. (Oldstyle numbers are  lowercase,
   non-oldstyle numbers are uppercase numbers.
   So a number in uppercase text should not be oldstyle.)

4. For older versions of LyX, make a paragraph style (instead of a
   charstyle) for standard, but not oldstyle numbers.
   Very much like alternative 3, except that it always works on
   whole paragraphs.  But a table is usually in a paragraph
   of its own anyway, so not much of a problem here.
   You can then change the paragraph type for each table.

Helge Hafting



Thank You for all the suggestions! I think I will stick with the 
oldstyle figures in the tables also for now. If someone complains about 
it (which I seriously doubt), I can return to your suggestions.


Many thanks!

Niklas H.


Apacite and long URLs

2007-09-06 Thread Roberto Gorjão

Hi,

As you know, long URLs, in bibliographies styled with apacite, are not 
broken and are printed on a single line that gets as long as needed, 
even if it goes off the sheet limits. This problem is mentioned in 
apacite's manual, but no solution is suggested. Is there any solution yet?


Thanks!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Old Style Figures

2007-09-06 Thread Helge Hafting

Hartmut Haase wrote:

Hi,
can someone please send me a .lyx-file where I can see how to use Old Style 
Figures?
  

Here is an example file with old and new style numbers.
Use view-dvi or view-PDF to see the effect.

Helge Hafting


oldstyle.lyx
Description: application/lyx


Re: Tables without oldstylenums

2007-09-06 Thread Helge Hafting

Niklas Huldén wrote:


Thank You for all the suggestions! I think I will stick with the 
oldstyle figures in the tables also for now. If someone complains 
about it (which I seriously doubt), I can return to your suggestions.

Another suggestion:

Put a TeX box immediately in front of each table, containing the command
\newstylenums{
And immediately after the table, a TeX box containing just a single
}


This works for me. All numbers in the entire table becomes new style.
This may be some work for an entire book, but it sure is easier
than using latex commands for each and every little number.

Everything between two such boxes is typeset newstyle, so
if there are several tables and a little text (without numbers),
consider saving work by enclosing the whole group with just
the two boxes.

I have not tested what happens if the tables are inside floats,
maybe you have to use \newstylenums in each float then.

Helge Hafting



Re: Merge documentation into one doc!

2007-09-06 Thread Helge Hafting

Martin A. Hansen wrote:

We have discussed this before ...

I wanted to find out how to adjust appendixes to replace A, B, C with
Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
another way to do what I wanted. So I headed to the docs ... Horrible
experience! I had to open 6, six, S-I-X different documents to search for
the information I wanted (not counting the introduction)!

How about a little merging - LyX should be pretty good at that, yes?
  

If you want a single searchable help document, just
open them all, copy  paste them into a new myhelp.lyx.

From then on, just open myhelp.lyx whenever you want such a search.

Helge Hafting


Re: What is this? latex error iso-8859-7.def

2007-09-06 Thread Jean-Marc Lasgouttes
Anthony Campbell [EMAIL PROTECTED] writes:

 Possibly related: I posted a query here a week or so ago but had no
 replies. When I run lyx I get a message saying: Locale en_GB could not
 be set. This is because I use en_GB.UTF8. I don't see anyway to tell
 lyx to use a different locale but in my case it doesn't seem to have any
 adverse effects.

Concerning locales, the situation will be different (hopefully much
better) with lyx 1.5.2. Please report at this time if you have
locale-related problems.

JMarc


Re: Apacite and long URLs

2007-09-06 Thread obregonmateo
In the preamble:

\usepackage{url}


Then, wherever you have your web link:

\url{http://www..}

Mateo.

On Thursday 06 September 2007 08:22, Roberto Gorjão wrote:
 Hi,

 As you know, long URLs, in bibliographies styled with apacite, are not
 broken and are printed on a single line that gets as long as needed,
 even if it goes off the sheet limits. This problem is mentioned in
 apacite's manual, but no solution is suggested. Is there any solution yet?

 Thanks!

 Roberto


Re: Merge documentation into one doc!

2007-09-06 Thread Uwe Stöhr

Martin A. Hansen schrieb:


I wanted to find out how to adjust appendixes to replace A, B, C with
Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
another way to do what I wanted.


The appendix handling has not changed between LyX 1.4.x and 1.5.x.
The attached LyX-file shows you how to get what you want.


So I headed to the docs ... Horrible
experience! I had to open 6, six, S-I-X different documents to search for
the information I wanted (not counting the introduction)!


Then you do something wrong. Start with the Userguide. As this is a special topic not everybody is 
interested in, check the Extended manual. If it also not explained there, you have to aks on the list.
The Customization manual is about customizing LyX, not the document output. The EmbeddedObjects 
manual is like the Extended manual, but specialized on Floats, Figures, Tables, Boxes, Listings, and 
External material - as said in the title of this document.


LyX 1.5.2 will come with a completely revised and in many parts rewritten Userguide that guides you 
in many cases to the right manual for special topics.



How about a little merging - LyX should be pretty good at that, yes?


I think that 140 A4 pages  for the userGuide are enough. The EmbeddedObjects manual is about 90 
pages, the same for the Extended and Customization manual.

And note that it is impossible to explain every LaTeX-hook in the docs!

regards Uwe


newfile4.lyx
Description: application/lyx


Re: Problem with hyperref.

2007-09-06 Thread Uwe Stöhr

Martin A. Hansen schrieb:

 \usepackage{hypcol}

You don't need this package for general hyperlinks. For an example hyperref setup, have a look at 
the preamble of the EmbeddedObjects manual.



If an URL contains an anchor # then something inside LyX breaks when using
hyperref!


The upcoming new UserGuide (for LyX 1.5.2) contains this information in the URL 
section.

regards Uwe


Re: Miktex questions

2007-09-06 Thread Uwe Stöhr

Hong Son Nghiem schrieb:


I have lyx 1.5.1 installed on a windows XP pro SP2 machine.

 All work fine except when I tried to update or install a Miktex
 package on the fly. There's always an error messge failure
 when receiving data from the peers.

Log in as administrator and check if install missing packages on the fly is enabled in MiKTeX's 
settings. Then start MiKTeX's update program and try out different remote package repository.
(For the alternative LyX Windows installer the MiKTeX setup is done automatically and the repository 
ftp.tu-chemnitz.de is predefined.)


regards Uwe


Re: Figure Wrap won't print

2007-09-06 Thread Hans Kunkell
I have also had some problems with figure wraps. One reason for the 
figure to not show up is that it can be situated too close to a page 
break. It's not a good way but this issue can be solved by manually 
inserting a page break.


Hans Kunkell

Helge Hafting skrev:

Lance W. Haverkamp wrote:

on 09/04/2007 03:53 AM Helge Hafting said the following:
 

Lance W. Haverkamp wrote:
   

In both 1.3.7  1.5.1 I've been unable to get a Figure Float Wrap to
appear in either DVI or  a print-out.  It's visible to me--I can see
both the graphic  the text in LyX.
  


 

What you can do is:
Try making the wrapped stuff smaller. Both narrower and
shorter.  This usually helps.  Sometimes making it wider
helps too. With less text beside your wrapped stuff,
you push the next (sub)section further down and away
from the wrapped region.

Make sure that the only stuff that will get next to the
wrap is ordinary text.



OK...what am I supposed to be changing the size of?  The only things I
see are config windows called Graphics OR Text Wrap Settings.
I have changed all kinds of things in both those windows and see
*absolutely no change whatsoever* in the LyX window appearance of the
float box, graphic nor text (using 1.5.1).  Is something suppose to be
changing that I can see?  The red (float?) box automatically goes full
(column?) width and I see no way to adjust that.
  

You don't see a change inside LyX when adjusting the width,
but is some cases you may succeed in producing a
wrapped float. I.e. you'll get something useful when
printing or doing view-dvi.

Now, perhaps the menu should read
insert-float-text wrap float(broken)
For this thing simply don't work well, and I don't think there
is anything we can do with that either.



Also, the text always starts at the bottom of the graphic--like
justified to bottom.  How do I get the text to start at the top of the
graphic so it actually has something to wrap around?
  

You will not see the wrapping inside LyX, only in the output.
LyX is not wysiwyg, it is wysiwym.  (See the intro for an explanation.)

Helge Hafting



minimal contents for .layout file

2007-09-06 Thread Tariq Abdullah
Hi All,

Can someone describe the contents and purpose of layout file in Lyx.
Why is it necessary to creat/include layout file in addition to .cls file
in Lyx?
It will be of great help if someone can describe the minimal contents of
the layout file in order to use a new class file with Lyx. I have already
checked chapter 5 of Lyx customization manual. This chapter provides
terribly long details about the layout file.
Please don't refer me to that chapter. -:)



Regards,
Tariq Abdullah




   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

Re: minimal contents for .layout file

2007-09-06 Thread Helge Hafting

Tariq Abdullah wrote:

Hi All,

Can someone describe the contents and purpose of layout file in Lyx.
  

Try Help-Customization


Why is it necessary to creat/include layout file in addition to .cls file
in Lyx?
  

Because LyX doesn't understand .cls (or .sty) files. LyX can
tell latex to use some .cls file, but LyX doesn't
understand what the .cls file is for or what opportunities
it offers. This because LyX don't understand all of LaTeX.

Basically, a .layout file is for LyX what a .cls or .sty file is for LaTeX.

A .layout file tells LyX:
* about some document settings  defaults
* about paragraph types
* about character styles
* How these styles should look on the screen, and what latex
  commands must be used to print them.
 
Note that the layout on screen is quite limited, but there are

almost no limits as to what latex code you can invoke.


It will be of great help if someone can describe the minimal contents of
the layout file in order to use a new class file with Lyx. I have already
checked chapter 5 of Lyx customization manual. This chapter provides
terribly long details about the layout file.
Please don't refer me to that chapter. -:)

Well, layout files aren't easy stuff so if you want to understand,
that file is useful!

Still, a minimal .layout can be small because it can build on
existing layouts. An example that add 3-column paragraphs
to the article class:
--
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article (with triplecolumns)}

#Test style, adds 3-column paragraphs to the article class.
#The format version
Format 2

#Documents will be articles, with an add-on
Input article.layout

#Let's override a default - we want fancy pages
PageStyle fancy

#The new text style
Style threecol
   #Mostly like standard text
   CopyStyle Standard
   #Implemented with an environment (not a command)
   LatexType Environment
   #The name of this environment
   LatexName threecol
   #Preamble latexcode necessary if this paragraph style
   #gets used in the document
   Preamble
   \usepackage{multicol}
   \newenvironment{threecol}
   {\begin{multicols}{3}}
   {\end{multicols}}
   EndPreamble
End

-

Of course a truly minimal file can be even smaller, but then
it won't do anything new.  For example:

--
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article (with nothing extra)}

#Test style, adds 3-column paragraphs to the article class.
#The format version
Format 2

#This will be just like article:
Input article.layout
-

Making a .layout file for an entirely new document class
isn't much harder than the simple example, but it will
of course be much more work. You have to write
entries for every paragraph type or character style
the new class have.

Helge Hafting


Re: What is this? latex error iso-8859-7.def

2007-09-06 Thread Declan O'Byrne
Thanks for all of these comments. Actually, I was able to resolve the
issue by the inelegant means of changing 2 or 3 Greek words in the
text back to transliterations. This is a temporary measure, but it
makes the document work again. What wasn't clear to me from the
message was that it related to a Greek character set   I'll come
back to the question of getting Greek in (I'm sure its very simple) at
a later point.
Thanks again,

Declan


where can I find the examples mentioned in the tutorial

2007-09-06 Thread Stefan Tiedje
The examples mentioned in the tutorial are simply not present. I found 
an examples folder but now example files in there. They seem to miss in 
the installer of 1.5.1 for Mac UB.


Where can I get them, can't wait to start my Lyx experience...

Stefan

--
Stefan Tiedjex---
--_---|--
--(_|_ |\-|-()---
-- _|_)|-()--
--()www.ccmix.com




Fwd: Floating problems with image boxes

2007-09-06 Thread Manveru
Hi Users,
I've just started my master thesis and I use LyX 1.5.1 for this, but of
course the final effect is *rendered* by pdflatex. My current problem with
this document is that in final pdf I have strange large margins (as you can
see in attached images) in floating boxes and sometimes picture goes outside
margins (as with jazelle and  power.org logo).

Here is my preamble for this document:
\usepackage{fix-cm}

\usepackage{type1ec}

\usepackage[T1]{fontenc}

 \usepackage[pdftex,man,opt]{wmstitle}

\usepackage[bookmarks, bookmarksopen=true, bookmarksnumbered=true,
colorlinks=true, pdftitle={System sterowania robotem mobilnym},
pdfauthor={Michał Fita}]{hyperref}

\usepackage[protrusion=true,expansion=true, tracking=true, spacing=true,
kerning=true, selected=true, babel=true]{microtype}


Configuration for the floating box (according to wrongpic01.jpg):
width: 34 / units: mm / position: right
Configuration for the image itself:
width: 30 mm / show in lyx: 30%

Configuration for the floating box (according to wrongpic02.jpg):
width: 3 / units: cm / position: right
Configuration for the image itself:
scale: 50% / show in lyx: 50%

Has anyone know what could be responsible for such situation? Are there any
useful options for float package, which I can use to adjust margins and
positions of images in float boxes?

Thanks in advance for any hints!
-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl



-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl



-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl
attachment: wrongpic01.jpgattachment: wrongpic02.jpg

Re: Merge documentation into one doc!

2007-09-06 Thread Bob Lounsbury
On 9/6/07, Uwe Stöhr [EMAIL PROTECTED] wrote:
 Martin A. Hansen schrieb:

  I wanted to find out how to adjust appendixes to replace A, B, C with
  Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
  ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
  another way to do what I wanted.

 The appendix handling has not changed between LyX 1.4.x and 1.5.x.
 The attached LyX-file shows you how to get what you want.

 regards Uwe

Adding a toc to your example Uwe makes the section title overlap the
section text inside the toc. I think the example I posted using the
appendix package is a better solution, unless you have some nice way
of improving the toc.

Cheers,
Bob


Re: Fwd: Floating problems with image boxes

2007-09-06 Thread Uwe Stöhr

Manveru schrieb:

My current problem 
with this document is that in final pdf I have strange large margins (as 
you can see in attached images) in floating boxes and sometimes 
picture goes outside margins (as with jazelle and  power.org 
http://power.org/ logo).


When you you send a SMALL version of you LyX-file together with the two images, 
I can have a look.

regards Uwe


Re: where can I find the examples mentioned in the tutorial

2007-09-06 Thread Uwe Stöhr

Stefan Tiedje schrieb:
The examples mentioned in the tutorial are simply not present. I found 
an examples folder but now example files in there. They seem to miss in 
the installer of 1.5.1 for Mac UB.


Could you please this also at bugzilla.lyx.org?

You can download the examples from here:

http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_5_X/lib/examples

regards Uwe


Re: minimal contents for .layout file

2007-09-06 Thread Steve Litt
On Thursday 06 September 2007 06:36, Tariq Abdullah wrote:
 Hi All,

 Can someone describe the contents and purpose of layout file in Lyx.
 Why is it necessary to creat/include layout file in addition to .cls file
 in Lyx?
 It will be of great help if someone can describe the minimal contents of
 the layout file in order to use a new class file with Lyx. I have already
 checked chapter 5 of Lyx customization manual. This chapter provides
 terribly long details about the layout file.
 Please don't refer me to that chapter. -:)

http://www.troubleshooters.com/lpm/200210/200210.htm#_MakingYourOwnLayout

That article has a 3 line hello world layout file, plus a lot of explanation 
that might help.

SteveT

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


a way of building macros?

2007-09-06 Thread Roberto Gorjão

Hi,

Is there any way of building macros in LyX? As we do in Open Office, 
macros that ease the process of inserting frequent strings of data, for 
instance. Ideally, I would like to be able to build a new toolbar with 
buttons to activate different macros... Is this possible?


Best regards,

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: where can I find the examples mentioned in the tutorial

2007-09-06 Thread Bennett Helm

On Sep 6, 2007, at 10:16 AM, Uwe Stöhr wrote:


Stefan Tiedje schrieb:
The examples mentioned in the tutorial are simply not present. I  
found an examples folder but now example files in there. They seem  
to miss in the installer of 1.5.1 for Mac UB.


Could you please this also at bugzilla.lyx.org?

You can download the examples from here:

http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_5_X/lib/ 
examples


The problem on Mac is that all example files, templates, etc. are  
hidden within the LyX.app bundle. (They can be accessed if you  
control-click on LyX.app and select Show Package Contents; they're  
at LyX.app/Contents/Resources/examples.) Right now, the LyX-Installer  
will copy the default templates to ~/Library/Application Support/ 
LyX-1.5/templates/default so that they can be accessed easily. I've  
only done that for templates because in LyX  Preferences  Paths,  
there's a preference settings for the template path (but not, e.g.,  
for examples).


It wouldn't be difficult to have the LyX-Installer copy examples over  
to the LyX user's directory. But I'm hoping to find a better solution  
that doesn't require a separate installer.


The other issue, of course, is providing clear documentation for  
where these things are.


Bennett

Re: a way of building macros?

2007-09-06 Thread Andre Poenitz
On Thu, Sep 06, 2007 at 06:24:29PM +0100, Roberto Gorjão wrote:
 Hi,
 
 Is there any way of building macros in LyX? As we do in Open Office, 
 macros that ease the process of inserting frequent strings of data, for 
 instance. Ideally, I would like to be able to build a new toolbar with 
 buttons to activate different macros... Is this possible?

Sort of. Have a look at /lib/bin/*, especially the use of 'repeat'
and 'command-sequence'.

Andre'


Re: a way of building macros?

2007-09-06 Thread roberto
Hi Andre,

I have not a clue about where to begin looking for /lib/bin/*. Could you 
be
more specific? I'm on Win XP.

I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I didn't
understand what was meant by .bind-file and how to use it... I guess I'll try
again tomorrow -- I'm getting too tired today.

Thanks!

Roberto
 
--
On Thu Sep  6 11:26 , Andre Poenitz [EMAIL PROTECTED] sent:

Sort of. Have a look at /lib/bin/*, especially the use of 'repeat'
and 'command-sequence'.

Andre'





Re: a way of building macros?

2007-09-06 Thread Richard Heck

[EMAIL PROTECTED] wrote:

Hi Andre,

I have not a clue about where to begin looking for /lib/bin/*. Could you 
be
more specific? I'm on Win XP.
  

Probably somewhere like c:\Program Files\LyX\..., but others will know.

I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I didn't
understand what was meant by .bind-file and how to use it... I guess I'll try
again tomorrow -- I'm getting too tired today.
  

Can someone on Windows say where the .bind files are?

Once you know that, have a look at these files: The map keys to LyX 
commands or command sequences. They are completely customizable, and you 
can try out new commands and command-sequences in the `mini-buffer' 
before modifying the bind files.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/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: a way of building macros?

2007-09-06 Thread Paul A. Rubin

Richard Heck wrote:

[EMAIL PROTECTED] wrote:

Hi Andre,

I have not a clue about where to begin looking for /lib/bin/*. 
Could you be

more specific? I'm on Win XP.
  



Probably somewhere like c:\Program Files\LyX\..., but others will know.


No such beast under Windows.  There's a bin directory but no lib 
directory (at least in the distributed application).  I'm guessing Andre 
was referring to source code, but I'm not sure where to find it.



I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I 
didn't
understand what was meant by .bind-file and how to use it... I guess 
I'll try

again tomorrow -- I'm getting too tired today.
  



Can someone on Windows say where the .bind files are?


The ones that ship with LyX are in lyxroot\Resources\bind, where 
lyxroot is usually C:\Program Files\LyX15 (give or take).  There are 
subdirectories for a few non-English variants.  Bind files added or 
edited by the user go in home\bind, where home is usually 
C:\Documents and Settings\your login id\Application Data\lyx15. 
Help-About will identify both lyxroot (labeled Library directory) 
and home (labeled User directory).  It's important to put the edited 
files there, lest the changes be lost when a new version of LyX is 
installed.


Once you know that, have a look at these files: The map keys to LyX 
commands or command sequences. They are completely customizable, and you 
can try out new commands and command-sequences in the `mini-buffer' 
before modifying the bind files.


One thing to keep in mind is that bind files can (and do) load other 
bind files.  For instance, at the bottom of cua.bind, you'll find 
\bind_file commands that load other files.  The reason I mention this is 
that when you bind keys to a macro, you'll obviously want to try to pick 
an unused key combination -- but what's unused in the file you're 
editing may be used in a file it subsequently loads, which would 
overwrite your definition.


The syntax is pretty simple, and is explained on the wiki: 
http://wiki.lyx.org/Tips/KeyboardShortcuts.  Command sequences are also 
explained on the wiki (http://wiki.lyx.org/Tips/CommandSequences), and 
you can find a list of LFUNS (the functions you can use in command 
sequences) as well (http://wiki.lyx.org/LyX/LyxFunctions).


One other thing to keep in mind:  separate from the bind file(s) you are 
using, some key combinations are bound to menu actions (see stdmenus.inc 
in the ...\Resources\ui folder).  AFAIK, if you bind a macro to a key 
combination already in use in a menu, the menu version trumps your new 
binding, unless you edit stdmenus.inc to change the key bound to the menu.


/Paul



Re: Fwd: Floating problems with image boxes

2007-09-06 Thread Uwe Stöhr

Manveru schrieb:


I am sending you archive with my images and LyX file. Maybe some problems
are cause by the mwbook document class or wmstitle.sty??


(Ehm, I said SMALL file.)
The problem was that you indented the images. Floats contains paragraphs, therefore every image is 
in its own paragraph. You indent every paragraph, therefore also the images. Just remove the indent 
checkbox in the paragraph dialog for the images and it works.

See the attached file.

---

You have in your preamble this entry:
\usepackage[T1]{fontenc}
This is already set to the preamble by LyX, you don't need to take care of this.

regards Uwe


mgr.lyx
Description: application/lyx


lyx1.5 on PPC Mac

2007-09-06 Thread Peter Drummond

Hi -

I have serious problems using LyX 1.5 on a PPC Mac, with OSX10.4,  from 
the downloaded binaries. This occurs even after I re-installed my 
operating system, MacTex and LyX from scratch.


These are as follows;

1) The export menu doesn't list the usual options. It only gives options 
of `rtf' or `custom', which in turn generates a menu for inserting 
user-defined commands. I have no idea how to use this. There are no 
defaults, and I don't know how to get pdf or ps or latex output. This is 
a serious problem, as I need pdf and latex outputs every time I use Lyx.


2) Once a Lyx file is saved, it is not compatible with previous Lyx 
versions. Hence, one cannot simply save the lyx file, then re-open it 
with an older version of the program and export from there. In the PPC 
version of Lyx1.5, the export menu gives no options for export to older 
lyx versions either, so even this is blocked.


3) There is recent version of Lyx1.4.5.1 which can read the LyX1.5 
files, but this reports installation errors when I  install it from the 
installer program. This can handle latex export but reports other errors 
(from font issues) on attempting a pdf export. It is not a longterm 
solution, although at least it has a working export menu.


4) Strangely enough, the font errors don't occur when I simply use latex 
directly. Also, they didn't occur in earlier LyX releases, so it seems 
like a problem with paths.


5) In PPC Lyx1.5, I find that the usual default options of numerical 
bibliography style cannot be saved. Instead, one must use natbib. But 
this appears to have a bug, which means that in the pdf preview some 
references are numerical, some have error mesages about missing  
authors. The final result is essentially unusable.


6) So in summary, to use LyX1.5 PPC I have to a) edit inside LyX1.5.1 
b)save the LyX1.5 file c)open with Lyx 1.4.5.1 d) export latex e) fix 
the bibliography errors f) compile latex to pdf.


Any help would be greatly appreciated! Note, these problems appear 
unique to PPC Lyx1.5. binaries, and did not occur with most earlier 
releases. There are fewer problems with Mac Intel binaries.


Yours, Peter Drummond.



Re: Tables without oldstylenums

2007-09-06 Thread Niklas Huldén

Helge Hafting wrote:

Niklas Huldén wrote:

Hi!

I have a lengthy (300 p) humanistic manuscript and have enabled 
\usepackage[osf]mathpazo as to get oldstyle figures across the whole 
document. However, I also have 50+ tables and if I've understood 
correctly one should not use oldstylenums except in the main text 
body. Is there any way to exclude these table floats from the generic 
option. I could of course mark every number in every table float as 
math mode but that would seem to be a lengthy operation, as would 
indeed be replacing all numbers in the text with ERT. Any suggestions?

Unfortunately, LyX doesn't have options for turning
oldstyle on/off for pieces of text - only for the whole document.
At least if you use version 1.5.
Various solutions:

1. Use ERT everywhere - but too much work.

2. Redefine the latex tabular environment so that it issues the
   no oldstyle command in addition to everything else it does.
   Then all tables comes out without oldstyle numbers.
   I don't know if this is feasible though.

Version 1.5 may offer a solution if you're willing to
create a custom layout file. Understanding layout files is
some work, but gives these options:

3. Make a charstyle for not oldstyle numbers.  You can then mark
   anything and apply this style - the numbers marked will no
   longer be old-style.  Easier than converting to math, because
   you can (probably) mark whole tables instead of hunting for
   each little number. You can also use this charstyle for numbers
   in uppercase headings. (Oldstyle numbers are  lowercase,
   non-oldstyle numbers are uppercase numbers.
   So a number in uppercase text should not be oldstyle.)

4. For older versions of LyX, make a paragraph style (instead of a
   charstyle) for standard, but not oldstyle numbers.
   Very much like alternative 3, except that it always works on
   whole paragraphs.  But a table is usually in a paragraph
   of its own anyway, so not much of a problem here.
   You can then change the paragraph type for each table.

Helge Hafting



Thank You for all the suggestions! I think I will stick with the 
oldstyle figures in the tables also for now. If someone complains about 
it (which I seriously doubt), I can return to your suggestions.


Many thanks!

Niklas H.


Apacite and long URLs

2007-09-06 Thread Roberto Gorjão

Hi,

As you know, long URLs, in bibliographies styled with apacite, are not 
broken and are printed on a single line that gets as long as needed, 
even if it goes off the sheet limits. This problem is mentioned in 
apacite's manual, but no solution is suggested. Is there any solution yet?


Thanks!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Old Style Figures

2007-09-06 Thread Helge Hafting

Hartmut Haase wrote:

Hi,
can someone please send me a .lyx-file where I can see how to use Old Style 
Figures?
  

Here is an example file with old and new style numbers.
Use view-dvi or view-PDF to see the effect.

Helge Hafting


oldstyle.lyx
Description: application/lyx


Re: Tables without oldstylenums

2007-09-06 Thread Helge Hafting

Niklas Huldén wrote:


Thank You for all the suggestions! I think I will stick with the 
oldstyle figures in the tables also for now. If someone complains 
about it (which I seriously doubt), I can return to your suggestions.

Another suggestion:

Put a TeX box immediately in front of each table, containing the command
\newstylenums{
And immediately after the table, a TeX box containing just a single
}


This works for me. All numbers in the entire table becomes new style.
This may be some work for an entire book, but it sure is easier
than using latex commands for each and every little number.

Everything between two such boxes is typeset newstyle, so
if there are several tables and a little text (without numbers),
consider saving work by enclosing the whole group with just
the two boxes.

I have not tested what happens if the tables are inside floats,
maybe you have to use \newstylenums in each float then.

Helge Hafting



Re: Merge documentation into one doc!

2007-09-06 Thread Helge Hafting

Martin A. Hansen wrote:

We have discussed this before ...

I wanted to find out how to adjust appendixes to replace A, B, C with
Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
another way to do what I wanted. So I headed to the docs ... Horrible
experience! I had to open 6, six, S-I-X different documents to search for
the information I wanted (not counting the introduction)!

How about a little merging - LyX should be pretty good at that, yes?
  

If you want a single searchable help document, just
open them all, copy  paste them into a new myhelp.lyx.

From then on, just open myhelp.lyx whenever you want such a search.

Helge Hafting


Re: What is this? latex error iso-8859-7.def

2007-09-06 Thread Jean-Marc Lasgouttes
Anthony Campbell [EMAIL PROTECTED] writes:

 Possibly related: I posted a query here a week or so ago but had no
 replies. When I run lyx I get a message saying: Locale en_GB could not
 be set. This is because I use en_GB.UTF8. I don't see anyway to tell
 lyx to use a different locale but in my case it doesn't seem to have any
 adverse effects.

Concerning locales, the situation will be different (hopefully much
better) with lyx 1.5.2. Please report at this time if you have
locale-related problems.

JMarc


Re: Apacite and long URLs

2007-09-06 Thread obregonmateo
In the preamble:

\usepackage{url}


Then, wherever you have your web link:

\url{http://www..}

Mateo.

On Thursday 06 September 2007 08:22, Roberto Gorjão wrote:
 Hi,

 As you know, long URLs, in bibliographies styled with apacite, are not
 broken and are printed on a single line that gets as long as needed,
 even if it goes off the sheet limits. This problem is mentioned in
 apacite's manual, but no solution is suggested. Is there any solution yet?

 Thanks!

 Roberto


Re: Merge documentation into one doc!

2007-09-06 Thread Uwe Stöhr

Martin A. Hansen schrieb:


I wanted to find out how to adjust appendixes to replace A, B, C with
Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
another way to do what I wanted.


The appendix handling has not changed between LyX 1.4.x and 1.5.x.
The attached LyX-file shows you how to get what you want.


So I headed to the docs ... Horrible
experience! I had to open 6, six, S-I-X different documents to search for
the information I wanted (not counting the introduction)!


Then you do something wrong. Start with the Userguide. As this is a special topic not everybody is 
interested in, check the Extended manual. If it also not explained there, you have to aks on the list.
The Customization manual is about customizing LyX, not the document output. The EmbeddedObjects 
manual is like the Extended manual, but specialized on Floats, Figures, Tables, Boxes, Listings, and 
External material - as said in the title of this document.


LyX 1.5.2 will come with a completely revised and in many parts rewritten Userguide that guides you 
in many cases to the right manual for special topics.



How about a little merging - LyX should be pretty good at that, yes?


I think that 140 A4 pages  for the userGuide are enough. The EmbeddedObjects manual is about 90 
pages, the same for the Extended and Customization manual.

And note that it is impossible to explain every LaTeX-hook in the docs!

regards Uwe


newfile4.lyx
Description: application/lyx


Re: Problem with hyperref.

2007-09-06 Thread Uwe Stöhr

Martin A. Hansen schrieb:

 \usepackage{hypcol}

You don't need this package for general hyperlinks. For an example hyperref setup, have a look at 
the preamble of the EmbeddedObjects manual.



If an URL contains an anchor # then something inside LyX breaks when using
hyperref!


The upcoming new UserGuide (for LyX 1.5.2) contains this information in the URL 
section.

regards Uwe


Re: Miktex questions

2007-09-06 Thread Uwe Stöhr

Hong Son Nghiem schrieb:


I have lyx 1.5.1 installed on a windows XP pro SP2 machine.

 All work fine except when I tried to update or install a Miktex
 package on the fly. There's always an error messge failure
 when receiving data from the peers.

Log in as administrator and check if install missing packages on the fly is enabled in MiKTeX's 
settings. Then start MiKTeX's update program and try out different remote package repository.
(For the alternative LyX Windows installer the MiKTeX setup is done automatically and the repository 
ftp.tu-chemnitz.de is predefined.)


regards Uwe


Re: Figure Wrap won't print

2007-09-06 Thread Hans Kunkell
I have also had some problems with figure wraps. One reason for the 
figure to not show up is that it can be situated too close to a page 
break. It's not a good way but this issue can be solved by manually 
inserting a page break.


Hans Kunkell

Helge Hafting skrev:

Lance W. Haverkamp wrote:

on 09/04/2007 03:53 AM Helge Hafting said the following:
 

Lance W. Haverkamp wrote:
   

In both 1.3.7  1.5.1 I've been unable to get a Figure Float Wrap to
appear in either DVI or  a print-out.  It's visible to me--I can see
both the graphic  the text in LyX.
  


 

What you can do is:
Try making the wrapped stuff smaller. Both narrower and
shorter.  This usually helps.  Sometimes making it wider
helps too. With less text beside your wrapped stuff,
you push the next (sub)section further down and away
from the wrapped region.

Make sure that the only stuff that will get next to the
wrap is ordinary text.



OK...what am I supposed to be changing the size of?  The only things I
see are config windows called Graphics OR Text Wrap Settings.
I have changed all kinds of things in both those windows and see
*absolutely no change whatsoever* in the LyX window appearance of the
float box, graphic nor text (using 1.5.1).  Is something suppose to be
changing that I can see?  The red (float?) box automatically goes full
(column?) width and I see no way to adjust that.
  

You don't see a change inside LyX when adjusting the width,
but is some cases you may succeed in producing a
wrapped float. I.e. you'll get something useful when
printing or doing view-dvi.

Now, perhaps the menu should read
insert-float-text wrap float(broken)
For this thing simply don't work well, and I don't think there
is anything we can do with that either.



Also, the text always starts at the bottom of the graphic--like
justified to bottom.  How do I get the text to start at the top of the
graphic so it actually has something to wrap around?
  

You will not see the wrapping inside LyX, only in the output.
LyX is not wysiwyg, it is wysiwym.  (See the intro for an explanation.)

Helge Hafting



minimal contents for .layout file

2007-09-06 Thread Tariq Abdullah
Hi All,

Can someone describe the contents and purpose of layout file in Lyx.
Why is it necessary to creat/include layout file in addition to .cls file
in Lyx?
It will be of great help if someone can describe the minimal contents of
the layout file in order to use a new class file with Lyx. I have already
checked chapter 5 of Lyx customization manual. This chapter provides
terribly long details about the layout file.
Please don't refer me to that chapter. -:)



Regards,
Tariq Abdullah




   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

Re: minimal contents for .layout file

2007-09-06 Thread Helge Hafting

Tariq Abdullah wrote:

Hi All,

Can someone describe the contents and purpose of layout file in Lyx.
  

Try Help-Customization


Why is it necessary to creat/include layout file in addition to .cls file
in Lyx?
  

Because LyX doesn't understand .cls (or .sty) files. LyX can
tell latex to use some .cls file, but LyX doesn't
understand what the .cls file is for or what opportunities
it offers. This because LyX don't understand all of LaTeX.

Basically, a .layout file is for LyX what a .cls or .sty file is for LaTeX.

A .layout file tells LyX:
* about some document settings  defaults
* about paragraph types
* about character styles
* How these styles should look on the screen, and what latex
  commands must be used to print them.
 
Note that the layout on screen is quite limited, but there are

almost no limits as to what latex code you can invoke.


It will be of great help if someone can describe the minimal contents of
the layout file in order to use a new class file with Lyx. I have already
checked chapter 5 of Lyx customization manual. This chapter provides
terribly long details about the layout file.
Please don't refer me to that chapter. -:)

Well, layout files aren't easy stuff so if you want to understand,
that file is useful!

Still, a minimal .layout can be small because it can build on
existing layouts. An example that add 3-column paragraphs
to the article class:
--
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article (with triplecolumns)}

#Test style, adds 3-column paragraphs to the article class.
#The format version
Format 2

#Documents will be articles, with an add-on
Input article.layout

#Let's override a default - we want fancy pages
PageStyle fancy

#The new text style
Style threecol
   #Mostly like standard text
   CopyStyle Standard
   #Implemented with an environment (not a command)
   LatexType Environment
   #The name of this environment
   LatexName threecol
   #Preamble latexcode necessary if this paragraph style
   #gets used in the document
   Preamble
   \usepackage{multicol}
   \newenvironment{threecol}
   {\begin{multicols}{3}}
   {\end{multicols}}
   EndPreamble
End

-

Of course a truly minimal file can be even smaller, but then
it won't do anything new.  For example:

--
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article (with nothing extra)}

#Test style, adds 3-column paragraphs to the article class.
#The format version
Format 2

#This will be just like article:
Input article.layout
-

Making a .layout file for an entirely new document class
isn't much harder than the simple example, but it will
of course be much more work. You have to write
entries for every paragraph type or character style
the new class have.

Helge Hafting


Re: What is this? latex error iso-8859-7.def

2007-09-06 Thread Declan O'Byrne
Thanks for all of these comments. Actually, I was able to resolve the
issue by the inelegant means of changing 2 or 3 Greek words in the
text back to transliterations. This is a temporary measure, but it
makes the document work again. What wasn't clear to me from the
message was that it related to a Greek character set   I'll come
back to the question of getting Greek in (I'm sure its very simple) at
a later point.
Thanks again,

Declan


where can I find the examples mentioned in the tutorial

2007-09-06 Thread Stefan Tiedje
The examples mentioned in the tutorial are simply not present. I found 
an examples folder but now example files in there. They seem to miss in 
the installer of 1.5.1 for Mac UB.


Where can I get them, can't wait to start my Lyx experience...

Stefan

--
Stefan Tiedjex---
--_---|--
--(_|_ |\-|-()---
-- _|_)|-()--
--()www.ccmix.com




Fwd: Floating problems with image boxes

2007-09-06 Thread Manveru
Hi Users,
I've just started my master thesis and I use LyX 1.5.1 for this, but of
course the final effect is *rendered* by pdflatex. My current problem with
this document is that in final pdf I have strange large margins (as you can
see in attached images) in floating boxes and sometimes picture goes outside
margins (as with jazelle and  power.org logo).

Here is my preamble for this document:
\usepackage{fix-cm}

\usepackage{type1ec}

\usepackage[T1]{fontenc}

 \usepackage[pdftex,man,opt]{wmstitle}

\usepackage[bookmarks, bookmarksopen=true, bookmarksnumbered=true,
colorlinks=true, pdftitle={System sterowania robotem mobilnym},
pdfauthor={Michał Fita}]{hyperref}

\usepackage[protrusion=true,expansion=true, tracking=true, spacing=true,
kerning=true, selected=true, babel=true]{microtype}


Configuration for the floating box (according to wrongpic01.jpg):
width: 34 / units: mm / position: right
Configuration for the image itself:
width: 30 mm / show in lyx: 30%

Configuration for the floating box (according to wrongpic02.jpg):
width: 3 / units: cm / position: right
Configuration for the image itself:
scale: 50% / show in lyx: 50%

Has anyone know what could be responsible for such situation? Are there any
useful options for float package, which I can use to adjust margins and
positions of images in float boxes?

Thanks in advance for any hints!
-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl



-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl



-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl
attachment: wrongpic01.jpgattachment: wrongpic02.jpg

Re: Merge documentation into one doc!

2007-09-06 Thread Bob Lounsbury
On 9/6/07, Uwe Stöhr [EMAIL PROTECTED] wrote:
 Martin A. Hansen schrieb:

  I wanted to find out how to adjust appendixes to replace A, B, C with
  Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
  ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
  another way to do what I wanted.

 The appendix handling has not changed between LyX 1.4.x and 1.5.x.
 The attached LyX-file shows you how to get what you want.

 regards Uwe

Adding a toc to your example Uwe makes the section title overlap the
section text inside the toc. I think the example I posted using the
appendix package is a better solution, unless you have some nice way
of improving the toc.

Cheers,
Bob


Re: Fwd: Floating problems with image boxes

2007-09-06 Thread Uwe Stöhr

Manveru schrieb:

My current problem 
with this document is that in final pdf I have strange large margins (as 
you can see in attached images) in floating boxes and sometimes 
picture goes outside margins (as with jazelle and  power.org 
http://power.org/ logo).


When you you send a SMALL version of you LyX-file together with the two images, 
I can have a look.

regards Uwe


Re: where can I find the examples mentioned in the tutorial

2007-09-06 Thread Uwe Stöhr

Stefan Tiedje schrieb:
The examples mentioned in the tutorial are simply not present. I found 
an examples folder but now example files in there. They seem to miss in 
the installer of 1.5.1 for Mac UB.


Could you please this also at bugzilla.lyx.org?

You can download the examples from here:

http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_5_X/lib/examples

regards Uwe


Re: minimal contents for .layout file

2007-09-06 Thread Steve Litt
On Thursday 06 September 2007 06:36, Tariq Abdullah wrote:
 Hi All,

 Can someone describe the contents and purpose of layout file in Lyx.
 Why is it necessary to creat/include layout file in addition to .cls file
 in Lyx?
 It will be of great help if someone can describe the minimal contents of
 the layout file in order to use a new class file with Lyx. I have already
 checked chapter 5 of Lyx customization manual. This chapter provides
 terribly long details about the layout file.
 Please don't refer me to that chapter. -:)

http://www.troubleshooters.com/lpm/200210/200210.htm#_MakingYourOwnLayout

That article has a 3 line hello world layout file, plus a lot of explanation 
that might help.

SteveT

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


a way of building macros?

2007-09-06 Thread Roberto Gorjão

Hi,

Is there any way of building macros in LyX? As we do in Open Office, 
macros that ease the process of inserting frequent strings of data, for 
instance. Ideally, I would like to be able to build a new toolbar with 
buttons to activate different macros... Is this possible?


Best regards,

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: where can I find the examples mentioned in the tutorial

2007-09-06 Thread Bennett Helm

On Sep 6, 2007, at 10:16 AM, Uwe Stöhr wrote:


Stefan Tiedje schrieb:
The examples mentioned in the tutorial are simply not present. I  
found an examples folder but now example files in there. They seem  
to miss in the installer of 1.5.1 for Mac UB.


Could you please this also at bugzilla.lyx.org?

You can download the examples from here:

http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_5_X/lib/ 
examples


The problem on Mac is that all example files, templates, etc. are  
hidden within the LyX.app bundle. (They can be accessed if you  
control-click on LyX.app and select Show Package Contents; they're  
at LyX.app/Contents/Resources/examples.) Right now, the LyX-Installer  
will copy the default templates to ~/Library/Application Support/ 
LyX-1.5/templates/default so that they can be accessed easily. I've  
only done that for templates because in LyX  Preferences  Paths,  
there's a preference settings for the template path (but not, e.g.,  
for examples).


It wouldn't be difficult to have the LyX-Installer copy examples over  
to the LyX user's directory. But I'm hoping to find a better solution  
that doesn't require a separate installer.


The other issue, of course, is providing clear documentation for  
where these things are.


Bennett

Re: a way of building macros?

2007-09-06 Thread Andre Poenitz
On Thu, Sep 06, 2007 at 06:24:29PM +0100, Roberto Gorjão wrote:
 Hi,
 
 Is there any way of building macros in LyX? As we do in Open Office, 
 macros that ease the process of inserting frequent strings of data, for 
 instance. Ideally, I would like to be able to build a new toolbar with 
 buttons to activate different macros... Is this possible?

Sort of. Have a look at /lib/bin/*, especially the use of 'repeat'
and 'command-sequence'.

Andre'


Re: a way of building macros?

2007-09-06 Thread roberto
Hi Andre,

I have not a clue about where to begin looking for /lib/bin/*. Could you 
be
more specific? I'm on Win XP.

I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I didn't
understand what was meant by .bind-file and how to use it... I guess I'll try
again tomorrow -- I'm getting too tired today.

Thanks!

Roberto
 
--
On Thu Sep  6 11:26 , Andre Poenitz [EMAIL PROTECTED] sent:

Sort of. Have a look at /lib/bin/*, especially the use of 'repeat'
and 'command-sequence'.

Andre'





Re: a way of building macros?

2007-09-06 Thread Richard Heck

[EMAIL PROTECTED] wrote:

Hi Andre,

I have not a clue about where to begin looking for /lib/bin/*. Could you 
be
more specific? I'm on Win XP.
  

Probably somewhere like c:\Program Files\LyX\..., but others will know.

I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I didn't
understand what was meant by .bind-file and how to use it... I guess I'll try
again tomorrow -- I'm getting too tired today.
  

Can someone on Windows say where the .bind files are?

Once you know that, have a look at these files: The map keys to LyX 
commands or command sequences. They are completely customizable, and you 
can try out new commands and command-sequences in the `mini-buffer' 
before modifying the bind files.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/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: a way of building macros?

2007-09-06 Thread Paul A. Rubin

Richard Heck wrote:

[EMAIL PROTECTED] wrote:

Hi Andre,

I have not a clue about where to begin looking for /lib/bin/*. 
Could you be

more specific? I'm on Win XP.
  



Probably somewhere like c:\Program Files\LyX\..., but others will know.


No such beast under Windows.  There's a bin directory but no lib 
directory (at least in the distributed application).  I'm guessing Andre 
was referring to source code, but I'm not sure where to find it.



I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I 
didn't
understand what was meant by .bind-file and how to use it... I guess 
I'll try

again tomorrow -- I'm getting too tired today.
  



Can someone on Windows say where the .bind files are?


The ones that ship with LyX are in lyxroot\Resources\bind, where 
lyxroot is usually C:\Program Files\LyX15 (give or take).  There are 
subdirectories for a few non-English variants.  Bind files added or 
edited by the user go in home\bind, where home is usually 
C:\Documents and Settings\your login id\Application Data\lyx15. 
Help-About will identify both lyxroot (labeled Library directory) 
and home (labeled User directory).  It's important to put the edited 
files there, lest the changes be lost when a new version of LyX is 
installed.


Once you know that, have a look at these files: The map keys to LyX 
commands or command sequences. They are completely customizable, and you 
can try out new commands and command-sequences in the `mini-buffer' 
before modifying the bind files.


One thing to keep in mind is that bind files can (and do) load other 
bind files.  For instance, at the bottom of cua.bind, you'll find 
\bind_file commands that load other files.  The reason I mention this is 
that when you bind keys to a macro, you'll obviously want to try to pick 
an unused key combination -- but what's unused in the file you're 
editing may be used in a file it subsequently loads, which would 
overwrite your definition.


The syntax is pretty simple, and is explained on the wiki: 
http://wiki.lyx.org/Tips/KeyboardShortcuts.  Command sequences are also 
explained on the wiki (http://wiki.lyx.org/Tips/CommandSequences), and 
you can find a list of LFUNS (the functions you can use in command 
sequences) as well (http://wiki.lyx.org/LyX/LyxFunctions).


One other thing to keep in mind:  separate from the bind file(s) you are 
using, some key combinations are bound to menu actions (see stdmenus.inc 
in the ...\Resources\ui folder).  AFAIK, if you bind a macro to a key 
combination already in use in a menu, the menu version trumps your new 
binding, unless you edit stdmenus.inc to change the key bound to the menu.


/Paul



Re: Fwd: Floating problems with image boxes

2007-09-06 Thread Uwe Stöhr

Manveru schrieb:


I am sending you archive with my images and LyX file. Maybe some problems
are cause by the mwbook document class or wmstitle.sty??


(Ehm, I said SMALL file.)
The problem was that you indented the images. Floats contains paragraphs, therefore every image is 
in its own paragraph. You indent every paragraph, therefore also the images. Just remove the indent 
checkbox in the paragraph dialog for the images and it works.

See the attached file.

---

You have in your preamble this entry:
\usepackage[T1]{fontenc}
This is already set to the preamble by LyX, you don't need to take care of this.

regards Uwe


mgr.lyx
Description: application/lyx


lyx1.5 on PPC Mac

2007-09-06 Thread Peter Drummond

Hi -

I have serious problems using LyX 1.5 on a PPC Mac, with OSX10.4,  from 
the downloaded binaries. This occurs even after I re-installed my 
operating system, MacTex and LyX from scratch.


These are as follows;

1) The export menu doesn't list the usual options. It only gives options 
of `rtf' or `custom', which in turn generates a menu for inserting 
user-defined commands. I have no idea how to use this. There are no 
defaults, and I don't know how to get pdf or ps or latex output. This is 
a serious problem, as I need pdf and latex outputs every time I use Lyx.


2) Once a Lyx file is saved, it is not compatible with previous Lyx 
versions. Hence, one cannot simply save the lyx file, then re-open it 
with an older version of the program and export from there. In the PPC 
version of Lyx1.5, the export menu gives no options for export to older 
lyx versions either, so even this is blocked.


3) There is recent version of Lyx1.4.5.1 which can read the LyX1.5 
files, but this reports installation errors when I  install it from the 
installer program. This can handle latex export but reports other errors 
(from font issues) on attempting a pdf export. It is not a longterm 
solution, although at least it has a working export menu.


4) Strangely enough, the font errors don't occur when I simply use latex 
directly. Also, they didn't occur in earlier LyX releases, so it seems 
like a problem with paths.


5) In PPC Lyx1.5, I find that the usual default options of numerical 
bibliography style cannot be saved. Instead, one must use natbib. But 
this appears to have a bug, which means that in the pdf preview some 
references are numerical, some have error mesages about missing  
authors. The final result is essentially unusable.


6) So in summary, to use LyX1.5 PPC I have to a) edit inside LyX1.5.1 
b)save the LyX1.5 file c)open with Lyx 1.4.5.1 d) export latex e) fix 
the bibliography errors f) compile latex to pdf.


Any help would be greatly appreciated! Note, these problems appear 
unique to PPC Lyx1.5. binaries, and did not occur with most earlier 
releases. There are fewer problems with Mac Intel binaries.


Yours, Peter Drummond.



Re: Tables without oldstylenums

2007-09-06 Thread Niklas Huldén

Helge Hafting wrote:

Niklas Huldén wrote:

Hi!

I have a lengthy (300 p) humanistic manuscript and have enabled 
\usepackage[osf]mathpazo as to get oldstyle figures across the whole 
document. However, I also have 50+ tables and if I've understood 
correctly one should not use oldstylenums except in the main text 
body. Is there any way to exclude these table floats from the generic 
option. I could of course mark every number in every table float as 
"math mode" but that would seem to be a lengthy operation, as would 
indeed be replacing all numbers in the text with ERT. Any suggestions?

Unfortunately, LyX doesn't have options for turning
oldstyle on/off for pieces of text - only for the whole document.
At least if you use version 1.5.
Various solutions:

1. Use ERT everywhere - but too much work.

2. Redefine the latex tabular environment so that it issues the
   "no oldstyle" command in addition to everything else it does.
   Then all tables comes out without oldstyle numbers.
   I don't know if this is feasible though.

Version 1.5 may offer a solution if you're willing to
create a custom layout file. Understanding layout files is
some work, but gives these options:

3. Make a charstyle for "not oldstyle numbers".  You can then mark
   anything and apply this style - the numbers marked will no
   longer be old-style.  Easier than converting to math, because
   you can (probably) mark whole tables instead of hunting for
   each little number. You can also use this charstyle for numbers
   in uppercase headings. (Oldstyle numbers are  lowercase,
   non-oldstyle numbers are uppercase numbers.
   So a number in uppercase text should not be oldstyle.)

4. For older versions of LyX, make a paragraph style (instead of a
   charstyle) for "standard, but not oldstyle numbers".
   Very much like alternative 3, except that it always works on
   whole paragraphs.  But a table is usually in a paragraph
   of its own anyway, so not much of a problem here.
   You can then change the paragraph type for each table.

Helge Hafting



Thank You for all the suggestions! I think I will stick with the 
oldstyle figures in the tables also for now. If someone complains about 
it (which I seriously doubt), I can return to your suggestions.


Many thanks!

Niklas H.


Apacite and long URLs

2007-09-06 Thread Roberto Gorjão

Hi,

As you know, long URLs, in bibliographies styled with apacite, are not 
broken and are printed on a single line that gets as long as needed, 
even if it goes off the sheet limits. This problem is mentioned in 
apacite's manual, but no solution is suggested. Is there any solution yet?


Thanks!

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: Old Style Figures

2007-09-06 Thread Helge Hafting

Hartmut Haase wrote:

Hi,
can someone please send me a .lyx-file where I can see how to use Old Style 
Figures?
  

Here is an example file with old and new style numbers.
Use view->dvi or view->PDF to see the effect.

Helge Hafting


oldstyle.lyx
Description: application/lyx


Re: Tables without oldstylenums

2007-09-06 Thread Helge Hafting

Niklas Huldén wrote:


Thank You for all the suggestions! I think I will stick with the 
oldstyle figures in the tables also for now. If someone complains 
about it (which I seriously doubt), I can return to your suggestions.

Another suggestion:

Put a TeX box immediately in front of each table, containing the command
\newstylenums{
And immediately after the table, a TeX box containing just a single
}


This works for me. All numbers in the entire table becomes new style.
This may be some work for an entire book, but it sure is easier
than using latex commands for each and every little number.

Everything between two such boxes is typeset newstyle, so
if there are several tables and a little text (without numbers),
consider saving work by enclosing the whole group with just
the two boxes.

I have not tested what happens if the tables are inside floats,
maybe you have to use \newstylenums in each float then.

Helge Hafting



Re: Merge documentation into one doc!

2007-09-06 Thread Helge Hafting

Martin A. Hansen wrote:

We have discussed this before ...

I wanted to find out how to adjust appendixes to replace A, B, C with
Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
another way to do what I wanted. So I headed to the docs ... Horrible
experience! I had to open 6, six, S-I-X different documents to search for
the information I wanted (not counting the introduction)!

How about a little merging - LyX should be pretty good at that, yes?
  

If you want a single searchable help document, just
open them all, copy & paste them into a new "myhelp.lyx".

From then on, just open "myhelp.lyx" whenever you want such a search.

Helge Hafting


Re: What is this? latex error iso-8859-7.def

2007-09-06 Thread Jean-Marc Lasgouttes
Anthony Campbell <[EMAIL PROTECTED]> writes:

> Possibly related: I posted a query here a week or so ago but had no
> replies. When I run lyx I get a message saying: "Locale en_GB could not
> be set." This is because I use en_GB.UTF8. I don't see anyway to tell
> lyx to use a different locale but in my case it doesn't seem to have any
> adverse effects.

Concerning locales, the situation will be different (hopefully much
better) with lyx 1.5.2. Please report at this time if you have
locale-related problems.

JMarc


Re: Apacite and long URLs

2007-09-06 Thread obregonmateo
In the preamble:

\usepackage{url}


Then, wherever you have your web link:

\url{http://www..}

Mateo.

On Thursday 06 September 2007 08:22, Roberto Gorjão wrote:
> Hi,
>
> As you know, long URLs, in bibliographies styled with apacite, are not
> broken and are printed on a single line that gets as long as needed,
> even if it goes off the sheet limits. This problem is mentioned in
> apacite's manual, but no solution is suggested. Is there any solution yet?
>
> Thanks!
>
> Roberto


Re: Merge documentation into one doc!

2007-09-06 Thread Uwe Stöhr

Martin A. Hansen schrieb:


I wanted to find out how to adjust appendixes to replace A, B, C with
Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
another way to do what I wanted.


The appendix handling has not changed between LyX 1.4.x and 1.5.x.
The attached LyX-file shows you how to get what you want.


So I headed to the docs ... Horrible
experience! I had to open 6, six, S-I-X different documents to search for
the information I wanted (not counting the introduction)!


Then you do something wrong. Start with the Userguide. As this is a special topic not everybody is 
interested in, check the Extended manual. If it also not explained there, you have to aks on the list.
The Customization manual is about customizing LyX, not the document output. The EmbeddedObjects 
manual is like the Extended manual, but specialized on Floats, Figures, Tables, Boxes, Listings, and 
External material - as said in the title of this document.


LyX 1.5.2 will come with a completely revised and in many parts rewritten Userguide that guides you 
in many cases to the right manual for special topics.



How about a little merging - LyX should be pretty good at that, yes?


I think that 140 A4 pages  for the userGuide are enough. The EmbeddedObjects manual is about 90 
pages, the same for the Extended and Customization manual.

And note that it is impossible to explain every LaTeX-hook in the docs!

regards Uwe


newfile4.lyx
Description: application/lyx


Re: Problem with hyperref.

2007-09-06 Thread Uwe Stöhr

Martin A. Hansen schrieb:

> \usepackage{hypcol}

You don't need this package for general hyperlinks. For an example hyperref setup, have a look at 
the preamble of the EmbeddedObjects manual.



If an URL contains an anchor # then something inside LyX breaks when using
hyperref!


The upcoming new UserGuide (for LyX 1.5.2) contains this information in the URL 
section.

regards Uwe


Re: Miktex questions

2007-09-06 Thread Uwe Stöhr

Hong Son Nghiem schrieb:


I have lyx 1.5.1 installed on a windows XP pro SP2 machine.

> All work fine except when I tried to update or install a Miktex
> package on the fly. There's always an error messge "failure
> when receiving data from the peers".

Log in as administrator and check if "install missing packages on the fly" is enabled in MiKTeX's 
settings. Then start MiKTeX's update program and try out different "remote package repository".
(For the alternative LyX Windows installer the MiKTeX setup is done automatically and the repository 
"ftp.tu-chemnitz.de" is predefined.)


regards Uwe


Re: Figure Wrap won't print

2007-09-06 Thread Hans Kunkell
I have also had some problems with figure wraps. One reason for the 
figure to not show up is that it can be situated too close to a page 
break. It's not a good way but this issue can be solved by manually 
inserting a page break.


Hans Kunkell

Helge Hafting skrev:

Lance W. Haverkamp wrote:

on 09/04/2007 03:53 AM Helge Hafting said the following:
 

Lance W. Haverkamp wrote:
   

In both 1.3.7 & 1.5.1 I've been unable to get a Figure Float Wrap to
appear in either DVI or  a print-out.  It's visible to me--I can see
both the graphic & the text in LyX.
  


 

What you can do is:
Try making the wrapped stuff smaller. Both narrower and
shorter.  This usually helps.  Sometimes making it wider
helps too. With less text beside your wrapped stuff,
you push the next (sub)section further down and away
from the wrapped region.

Make sure that the only stuff that will get next to the
wrap is ordinary text.



OK...what am I supposed to be changing the size of?  The only things I
see are config windows called "Graphics" OR "Text Wrap Settings".
I have changed all kinds of things in both those windows and see
*absolutely no change whatsoever* in the LyX window appearance of the
float box, graphic nor text (using 1.5.1).  Is something suppose to be
changing that I can see?  The red (float?) box automatically goes full
(column?) width and I see no way to adjust that.
  

You don't see a change inside LyX when adjusting the width,
but is some cases you may succeed in producing a
wrapped float. I.e. you'll get something useful when
printing or doing view->dvi.

Now, perhaps the menu should read
"insert->float->text wrap float(broken)"
For this thing simply don't work well, and I don't think there
is anything we can do with that either.



Also, the text always starts at the bottom of the graphic--like
"justified to bottom".  How do I get the text to start at the top of the
graphic so it actually has something to wrap around?
  

You will not see the wrapping inside LyX, only in the output.
LyX is not wysiwyg, it is wysiwym.  (See the intro for an explanation.)

Helge Hafting



minimal contents for .layout file

2007-09-06 Thread Tariq Abdullah
Hi All,

Can someone describe the contents and purpose of layout file in Lyx.
Why is it necessary to creat/include layout file in addition to .cls file
in Lyx?
It will be of great help if someone can describe the minimal contents of
the layout file in order to use a new class file with Lyx. I have already
checked chapter 5 of "Lyx customization manual". This chapter provides
terribly long details about the layout file.
Please don't refer me to that chapter. -:)



Regards,
Tariq Abdullah




   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

Re: minimal contents for .layout file

2007-09-06 Thread Helge Hafting

Tariq Abdullah wrote:

Hi All,

Can someone describe the contents and purpose of layout file in Lyx.
  

Try Help->Customization


Why is it necessary to creat/include layout file in addition to .cls file
in Lyx?
  

Because LyX doesn't understand .cls (or .sty) files. LyX can
tell latex to use some .cls file, but LyX doesn't
understand what the .cls file is for or what opportunities
it offers. This because LyX don't understand all of LaTeX.

Basically, a .layout file is for LyX what a .cls or .sty file is for LaTeX.

A .layout file tells LyX:
* about some document settings & defaults
* about paragraph types
* about character styles
* How these styles should look on the screen, and what latex
  commands must be used to print them.
 
Note that the layout on screen is quite limited, but there are

almost no limits as to what latex code you can invoke.


It will be of great help if someone can describe the minimal contents of
the layout file in order to use a new class file with Lyx. I have already
checked chapter 5 of "Lyx customization manual". This chapter provides
terribly long details about the layout file.
Please don't refer me to that chapter. -:)

Well, layout files aren't "easy" stuff so if you want to understand,
that file is useful!

Still, a minimal .layout can be small because it can build on
existing layouts. An example that add 3-column paragraphs
to the article class:
--
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article (with triplecolumns)}

#Test style, adds 3-column paragraphs to the article class.
#The format version
Format 2

#Documents will be articles, with an add-on
Input article.layout

#Let's override a default - we want fancy pages
PageStyle fancy

#The new text style
Style threecol
   #Mostly like standard text
   CopyStyle Standard
   #Implemented with an environment (not a command)
   LatexType Environment
   #The name of this environment
   LatexName threecol
   #Preamble latexcode necessary if this paragraph style
   #gets used in the document
   Preamble
   \usepackage{multicol}
   \newenvironment{threecol}
   {\begin{multicols}{3}}
   {\end{multicols}}
   EndPreamble
End

-

Of course a truly minimal file can be even smaller, but then
it won't do anything new.  For example:

--
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{article (with nothing extra)}

#Test style, adds 3-column paragraphs to the article class.
#The format version
Format 2

#This will be just like article:
Input article.layout
-

Making a .layout file for an entirely new document class
isn't much harder than the simple example, but it will
of course be much more work. You have to write
entries for every paragraph type or character style
the new class have.

Helge Hafting


Re: What is this? latex error iso-8859-7.def

2007-09-06 Thread Declan O'Byrne
Thanks for all of these comments. Actually, I was able to resolve the
issue by the inelegant means of changing 2 or 3 Greek words in the
text back to transliterations. This is a temporary measure, but it
makes the document work again. What wasn't clear to me from the
message was that it related to a Greek character set   I'll come
back to the question of getting Greek in (I'm sure its very simple) at
a later point.
Thanks again,

Declan


where can I find the examples mentioned in the tutorial

2007-09-06 Thread Stefan Tiedje
The examples mentioned in the tutorial are simply not present. I found 
an examples folder but now example files in there. They seem to miss in 
the installer of 1.5.1 for Mac UB.


Where can I get them, can't wait to start my Lyx experience...

Stefan

--
Stefan Tiedjex---
--_---|--
--(_|_ |\-|-()---
-- _|_)|-()--
--()www.ccmix.com




Fwd: Floating problems with image boxes

2007-09-06 Thread Manveru
Hi Users,
I've just started my master thesis and I use LyX 1.5.1 for this, but of
course the final effect is *rendered* by pdflatex. My current problem with
this document is that in final pdf I have strange large margins (as you can
see in attached images) in floating boxes and sometimes picture goes outside
margins (as with "jazelle" and " power.org" logo).

Here is my preamble for this document:
\usepackage{fix-cm}

\usepackage{type1ec}

\usepackage[T1]{fontenc}

 \usepackage[pdftex,man,opt]{wmstitle}

\usepackage[bookmarks, bookmarksopen=true, bookmarksnumbered=true,
colorlinks=true, pdftitle={System sterowania robotem mobilnym},
pdfauthor={Michał Fita}]{hyperref}

\usepackage[protrusion=true,expansion=true, tracking=true, spacing=true,
kerning=true, selected=true, babel=true]{microtype}


Configuration for the floating box (according to wrongpic01.jpg):
width: 34 / units: mm / position: right
Configuration for the image itself:
width: 30 mm / show in lyx: 30%

Configuration for the floating box (according to wrongpic02.jpg):
width: 3 / units: cm / position: right
Configuration for the image itself:
scale: 50% / show in lyx: 50%

Has anyone know what could be responsible for such situation? Are there any
useful options for float package, which I can use to adjust margins and
positions of images in float boxes?

Thanks in advance for any hints!
-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl



-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl



-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl
<><>

Re: Merge documentation into one doc!

2007-09-06 Thread Bob Lounsbury
On 9/6/07, Uwe Stöhr <[EMAIL PROTECTED]> wrote:
> Martin A. Hansen schrieb:
>
> > I wanted to find out how to adjust appendixes to replace A, B, C with
> > Appendix A, Appendix B, Appendix C. Etc. In LyX 1.4 you did that with some
> > ERT, but now with LyX 1.5 there is some fancy red appendix box and perhaps
> > another way to do what I wanted.
>
> The appendix handling has not changed between LyX 1.4.x and 1.5.x.
> The attached LyX-file shows you how to get what you want.
>
> regards Uwe

Adding a toc to your example Uwe makes the section title overlap the
section text inside the toc. I think the example I posted using the
appendix package is a better solution, unless you have some nice way
of improving the toc.

Cheers,
Bob


Re: Fwd: Floating problems with image boxes

2007-09-06 Thread Uwe Stöhr

Manveru schrieb:

My current problem 
with this document is that in final pdf I have strange large margins (as 
you can see in attached images) in floating boxes and sometimes 
picture goes outside margins (as with "jazelle" and " power.org 
" logo).


When you you send a SMALL version of you LyX-file together with the two images, 
I can have a look.

regards Uwe


Re: where can I find the examples mentioned in the tutorial

2007-09-06 Thread Uwe Stöhr

Stefan Tiedje schrieb:
The examples mentioned in the tutorial are simply not present. I found 
an examples folder but now example files in there. They seem to miss in 
the installer of 1.5.1 for Mac UB.


Could you please this also at bugzilla.lyx.org?

You can download the examples from here:

http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_5_X/lib/examples

regards Uwe


Re: minimal contents for .layout file

2007-09-06 Thread Steve Litt
On Thursday 06 September 2007 06:36, Tariq Abdullah wrote:
> Hi All,
>
> Can someone describe the contents and purpose of layout file in Lyx.
> Why is it necessary to creat/include layout file in addition to .cls file
> in Lyx?
> It will be of great help if someone can describe the minimal contents of
> the layout file in order to use a new class file with Lyx. I have already
> checked chapter 5 of "Lyx customization manual". This chapter provides
> terribly long details about the layout file.
> Please don't refer me to that chapter. -:)

http://www.troubleshooters.com/lpm/200210/200210.htm#_MakingYourOwnLayout

That article has a 3 line "hello world" layout file, plus a lot of explanation 
that might help.

SteveT

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


a way of building macros?

2007-09-06 Thread Roberto Gorjão

Hi,

Is there any way of building macros in LyX? As we do in Open Office, 
macros that ease the process of inserting frequent strings of data, for 
instance. Ideally, I would like to be able to build a new toolbar with 
buttons to activate different macros... Is this possible?


Best regards,

Roberto

--
 Roberto Gorjão
freelance designer and web designer
personal site: www.castelosnoar.com
PORTUGAL / BRAGA / PÓVOA DE LANHOSO



Re: where can I find the examples mentioned in the tutorial

2007-09-06 Thread Bennett Helm

On Sep 6, 2007, at 10:16 AM, Uwe Stöhr wrote:


Stefan Tiedje schrieb:
The examples mentioned in the tutorial are simply not present. I  
found an examples folder but now example files in there. They seem  
to miss in the installer of 1.5.1 for Mac UB.


Could you please this also at bugzilla.lyx.org?

You can download the examples from here:

http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_5_X/lib/ 
examples


The problem on Mac is that all example files, templates, etc. are  
hidden within the LyX.app bundle. (They can be accessed if you  
control-click on LyX.app and select "Show Package Contents"; they're  
at LyX.app/Contents/Resources/examples.) Right now, the LyX-Installer  
will copy the default templates to ~/Library/Application Support/ 
LyX-1.5/templates/default so that they can be accessed easily. I've  
only done that for templates because in LyX > Preferences > Paths,  
there's a preference settings for the template path (but not, e.g.,  
for examples).


It wouldn't be difficult to have the LyX-Installer copy examples over  
to the LyX user's directory. But I'm hoping to find a better solution  
that doesn't require a separate installer.


The other issue, of course, is providing clear documentation for  
where these things are.


Bennett

Re: a way of building macros?

2007-09-06 Thread Andre Poenitz
On Thu, Sep 06, 2007 at 06:24:29PM +0100, Roberto Gorjão wrote:
> Hi,
> 
> Is there any way of building macros in LyX? As we do in Open Office, 
> macros that ease the process of inserting frequent strings of data, for 
> instance. Ideally, I would like to be able to build a new toolbar with 
> buttons to activate different macros... Is this possible?

Sort of. Have a look at /lib/bin/*, especially the use of 'repeat'
and 'command-sequence'.

Andre'


Re: a way of building macros?

2007-09-06 Thread roberto
Hi Andre,

I have not a clue about where to begin looking for "/lib/bin/*". Could you 
be
more specific? I'm on Win XP.

I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I didn't
understand what was meant by ".bind-file" and how to use it... I guess I'll try
again tomorrow -- I'm getting too tired today.

Thanks!

Roberto
 
--
On Thu Sep  6 11:26 , Andre Poenitz <[EMAIL PROTECTED]> sent:
>
>Sort of. Have a look at /lib/bin/*, especially the use of 'repeat'
>and 'command-sequence'.
>
>Andre'
>




Re: a way of building macros?

2007-09-06 Thread Richard Heck

[EMAIL PROTECTED] wrote:

Hi Andre,

I have not a clue about where to begin looking for "/lib/bin/*". Could you 
be
more specific? I'm on Win XP.
  

Probably somewhere like c:\Program Files\LyX\..., but others will know.

I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I didn't
understand what was meant by ".bind-file" and how to use it... I guess I'll try
again tomorrow -- I'm getting too tired today.
  

Can someone on Windows say where the .bind files are?

Once you know that, have a look at these files: The map keys to LyX 
commands or command sequences. They are completely customizable, and you 
can try out new commands and command-sequences in the `mini-buffer' 
before modifying the bind files.


Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/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: a way of building macros?

2007-09-06 Thread Paul A. Rubin

Richard Heck wrote:

[EMAIL PROTECTED] wrote:

Hi Andre,

I have not a clue about where to begin looking for "/lib/bin/*". 
Could you be

more specific? I'm on Win XP.
  



Probably somewhere like c:\Program Files\LyX\..., but others will know.


No such beast under Windows.  There's a bin directory but no lib 
directory (at least in the distributed application).  I'm guessing Andre 
was referring to source code, but I'm not sure where to find it.



I've also found this page in the LyX's Wiki --
http://wiki.lyx.org/Tips/CommandSequences -- but I must confess that I 
didn't
understand what was meant by ".bind-file" and how to use it... I guess 
I'll try

again tomorrow -- I'm getting too tired today.
  



Can someone on Windows say where the .bind files are?


The ones that ship with LyX are in \Resources\bind, where 
 is usually C:\Program Files\LyX15 (give or take).  There are 
subdirectories for a few non-English variants.  Bind files added or 
edited by the user go in \bind, where  is usually 
C:\Documents and Settings\\Application Data\lyx15. 
Help->About will identify both  (labeled "Library directory") 
and  (labeled "User directory").  It's important to put the edited 
files there, lest the changes be lost when a new version of LyX is 
installed.


Once you know that, have a look at these files: The map keys to LyX 
commands or command sequences. They are completely customizable, and you 
can try out new commands and command-sequences in the `mini-buffer' 
before modifying the bind files.


One thing to keep in mind is that bind files can (and do) load other 
bind files.  For instance, at the bottom of cua.bind, you'll find 
\bind_file commands that load other files.  The reason I mention this is 
that when you bind keys to a macro, you'll obviously want to try to pick 
an unused key combination -- but what's unused in the file you're 
editing may be used in a file it subsequently loads, which would 
overwrite your definition.


The syntax is pretty simple, and is explained on the wiki: 
http://wiki.lyx.org/Tips/KeyboardShortcuts.  Command sequences are also 
explained on the wiki (http://wiki.lyx.org/Tips/CommandSequences), and 
you can find a list of LFUNS (the functions you can use in command 
sequences) as well (http://wiki.lyx.org/LyX/LyxFunctions).


One other thing to keep in mind:  separate from the bind file(s) you are 
using, some key combinations are bound to menu actions (see stdmenus.inc 
in the ...\Resources\ui folder).  AFAIK, if you bind a macro to a key 
combination already in use in a menu, the menu version trumps your new 
binding, unless you edit stdmenus.inc to change the key bound to the menu.


/Paul



Re: Fwd: Floating problems with image boxes

2007-09-06 Thread Uwe Stöhr

Manveru schrieb:


I am sending you archive with my images and LyX file. Maybe some problems
are cause by the mwbook document class or wmstitle.sty??


(Ehm, I said SMALL file.)
The problem was that you indented the images. Floats contains paragraphs, therefore every image is 
in its own paragraph. You indent every paragraph, therefore also the images. Just remove the indent 
checkbox in the paragraph dialog for the images and it works.

See the attached file.

---

You have in your preamble this entry:
\usepackage[T1]{fontenc}
This is already set to the preamble by LyX, you don't need to take care of this.

regards Uwe


mgr.lyx
Description: application/lyx


lyx1.5 on PPC Mac

2007-09-06 Thread Peter Drummond

Hi -

I have serious problems using LyX 1.5 on a PPC Mac, with OSX10.4,  from 
the downloaded binaries. This occurs even after I re-installed my 
operating system, MacTex and LyX from scratch.


These are as follows;

1) The export menu doesn't list the usual options. It only gives options 
of `rtf' or `custom', which in turn generates a menu for inserting 
user-defined commands. I have no idea how to use this. There are no 
defaults, and I don't know how to get pdf or ps or latex output. This is 
a serious problem, as I need pdf and latex outputs every time I use Lyx.


2) Once a Lyx file is saved, it is not compatible with previous Lyx 
versions. Hence, one cannot simply save the lyx file, then re-open it 
with an older version of the program and export from there. In the PPC 
version of Lyx1.5, the export menu gives no options for export to older 
lyx versions either, so even this is blocked.


3) There is recent version of Lyx1.4.5.1 which can read the LyX1.5 
files, but this reports installation errors when I  install it from the 
installer program. This can handle latex export but reports other errors 
(from font issues) on attempting a pdf export. It is not a longterm 
solution, although at least it has a working export menu.


4) Strangely enough, the font errors don't occur when I simply use latex 
directly. Also, they didn't occur in earlier LyX releases, so it seems 
like a problem with paths.


5) In PPC Lyx1.5, I find that the usual default options of numerical 
bibliography style cannot be saved. Instead, one must use natbib. But 
this appears to have a bug, which means that in the pdf preview some 
references are numerical, some have error mesages about missing  
authors. The final result is essentially unusable.


6) So in summary, to use LyX1.5 PPC I have to a) edit inside LyX1.5.1 
b)save the LyX1.5 file c)open with Lyx 1.4.5.1 d) export latex e) fix 
the bibliography errors f) compile latex to pdf.


Any help would be greatly appreciated! Note, these problems appear 
unique to PPC Lyx1.5. binaries, and did not occur with most earlier 
releases. There are fewer problems with Mac Intel binaries.


Yours, Peter Drummond.