Re: Fw: installing Tex classes

2005-12-12 Thread Andres Becerra Sandoval
On 12/12/05, Marcel Vercouter [EMAIL PROTECTED] wrote:

 - Original Message -
 From: Marcel Vercouter
 To: lyx-users@lists.lyx.org
 Sent: Monday, December 12, 2005 12:29 AM
 Subject: installing Tex classes


 I'd like to use 'hollywood' and 'broadway' layouts, and although they 
 (hollywood) are listed as present in the New from Template menu, I get a 
 Textclass error LyX will not be able to produce output.
 Strugling my way in the LyX and MikTex sites, I could not find a clear 
 procedure to install those classes (and any other that are not in the LyX 
 package).
 Any hint that will show me the right way to do it ?

 Marcel


The document classes hollywood.cls and broadway.cls are in the lyx
sources. You can put them in /usr/local/share/texmf/tex/latex or in
~/texmf/tex/latex for your user only. Then you have to run texhash to
update TeX database.

--
  Andres


Re: scalable braces in math mode

2005-12-12 Thread Jean-Marc Lasgouttes
 Nusret == Nusret BALCI [EMAIL PROTECTED] writes:

Nusret \bind M-m ~C-~M-~S-braceleft math-delim { }

Nusret That's a problem at least if your keyboard is a cheap standard
Nusret one like mine (In fact, I don't even have an AltGr key,
Nusret instead I use Ctrl+Alt when needed). It is like turning on
Nusret caps lock, and then pressing Shift+A to obtain 'A' :). After I
Nusret change it to the following:

Nusret \bind M-m ~C-~M-~S-bracketleft math-delim { }

Nusret everything works alright.

Nusret Do you have any idea what those ~'s stand for though?

They mean do not look at those modifiers. So basically, anything
that leads to a braceleft { character should be OK. I am surprised that
you would have to use a bracketleft [.

JMarc


Re: scalable braces in math mode

2005-12-12 Thread Jean-Marc Lasgouttes
 Nusret == Nusret BALCI [EMAIL PROTECTED] writes:

Nusret I use sciword binding file. It supposedly includes the
Nusret math.bind file which contains the binding you mentioned (but
Nusret without AltGr). However it didn't work. I tried to find the
Nusret reason and noticed that there is a typo in sciword.bind file:
Nusret it inclued maths.bind file (which doesn't exist) instead of
Nusret math.bind.

It is a typo indeed. I just fixed it.

Thanks.

JMarc


Re: Superscript SOLVED

2005-12-12 Thread Geoffrey Lloyd

On Sat, 10 Dec 2005, Steve Litt wrote:


On Saturday 10 December 2005 02:12 pm, Charles de Miramon wrote:

Steve Litt wrote:

Hi all,

I just went to write O2, as in two oxygen atoms stuck together, and saw
no provision for superscripting the 2, at least not on the


Sorry to be an accurate scientist but really the 2 should be SUBscripted 
if you want to write O2, else it is O^2 which really means nothing at all.


Geoff



Format-Character dialog box. There was also no subscript. I know this
can't be true -- how do I do it?

I'm using LyX 1.3.3.


You can insert a subscript with insert -- special character -- subscript.
It is a hack that will create a math inset with a subscript.
Or you can use in ERT O\textsuperscript{2}

The two solutions are not typographically equivalent, the superscript is
not placed at the same place. For abreviations superscripts like 12th for
example, or Mr. Dr., use textsuperscript for chemical symbols use a
mathematical inset.

I wish the actual superscript and subscript hacks could go away. They are a
pain when you export a LyX file to rtf (they are transformed in
mathematical formulas) and result in wrong typesetting. Lyx should default
to \textsuperscript and \textsubscript


Thanks Charles,

I tried these both, and they both worked. I chose the
Insert-Specialcharacter-superscript method for 2 reasons:

1) The 2 was visible in the LyX file, which is more clear
2) The 2 was bigger, which in this case I liked.

Thanks so much for the help.

SteveT

Steve Litt
Author:
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
  * Troubleshooters.Com
  * http://www.troubleshooters.com



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Angus Leeming
Tariq Kamal wrote:

 Hello!
 
 I'm a relatively new user to LyX (installed it a couple of months ago
 in my laptop, and I've barely scratched the surface of its
 functionality). As it was, I figured that installing LyX into my work
 system would be a good idea. So I downloaded the
 LyXWin137preComplete-0-51.exe package for installation on my work PC
 (which runs Windows XP), and figured that it would not take more than
 half an hour to install, tops.
 
 In retrospect, using the 1.37 release might have been a mistake. The
 first attempt, I ended up getting this message:
 
 LyX wasn't able to find any layout description!
 
 Check the contents of the file textclass.lst
 Sorry, has to exit :-(
 
 Right. So I checked textclass.lst, and this is what I saw:
 
 ## This file declares layouts and their associated definition files.
 ## It has been automatically generated by configure
 ## Use Options/Reconfigure if you need to update it after a
 ## configuration change. Run ./configure manually to update the
 ## system wide version of this file.
 
 That's it. Nothing else. The other LST file, packages.lst, is at 0
 bytes. I'm guessing that this isn't the normal state of affairs.
 
 This situation has persisted, even after I did the following things:

From an MSYS terminal window (maybe even a cmd.exe one for all I know):

cd C:/Program Files/LyX/Resources/lyx
PATH TO/sh.exe configure

That will generate the missing files.

-- 
Angus



Re: Footnotes problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:


This is exactly what Charles suggested - and this works, no doubt!
But because I did NOT know LyX being smart enough to interpret a
footnote directly after a title as \thanks, I just had to figure
out a solution of my own (why on earth would I have posted my
question if I had known the answer).


A thanks has to placed _inside_ a title or author and _not_
outside. If you want something only appear in the footnote
without a footnotemark, then use \footnotetext[]{...}



Well, THIS is clear to me :)

What I was referring to were the problems with inserting an ERT 
containing the LaTeX command \thanks, which should contain a url, i.e. 
Insert-ERT, \thanks{bla bla bla [EMAIL PROTECTED] This won't work! The 
solution You and Charles mentioned is a working LyX-solution. The 
solution I suggested is a LaTeX-style solution with LyX. Both works, 
although yours is a bit more elegant...


I have attached two files the first (test-1.lyx) containg the 
non-working, the second (test-2.lyx) containg the working solution with 
a url within \thanks in an ERT.


this is what I call nonsense, using LyX, but then writing
things, which LyX directly supports, with ERT.

Herbert



Bibliography problem

2005-12-12 Thread K. Elo
Hi @ All,

I have encountered an interesting problem with a document with a 
bibliography. I use a customised .bst file, originally created with 
latex makebst.

The problem seems to related with the following two bibtex entries 
created with JabRef:

@ARTICLE{br2004a,
  author = br,
  title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen 
{B}eziehungen
waren noch nie so gut},
  journal = br_online,
  year = {2004},
  number = {8. Juli},
  entrytype = {08.07.},
  url = 
{{[}http://www.bundesregierung.de/dokumente/-,413.680598/Artikel/dokument.htm,
besucht am 2. September 2005{]}},
}

@ARTICLE{br2004b,
  author = br,
  title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen 
{G}ebieten
vereinbart},
  journal = br_online,
  year = {2004},
  number = {21. Dezember},
  entrytype = {21.12.},
  url = 
{\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen-.htm,
besucht am 2. September 2005\]},
}

Article-entries should be formatted as follows:
Author (Year), 'Title', Journal (in italics), vol(num), url, pages.

When the output is produced, the first entry is formatted correctly, but 
the second entry has an emphasised url with extra line breaks before 
and after (related to the \, I suppose).

The interesting point is, however, if I replace \[ (in the second entry) 
either with [ or {[}, I'll get several LaTeX errors complaining 
problems with the second entry!

I have no idea why some of these entries are working whereas the others 
cause errors when producing the output. I would be glad if you could 
help me to solve this problem.

Thanks in advance  kind regards,
Kimmo


Re: Bibliography problem

2005-12-12 Thread Andres Becerra Sandoval
On 12/12/05, K. Elo [EMAIL PROTECTED] wrote:
 Hi @ All,

 I have encountered an interesting problem with a document with a
 bibliography. I use a customised .bst file, originally created with
 latex makebst.

 The problem seems to related with the following two bibtex entries
 created with JabRef:

First, I would suggest to get rid of the dieresis and tildes ...


 @ARTICLE{br2004a,
   author = br,
   title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen
  ^
---|


  Andres


Re: scalable braces in math mode

2005-12-12 Thread Nusret BALCI
Jean-Marc,
After your remark I tried it again. Unfortunately,
(whether it's surprising I don't know) but M-m
~C-~M-~S-braceleft doesn't work; but if you put
bracketleft instead, it works. My system is Windows
XP, not linux: can this be the source of the problem?
I personally solved my problem by other means, though.

Regards (and thanks for the meaning of ~ in the given
context. it seems it's not used properly in math.bind
file, or it may have to do something with windows, or
maybe... I don't know :))

Regards,

Nusret


--- Jean-Marc Lasgouttes
[EMAIL PROTECTED] wrote:

  Nusret == Nusret BALCI [EMAIL PROTECTED]
 writes:
 
 Nusret \bind M-m ~C-~M-~S-braceleft math-delim {
 }
 
 Nusret That's a problem at least if your keyboard
 is a cheap standard
 Nusret one like mine (In fact, I don't even have an
 AltGr key,
 Nusret instead I use Ctrl+Alt when needed). It is
 like turning on
 Nusret caps lock, and then pressing Shift+A to
 obtain 'A' :). After I
 Nusret change it to the following:
 
 Nusret \bind M-m ~C-~M-~S-bracketleft math-delim
 { }
 
 Nusret everything works alright.
 
 Nusret Do you have any idea what those ~'s stand
 for though?
 
 They mean do not look at those modifiers. So
 basically, anything
 that leads to a braceleft { character should be
 OK. I am surprised that
 you would have to use a bracketleft [.
 
 JMarc
 


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


Re: Bibliography problem

2005-12-12 Thread K. Elo
Andres Becerra Sandoval, maanantai, 12. joulukuuta 2005 15:53:
 On 12/12/05, K. Elo [EMAIL PROTECTED] wrote:
  Hi @ All,
 
  I have encountered an interesting problem with a document with a
  bibliography. I use a customised .bst file, originally created with
  latex makebst.
 
  The problem seems to related with the following two bibtex entries
  created with JabRef:

 First, I would suggest to get rid of the dieresis and tildes ...

  @ARTICLE{br2004a,
author = br,
title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen

   ^
 ---|

I beg your pardon Where do I have tildes And just to get it 
straight: in the new German spelling you write Russland, not anymore 
Rußland. So this was not really helpful at all.

Kimmo


Re: scalable braces in math mode (sciword.bind overhaul is needed)

2005-12-12 Thread Nusret BALCI
Jean-Marc,
As you said you fixed the typo, I thought you may be
maintaining the binding files. Excuse me if that's not
the case. But if so, I had many problems with
sciword.bind file. As an example,

\bind C-S-bar math-delim | |
\bind C-S-brokenbar   math-delim | |
\bind C-M-bar math-delim | |
 None of the above works on my system. I had to change
bar's to backslash (without quotes). 
Similarly,
\bind S-C-braceleft   math-delim { }
\bind S-C-braceright  math-delim { }
don't work, I needed bracketleft, etc.

But interestingly (I've just noticed this one), if you
replace C key with M key, you can use bar or
braceleft, etc. OK with M, but not OK with C. Isn't
this interesting?

I thought this feedback may help the maintainer. 

Best regards,

Nusret


--- Jean-Marc Lasgouttes
[EMAIL PROTECTED] wrote:

  Nusret == Nusret BALCI [EMAIL PROTECTED]
 writes:
 
 Nusret I use sciword binding file. It supposedly
 includes the
 Nusret math.bind file which contains the binding
 you mentioned (but
 Nusret without AltGr). However it didn't work. I
 tried to find the
 Nusret reason and noticed that there is a typo in
 sciword.bind file:
 Nusret it inclued maths.bind file (which doesn't
 exist) instead of
 Nusret math.bind.
 
 It is a typo indeed. I just fixed it.
 
 Thanks.
 
 JMarc
 


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


Re: Off-topic: 7 questions about usage of LaTeX.

2005-12-12 Thread Andrei Popov
Hello Banibrata,

Sunday, December 11, 2005, 10:30:10 AM, you wrote:

 Q-1) How do I leave a page Intetionally Blank, after the title page,
 and before the abstract page, if I am using..

smth like \thispagestyle{empty} should do the trick, if I remember
correctly.

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re: Bibliography problem [SOLVED]

2005-12-12 Thread K. Elo
Hi,

OK, I found the solution by myself: If the url contains _ characters, 
you will run into problems. These characters must be entered as \_. 
After having repaired the .bib entries containing _-characters, the 
output was produced correctly.

Thanks anyway,
Kimmo


Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:

Hi @ All,

I have encountered an interesting problem with a document with a 
bibliography. I use a customised .bst file, originally created with 
latex makebst.


The problem seems to related with the following two bibtex entries 
created with JabRef:


@ARTICLE{br2004a,
  author = br,
  title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen 
{B}eziehungen

waren noch nie so gut},
  journal = br_online,
  year = {2004},
  number = {8. Juli},
  entrytype = {08.07.},
  url = 
{{[}http://www.bundesregierung.de/dokumente/-,413.680598/Artikel/dokument.htm,

besucht am 2. September 2005{]}},
}

@ARTICLE{br2004b,
  author = br,
  title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen 
{G}ebieten

vereinbart},
  journal = br_online,
  year = {2004},
  number = {21. Dezember},
  entrytype = {21.12.},
  url = 
{\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen-.htm,

besucht am 2. September 2005\]},


should _always_ be written as 
url={\url{http://www.bundesregierung.de/Politikt}},


in the bib file

Herbert



missing documentation ...?

2005-12-12 Thread Martin A. Hansen
i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? ) ?

text%
col%
page%
line%
theight%
pheight%

when to use which?

moreover, when to set height and width?

 and when to use the maintain aspect ratio button?


martin


Re: Bibliography problem

2005-12-12 Thread K. Elo
Hi,

Herbert Voss, 12.12.2005 16:33:
  @ARTICLE{br2004b,
author = br,
title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen
  {G}ebieten
  vereinbart},
journal = br_online,
year = {2004},
number = {21. Dezember},
entrytype = {21.12.},
url =
  {\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-
 Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen
 -.htm, besucht am 2. September 2005\]},

 should _always_ be written as
 url={\url{http://www.bundesregierung.de/Politikt}},

 in the bib file

This might be true, but this won't work, if your .bst uses the \url 
command to format url-fields (as does mine).

Kimmo


Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd


On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? ) ?

text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page. So 
say your original graphic is A4 sized but you want it to be much smaller 
in print then the following are useful


text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the 
'maintain aspect ratio' box locks the figure so that if you halve the 
width you also halve the height. It stops the figure getting distorted. 
However you can set the height and width thus forcing the image to 
distort.


In general i set the width of my figures so they look how i want (taking 
in to account the aspect ratio) and use the text% option.


Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin



Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:

Hi,

Herbert Voss, 12.12.2005 16:33:


@ARTICLE{br2004b,
 author = br,
 title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen
{G}ebieten
vereinbart},
 journal = br_online,
 year = {2004},
 number = {21. Dezember},
 entrytype = {21.12.},
 url =
{\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-
Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen
-.htm, besucht am 2. September 2005\]},


should _always_ be written as
url={\url{http://www.bundesregierung.de/Politikt}},

in the bib file



This might be true, but this won't work, if your .bst uses the \url 
command to format url-fields (as does mine).


url and \url are _two_ things! show me an example
where it doesn't work!

Herbert



Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would like it
to be rescaled maintaining aspect ratio, but the height should be fitted to
the height of the text-body - so it doesnt go over the edge of the paper, or
interferes with the footer or header. evidently i have to do some pretty
random things to get there. first of all, since the determining factor is
the height, i need to adjust the height option - and to do that - i have to
alter the width option from scale% to something else. but in doing that -
i may be setting the determining factor to something width related??? but i
must set the width option to something before i am allowed to set the height
option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom margin
is ok.

- and with width=line% and height=theight% and aspect ratio selected - and
the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable amount of
time to get these settings set so that both the right and bottom margin
overshoots - but how to get it right?


martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:


 On Mon, 12 Dec 2005, Martin A. Hansen wrote:

  i have been trying to figure out how the different settings in
  graphic-output works.
 
  what are the meaning of these ( this is not mentioned in the docs?!? ) ?
 
  text%
  col%
  page%
  line%
  theight%
  pheight%

 THese allow you to scale the image as you want it to be on the page. So
 say your original graphic is A4 sized but you want it to be much smaller
 in print then the following are useful

 text% - this is percentage of text width
 col%  -   column width
 page% -   page width
 line% -   line width
 theight% -text height
 pheight% -page height

 So you can set either the width or height of the image. Using the
 'maintain aspect ratio' box locks the figure so that if you halve the
 width you also halve the height. It stops the figure getting distorted.
 However you can set the height and width thus forcing the image to
 distort.

 In general i set the width of my figures so they look how i want (taking
 in to account the aspect ratio) and use the text% option.

 Just play about and see what suits.

 Geoff

 
  when to use which?
 
  moreover, when to set height and width?
 
  and when to use the maintain aspect ratio button?
 
 
  martin
 



Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would like it
to be rescaled maintaining aspect ratio, but the height should be fitted to
the height of the text-body - so it doesnt go over the edge of the paper, or
interferes with the footer or header.



Simply set Width to 0 scale% and height to 100 theight% and select 
'maintain aspect ratio'


Tell me if this works


random things to get there. first of all, since the determining factor is
the height, i need to adjust the height option - and to do that - i have to
alter the width option from scale% to something else. but in doing that -
i may be setting the determining factor to something width related??? but i
must set the width option to something before i am allowed to set the height
option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom margin
is ok.

- and with width=line% and height=theight% and aspect ratio selected - and
the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable amount of
time to get these settings set so that both the right and bottom margin
overshoots - but how to get it right?


You dont have to set every setting. Just choose the ones that make snese 
and set the others to 0








martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:



On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? ) ?

text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page. So
say your original graphic is A4 sized but you want it to be much smaller
in print then the following are useful

text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the
'maintain aspect ratio' box locks the figure so that if you halve the
width you also halve the height. It stops the figure getting distorted.
However you can set the height and width thus forcing the image to
distort.

In general i set the width of my figures so they look how i want (taking
in to account the aspect ratio) and use the text% option.

Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin







Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
the problem is, that you cannot set width to 0 scale% and then adjust the
height option. the height option is locked as long as the width is set to
scale%.


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:

 On Mon, 12 Dec 2005, Martin A. Hansen wrote:

  i am still confused.
 
  page% - that is the width of the page from paper edge to paper edge?
  line%  - that is the width from from margin to margin? or is that text%
 
  and which of these settings include footer and header - that would be
  pheight% as opposed to theight%?
 
  actually, these abbreviations are not very logic - i can choose width =
  theight and hight=text - i find that confusing.
 
  my current problem is a narrow, figure that is quite high. i would like
 it
  to be rescaled maintaining aspect ratio, but the height should be fitted
 to
  the height of the text-body - so it doesnt go over the edge of the
 paper, or
  interferes with the footer or header.


 Simply set Width to 0 scale% and height to 100 theight% and select
 'maintain aspect ratio'

 Tell me if this works

  random things to get there. first of all, since the determining factor
 is
  the height, i need to adjust the height option - and to do that - i have
 to
  alter the width option from scale% to something else. but in doing
 that -
  i may be setting the determining factor to something width related???
 but i
  must set the width option to something before i am allowed to set the
 height
  option
 
  so with widht=theight% height=theight% and aspect ratio selected. that
  results in the figure overshooting the right margin - but the bottom
 margin
  is ok.
 
  - and with width=line% and height=theight% and aspect ratio selected -
 and
  the result overshoots the bottom margin - but the right margin is ok.
 
  now, i am pretty sure that it should be possible in a reasonable amount
 of
  time to get these settings set so that both the right and bottom margin
  overshoots - but how to get it right?

 You dont have to set every setting. Just choose the ones that make snese
 and set the others to 0
 



 
  martin
 
 
 
  On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:
 
 
  On Mon, 12 Dec 2005, Martin A. Hansen wrote:
 
  i have been trying to figure out how the different settings in
  graphic-output works.
 
  what are the meaning of these ( this is not mentioned in the docs?!? )
 ?
 
  text%
  col%
  page%
  line%
  theight%
  pheight%
 
  THese allow you to scale the image as you want it to be on the page. So
  say your original graphic is A4 sized but you want it to be much
 smaller
  in print then the following are useful
 
  text% - this is percentage of text width
  col%  -   column width
  page% -   page width
  line% -   line width
  theight% -text height
  pheight% -page height
 
  So you can set either the width or height of the image. Using the
  'maintain aspect ratio' box locks the figure so that if you halve the
  width you also halve the height. It stops the figure getting distorted.
  However you can set the height and width thus forcing the image to
  distort.
 
  In general i set the width of my figures so they look how i want
 (taking
  in to account the aspect ratio) and use the text% option.
 
  Just play about and see what suits.
 
  Geoff
 
 
  when to use which?
 
  moreover, when to set height and width?
 
  and when to use the maintain aspect ratio button?
 
 
  martin
 
 
 



Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Martin A. Hansen wrote:


the problem is, that you cannot set width to 0 scale% and then adjust the
height option. the height option is locked as long as the width is set to
scale%.


My apologies, I meant 0 sp, or in fact any other option that lets you into 
the height box





martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:


On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would like

it

to be rescaled maintaining aspect ratio, but the height should be fitted

to

the height of the text-body - so it doesnt go over the edge of the

paper, or

interferes with the footer or header.



Simply set Width to 0 scale% and height to 100 theight% and select
'maintain aspect ratio'

Tell me if this works


random things to get there. first of all, since the determining factor

is

the height, i need to adjust the height option - and to do that - i have

to

alter the width option from scale% to something else. but in doing

that -

i may be setting the determining factor to something width related???

but i

must set the width option to something before i am allowed to set the

height

option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom

margin

is ok.

- and with width=line% and height=theight% and aspect ratio selected -

and

the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable amount

of

time to get these settings set so that both the right and bottom margin
overshoots - but how to get it right?


You dont have to set every setting. Just choose the ones that make snese
and set the others to 0








martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:



On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? )

?


text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page. So
say your original graphic is A4 sized but you want it to be much

smaller

in print then the following are useful

text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the
'maintain aspect ratio' box locks the figure so that if you halve the
width you also halve the height. It stops the figure getting distorted.
However you can set the height and width thus forcing the image to
distort.

In general i set the width of my figures so they look how i want

(taking

in to account the aspect ratio) and use the text% option.

Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin











Re: Bibliography problem

2005-12-12 Thread K. Elo
Hi,

Herbert Voss, 12.12.2005 17:28:
  This might be true, but this won't work, if your .bst uses the \url
  command to format url-fields (as does mine).

 url and \url are _two_ things! show me an example
 where it doesn't work!

Well, using url={\url{site}} in a bibtex won't solve the underscore (_) 
problem. If the site contains pure underscore (_) you still have to 
use \_. You may try it with the attached files (test.bib,.bst,.lyx). 

Kind regards,
Kimmo
This file was created with JabRef 1.8.1.
Encoding: ISO8859_1

@STRING{apuz = {Aus Politik und Zeitgeschichte}}

@STRING{blaetter = {Bl�ter fr deutsche und internationale Politik}}

@STRING{br = {Bundesregierung}}

@STRING{br_bulletin = {Bulletin der Bundesregierung}}

@STRING{br_online = {Bundesregierung Online [online]}}

@STRING{br_presse = {{Presse- und Informationsamt der Bundesregierung}}}

@STRING{GP = {German Politics}}

@STRING{ip = {Internationale Politik}}

@STRING{JPR = {Journal of Peace Research}}

@STRING{pvs = {Politische Vierteljahresschrift}}

@STRING{zfp = {Zeitschrift fr Politikwissenschaft}}

@ARTICLE{br2004a,
  author = br,
  title = {{B}undeskanzler {S}chr�er: {D}ie deutsch-russischen {B}eziehungen
	waren noch nie so gut},
  journal = br_online,
  year = {2004},
  number = {8. Juli},
  entrytype = {08.07.},
  url = {\url{[http://www.bundesregierung.de/dokumente/-,413_680598/Artikel/dokument.htm,
	besucht am 2. September 2005]}},
}

@ARTICLE{br2004b,
  author = br,
  title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen {G}ebieten
	vereinbart},
  journal = br_online,
  year = {2004},
  number = {21. Dezember},
  entrytype = {21.12.},
  url = {\url{[http://www.bundesregierung.de/Politikthemen/Familie\_-Kinder-und-Jugend\\/Nachrichten-\,712\.763157/artikel/Ausbau-der-deutsch-russischen-.htm,
	besucht am 2. September 2005]}},
}

% BibTeX standard bibliography style `politiikka'
% version 0.1-beta for use with BibTeX versions 0.99a or later
%
% This bibliography is generated with the docstrip utility.
% The original source files were:
%
% merlin.mbs [version 2004/02/09 4.13 (PWD, AO, DPC)]
%  (with options: 
`babel,ay,nat,vonx,nm-revf,jnrlst,nmlm,x20,x0,m1,keyxyr,dt-beg,yr-par,yrp-col,note-yr,tit-it,jttl-rm,volp-com,pp-last,num-xser,numser,ser-vol,ser-ed,bkpg-x,add-pub,pre-pub,doi,edparxc,blk-com,au-col,in-col,ppx,ed,abr,ednx,xedn,amper,and-xcom,eprint,url,url-blk,nfss,')
%
% This bibliography style file requires a file named babelbst.tex
% containing the definitions of word commands like \bbleditor, etc.
%
% This is an author-year citation style bibliography. As such, it is
% non-standard LaTeX, and requires a special package file to function properly.
% Such a package isnatbib.sty   by Patrick W. Daly
%
% The form of the \bibitem entries is
%   \bibitem[Jones et al.(1990)]{key}...
%   \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
% 
% The essential feature is that the label (the part in brackets) consists
% of the author names, as they should appear in the citation, with the year
% in parentheses following. There must be no space before the opening
% parenthesis!
%
% With natbib v5.3, a full list of authors may also follow the year.
% In natbib.sty, it is possible to define the type of enclosures that is
% really wanted (brackets or parentheses), but in either case, there must
% be parentheses in the label.
% The \cite command functions as follows:
%   \citet{key} ==Jones et al. (1990)
%   \citet*{key} ==   Jones, Baker, and Smith (1990)
%   \citep{key} ==(Jones et al., 1990)
%   \citep*{key} ==   (Jones, Baker, and Smith, 1990)
%   \citep[chap. 2]{key} ==   (Jones et al., 1990, chap. 2)
%   \citep[e.g.][]{key} ==(e.g. Jones et al., 1990)
%   \citep[e.g.][p. 32]{key} ==   (e.g. Jones et al., p. 32)
%   \citeauthor{key} ==   Jones et al.
%   \citeauthor*{key} ==  Jones, Baker, and Smith
%   \citeyear{key} == 1990
%
%
% Copying of this file is authorized only if either
% (1) you make absolutely no changes to your copy, including name, or
% (2) if you do make changes, you name it something other than
% politiikka.bst, btxbst.doc, plain.bst, unsrt.bst, alpha.bst, abbrv.bst, 
% agsm.bst, dcu.bst or kluwer.bst.
% This restriction helps ensure that all standard styles are identical.
%
% AUTHOR
%   Kimmo Elo, Dep. of political science, University of Turku, Finland
%   e-mail: [EMAIL PROTECTED]
%
%
% This style files does NOT support:
% - @incollection entries (use @inbook instead. When *cross-referring*
%   please use @inbook for the referring entry and @collection for the 
%   entry being referred to.)
% 
%---

ENTRY
  { address
archive
author
booktitle
chapter
doi
edition
editor
eid
eprint
howpublished
institution
journal
key
language% Additional field for defining the 

Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Martin A. Hansen wrote:


ok - setting the width option to 0 something-else-than-scale% and then
height to 100 theight% (and keep aspect ratio) that set the image height to
the full height of the text-body. that is nice.

however


the caption now conflicts with the footer ... that was not what i meant!



You can only scale images, I am not sure you can scale floats which is 
what you are thinking happens.


The float is the image+caption. So really the scaling of the image, to fit 
the float on your page, will depend how much space your caption takes up.


For this you really need to proceed by trial and error. Now you know how 
to sclae your image you will just have to play a bit.





martin

On 12/12/05, Martin A. Hansen [EMAIL PROTECTED] wrote:


the problem is, that you cannot set width to 0 scale% and then adjust the
height option. the height option is locked as long as the width is set to
scale%.


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:


On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that

text%


and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width

=

theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would

like it

to be rescaled maintaining aspect ratio, but the height should be

fitted to

the height of the text-body - so it doesnt go over the edge of the

paper, or

interferes with the footer or header.



Simply set Width to 0 scale% and height to 100 theight% and select
'maintain aspect ratio'

Tell me if this works


random things to get there. first of all, since the determining factor

is

the height, i need to adjust the height option - and to do that - i

have to

alter the width option from scale% to something else. but in doing

that -

i may be setting the determining factor to something width related???

but i

must set the width option to something before i am allowed to set the

height

option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom

margin

is ok.

- and with width=line% and height=theight% and aspect ratio selected -

and

the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable

amount of

time to get these settings set so that both the right and bottom

margin

overshoots - but how to get it right?


You dont have to set every setting. Just choose the ones that make snese
and set the others to 0








martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:



On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!?

) ?


text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page.

So

say your original graphic is A4 sized but you want it to be much

smaller

in print then the following are useful

text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the
'maintain aspect ratio' box locks the figure so that if you halve the
width you also halve the height. It stops the figure getting

distorted.

However you can set the height and width thus forcing the image to
distort.

In general i set the width of my figures so they look how i want

(taking

in to account the aspect ratio) and use the text% option.

Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin














Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
that is too bad. i really should say that latex ought to be the best
application to calculate the height of the caption - so i can fit the
image-float on a page without overshooting anything.

perhaps one could do a hack with some ERT?


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:

 On Mon, 12 Dec 2005, Martin A. Hansen wrote:

  ok - setting the width option to 0 something-else-than-scale% and then
  height to 100 theight% (and keep aspect ratio) that set the image height
 to
  the full height of the text-body. that is nice.
 
  however
 
 
  the caption now conflicts with the footer ... that was not what i meant!
 

 You can only scale images, I am not sure you can scale floats which is
 what you are thinking happens.

 The float is the image+caption. So really the scaling of the image, to fit
 the float on your page, will depend how much space your caption takes up.

 For this you really need to proceed by trial and error. Now you know how
 to sclae your image you will just have to play a bit.

 
 
  martin
 
  On 12/12/05, Martin A. Hansen [EMAIL PROTECTED] wrote:
 
  the problem is, that you cannot set width to 0 scale% and then adjust
 the
  height option. the height option is locked as long as the width is set
 to
  scale%.
 
 
  martin
 
  On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:
 
  On Mon, 12 Dec 2005, Martin A. Hansen wrote:
 
  i am still confused.
 
  page% - that is the width of the page from paper edge to paper edge?
  line%  - that is the width from from margin to margin? or is that
  text%
 
  and which of these settings include footer and header - that would be
  pheight% as opposed to theight%?
 
  actually, these abbreviations are not very logic - i can choose width
  =
  theight and hight=text - i find that confusing.
 
  my current problem is a narrow, figure that is quite high. i would
  like it
  to be rescaled maintaining aspect ratio, but the height should be
  fitted to
  the height of the text-body - so it doesnt go over the edge of the
  paper, or
  interferes with the footer or header.
 
 
  Simply set Width to 0 scale% and height to 100 theight% and select
  'maintain aspect ratio'
 
  Tell me if this works
 
  random things to get there. first of all, since the determining
 factor
  is
  the height, i need to adjust the height option - and to do that - i
  have to
  alter the width option from scale% to something else. but in doing
  that -
  i may be setting the determining factor to something width related???
  but i
  must set the width option to something before i am allowed to set the
  height
  option
 
  so with widht=theight% height=theight% and aspect ratio selected.
 that
  results in the figure overshooting the right margin - but the bottom
  margin
  is ok.
 
  - and with width=line% and height=theight% and aspect ratio selected
 -
  and
  the result overshoots the bottom margin - but the right margin is ok.
 
  now, i am pretty sure that it should be possible in a reasonable
  amount of
  time to get these settings set so that both the right and bottom
  margin
  overshoots - but how to get it right?
 
  You dont have to set every setting. Just choose the ones that make
 snese
  and set the others to 0
 
 
 
 
 
  martin
 
 
 
  On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:
 
 
  On Mon, 12 Dec 2005, Martin A. Hansen wrote:
 
  i have been trying to figure out how the different settings in
  graphic-output works.
 
  what are the meaning of these ( this is not mentioned in the
 docs?!?
  ) ?
 
  text%
  col%
  page%
  line%
  theight%
  pheight%
 
  THese allow you to scale the image as you want it to be on the page.
  So
  say your original graphic is A4 sized but you want it to be much
  smaller
  in print then the following are useful
 
  text% - this is percentage of text width
  col%  -   column width
  page% -   page width
  line% -   line width
  theight% -text height
  pheight% -page height
 
  So you can set either the width or height of the image. Using the
  'maintain aspect ratio' box locks the figure so that if you halve
 the
  width you also halve the height. It stops the figure getting
  distorted.
  However you can set the height and width thus forcing the image to
  distort.
 
  In general i set the width of my figures so they look how i want
  (taking
  in to account the aspect ratio) and use the text% option.
 
  Just play about and see what suits.
 
  Geoff
 
 
  when to use which?
 
  moreover, when to set height and width?
 
  and when to use the maintain aspect ratio button?
 
 
  martin
 
 
 
 
 
 
 



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Enrico Forestieri
Angus Leeming [EMAIL PROTECTED] writes:
 
 From an MSYS terminal window (maybe even a cmd.exe one for all I know):
 
 cd C:/Program Files/LyX/Resources/lyx
 PATH TO/sh.exe configure
 
 That will generate the missing files.

Angus, what about a configure.bat script?

Perhaps it can also solve the problem that the configure script is not
launched in 137pre5 at installation time (I also have this problem).

Here is the one I use. It extracts the \path_prefix from configure to
properly set up the path before calling sh.exe configure.
Please, manually join the lines ending with \ to the line following them.
I had to resort to break them this way as the gmane interface does not let
me post lines longer than 80 chars.

8888888
@echo off
if %OS%==Windows_NT goto win2k
goto usage

:win2k
setlocal enableextensions
if not exist configure goto noconf
if %ComSpec%== goto nocmd
if %windir%== goto nocmd

:: Make sure native windows commands are (initially) ahead in the path
for /f usebackq tokens=* delims= %%A in (`echo %ComSpec%`) do \
set PATH=%windir%;%%~dpA;%PATH%

:: Extract \path_prefix from configure and prepend it to the path
for /f usebackq tokens=2 delims=  %%A in (`type configure ^| \
find path_prefix`) do set pathprefix=%%A
set pathprefix=%pathprefix:=%
set pathprefix=%pathprefix:\\=\%
set PATH=%pathprefix%;%PATH%

:: We are ready to launch configure
C:\cygwin\bin\sh.exe configure
goto end

:nocmd
echo.
echo Cannot find the command interpreter or the system dir.
goto end

:usage
echo.
echo This script works on Windows NT 4 / 2000 / XP
echo and performs a system wide configuration of LyX.
goto end

:noconf
echo.
echo Cannot find the configure script.

:end
if %OS%==Windows_NT endlocal
8888888





Re: missing documentation ...?

2005-12-12 Thread Robert Orr
 
  and when to use the maintain aspect ratio 

So, on the aspect ratio, when one sets the H or W,
which one of them becomes the dominant variable when
the maintain aspect ratio box is checked? The H or
the W?



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


Re: missing documentation ...?

2005-12-12 Thread Georg Baum
Martin A. Hansen wrote:

 that is too bad. i really should say that latex ought to be the best
 application to calculate the height of the caption - so i can fit the
 image-float on a page without overshooting anything.
 
 perhaps one could do a hack with some ERT?

Probably. I'd suggest to ask the LaTeX experts on the comp.text.tex
newsgroup for a pure LaTeX solution. Then present it here and somebody
might be able to tell you how this can be adapted to LyX.


Georg



Re: Fw: installing Tex classes

2005-12-12 Thread Paul A. Rubin

Andres Becerra Sandoval wrote:

On 12/12/05, Marcel Vercouter [EMAIL PROTECTED] wrote:


- Original Message -
From: Marcel Vercouter
To: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 12:29 AM
Subject: installing Tex classes


I'd like to use 'hollywood' and 'broadway' layouts, and although they (hollywood) are 
listed as present in the New from Template menu, I get a Textclass error LyX 
will not be able to produce output.
Strugling my way in the LyX and MikTex sites, I could not find a clear 
procedure to install those classes (and any other that are not in the LyX 
package).
Any hint that will show me the right way to do it ?

Marcel




The document classes hollywood.cls and broadway.cls are in the lyx
sources. You can put them in /usr/local/share/texmf/tex/latex or in
~/texmf/tex/latex for your user only. Then you have to run texhash to
update TeX database.

--
  Andres



The easiest way to run texhash in MiKTeX is to run the MiKTeX Options 
application (from the start menu), and on the General tab click the 
first button (File name database - Refresh now).


Paul



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Angus Leeming
Enrico Forestieri wrote:
 Angus, what about a configure.bat script?

Y'know, sometimes the simplest ideas are the best ;-)

However, don't we need admin privileges to generate files in C:\Program
Files\LyX\Resources\lyx ?

-- 
Angus



Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:


This might be true, but this won't work, if your .bst uses the \url
command to format url-fields (as does mine).


url and \url are _two_ things! show me an example
where it doesn't work!



Well, using url={\url{site}} in a bibtex won't solve the underscore (_) 


it will!

problem. If the site contains pure underscore (_) you still have to 
use \_. You may try it with the attached files (test.bib,.bst,.lyx). 


\usepackage{url} in Layout-Document-Preamble

and there is _no_ error



Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:


  url = 
{\url{[http://www.bundesregierung.de/dokumente/-,413_680598/Artikel/dokument.htm,
besucht am 2. September 2005]}},


and the following is the reason why a \url in the bib file
is not needed, because the bst file does it already ...


FUNCTION {format.url}
{ url empty$
{  }
{ \url{ url * } * }
  if$
}


Herbert



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Enrico Forestieri [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 8:48 AM
Subject: Re: There's Something About Textclass.lst [WinXP, installing into]



Angus Leeming [EMAIL PROTECTED] writes:


From an MSYS terminal window (maybe even a cmd.exe one for all I know):

cd C:/Program Files/LyX/Resources/lyx
PATH TO/sh.exe configure

That will generate the missing files.


Angus, what about a configure.bat script?



This particular subject was about the Uwe .51 complete installer.
The OP had already tried sh.exe configure and it didn't work.
The OP does not have admin rights and that most likely is the
problem.

I do like your .bat idea. I have a configure file on my E: drive for
1.3.6 stable. The OP was able to install 1.3.6 because it does not
require admin rights. I think he should utilize his 1.3.6 configure
script and copy it to the 1.3.7pre5 Lyx\resource\lyx directory,
because I think it is very likely that if you examine your 1.3.7pre5
configure file you'll see that the Path preview section is inflated
by a ~two hundred characters.

Or you could edit Path prefix later if you use the 1.3.7pre5
configure. Or maybe leave it as it may not cause damage and just
be a hidden unsightly blemish.

I don't think gsview installs in the .51 series without admin rights.
So I found one, preview, which is shareware that does not appear to
use the registry: http://www.lib-sys.com/preview.htm

Since ghostscript creates the .ps file, you only really need a viewer
to print the file and maybe save it to another location than Lyx's temp.
So I changed the LyX default temp dir in order to use this .bat file,
opening up a dos prompt and changing drives from the c:~~ prompt
by typing E: enter (I installed LyX on E: in my non-admin rights test)

cd e:\preview\temp
cd lyx_tmpdir*
cd lyx_tmpbuf*
copy *.* e:\preview\temp
e:\preview\preview.exe

and one can use the file menu to open the contents of e:\pview\temp.
I clean up afterwards by using nuke.com, a common dangerous utility.

deleteps.bat:

E:\preview\nuke.com e:\preview\temp

md temp
(a screen will appear asking the user to type Y for yes/proceed)


Perhaps it can also solve the problem that the configure script is not
launched in 137pre5 at installation time (I also have this problem).



.bat or .cmd files can be very useful in Windows as scripts are in Linux,
and they are easy to create or modify slightly. So for instance your
script uses Cygwin; the Windows default is sh.exe and sed.exe originating
from C:\msys\1.0\bin so a less elegant batfile than yours could read, if a
prefab configure.bat file is included in the lyx1.3.7pre5 package, which
unpacks to the same directory as the installation directory (since the user
might change the default from c:\program files\lyx, which has its configure
in ~\lyx\resources\lyx). The user can also open and type from the dos
prompt from the location he has chosen for the Lyx installation:
(assuming default install directory for Msys)

config1.bat could contain a few simple alternatives:

1. C:\msys\1.0\bin\sh.exe configure (if config1.bat is in the same 
directory)

or
2. C:\msys\1.0\bin\sh.exe C:\program files\lyx\resources\lyx\configure
or
3. C:\msys\1.0\bin\sh.exe c:\lyx\resources\lyx\configure

The reason I went into this is just in case a current reader has this
problem which is solved with sh.exe configure, for a now fix.

They can open Notepad, copy and paste the correct line for their install,
change the default saving from .txt to all files and then use Save as
to name the config1.bat as they please (ending with .bat though) and
save it into the proper lyx\resources\lyx directory for their installation.
Open a dos prompt, navigate to the directory referred to above, and type
config1.bat enter at the prompt. Actually you can run 2 or 3 from what-
ever directory you have saved config1.bat to, from the dos prompt, for
instance from C:\documents and settings\username  config1.bat enter



Here is the one I use. It extracts the \path_prefix from configure to
properly set up the path before calling sh.exe configure.
Please, manually join the lines ending with \ to the line following them.
I had to resort to break them this way as the gmane interface does not let
me post lines longer than 80 chars.

8888888
@echo off
if %OS%==Windows_NT goto win2k
goto usage

:win2k
setlocal enableextensions
if not exist configure goto noconf
if %ComSpec%== goto nocmd
if %windir%== goto nocmd

:: Make sure native windows commands are (initially) ahead in the path
for /f usebackq tokens=* delims= %%A in (`echo %ComSpec%`) do \
   set PATH=%windir%;%%~dpA;%PATH%

:: Extract \path_prefix from configure and prepend it to the path
for /f usebackq tokens=2 delims=  %%A in (`type configure ^| \
   find path_prefix`) do set pathprefix=%%A
set pathprefix=%pathprefix:=%
set pathprefix=%pathprefix:\\=\%
set 

Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Enrico Forestieri
Angus Leeming [EMAIL PROTECTED] writes:
 
 However, don't we need admin privileges to generate files in C:\Program
 Files\LyX\Resources\lyx ?
 

I really don't know. My win2k came preinstalled on a FAT32 partition, so
I don't need privileges to write everywhere on disk, and I never used Windows
before last year. I need privileges only to perform administrative tasks
and recently I discovered the runas.exe command which changed my life ;-)
(it is a sort of su user -c command).

Anyway, I think that it cannot be worse than directly running sh.exe configure.
I don't know how the installer works, but couldn't it be a path problem?

--
Enrico




Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Robert Orr wrote:




and when to use the maintain aspect ratio


So, on the aspect ratio, when one sets the H or W,
which one of them becomes the dominant variable when
the maintain aspect ratio box is checked? The H or
the W?

I cant see why one would set both. THe point is if you want you figure to 
be say 10cm wide, want to maintain the shape, and arent worried about 
height then you set the width and click 'maintain aspect ratio'


If you are however converned with height and not width do the opposite.

And finally if you want to specify a height/width ratio different from the 
original figure then enter values for both height and width and leave the 
'maintain aspect ratio' box blank.


In order to set the width or height to be calculated in proportion to the 
aspect ratio set the value to 0 sp.


e.g. I have a 5cm wide 2cm high figure

1) I want it to be 11cm wide on the page. Set width 11cm height 0sp and 
clivk maitina aspct


2) I want it to be 4cm hgih. Set width 0sp height 200% and selct maintain 
aspect


3) I wanr it to be 11cm wide and 4cm high. Set width 11cm height 4cm and 
uncheck maintain aspect.


I hope this is clear

Geoff


Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Paul A. Rubin

Angus Leeming wrote:

Enrico Forestieri wrote:


Angus, what about a configure.bat script?



Y'know, sometimes the simplest ideas are the best ;-)

However, don't we need admin privileges to generate files in C:\Program
Files\LyX\Resources\lyx ?



Not positive, but I don't think so.  Whomsoever shall create that 
directory, yea verily shall he/she/it own it, and have all sorts of 
permissions in it.  I think (security on Windows has a stochastic 
element).  So if the batch file is run under the same login id that 
installed the software, it should work.  Maybe.  (An administrator could 
also run it.)


Paul




Re: missing documentation ...?

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Martin A. Hansen [EMAIL PROTECTED]

To: Geoffrey Lloyd [EMAIL PROTECTED]
Cc: LyX Users' Forum lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 8:29 AM
Subject: Re: missing documentation ...?


that is too bad. i really should say that latex ought to be the best
application to calculate the height of the caption - so i can fit the
image-float on a page without overshooting anything.

perhaps one could do a hack with some ERT?


martin

Hello,

I'm working my way through The Latex Graphics Companion
which has some renowned contributors/Goossens. Last night I 
read in Section 2.3.2, Resizing to a given size, that 


it is possible to specify that LaTeX material should be typeset
to a fixed horizontal or vertical dimension:

\resizebox*{h-dim}{v-dim}{material}

SH: To answer another question, the book continues,

When the aspect ratio of the material is to be maintained, then
it is enough to specify one of the dimensions, replacing the other
one with a ! sign.

SH: I don't know what the LyX mechanism is for maintaining
aspect ratio, maybe it just generates a ! symbol like in LaTeX.
This book was in my public library, so surely should be in a
local college/university library, or one can become a Friend
of the Library for $35 a year where I live. The public library
will also obtain a copy by interlibrary loan. I think a LaTeX
solution will be perceived as a bit advanced by many LyXers. 
Section 2.3.1, Scaling a LaTeX box states,


The \scalebox command lets you magnify or reduce text or
other LaTeX material by a scale factor:

\scalebox{scalefact}{material}

The first of the two (mandatory) arguments, (scalefact), 
specifies the factor by which both dimensions of the
_material_ are to be scaled. The following example shows 
how this works. ...


A supplementary optional argument, if present, is used to
specify a separate vertical scaling factor.

\scalebox{h-scale} [v-scale] {material}

This is demonstrated in the following examples, which also
show how multiple lines can be scaled by using the standard
LaTeX \parbox command. ...

I'm under the impression that not all LaTex functionality is
implemented in the LyX front-end, so more in depth reference 
material ought to be obtainable from LaTeX forums, docs or 
books, which can perhaps be enabled in LyX, as Georg said.


Good luck on however you choose to pursue your endeavor,
Stephen 



Re: missing documentation ...?

2005-12-12 Thread Robert Orr
 
 I cant see why one would set both. 

I don't want to beat a dead horse, but, for
instance,when experimenting to get the image just
right one might enter both the H and W and some point
during the process.  

So, if one enters both an H and a W parameter, does
LyX use the H and calculate the W, or does it take the
W and calculate the H?   I'm a little foggy on that
one and I've experimented with it to no conclusion.  

Phil



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


Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Enrico Forestieri
On Mon, 12 Dec 2005 13:42:19 -0800, Stephen Harris wrote:
 
 This particular subject was about the Uwe .51 complete installer.
 The OP had already tried sh.exe configure and it didn't work.
 The OP does not have admin rights and that most likely is the
 problem.

I must have missed this bit. Then this is an entirely different problem.

 I do like your .bat idea. I have a configure file on my E: drive for
 1.3.6 stable. The OP was able to install 1.3.6 because it does not
 require admin rights. I think he should utilize his 1.3.6 configure
 script and copy it to the 1.3.7pre5 Lyx\resource\lyx directory,
 because I think it is very likely that if you examine your 1.3.7pre5
 configure file you'll see that the Path preview section is inflated
 by a ~two hundred characters.

Yes, I noticed it. Anyway, I always edit the configure script after
installation to trim \path_prefix because I already have everything
needed in my path.

 Or you could edit Path prefix later if you use the 1.3.7pre5
 configure. Or maybe leave it as it may not cause damage and just
 be a hidden unsightly blemish.
 
 I don't think gsview installs in the .51 series without admin rights.
 So I found one, preview, which is shareware that does not appear to
 use the registry: http://www.lib-sys.com/preview.htm

The gsview sources are freely available, so one could always compile by
itself a copy and place it wherever suits. However, I understand that this
may be hard for most users.

[...]
 .bat or .cmd files can be very useful in Windows as scripts are in Linux,
 and they are easy to create or modify slightly. So for instance your
 script uses Cygwin; the Windows default is sh.exe and sed.exe originating
 from C:\msys\1.0\bin so a less elegant batfile than yours could read, if a
 prefab configure.bat file is included in the lyx1.3.7pre5 package, which
 unpacks to the same directory as the installation directory (since the user
 might change the default from c:\program files\lyx, which has its configure
 in ~\lyx\resources\lyx). The user can also open and type from the dos
 prompt from the location he has chosen for the Lyx installation:
 (assuming default install directory for Msys)

Yes, scripts are much more versatile than binaries and they may be adapted
easily. The one I posted is that which I use. I didn't try to make it the
most general possible as anyone can build upon it and adapt it to own
needs. This is the spirit of free software, I think, and I fully agree
with it.

[...]
 Your script is certainly hugely more elegant. I just thought to provide
 a simple means, although hardly simpler (if the user already has sh.exe
 in his Windows path) to complete his Lyx1.3.7pre5 install now. I was
 able to follow the Angus advice for this. I hope I'm reinforcing it, while
 your advice might be more suitable for inclusion in the installer package.

Why not simply get an archive (zip, tar, whatever) of the 1.3.7pre5 LyX
directory and unpack it over a 1.3.6 installation? Thereafter, one could
simply edit the configure script to adjust \path_prefix, run sh configure
and be done.

--
Enrico





Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Paul A. Rubin [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 3:05 PM
Subject: Re: There's Something About Textclass.lst [WinXP, installing into]



Angus Leeming wrote:

Enrico Forestieri wrote:


Angus, what about a configure.bat script?



Y'know, sometimes the simplest ideas are the best ;-)

However, don't we need admin privileges to generate files in C:\Program
Files\LyX\Resources\lyx ?



Not positive, but I don't think so.  Whomsoever shall create that 
directory, yea verily shall he/she/it own it, and have all sorts of 
permissions in it.  I think (security on Windows has a stochastic 
element).  So if the batch file is run under the same login id that 
installed the software, it should work.  Maybe.  (An administrator could 
also run it.)


Paul



Well, we are talking about an ordinary user and they did not
create C:\program files, that is created during the initial install.
The initial install is where/when the admin password is created.

When I tested this with Nautilus, my toy test alterego, which
has standard user rights, I could not install LyX to 
C:\program files\Lyx , an error message was generated with
every attempted file install. 


I could install however, to C:\Lyx or E:\LyX with 1.3.6
(but earlier I wasn't able to install to the C:\ drive in one test)
I've read various developer opinion about why MS decided
to have a C:\Program files, instead of C:\programs or the
German C:\programme. Nearly everybody agrees that it was
either stupid or deliberate, with most thinking deliberate since
it causes problems with Linux ports. I think that at the least
the default LyX install should be C:\Lyx rather than adopting
Microsoft propaganda. Has anyone read of a solid reason for 
MS creating C:\program files? They are trying to force a habit.

The instructions that come with Miktex say to install to a
directory without spaces, and that is the default. 


Likewise, I don't think runas.exe works unless you have the
admin or maybe high authority user status, just like su. An
ordinary user cannot use it. If you can use it, you already
own sufficient permissions. There is going to be no security
breach that obvious. I have installed LyX 1.3.7pre5 into 
C:\LyX and C:\program files\Lyx and either way, one still

needs to run sh.exe configure. I also installed 1.3.7pre5
as Nautilus, an ordinary user. It would not install on the
C: drive. It would install on E:\LyX and sh.exe configure
also ran successfully, no admin rights needed. However,
it used python24 which I installed while acting as admin.
A current 137pre5 install can use python24 if it is already
installed, but I've read that a non-admin user can't install
python24(and maybe gsview) to start with, they have to
use Python23, which is no big deal. 

So if the batch file is run under the same login id that 
installed the software, it should work.  


True enough, but the ordinary user can't install to 
C:\program files to begin with, and maybe not to C:

although a batch file will work where you do manage
to install LyX. Curiously, the Lyx137 install on my 
C: drive with admin priveleges was 30.31~mb but the 
137pre5 install on the non-admin user, E: drive was 
39.37mb~ So the tests seem to support Angus' view.


Regards,
Stephen





Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Enrico Forestieri [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 5:17 PM
Subject: Re: There's Something About Textclass.lst [WinXP, installing into]



because I think it is very likely that if you examine your 1.3.7pre5
configure file you'll see that the Path preview section is inflated
by a ~two hundred characters.


Yes, I noticed it. Anyway, I always edit the configure script after
installation to trim \path_prefix because I already have everything
needed in my path.



You mean your Windows path? I keep learning. I knew that
LyX would work with Path prefix alone, without any Lyx helper
programs in the Windows path, but I didn't know that one could
trim the path_prefix because it was already handled in the
Windows path.


Or you could edit Path prefix later if you use the 1.3.7pre5
configure. Or maybe leave it as it may not cause damage and just
be a hidden unsightly blemish.


[...]

Your script is certainly hugely more elegant. I just thought to provide
a simple means, although hardly simpler (if the user already has sh.exe
in his Windows path) to complete his Lyx1.3.7pre5 install now. I was
able to follow the Angus advice for this. I hope I'm reinforcing it, 
while
your advice might be more suitable for inclusion in the installer 
package.


Why not simply get an archive (zip, tar, whatever) of the 1.3.7pre5 LyX
directory and unpack it over a 1.3.6 installation? Thereafter, one could
simply edit the configure script to adjust \path_prefix, run sh 
configure

and be done.

--
Enrico



Well, maybe that would work, I wonder what Angus thinks? Since
I am only a computer technician rather than a developer, I can't
fully grasp all the ramifications of this approach; I always test, test...

Nice to see you developing ideas,
Stephen 





Re: Bibliography problem

2005-12-12 Thread K. Elo
Hi,

and thanks for your reply, Herbert.

Herbert Voss, maanantai, 12.12.2005 23:11:
 K. Elo wrote:
 This might be true, but this won't work, if your .bst uses the
  \url command to format url-fields (as does mine).
 
 url and \url are _two_ things! show me an example
 where it doesn't work!
 
  Well, using url={\url{site}} in a bibtex won't solve the underscore
  (_)

 it will!

No, it won't solve it CORRECTLY! Please see below.

  problem. If the site contains pure underscore (_) you still have
  to use \_. You may try it with the attached files
  (test.bib,.bst,.lyx).

 \usepackage{url} in Layout-Document-Preamble

 and there is _no_ error

Well, the are no errors, but the output is not correct! 

If I leave the underscore(s) alone and use the \usepackage{url} in the 
preamble, then all whitespaces in the bibtex entry are lost in the output 
(which is NOT correct). The result is the same, if I use no preamble, but 
url={\url{...}} in the bibtex-entry instead. If I use both \usepackage and 
url={\url..., then the url in the output will begin with \url (which is also 
NOT correct).

The only way I have managed to produce a correct output is the combination no 
preamble, url={site} format in a bibtex entry and all underscores in the site 
name as \_. You may twist and turn it like you will, but I have tested all 
possible (i.e. error-free) combinations and this is the only producing a 
correct, i.e. a WYSIWYM output. Please feel free to test it by yourself if you 
don't believe me.

Herbert Voss, 12.12.2005 23:25:
 and the following is the reason why a \url in the bib file
 is not needed, because the bst file does it already ...

  FUNCTION {format.url}
  { url empty$
  {  }
  { \url{ url * } * }
if$
  }

Well, this is already clear to me. As I mentioned, I have made the .bst file 
myself, so please belive me, I have an idea what it is supposed to do...;-) 
(I'm really not a newbie with .bst files).

To sum up: I don't see the point of using url={\url...} in a bibtex entry, if 
a) the .bst file does the formatting for you and b) if there are no other 
benefits (e.g. the underscore problem is not solved)... Or do I miss a benefit?

Kind regards,
Kimmo





How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread Bo Peng
Dear list,

I am trying to define a shortcut to aligh-right a paragraph. I tried

\bind something layout-paragraph align-right

but the paragraph layout dialog is opened.

Many thanks in advance.
Bo


Re: How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread K. Elo
Bo Peng, tiistai, 13. joulukuuta 2005 08:45:
 Dear list,

 I am trying to define a shortcut to aligh-right a paragraph. I tried

 \bind something layout-paragraph align-right

Try:
\bind something command-sequence layout-paragraph; align-right;

Kind regards,
Kimmo


Re: How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread Bo Peng
 \bind something command-sequence layout-paragraph; align-right;

layout-paragraph;  dialog opened
(aligh-right): Unknown function.

Bo


Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
that is pretty clear. now, it would be nice if your explanation was part of
the documentation!

also, it would be nice in future versions of lyx, if the image layout box
was more intuitive to use.

and of cause the possibility of a flag to include the height of the caption
in the image height.

regards


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:

 On Mon, 12 Dec 2005, Robert Orr wrote:

 
  and when to use the maintain aspect ratio
 
  So, on the aspect ratio, when one sets the H or W,
  which one of them becomes the dominant variable when
  the maintain aspect ratio box is checked? The H or
  the W?
 
 I cant see why one would set both. THe point is if you want you figure to
 be say 10cm wide, want to maintain the shape, and arent worried about
 height then you set the width and click 'maintain aspect ratio'

 If you are however converned with height and not width do the opposite.

 And finally if you want to specify a height/width ratio different from the
 original figure then enter values for both height and width and leave the
 'maintain aspect ratio' box blank.

 In order to set the width or height to be calculated in proportion to the
 aspect ratio set the value to 0 sp.

 e.g. I have a 5cm wide 2cm high figure

 1) I want it to be 11cm wide on the page. Set width 11cm height 0sp and
 clivk maitina aspct

 2) I want it to be 4cm hgih. Set width 0sp height 200% and selct maintain
 aspect

 3) I wanr it to be 11cm wide and 4cm high. Set width 11cm height 4cm and
 uncheck maintain aspect.

 I hope this is clear

 Geoff



Re: How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread K. Elo
Bo Peng, tiistai, 13. joulukuuta 2005 09:02:
  \bind something command-sequence layout-paragraph; align-right;

 layout-paragraph;  dialog opened
 (aligh-right): Unknown function.

Oops, my fault. The command is:
\bind something para-align right
but this is NOT yet implemented. Maybe in 1.4.x??

Kind regards,
Kimmo


Re: missing documentation ...?

2005-12-12 Thread Helge Hafting

Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?
 


This could be better documented, but is easy enough to figure
out by trying.  Scale an image and see. :-)

text%  Percent of the width of the text area (not including margins)
col%Percent of the widht of a column.  This is the same as text% for
   your usual single-column document, smaller for two-column text.
page% Percent of page width, including margins. The width of the paper.
   This one is rarely used.
line%   Percent of the width of a line.  The same as col% in standard 
text,
   but not always.  Lists uses lines that are shorter than the 
column,
   as some space is used up for the bullet/number/label.  Very 
useful
   if you're sticking an image in a list.  Using line% may be a 
good

   idea in general, the sizing will then work no matter if it is
   in a list, in a multicolumn text, a minipage, in a table 
with fixed

   column width - or in a standard page.


actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.
 


No reason _not_ to be able to choose width = height or vice versa.
It is useful when wanting a square layout, or something where
the width really depends on the height in some other way.



Re: Fw: installing Tex classes

2005-12-12 Thread Andres Becerra Sandoval
On 12/12/05, Marcel Vercouter [EMAIL PROTECTED] wrote:

 - Original Message -
 From: Marcel Vercouter
 To: lyx-users@lists.lyx.org
 Sent: Monday, December 12, 2005 12:29 AM
 Subject: installing Tex classes


 I'd like to use 'hollywood' and 'broadway' layouts, and although they 
 (hollywood) are listed as present in the New from Template menu, I get a 
 Textclass error LyX will not be able to produce output.
 Strugling my way in the LyX and MikTex sites, I could not find a clear 
 procedure to install those classes (and any other that are not in the LyX 
 package).
 Any hint that will show me the right way to do it ?

 Marcel


The document classes hollywood.cls and broadway.cls are in the lyx
sources. You can put them in /usr/local/share/texmf/tex/latex or in
~/texmf/tex/latex for your user only. Then you have to run texhash to
update TeX database.

--
  Andres


Re: scalable braces in math mode

2005-12-12 Thread Jean-Marc Lasgouttes
 Nusret == Nusret BALCI [EMAIL PROTECTED] writes:

Nusret \bind M-m ~C-~M-~S-braceleft math-delim { }

Nusret That's a problem at least if your keyboard is a cheap standard
Nusret one like mine (In fact, I don't even have an AltGr key,
Nusret instead I use Ctrl+Alt when needed). It is like turning on
Nusret caps lock, and then pressing Shift+A to obtain 'A' :). After I
Nusret change it to the following:

Nusret \bind M-m ~C-~M-~S-bracketleft math-delim { }

Nusret everything works alright.

Nusret Do you have any idea what those ~'s stand for though?

They mean do not look at those modifiers. So basically, anything
that leads to a braceleft { character should be OK. I am surprised that
you would have to use a bracketleft [.

JMarc


Re: scalable braces in math mode

2005-12-12 Thread Jean-Marc Lasgouttes
 Nusret == Nusret BALCI [EMAIL PROTECTED] writes:

Nusret I use sciword binding file. It supposedly includes the
Nusret math.bind file which contains the binding you mentioned (but
Nusret without AltGr). However it didn't work. I tried to find the
Nusret reason and noticed that there is a typo in sciword.bind file:
Nusret it inclued maths.bind file (which doesn't exist) instead of
Nusret math.bind.

It is a typo indeed. I just fixed it.

Thanks.

JMarc


Re: Superscript SOLVED

2005-12-12 Thread Geoffrey Lloyd

On Sat, 10 Dec 2005, Steve Litt wrote:


On Saturday 10 December 2005 02:12 pm, Charles de Miramon wrote:

Steve Litt wrote:

Hi all,

I just went to write O2, as in two oxygen atoms stuck together, and saw
no provision for superscripting the 2, at least not on the


Sorry to be an accurate scientist but really the 2 should be SUBscripted 
if you want to write O2, else it is O^2 which really means nothing at all.


Geoff



Format-Character dialog box. There was also no subscript. I know this
can't be true -- how do I do it?

I'm using LyX 1.3.3.


You can insert a subscript with insert -- special character -- subscript.
It is a hack that will create a math inset with a subscript.
Or you can use in ERT O\textsuperscript{2}

The two solutions are not typographically equivalent, the superscript is
not placed at the same place. For abreviations superscripts like 12th for
example, or Mr. Dr., use textsuperscript for chemical symbols use a
mathematical inset.

I wish the actual superscript and subscript hacks could go away. They are a
pain when you export a LyX file to rtf (they are transformed in
mathematical formulas) and result in wrong typesetting. Lyx should default
to \textsuperscript and \textsubscript


Thanks Charles,

I tried these both, and they both worked. I chose the
Insert-Specialcharacter-superscript method for 2 reasons:

1) The 2 was visible in the LyX file, which is more clear
2) The 2 was bigger, which in this case I liked.

Thanks so much for the help.

SteveT

Steve Litt
Author:
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
  * Troubleshooters.Com
  * http://www.troubleshooters.com



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Angus Leeming
Tariq Kamal wrote:

 Hello!
 
 I'm a relatively new user to LyX (installed it a couple of months ago
 in my laptop, and I've barely scratched the surface of its
 functionality). As it was, I figured that installing LyX into my work
 system would be a good idea. So I downloaded the
 LyXWin137preComplete-0-51.exe package for installation on my work PC
 (which runs Windows XP), and figured that it would not take more than
 half an hour to install, tops.
 
 In retrospect, using the 1.37 release might have been a mistake. The
 first attempt, I ended up getting this message:
 
 LyX wasn't able to find any layout description!
 
 Check the contents of the file textclass.lst
 Sorry, has to exit :-(
 
 Right. So I checked textclass.lst, and this is what I saw:
 
 ## This file declares layouts and their associated definition files.
 ## It has been automatically generated by configure
 ## Use Options/Reconfigure if you need to update it after a
 ## configuration change. Run ./configure manually to update the
 ## system wide version of this file.
 
 That's it. Nothing else. The other LST file, packages.lst, is at 0
 bytes. I'm guessing that this isn't the normal state of affairs.
 
 This situation has persisted, even after I did the following things:

From an MSYS terminal window (maybe even a cmd.exe one for all I know):

cd C:/Program Files/LyX/Resources/lyx
PATH TO/sh.exe configure

That will generate the missing files.

-- 
Angus



Re: Footnotes problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:


This is exactly what Charles suggested - and this works, no doubt!
But because I did NOT know LyX being smart enough to interpret a
footnote directly after a title as \thanks, I just had to figure
out a solution of my own (why on earth would I have posted my
question if I had known the answer).


A thanks has to placed _inside_ a title or author and _not_
outside. If you want something only appear in the footnote
without a footnotemark, then use \footnotetext[]{...}



Well, THIS is clear to me :)

What I was referring to were the problems with inserting an ERT 
containing the LaTeX command \thanks, which should contain a url, i.e. 
Insert-ERT, \thanks{bla bla bla [EMAIL PROTECTED] This won't work! The 
solution You and Charles mentioned is a working LyX-solution. The 
solution I suggested is a LaTeX-style solution with LyX. Both works, 
although yours is a bit more elegant...


I have attached two files the first (test-1.lyx) containg the 
non-working, the second (test-2.lyx) containg the working solution with 
a url within \thanks in an ERT.


this is what I call nonsense, using LyX, but then writing
things, which LyX directly supports, with ERT.

Herbert



Bibliography problem

2005-12-12 Thread K. Elo
Hi @ All,

I have encountered an interesting problem with a document with a 
bibliography. I use a customised .bst file, originally created with 
latex makebst.

The problem seems to related with the following two bibtex entries 
created with JabRef:

@ARTICLE{br2004a,
  author = br,
  title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen 
{B}eziehungen
waren noch nie so gut},
  journal = br_online,
  year = {2004},
  number = {8. Juli},
  entrytype = {08.07.},
  url = 
{{[}http://www.bundesregierung.de/dokumente/-,413.680598/Artikel/dokument.htm,
besucht am 2. September 2005{]}},
}

@ARTICLE{br2004b,
  author = br,
  title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen 
{G}ebieten
vereinbart},
  journal = br_online,
  year = {2004},
  number = {21. Dezember},
  entrytype = {21.12.},
  url = 
{\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen-.htm,
besucht am 2. September 2005\]},
}

Article-entries should be formatted as follows:
Author (Year), 'Title', Journal (in italics), vol(num), url, pages.

When the output is produced, the first entry is formatted correctly, but 
the second entry has an emphasised url with extra line breaks before 
and after (related to the \, I suppose).

The interesting point is, however, if I replace \[ (in the second entry) 
either with [ or {[}, I'll get several LaTeX errors complaining 
problems with the second entry!

I have no idea why some of these entries are working whereas the others 
cause errors when producing the output. I would be glad if you could 
help me to solve this problem.

Thanks in advance  kind regards,
Kimmo


Re: Bibliography problem

2005-12-12 Thread Andres Becerra Sandoval
On 12/12/05, K. Elo [EMAIL PROTECTED] wrote:
 Hi @ All,

 I have encountered an interesting problem with a document with a
 bibliography. I use a customised .bst file, originally created with
 latex makebst.

 The problem seems to related with the following two bibtex entries
 created with JabRef:

First, I would suggest to get rid of the dieresis and tildes ...


 @ARTICLE{br2004a,
   author = br,
   title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen
  ^
---|


  Andres


Re: scalable braces in math mode

2005-12-12 Thread Nusret BALCI
Jean-Marc,
After your remark I tried it again. Unfortunately,
(whether it's surprising I don't know) but M-m
~C-~M-~S-braceleft doesn't work; but if you put
bracketleft instead, it works. My system is Windows
XP, not linux: can this be the source of the problem?
I personally solved my problem by other means, though.

Regards (and thanks for the meaning of ~ in the given
context. it seems it's not used properly in math.bind
file, or it may have to do something with windows, or
maybe... I don't know :))

Regards,

Nusret


--- Jean-Marc Lasgouttes
[EMAIL PROTECTED] wrote:

  Nusret == Nusret BALCI [EMAIL PROTECTED]
 writes:
 
 Nusret \bind M-m ~C-~M-~S-braceleft math-delim {
 }
 
 Nusret That's a problem at least if your keyboard
 is a cheap standard
 Nusret one like mine (In fact, I don't even have an
 AltGr key,
 Nusret instead I use Ctrl+Alt when needed). It is
 like turning on
 Nusret caps lock, and then pressing Shift+A to
 obtain 'A' :). After I
 Nusret change it to the following:
 
 Nusret \bind M-m ~C-~M-~S-bracketleft math-delim
 { }
 
 Nusret everything works alright.
 
 Nusret Do you have any idea what those ~'s stand
 for though?
 
 They mean do not look at those modifiers. So
 basically, anything
 that leads to a braceleft { character should be
 OK. I am surprised that
 you would have to use a bracketleft [.
 
 JMarc
 


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


Re: Bibliography problem

2005-12-12 Thread K. Elo
Andres Becerra Sandoval, maanantai, 12. joulukuuta 2005 15:53:
 On 12/12/05, K. Elo [EMAIL PROTECTED] wrote:
  Hi @ All,
 
  I have encountered an interesting problem with a document with a
  bibliography. I use a customised .bst file, originally created with
  latex makebst.
 
  The problem seems to related with the following two bibtex entries
  created with JabRef:

 First, I would suggest to get rid of the dieresis and tildes ...

  @ARTICLE{br2004a,
author = br,
title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen

   ^
 ---|

I beg your pardon Where do I have tildes And just to get it 
straight: in the new German spelling you write Russland, not anymore 
Rußland. So this was not really helpful at all.

Kimmo


Re: scalable braces in math mode (sciword.bind overhaul is needed)

2005-12-12 Thread Nusret BALCI
Jean-Marc,
As you said you fixed the typo, I thought you may be
maintaining the binding files. Excuse me if that's not
the case. But if so, I had many problems with
sciword.bind file. As an example,

\bind C-S-bar math-delim | |
\bind C-S-brokenbar   math-delim | |
\bind C-M-bar math-delim | |
 None of the above works on my system. I had to change
bar's to backslash (without quotes). 
Similarly,
\bind S-C-braceleft   math-delim { }
\bind S-C-braceright  math-delim { }
don't work, I needed bracketleft, etc.

But interestingly (I've just noticed this one), if you
replace C key with M key, you can use bar or
braceleft, etc. OK with M, but not OK with C. Isn't
this interesting?

I thought this feedback may help the maintainer. 

Best regards,

Nusret


--- Jean-Marc Lasgouttes
[EMAIL PROTECTED] wrote:

  Nusret == Nusret BALCI [EMAIL PROTECTED]
 writes:
 
 Nusret I use sciword binding file. It supposedly
 includes the
 Nusret math.bind file which contains the binding
 you mentioned (but
 Nusret without AltGr). However it didn't work. I
 tried to find the
 Nusret reason and noticed that there is a typo in
 sciword.bind file:
 Nusret it inclued maths.bind file (which doesn't
 exist) instead of
 Nusret math.bind.
 
 It is a typo indeed. I just fixed it.
 
 Thanks.
 
 JMarc
 


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


Re: Off-topic: 7 questions about usage of LaTeX.

2005-12-12 Thread Andrei Popov
Hello Banibrata,

Sunday, December 11, 2005, 10:30:10 AM, you wrote:

 Q-1) How do I leave a page Intetionally Blank, after the title page,
 and before the abstract page, if I am using..

smth like \thispagestyle{empty} should do the trick, if I remember
correctly.

-- 
WBR,
Andrei Popov

Using LyX 1.3.6 on Debian GNU/Linux



Re: Bibliography problem [SOLVED]

2005-12-12 Thread K. Elo
Hi,

OK, I found the solution by myself: If the url contains _ characters, 
you will run into problems. These characters must be entered as \_. 
After having repaired the .bib entries containing _-characters, the 
output was produced correctly.

Thanks anyway,
Kimmo


Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:

Hi @ All,

I have encountered an interesting problem with a document with a 
bibliography. I use a customised .bst file, originally created with 
latex makebst.


The problem seems to related with the following two bibtex entries 
created with JabRef:


@ARTICLE{br2004a,
  author = br,
  title = {{B}undeskanzler {S}chröder: {D}ie deutsch-russischen 
{B}eziehungen

waren noch nie so gut},
  journal = br_online,
  year = {2004},
  number = {8. Juli},
  entrytype = {08.07.},
  url = 
{{[}http://www.bundesregierung.de/dokumente/-,413.680598/Artikel/dokument.htm,

besucht am 2. September 2005{]}},
}

@ARTICLE{br2004b,
  author = br,
  title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen 
{G}ebieten

vereinbart},
  journal = br_online,
  year = {2004},
  number = {21. Dezember},
  entrytype = {21.12.},
  url = 
{\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen-.htm,

besucht am 2. September 2005\]},


should _always_ be written as 
url={\url{http://www.bundesregierung.de/Politikt}},


in the bib file

Herbert



missing documentation ...?

2005-12-12 Thread Martin A. Hansen
i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? ) ?

text%
col%
page%
line%
theight%
pheight%

when to use which?

moreover, when to set height and width?

 and when to use the maintain aspect ratio button?


martin


Re: Bibliography problem

2005-12-12 Thread K. Elo
Hi,

Herbert Voss, 12.12.2005 16:33:
  @ARTICLE{br2004b,
author = br,
title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen
  {G}ebieten
  vereinbart},
journal = br_online,
year = {2004},
number = {21. Dezember},
entrytype = {21.12.},
url =
  {\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-
 Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen
 -.htm, besucht am 2. September 2005\]},

 should _always_ be written as
 url={\url{http://www.bundesregierung.de/Politikt}},

 in the bib file

This might be true, but this won't work, if your .bst uses the \url 
command to format url-fields (as does mine).

Kimmo


Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd


On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? ) ?

text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page. So 
say your original graphic is A4 sized but you want it to be much smaller 
in print then the following are useful


text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the 
'maintain aspect ratio' box locks the figure so that if you halve the 
width you also halve the height. It stops the figure getting distorted. 
However you can set the height and width thus forcing the image to 
distort.


In general i set the width of my figures so they look how i want (taking 
in to account the aspect ratio) and use the text% option.


Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin



Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:

Hi,

Herbert Voss, 12.12.2005 16:33:


@ARTICLE{br2004b,
 author = br,
 title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen
{G}ebieten
vereinbart},
 journal = br_online,
 year = {2004},
 number = {21. Dezember},
 entrytype = {21.12.},
 url =
{\[http://www.bundesregierung.de/Politikthemen/Familie_-Kinder-und-
Jugend/Nachrichten-,712.763157/artikel/Ausbau-der-deutsch-russischen
-.htm, besucht am 2. September 2005\]},


should _always_ be written as
url={\url{http://www.bundesregierung.de/Politikt}},

in the bib file



This might be true, but this won't work, if your .bst uses the \url 
command to format url-fields (as does mine).


url and \url are _two_ things! show me an example
where it doesn't work!

Herbert



Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would like it
to be rescaled maintaining aspect ratio, but the height should be fitted to
the height of the text-body - so it doesnt go over the edge of the paper, or
interferes with the footer or header. evidently i have to do some pretty
random things to get there. first of all, since the determining factor is
the height, i need to adjust the height option - and to do that - i have to
alter the width option from scale% to something else. but in doing that -
i may be setting the determining factor to something width related??? but i
must set the width option to something before i am allowed to set the height
option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom margin
is ok.

- and with width=line% and height=theight% and aspect ratio selected - and
the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable amount of
time to get these settings set so that both the right and bottom margin
overshoots - but how to get it right?


martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:


 On Mon, 12 Dec 2005, Martin A. Hansen wrote:

  i have been trying to figure out how the different settings in
  graphic-output works.
 
  what are the meaning of these ( this is not mentioned in the docs?!? ) ?
 
  text%
  col%
  page%
  line%
  theight%
  pheight%

 THese allow you to scale the image as you want it to be on the page. So
 say your original graphic is A4 sized but you want it to be much smaller
 in print then the following are useful

 text% - this is percentage of text width
 col%  -   column width
 page% -   page width
 line% -   line width
 theight% -text height
 pheight% -page height

 So you can set either the width or height of the image. Using the
 'maintain aspect ratio' box locks the figure so that if you halve the
 width you also halve the height. It stops the figure getting distorted.
 However you can set the height and width thus forcing the image to
 distort.

 In general i set the width of my figures so they look how i want (taking
 in to account the aspect ratio) and use the text% option.

 Just play about and see what suits.

 Geoff

 
  when to use which?
 
  moreover, when to set height and width?
 
  and when to use the maintain aspect ratio button?
 
 
  martin
 



Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would like it
to be rescaled maintaining aspect ratio, but the height should be fitted to
the height of the text-body - so it doesnt go over the edge of the paper, or
interferes with the footer or header.



Simply set Width to 0 scale% and height to 100 theight% and select 
'maintain aspect ratio'


Tell me if this works


random things to get there. first of all, since the determining factor is
the height, i need to adjust the height option - and to do that - i have to
alter the width option from scale% to something else. but in doing that -
i may be setting the determining factor to something width related??? but i
must set the width option to something before i am allowed to set the height
option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom margin
is ok.

- and with width=line% and height=theight% and aspect ratio selected - and
the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable amount of
time to get these settings set so that both the right and bottom margin
overshoots - but how to get it right?


You dont have to set every setting. Just choose the ones that make snese 
and set the others to 0








martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:



On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? ) ?

text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page. So
say your original graphic is A4 sized but you want it to be much smaller
in print then the following are useful

text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the
'maintain aspect ratio' box locks the figure so that if you halve the
width you also halve the height. It stops the figure getting distorted.
However you can set the height and width thus forcing the image to
distort.

In general i set the width of my figures so they look how i want (taking
in to account the aspect ratio) and use the text% option.

Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin







Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
the problem is, that you cannot set width to 0 scale% and then adjust the
height option. the height option is locked as long as the width is set to
scale%.


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:

 On Mon, 12 Dec 2005, Martin A. Hansen wrote:

  i am still confused.
 
  page% - that is the width of the page from paper edge to paper edge?
  line%  - that is the width from from margin to margin? or is that text%
 
  and which of these settings include footer and header - that would be
  pheight% as opposed to theight%?
 
  actually, these abbreviations are not very logic - i can choose width =
  theight and hight=text - i find that confusing.
 
  my current problem is a narrow, figure that is quite high. i would like
 it
  to be rescaled maintaining aspect ratio, but the height should be fitted
 to
  the height of the text-body - so it doesnt go over the edge of the
 paper, or
  interferes with the footer or header.


 Simply set Width to 0 scale% and height to 100 theight% and select
 'maintain aspect ratio'

 Tell me if this works

  random things to get there. first of all, since the determining factor
 is
  the height, i need to adjust the height option - and to do that - i have
 to
  alter the width option from scale% to something else. but in doing
 that -
  i may be setting the determining factor to something width related???
 but i
  must set the width option to something before i am allowed to set the
 height
  option
 
  so with widht=theight% height=theight% and aspect ratio selected. that
  results in the figure overshooting the right margin - but the bottom
 margin
  is ok.
 
  - and with width=line% and height=theight% and aspect ratio selected -
 and
  the result overshoots the bottom margin - but the right margin is ok.
 
  now, i am pretty sure that it should be possible in a reasonable amount
 of
  time to get these settings set so that both the right and bottom margin
  overshoots - but how to get it right?

 You dont have to set every setting. Just choose the ones that make snese
 and set the others to 0
 



 
  martin
 
 
 
  On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:
 
 
  On Mon, 12 Dec 2005, Martin A. Hansen wrote:
 
  i have been trying to figure out how the different settings in
  graphic-output works.
 
  what are the meaning of these ( this is not mentioned in the docs?!? )
 ?
 
  text%
  col%
  page%
  line%
  theight%
  pheight%
 
  THese allow you to scale the image as you want it to be on the page. So
  say your original graphic is A4 sized but you want it to be much
 smaller
  in print then the following are useful
 
  text% - this is percentage of text width
  col%  -   column width
  page% -   page width
  line% -   line width
  theight% -text height
  pheight% -page height
 
  So you can set either the width or height of the image. Using the
  'maintain aspect ratio' box locks the figure so that if you halve the
  width you also halve the height. It stops the figure getting distorted.
  However you can set the height and width thus forcing the image to
  distort.
 
  In general i set the width of my figures so they look how i want
 (taking
  in to account the aspect ratio) and use the text% option.
 
  Just play about and see what suits.
 
  Geoff
 
 
  when to use which?
 
  moreover, when to set height and width?
 
  and when to use the maintain aspect ratio button?
 
 
  martin
 
 
 



Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Martin A. Hansen wrote:


the problem is, that you cannot set width to 0 scale% and then adjust the
height option. the height option is locked as long as the width is set to
scale%.


My apologies, I meant 0 sp, or in fact any other option that lets you into 
the height box





martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:


On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would like

it

to be rescaled maintaining aspect ratio, but the height should be fitted

to

the height of the text-body - so it doesnt go over the edge of the

paper, or

interferes with the footer or header.



Simply set Width to 0 scale% and height to 100 theight% and select
'maintain aspect ratio'

Tell me if this works


random things to get there. first of all, since the determining factor

is

the height, i need to adjust the height option - and to do that - i have

to

alter the width option from scale% to something else. but in doing

that -

i may be setting the determining factor to something width related???

but i

must set the width option to something before i am allowed to set the

height

option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom

margin

is ok.

- and with width=line% and height=theight% and aspect ratio selected -

and

the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable amount

of

time to get these settings set so that both the right and bottom margin
overshoots - but how to get it right?


You dont have to set every setting. Just choose the ones that make snese
and set the others to 0








martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:



On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!? )

?


text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page. So
say your original graphic is A4 sized but you want it to be much

smaller

in print then the following are useful

text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the
'maintain aspect ratio' box locks the figure so that if you halve the
width you also halve the height. It stops the figure getting distorted.
However you can set the height and width thus forcing the image to
distort.

In general i set the width of my figures so they look how i want

(taking

in to account the aspect ratio) and use the text% option.

Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin











Re: Bibliography problem

2005-12-12 Thread K. Elo
Hi,

Herbert Voss, 12.12.2005 17:28:
  This might be true, but this won't work, if your .bst uses the \url
  command to format url-fields (as does mine).

 url and \url are _two_ things! show me an example
 where it doesn't work!

Well, using url={\url{site}} in a bibtex won't solve the underscore (_) 
problem. If the site contains pure underscore (_) you still have to 
use \_. You may try it with the attached files (test.bib,.bst,.lyx). 

Kind regards,
Kimmo
This file was created with JabRef 1.8.1.
Encoding: ISO8859_1

@STRING{apuz = {Aus Politik und Zeitgeschichte}}

@STRING{blaetter = {Bl�ter fr deutsche und internationale Politik}}

@STRING{br = {Bundesregierung}}

@STRING{br_bulletin = {Bulletin der Bundesregierung}}

@STRING{br_online = {Bundesregierung Online [online]}}

@STRING{br_presse = {{Presse- und Informationsamt der Bundesregierung}}}

@STRING{GP = {German Politics}}

@STRING{ip = {Internationale Politik}}

@STRING{JPR = {Journal of Peace Research}}

@STRING{pvs = {Politische Vierteljahresschrift}}

@STRING{zfp = {Zeitschrift fr Politikwissenschaft}}

@ARTICLE{br2004a,
  author = br,
  title = {{B}undeskanzler {S}chr�er: {D}ie deutsch-russischen {B}eziehungen
	waren noch nie so gut},
  journal = br_online,
  year = {2004},
  number = {8. Juli},
  entrytype = {08.07.},
  url = {\url{[http://www.bundesregierung.de/dokumente/-,413_680598/Artikel/dokument.htm,
	besucht am 2. September 2005]}},
}

@ARTICLE{br2004b,
  author = br,
  title = {{A}usbau der deutsch-russischen {B}eziehungen auf allen {G}ebieten
	vereinbart},
  journal = br_online,
  year = {2004},
  number = {21. Dezember},
  entrytype = {21.12.},
  url = {\url{[http://www.bundesregierung.de/Politikthemen/Familie\_-Kinder-und-Jugend\\/Nachrichten-\,712\.763157/artikel/Ausbau-der-deutsch-russischen-.htm,
	besucht am 2. September 2005]}},
}

% BibTeX standard bibliography style `politiikka'
% version 0.1-beta for use with BibTeX versions 0.99a or later
%
% This bibliography is generated with the docstrip utility.
% The original source files were:
%
% merlin.mbs [version 2004/02/09 4.13 (PWD, AO, DPC)]
%  (with options: 
`babel,ay,nat,vonx,nm-revf,jnrlst,nmlm,x20,x0,m1,keyxyr,dt-beg,yr-par,yrp-col,note-yr,tit-it,jttl-rm,volp-com,pp-last,num-xser,numser,ser-vol,ser-ed,bkpg-x,add-pub,pre-pub,doi,edparxc,blk-com,au-col,in-col,ppx,ed,abr,ednx,xedn,amper,and-xcom,eprint,url,url-blk,nfss,')
%
% This bibliography style file requires a file named babelbst.tex
% containing the definitions of word commands like \bbleditor, etc.
%
% This is an author-year citation style bibliography. As such, it is
% non-standard LaTeX, and requires a special package file to function properly.
% Such a package isnatbib.sty   by Patrick W. Daly
%
% The form of the \bibitem entries is
%   \bibitem[Jones et al.(1990)]{key}...
%   \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
% 
% The essential feature is that the label (the part in brackets) consists
% of the author names, as they should appear in the citation, with the year
% in parentheses following. There must be no space before the opening
% parenthesis!
%
% With natbib v5.3, a full list of authors may also follow the year.
% In natbib.sty, it is possible to define the type of enclosures that is
% really wanted (brackets or parentheses), but in either case, there must
% be parentheses in the label.
% The \cite command functions as follows:
%   \citet{key} ==Jones et al. (1990)
%   \citet*{key} ==   Jones, Baker, and Smith (1990)
%   \citep{key} ==(Jones et al., 1990)
%   \citep*{key} ==   (Jones, Baker, and Smith, 1990)
%   \citep[chap. 2]{key} ==   (Jones et al., 1990, chap. 2)
%   \citep[e.g.][]{key} ==(e.g. Jones et al., 1990)
%   \citep[e.g.][p. 32]{key} ==   (e.g. Jones et al., p. 32)
%   \citeauthor{key} ==   Jones et al.
%   \citeauthor*{key} ==  Jones, Baker, and Smith
%   \citeyear{key} == 1990
%
%
% Copying of this file is authorized only if either
% (1) you make absolutely no changes to your copy, including name, or
% (2) if you do make changes, you name it something other than
% politiikka.bst, btxbst.doc, plain.bst, unsrt.bst, alpha.bst, abbrv.bst, 
% agsm.bst, dcu.bst or kluwer.bst.
% This restriction helps ensure that all standard styles are identical.
%
% AUTHOR
%   Kimmo Elo, Dep. of political science, University of Turku, Finland
%   e-mail: [EMAIL PROTECTED]
%
%
% This style files does NOT support:
% - @incollection entries (use @inbook instead. When *cross-referring*
%   please use @inbook for the referring entry and @collection for the 
%   entry being referred to.)
% 
%---

ENTRY
  { address
archive
author
booktitle
chapter
doi
edition
editor
eid
eprint
howpublished
institution
journal
key
language% Additional field for defining the 

Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Martin A. Hansen wrote:


ok - setting the width option to 0 something-else-than-scale% and then
height to 100 theight% (and keep aspect ratio) that set the image height to
the full height of the text-body. that is nice.

however


the caption now conflicts with the footer ... that was not what i meant!



You can only scale images, I am not sure you can scale floats which is 
what you are thinking happens.


The float is the image+caption. So really the scaling of the image, to fit 
the float on your page, will depend how much space your caption takes up.


For this you really need to proceed by trial and error. Now you know how 
to sclae your image you will just have to play a bit.





martin

On 12/12/05, Martin A. Hansen [EMAIL PROTECTED] wrote:


the problem is, that you cannot set width to 0 scale% and then adjust the
height option. the height option is locked as long as the width is set to
scale%.


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:


On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that

text%


and which of these settings include footer and header - that would be
pheight% as opposed to theight%?

actually, these abbreviations are not very logic - i can choose width

=

theight and hight=text - i find that confusing.

my current problem is a narrow, figure that is quite high. i would

like it

to be rescaled maintaining aspect ratio, but the height should be

fitted to

the height of the text-body - so it doesnt go over the edge of the

paper, or

interferes with the footer or header.



Simply set Width to 0 scale% and height to 100 theight% and select
'maintain aspect ratio'

Tell me if this works


random things to get there. first of all, since the determining factor

is

the height, i need to adjust the height option - and to do that - i

have to

alter the width option from scale% to something else. but in doing

that -

i may be setting the determining factor to something width related???

but i

must set the width option to something before i am allowed to set the

height

option

so with widht=theight% height=theight% and aspect ratio selected. that
results in the figure overshooting the right margin - but the bottom

margin

is ok.

- and with width=line% and height=theight% and aspect ratio selected -

and

the result overshoots the bottom margin - but the right margin is ok.

now, i am pretty sure that it should be possible in a reasonable

amount of

time to get these settings set so that both the right and bottom

margin

overshoots - but how to get it right?


You dont have to set every setting. Just choose the ones that make snese
and set the others to 0








martin



On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:



On Mon, 12 Dec 2005, Martin A. Hansen wrote:


i have been trying to figure out how the different settings in
graphic-output works.

what are the meaning of these ( this is not mentioned in the docs?!?

) ?


text%
col%
page%
line%
theight%
pheight%


THese allow you to scale the image as you want it to be on the page.

So

say your original graphic is A4 sized but you want it to be much

smaller

in print then the following are useful

text% - this is percentage of text width
col%  -   column width
page% -   page width
line% -   line width
theight% -text height
pheight% -page height

So you can set either the width or height of the image. Using the
'maintain aspect ratio' box locks the figure so that if you halve the
width you also halve the height. It stops the figure getting

distorted.

However you can set the height and width thus forcing the image to
distort.

In general i set the width of my figures so they look how i want

(taking

in to account the aspect ratio) and use the text% option.

Just play about and see what suits.

Geoff



when to use which?

moreover, when to set height and width?

and when to use the maintain aspect ratio button?


martin














Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
that is too bad. i really should say that latex ought to be the best
application to calculate the height of the caption - so i can fit the
image-float on a page without overshooting anything.

perhaps one could do a hack with some ERT?


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:

 On Mon, 12 Dec 2005, Martin A. Hansen wrote:

  ok - setting the width option to 0 something-else-than-scale% and then
  height to 100 theight% (and keep aspect ratio) that set the image height
 to
  the full height of the text-body. that is nice.
 
  however
 
 
  the caption now conflicts with the footer ... that was not what i meant!
 

 You can only scale images, I am not sure you can scale floats which is
 what you are thinking happens.

 The float is the image+caption. So really the scaling of the image, to fit
 the float on your page, will depend how much space your caption takes up.

 For this you really need to proceed by trial and error. Now you know how
 to sclae your image you will just have to play a bit.

 
 
  martin
 
  On 12/12/05, Martin A. Hansen [EMAIL PROTECTED] wrote:
 
  the problem is, that you cannot set width to 0 scale% and then adjust
 the
  height option. the height option is locked as long as the width is set
 to
  scale%.
 
 
  martin
 
  On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:
 
  On Mon, 12 Dec 2005, Martin A. Hansen wrote:
 
  i am still confused.
 
  page% - that is the width of the page from paper edge to paper edge?
  line%  - that is the width from from margin to margin? or is that
  text%
 
  and which of these settings include footer and header - that would be
  pheight% as opposed to theight%?
 
  actually, these abbreviations are not very logic - i can choose width
  =
  theight and hight=text - i find that confusing.
 
  my current problem is a narrow, figure that is quite high. i would
  like it
  to be rescaled maintaining aspect ratio, but the height should be
  fitted to
  the height of the text-body - so it doesnt go over the edge of the
  paper, or
  interferes with the footer or header.
 
 
  Simply set Width to 0 scale% and height to 100 theight% and select
  'maintain aspect ratio'
 
  Tell me if this works
 
  random things to get there. first of all, since the determining
 factor
  is
  the height, i need to adjust the height option - and to do that - i
  have to
  alter the width option from scale% to something else. but in doing
  that -
  i may be setting the determining factor to something width related???
  but i
  must set the width option to something before i am allowed to set the
  height
  option
 
  so with widht=theight% height=theight% and aspect ratio selected.
 that
  results in the figure overshooting the right margin - but the bottom
  margin
  is ok.
 
  - and with width=line% and height=theight% and aspect ratio selected
 -
  and
  the result overshoots the bottom margin - but the right margin is ok.
 
  now, i am pretty sure that it should be possible in a reasonable
  amount of
  time to get these settings set so that both the right and bottom
  margin
  overshoots - but how to get it right?
 
  You dont have to set every setting. Just choose the ones that make
 snese
  and set the others to 0
 
 
 
 
 
  martin
 
 
 
  On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:
 
 
  On Mon, 12 Dec 2005, Martin A. Hansen wrote:
 
  i have been trying to figure out how the different settings in
  graphic-output works.
 
  what are the meaning of these ( this is not mentioned in the
 docs?!?
  ) ?
 
  text%
  col%
  page%
  line%
  theight%
  pheight%
 
  THese allow you to scale the image as you want it to be on the page.
  So
  say your original graphic is A4 sized but you want it to be much
  smaller
  in print then the following are useful
 
  text% - this is percentage of text width
  col%  -   column width
  page% -   page width
  line% -   line width
  theight% -text height
  pheight% -page height
 
  So you can set either the width or height of the image. Using the
  'maintain aspect ratio' box locks the figure so that if you halve
 the
  width you also halve the height. It stops the figure getting
  distorted.
  However you can set the height and width thus forcing the image to
  distort.
 
  In general i set the width of my figures so they look how i want
  (taking
  in to account the aspect ratio) and use the text% option.
 
  Just play about and see what suits.
 
  Geoff
 
 
  when to use which?
 
  moreover, when to set height and width?
 
  and when to use the maintain aspect ratio button?
 
 
  martin
 
 
 
 
 
 
 



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Enrico Forestieri
Angus Leeming [EMAIL PROTECTED] writes:
 
 From an MSYS terminal window (maybe even a cmd.exe one for all I know):
 
 cd C:/Program Files/LyX/Resources/lyx
 PATH TO/sh.exe configure
 
 That will generate the missing files.

Angus, what about a configure.bat script?

Perhaps it can also solve the problem that the configure script is not
launched in 137pre5 at installation time (I also have this problem).

Here is the one I use. It extracts the \path_prefix from configure to
properly set up the path before calling sh.exe configure.
Please, manually join the lines ending with \ to the line following them.
I had to resort to break them this way as the gmane interface does not let
me post lines longer than 80 chars.

8888888
@echo off
if %OS%==Windows_NT goto win2k
goto usage

:win2k
setlocal enableextensions
if not exist configure goto noconf
if %ComSpec%== goto nocmd
if %windir%== goto nocmd

:: Make sure native windows commands are (initially) ahead in the path
for /f usebackq tokens=* delims= %%A in (`echo %ComSpec%`) do \
set PATH=%windir%;%%~dpA;%PATH%

:: Extract \path_prefix from configure and prepend it to the path
for /f usebackq tokens=2 delims=  %%A in (`type configure ^| \
find path_prefix`) do set pathprefix=%%A
set pathprefix=%pathprefix:=%
set pathprefix=%pathprefix:\\=\%
set PATH=%pathprefix%;%PATH%

:: We are ready to launch configure
C:\cygwin\bin\sh.exe configure
goto end

:nocmd
echo.
echo Cannot find the command interpreter or the system dir.
goto end

:usage
echo.
echo This script works on Windows NT 4 / 2000 / XP
echo and performs a system wide configuration of LyX.
goto end

:noconf
echo.
echo Cannot find the configure script.

:end
if %OS%==Windows_NT endlocal
8888888





Re: missing documentation ...?

2005-12-12 Thread Robert Orr
 
  and when to use the maintain aspect ratio 

So, on the aspect ratio, when one sets the H or W,
which one of them becomes the dominant variable when
the maintain aspect ratio box is checked? The H or
the W?



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


Re: missing documentation ...?

2005-12-12 Thread Georg Baum
Martin A. Hansen wrote:

 that is too bad. i really should say that latex ought to be the best
 application to calculate the height of the caption - so i can fit the
 image-float on a page without overshooting anything.
 
 perhaps one could do a hack with some ERT?

Probably. I'd suggest to ask the LaTeX experts on the comp.text.tex
newsgroup for a pure LaTeX solution. Then present it here and somebody
might be able to tell you how this can be adapted to LyX.


Georg



Re: Fw: installing Tex classes

2005-12-12 Thread Paul A. Rubin

Andres Becerra Sandoval wrote:

On 12/12/05, Marcel Vercouter [EMAIL PROTECTED] wrote:


- Original Message -
From: Marcel Vercouter
To: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 12:29 AM
Subject: installing Tex classes


I'd like to use 'hollywood' and 'broadway' layouts, and although they (hollywood) are 
listed as present in the New from Template menu, I get a Textclass error LyX 
will not be able to produce output.
Strugling my way in the LyX and MikTex sites, I could not find a clear 
procedure to install those classes (and any other that are not in the LyX 
package).
Any hint that will show me the right way to do it ?

Marcel




The document classes hollywood.cls and broadway.cls are in the lyx
sources. You can put them in /usr/local/share/texmf/tex/latex or in
~/texmf/tex/latex for your user only. Then you have to run texhash to
update TeX database.

--
  Andres



The easiest way to run texhash in MiKTeX is to run the MiKTeX Options 
application (from the start menu), and on the General tab click the 
first button (File name database - Refresh now).


Paul



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Angus Leeming
Enrico Forestieri wrote:
 Angus, what about a configure.bat script?

Y'know, sometimes the simplest ideas are the best ;-)

However, don't we need admin privileges to generate files in C:\Program
Files\LyX\Resources\lyx ?

-- 
Angus



Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:


This might be true, but this won't work, if your .bst uses the \url
command to format url-fields (as does mine).


url and \url are _two_ things! show me an example
where it doesn't work!



Well, using url={\url{site}} in a bibtex won't solve the underscore (_) 


it will!

problem. If the site contains pure underscore (_) you still have to 
use \_. You may try it with the attached files (test.bib,.bst,.lyx). 


\usepackage{url} in Layout-Document-Preamble

and there is _no_ error



Re: Bibliography problem

2005-12-12 Thread Herbert Voss

K. Elo wrote:


  url = 
{\url{[http://www.bundesregierung.de/dokumente/-,413_680598/Artikel/dokument.htm,
besucht am 2. September 2005]}},


and the following is the reason why a \url in the bib file
is not needed, because the bst file does it already ...


FUNCTION {format.url}
{ url empty$
{  }
{ \url{ url * } * }
  if$
}


Herbert



Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Enrico Forestieri [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 8:48 AM
Subject: Re: There's Something About Textclass.lst [WinXP, installing into]



Angus Leeming [EMAIL PROTECTED] writes:


From an MSYS terminal window (maybe even a cmd.exe one for all I know):

cd C:/Program Files/LyX/Resources/lyx
PATH TO/sh.exe configure

That will generate the missing files.


Angus, what about a configure.bat script?



This particular subject was about the Uwe .51 complete installer.
The OP had already tried sh.exe configure and it didn't work.
The OP does not have admin rights and that most likely is the
problem.

I do like your .bat idea. I have a configure file on my E: drive for
1.3.6 stable. The OP was able to install 1.3.6 because it does not
require admin rights. I think he should utilize his 1.3.6 configure
script and copy it to the 1.3.7pre5 Lyx\resource\lyx directory,
because I think it is very likely that if you examine your 1.3.7pre5
configure file you'll see that the Path preview section is inflated
by a ~two hundred characters.

Or you could edit Path prefix later if you use the 1.3.7pre5
configure. Or maybe leave it as it may not cause damage and just
be a hidden unsightly blemish.

I don't think gsview installs in the .51 series without admin rights.
So I found one, preview, which is shareware that does not appear to
use the registry: http://www.lib-sys.com/preview.htm

Since ghostscript creates the .ps file, you only really need a viewer
to print the file and maybe save it to another location than Lyx's temp.
So I changed the LyX default temp dir in order to use this .bat file,
opening up a dos prompt and changing drives from the c:~~ prompt
by typing E: enter (I installed LyX on E: in my non-admin rights test)

cd e:\preview\temp
cd lyx_tmpdir*
cd lyx_tmpbuf*
copy *.* e:\preview\temp
e:\preview\preview.exe

and one can use the file menu to open the contents of e:\pview\temp.
I clean up afterwards by using nuke.com, a common dangerous utility.

deleteps.bat:

E:\preview\nuke.com e:\preview\temp

md temp
(a screen will appear asking the user to type Y for yes/proceed)


Perhaps it can also solve the problem that the configure script is not
launched in 137pre5 at installation time (I also have this problem).



.bat or .cmd files can be very useful in Windows as scripts are in Linux,
and they are easy to create or modify slightly. So for instance your
script uses Cygwin; the Windows default is sh.exe and sed.exe originating
from C:\msys\1.0\bin so a less elegant batfile than yours could read, if a
prefab configure.bat file is included in the lyx1.3.7pre5 package, which
unpacks to the same directory as the installation directory (since the user
might change the default from c:\program files\lyx, which has its configure
in ~\lyx\resources\lyx). The user can also open and type from the dos
prompt from the location he has chosen for the Lyx installation:
(assuming default install directory for Msys)

config1.bat could contain a few simple alternatives:

1. C:\msys\1.0\bin\sh.exe configure (if config1.bat is in the same 
directory)

or
2. C:\msys\1.0\bin\sh.exe C:\program files\lyx\resources\lyx\configure
or
3. C:\msys\1.0\bin\sh.exe c:\lyx\resources\lyx\configure

The reason I went into this is just in case a current reader has this
problem which is solved with sh.exe configure, for a now fix.

They can open Notepad, copy and paste the correct line for their install,
change the default saving from .txt to all files and then use Save as
to name the config1.bat as they please (ending with .bat though) and
save it into the proper lyx\resources\lyx directory for their installation.
Open a dos prompt, navigate to the directory referred to above, and type
config1.bat enter at the prompt. Actually you can run 2 or 3 from what-
ever directory you have saved config1.bat to, from the dos prompt, for
instance from C:\documents and settings\username  config1.bat enter



Here is the one I use. It extracts the \path_prefix from configure to
properly set up the path before calling sh.exe configure.
Please, manually join the lines ending with \ to the line following them.
I had to resort to break them this way as the gmane interface does not let
me post lines longer than 80 chars.

8888888
@echo off
if %OS%==Windows_NT goto win2k
goto usage

:win2k
setlocal enableextensions
if not exist configure goto noconf
if %ComSpec%== goto nocmd
if %windir%== goto nocmd

:: Make sure native windows commands are (initially) ahead in the path
for /f usebackq tokens=* delims= %%A in (`echo %ComSpec%`) do \
   set PATH=%windir%;%%~dpA;%PATH%

:: Extract \path_prefix from configure and prepend it to the path
for /f usebackq tokens=2 delims=  %%A in (`type configure ^| \
   find path_prefix`) do set pathprefix=%%A
set pathprefix=%pathprefix:=%
set pathprefix=%pathprefix:\\=\%
set 

Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Enrico Forestieri
Angus Leeming [EMAIL PROTECTED] writes:
 
 However, don't we need admin privileges to generate files in C:\Program
 Files\LyX\Resources\lyx ?
 

I really don't know. My win2k came preinstalled on a FAT32 partition, so
I don't need privileges to write everywhere on disk, and I never used Windows
before last year. I need privileges only to perform administrative tasks
and recently I discovered the runas.exe command which changed my life ;-)
(it is a sort of su user -c command).

Anyway, I think that it cannot be worse than directly running sh.exe configure.
I don't know how the installer works, but couldn't it be a path problem?

--
Enrico




Re: missing documentation ...?

2005-12-12 Thread Geoffrey Lloyd

On Mon, 12 Dec 2005, Robert Orr wrote:




and when to use the maintain aspect ratio


So, on the aspect ratio, when one sets the H or W,
which one of them becomes the dominant variable when
the maintain aspect ratio box is checked? The H or
the W?

I cant see why one would set both. THe point is if you want you figure to 
be say 10cm wide, want to maintain the shape, and arent worried about 
height then you set the width and click 'maintain aspect ratio'


If you are however converned with height and not width do the opposite.

And finally if you want to specify a height/width ratio different from the 
original figure then enter values for both height and width and leave the 
'maintain aspect ratio' box blank.


In order to set the width or height to be calculated in proportion to the 
aspect ratio set the value to 0 sp.


e.g. I have a 5cm wide 2cm high figure

1) I want it to be 11cm wide on the page. Set width 11cm height 0sp and 
clivk maitina aspct


2) I want it to be 4cm hgih. Set width 0sp height 200% and selct maintain 
aspect


3) I wanr it to be 11cm wide and 4cm high. Set width 11cm height 4cm and 
uncheck maintain aspect.


I hope this is clear

Geoff


Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Paul A. Rubin

Angus Leeming wrote:

Enrico Forestieri wrote:


Angus, what about a configure.bat script?



Y'know, sometimes the simplest ideas are the best ;-)

However, don't we need admin privileges to generate files in C:\Program
Files\LyX\Resources\lyx ?



Not positive, but I don't think so.  Whomsoever shall create that 
directory, yea verily shall he/she/it own it, and have all sorts of 
permissions in it.  I think (security on Windows has a stochastic 
element).  So if the batch file is run under the same login id that 
installed the software, it should work.  Maybe.  (An administrator could 
also run it.)


Paul




Re: missing documentation ...?

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Martin A. Hansen [EMAIL PROTECTED]

To: Geoffrey Lloyd [EMAIL PROTECTED]
Cc: LyX Users' Forum lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 8:29 AM
Subject: Re: missing documentation ...?


that is too bad. i really should say that latex ought to be the best
application to calculate the height of the caption - so i can fit the
image-float on a page without overshooting anything.

perhaps one could do a hack with some ERT?


martin

Hello,

I'm working my way through The Latex Graphics Companion
which has some renowned contributors/Goossens. Last night I 
read in Section 2.3.2, Resizing to a given size, that 


it is possible to specify that LaTeX material should be typeset
to a fixed horizontal or vertical dimension:

\resizebox*{h-dim}{v-dim}{material}

SH: To answer another question, the book continues,

When the aspect ratio of the material is to be maintained, then
it is enough to specify one of the dimensions, replacing the other
one with a ! sign.

SH: I don't know what the LyX mechanism is for maintaining
aspect ratio, maybe it just generates a ! symbol like in LaTeX.
This book was in my public library, so surely should be in a
local college/university library, or one can become a Friend
of the Library for $35 a year where I live. The public library
will also obtain a copy by interlibrary loan. I think a LaTeX
solution will be perceived as a bit advanced by many LyXers. 
Section 2.3.1, Scaling a LaTeX box states,


The \scalebox command lets you magnify or reduce text or
other LaTeX material by a scale factor:

\scalebox{scalefact}{material}

The first of the two (mandatory) arguments, (scalefact), 
specifies the factor by which both dimensions of the
_material_ are to be scaled. The following example shows 
how this works. ...


A supplementary optional argument, if present, is used to
specify a separate vertical scaling factor.

\scalebox{h-scale} [v-scale] {material}

This is demonstrated in the following examples, which also
show how multiple lines can be scaled by using the standard
LaTeX \parbox command. ...

I'm under the impression that not all LaTex functionality is
implemented in the LyX front-end, so more in depth reference 
material ought to be obtainable from LaTeX forums, docs or 
books, which can perhaps be enabled in LyX, as Georg said.


Good luck on however you choose to pursue your endeavor,
Stephen 



Re: missing documentation ...?

2005-12-12 Thread Robert Orr
 
 I cant see why one would set both. 

I don't want to beat a dead horse, but, for
instance,when experimenting to get the image just
right one might enter both the H and W and some point
during the process.  

So, if one enters both an H and a W parameter, does
LyX use the H and calculate the W, or does it take the
W and calculate the H?   I'm a little foggy on that
one and I've experimented with it to no conclusion.  

Phil



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


Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Enrico Forestieri
On Mon, 12 Dec 2005 13:42:19 -0800, Stephen Harris wrote:
 
 This particular subject was about the Uwe .51 complete installer.
 The OP had already tried sh.exe configure and it didn't work.
 The OP does not have admin rights and that most likely is the
 problem.

I must have missed this bit. Then this is an entirely different problem.

 I do like your .bat idea. I have a configure file on my E: drive for
 1.3.6 stable. The OP was able to install 1.3.6 because it does not
 require admin rights. I think he should utilize his 1.3.6 configure
 script and copy it to the 1.3.7pre5 Lyx\resource\lyx directory,
 because I think it is very likely that if you examine your 1.3.7pre5
 configure file you'll see that the Path preview section is inflated
 by a ~two hundred characters.

Yes, I noticed it. Anyway, I always edit the configure script after
installation to trim \path_prefix because I already have everything
needed in my path.

 Or you could edit Path prefix later if you use the 1.3.7pre5
 configure. Or maybe leave it as it may not cause damage and just
 be a hidden unsightly blemish.
 
 I don't think gsview installs in the .51 series without admin rights.
 So I found one, preview, which is shareware that does not appear to
 use the registry: http://www.lib-sys.com/preview.htm

The gsview sources are freely available, so one could always compile by
itself a copy and place it wherever suits. However, I understand that this
may be hard for most users.

[...]
 .bat or .cmd files can be very useful in Windows as scripts are in Linux,
 and they are easy to create or modify slightly. So for instance your
 script uses Cygwin; the Windows default is sh.exe and sed.exe originating
 from C:\msys\1.0\bin so a less elegant batfile than yours could read, if a
 prefab configure.bat file is included in the lyx1.3.7pre5 package, which
 unpacks to the same directory as the installation directory (since the user
 might change the default from c:\program files\lyx, which has its configure
 in ~\lyx\resources\lyx). The user can also open and type from the dos
 prompt from the location he has chosen for the Lyx installation:
 (assuming default install directory for Msys)

Yes, scripts are much more versatile than binaries and they may be adapted
easily. The one I posted is that which I use. I didn't try to make it the
most general possible as anyone can build upon it and adapt it to own
needs. This is the spirit of free software, I think, and I fully agree
with it.

[...]
 Your script is certainly hugely more elegant. I just thought to provide
 a simple means, although hardly simpler (if the user already has sh.exe
 in his Windows path) to complete his Lyx1.3.7pre5 install now. I was
 able to follow the Angus advice for this. I hope I'm reinforcing it, while
 your advice might be more suitable for inclusion in the installer package.

Why not simply get an archive (zip, tar, whatever) of the 1.3.7pre5 LyX
directory and unpack it over a 1.3.6 installation? Thereafter, one could
simply edit the configure script to adjust \path_prefix, run sh configure
and be done.

--
Enrico





Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Paul A. Rubin [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 3:05 PM
Subject: Re: There's Something About Textclass.lst [WinXP, installing into]



Angus Leeming wrote:

Enrico Forestieri wrote:


Angus, what about a configure.bat script?



Y'know, sometimes the simplest ideas are the best ;-)

However, don't we need admin privileges to generate files in C:\Program
Files\LyX\Resources\lyx ?



Not positive, but I don't think so.  Whomsoever shall create that 
directory, yea verily shall he/she/it own it, and have all sorts of 
permissions in it.  I think (security on Windows has a stochastic 
element).  So if the batch file is run under the same login id that 
installed the software, it should work.  Maybe.  (An administrator could 
also run it.)


Paul



Well, we are talking about an ordinary user and they did not
create C:\program files, that is created during the initial install.
The initial install is where/when the admin password is created.

When I tested this with Nautilus, my toy test alterego, which
has standard user rights, I could not install LyX to 
C:\program files\Lyx , an error message was generated with
every attempted file install. 


I could install however, to C:\Lyx or E:\LyX with 1.3.6
(but earlier I wasn't able to install to the C:\ drive in one test)
I've read various developer opinion about why MS decided
to have a C:\Program files, instead of C:\programs or the
German C:\programme. Nearly everybody agrees that it was
either stupid or deliberate, with most thinking deliberate since
it causes problems with Linux ports. I think that at the least
the default LyX install should be C:\Lyx rather than adopting
Microsoft propaganda. Has anyone read of a solid reason for 
MS creating C:\program files? They are trying to force a habit.

The instructions that come with Miktex say to install to a
directory without spaces, and that is the default. 


Likewise, I don't think runas.exe works unless you have the
admin or maybe high authority user status, just like su. An
ordinary user cannot use it. If you can use it, you already
own sufficient permissions. There is going to be no security
breach that obvious. I have installed LyX 1.3.7pre5 into 
C:\LyX and C:\program files\Lyx and either way, one still

needs to run sh.exe configure. I also installed 1.3.7pre5
as Nautilus, an ordinary user. It would not install on the
C: drive. It would install on E:\LyX and sh.exe configure
also ran successfully, no admin rights needed. However,
it used python24 which I installed while acting as admin.
A current 137pre5 install can use python24 if it is already
installed, but I've read that a non-admin user can't install
python24(and maybe gsview) to start with, they have to
use Python23, which is no big deal. 

So if the batch file is run under the same login id that 
installed the software, it should work.  


True enough, but the ordinary user can't install to 
C:\program files to begin with, and maybe not to C:

although a batch file will work where you do manage
to install LyX. Curiously, the Lyx137 install on my 
C: drive with admin priveleges was 30.31~mb but the 
137pre5 install on the non-admin user, E: drive was 
39.37mb~ So the tests seem to support Angus' view.


Regards,
Stephen





Re: There's Something About Textclass.lst [WinXP, installing into]

2005-12-12 Thread Stephen Harris


- Original Message - 
From: Enrico Forestieri [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: lyx-users@lists.lyx.org
Sent: Monday, December 12, 2005 5:17 PM
Subject: Re: There's Something About Textclass.lst [WinXP, installing into]



because I think it is very likely that if you examine your 1.3.7pre5
configure file you'll see that the Path preview section is inflated
by a ~two hundred characters.


Yes, I noticed it. Anyway, I always edit the configure script after
installation to trim \path_prefix because I already have everything
needed in my path.



You mean your Windows path? I keep learning. I knew that
LyX would work with Path prefix alone, without any Lyx helper
programs in the Windows path, but I didn't know that one could
trim the path_prefix because it was already handled in the
Windows path.


Or you could edit Path prefix later if you use the 1.3.7pre5
configure. Or maybe leave it as it may not cause damage and just
be a hidden unsightly blemish.


[...]

Your script is certainly hugely more elegant. I just thought to provide
a simple means, although hardly simpler (if the user already has sh.exe
in his Windows path) to complete his Lyx1.3.7pre5 install now. I was
able to follow the Angus advice for this. I hope I'm reinforcing it, 
while
your advice might be more suitable for inclusion in the installer 
package.


Why not simply get an archive (zip, tar, whatever) of the 1.3.7pre5 LyX
directory and unpack it over a 1.3.6 installation? Thereafter, one could
simply edit the configure script to adjust \path_prefix, run sh 
configure

and be done.

--
Enrico



Well, maybe that would work, I wonder what Angus thinks? Since
I am only a computer technician rather than a developer, I can't
fully grasp all the ramifications of this approach; I always test, test...

Nice to see you developing ideas,
Stephen 





Re: Bibliography problem

2005-12-12 Thread K. Elo
Hi,

and thanks for your reply, Herbert.

Herbert Voss, maanantai, 12.12.2005 23:11:
 K. Elo wrote:
 This might be true, but this won't work, if your .bst uses the
  \url command to format url-fields (as does mine).
 
 url and \url are _two_ things! show me an example
 where it doesn't work!
 
  Well, using url={\url{site}} in a bibtex won't solve the underscore
  (_)

 it will!

No, it won't solve it CORRECTLY! Please see below.

  problem. If the site contains pure underscore (_) you still have
  to use \_. You may try it with the attached files
  (test.bib,.bst,.lyx).

 \usepackage{url} in Layout-Document-Preamble

 and there is _no_ error

Well, the are no errors, but the output is not correct! 

If I leave the underscore(s) alone and use the \usepackage{url} in the 
preamble, then all whitespaces in the bibtex entry are lost in the output 
(which is NOT correct). The result is the same, if I use no preamble, but 
url={\url{...}} in the bibtex-entry instead. If I use both \usepackage and 
url={\url..., then the url in the output will begin with \url (which is also 
NOT correct).

The only way I have managed to produce a correct output is the combination no 
preamble, url={site} format in a bibtex entry and all underscores in the site 
name as \_. You may twist and turn it like you will, but I have tested all 
possible (i.e. error-free) combinations and this is the only producing a 
correct, i.e. a WYSIWYM output. Please feel free to test it by yourself if you 
don't believe me.

Herbert Voss, 12.12.2005 23:25:
 and the following is the reason why a \url in the bib file
 is not needed, because the bst file does it already ...

  FUNCTION {format.url}
  { url empty$
  {  }
  { \url{ url * } * }
if$
  }

Well, this is already clear to me. As I mentioned, I have made the .bst file 
myself, so please belive me, I have an idea what it is supposed to do...;-) 
(I'm really not a newbie with .bst files).

To sum up: I don't see the point of using url={\url...} in a bibtex entry, if 
a) the .bst file does the formatting for you and b) if there are no other 
benefits (e.g. the underscore problem is not solved)... Or do I miss a benefit?

Kind regards,
Kimmo





How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread Bo Peng
Dear list,

I am trying to define a shortcut to aligh-right a paragraph. I tried

\bind something layout-paragraph align-right

but the paragraph layout dialog is opened.

Many thanks in advance.
Bo


Re: How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread K. Elo
Bo Peng, tiistai, 13. joulukuuta 2005 08:45:
 Dear list,

 I am trying to define a shortcut to aligh-right a paragraph. I tried

 \bind something layout-paragraph align-right

Try:
\bind something command-sequence layout-paragraph; align-right;

Kind regards,
Kimmo


Re: How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread Bo Peng
 \bind something command-sequence layout-paragraph; align-right;

layout-paragraph;  dialog opened
(aligh-right): Unknown function.

Bo


Re: missing documentation ...?

2005-12-12 Thread Martin A. Hansen
that is pretty clear. now, it would be nice if your explanation was part of
the documentation!

also, it would be nice in future versions of lyx, if the image layout box
was more intuitive to use.

and of cause the possibility of a flag to include the height of the caption
in the image height.

regards


martin

On 12/12/05, Geoffrey Lloyd [EMAIL PROTECTED] wrote:

 On Mon, 12 Dec 2005, Robert Orr wrote:

 
  and when to use the maintain aspect ratio
 
  So, on the aspect ratio, when one sets the H or W,
  which one of them becomes the dominant variable when
  the maintain aspect ratio box is checked? The H or
  the W?
 
 I cant see why one would set both. THe point is if you want you figure to
 be say 10cm wide, want to maintain the shape, and arent worried about
 height then you set the width and click 'maintain aspect ratio'

 If you are however converned with height and not width do the opposite.

 And finally if you want to specify a height/width ratio different from the
 original figure then enter values for both height and width and leave the
 'maintain aspect ratio' box blank.

 In order to set the width or height to be calculated in proportion to the
 aspect ratio set the value to 0 sp.

 e.g. I have a 5cm wide 2cm high figure

 1) I want it to be 11cm wide on the page. Set width 11cm height 0sp and
 clivk maitina aspct

 2) I want it to be 4cm hgih. Set width 0sp height 200% and selct maintain
 aspect

 3) I wanr it to be 11cm wide and 4cm high. Set width 11cm height 4cm and
 uncheck maintain aspect.

 I hope this is clear

 Geoff



Re: How can I define a shortcut to layout-paragraph align-right?

2005-12-12 Thread K. Elo
Bo Peng, tiistai, 13. joulukuuta 2005 09:02:
  \bind something command-sequence layout-paragraph; align-right;

 layout-paragraph;  dialog opened
 (aligh-right): Unknown function.

Oops, my fault. The command is:
\bind something para-align right
but this is NOT yet implemented. Maybe in 1.4.x??

Kind regards,
Kimmo


Re: missing documentation ...?

2005-12-12 Thread Helge Hafting

Martin A. Hansen wrote:


i am still confused.

page% - that is the width of the page from paper edge to paper edge?
line%  - that is the width from from margin to margin? or is that text%

and which of these settings include footer and header - that would be
pheight% as opposed to theight%?
 


This could be better documented, but is easy enough to figure
out by trying.  Scale an image and see. :-)

text%  Percent of the width of the text area (not including margins)
col%Percent of the widht of a column.  This is the same as text% for
   your usual single-column document, smaller for two-column text.
page% Percent of page width, including margins. The width of the paper.
   This one is rarely used.
line%   Percent of the width of a line.  The same as col% in standard 
text,
   but not always.  Lists uses lines that are shorter than the 
column,
   as some space is used up for the bullet/number/label.  Very 
useful
   if you're sticking an image in a list.  Using line% may be a 
good

   idea in general, the sizing will then work no matter if it is
   in a list, in a multicolumn text, a minipage, in a table 
with fixed

   column width - or in a standard page.


actually, these abbreviations are not very logic - i can choose width =
theight and hight=text - i find that confusing.
 


No reason _not_ to be able to choose width = height or vice versa.
It is useful when wanting a square layout, or something where
the width really depends on the height in some other way.



Re: Fw: installing Tex classes

2005-12-12 Thread Andres Becerra Sandoval
On 12/12/05, Marcel Vercouter <[EMAIL PROTECTED]> wrote:
>
> - Original Message -
> From: Marcel Vercouter
> To: lyx-users@lists.lyx.org
> Sent: Monday, December 12, 2005 12:29 AM
> Subject: installing Tex classes
>
>
> I'd like to use 'hollywood' and 'broadway' layouts, and although they 
> (hollywood) are listed as present in the "New from Template" menu, I get a 
> Textclass error LyX will not be able to produce output.
> Strugling my way in the LyX and MikTex sites, I could not find a clear 
> procedure to install those classes (and any other that are not in the LyX 
> package).
> Any hint that will show me the right way to do it ?
>
> Marcel
>

The document classes hollywood.cls and broadway.cls are in the lyx
sources. You can put them in /usr/local/share/texmf/tex/latex or in
~/texmf/tex/latex for your user only. Then you have to run texhash to
update TeX database.

--
  Andres


Re: scalable braces in math mode

2005-12-12 Thread Jean-Marc Lasgouttes
> "Nusret" == Nusret BALCI <[EMAIL PROTECTED]> writes:

Nusret> \bind "M-m ~C-~M-~S-braceleft" "math-delim { }"

Nusret> That's a problem at least if your keyboard is a cheap standard
Nusret> one like mine (In fact, I don't even have an AltGr key,
Nusret> instead I use Ctrl+Alt when needed). It is like turning on
Nusret> caps lock, and then pressing Shift+A to obtain 'A' :). After I
Nusret> change it to the following:

Nusret> \bind "M-m ~C-~M-~S-bracketleft" "math-delim { }"

Nusret> everything works alright.

Nusret> Do you have any idea what those ~'s stand for though?

They mean "do not look at those modifiers". So basically, anything
that leads to a braceleft "{" character should be OK. I am surprised that
you would have to use a bracketleft "[".

JMarc


Re: scalable braces in math mode

2005-12-12 Thread Jean-Marc Lasgouttes
> "Nusret" == Nusret BALCI <[EMAIL PROTECTED]> writes:

Nusret> I use sciword binding file. It supposedly includes the
Nusret> math.bind file which contains the binding you mentioned (but
Nusret> without AltGr). However it didn't work. I tried to find the
Nusret> reason and noticed that there is a typo in sciword.bind file:
Nusret> it inclued "maths.bind" file (which doesn't exist) instead of
Nusret> "math.bind".

It is a typo indeed. I just fixed it.

Thanks.

JMarc


Re: Superscript

2005-12-12 Thread Geoffrey Lloyd

On Sat, 10 Dec 2005, Steve Litt wrote:


On Saturday 10 December 2005 02:12 pm, Charles de Miramon wrote:

Steve Litt wrote:

Hi all,

I just went to write O2, as in two oxygen atoms stuck together, and saw
no provision for superscripting the 2, at least not on the


Sorry to be an accurate scientist but really the 2 should be SUBscripted 
if you want to write O2, else it is O^2 which really means nothing at all.


Geoff



Format->Character dialog box. There was also no subscript. I know this
can't be true -- how do I do it?

I'm using LyX 1.3.3.


You can insert a subscript with insert --> special character --> subscript.
It is a hack that will create a math inset with a subscript.
Or you can use in ERT O\textsuperscript{2}

The two solutions are not typographically equivalent, the superscript is
not placed at the same place. For abreviations superscripts like 12th for
example, or Mr. Dr., use textsuperscript for chemical symbols use a
mathematical inset.

I wish the actual superscript and subscript hacks could go away. They are a
pain when you export a LyX file to rtf (they are transformed in
mathematical formulas) and result in wrong typesetting. Lyx should default
to \textsuperscript and \textsubscript


Thanks Charles,

I tried these both, and they both worked. I chose the
Insert->Specialcharacter->superscript method for 2 reasons:

1) The 2 was visible in the LyX file, which is more clear
2) The 2 was bigger, which in this case I liked.

Thanks so much for the help.

SteveT

Steve Litt
Author:
  * Universal Troubleshooting Process courseware
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
Webmaster
  * Troubleshooters.Com
  * http://www.troubleshooters.com



  1   2   >