Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen

Dear Mukhtar,

 Since I have got a working ps2eps, you could send me
 one example eps file so

Thank you for offering! Meanwhile I tested ps2eps V1.64 myself. While it 
calculates the bounding box exactly (great!) the clipping to bounding box 
option as per the Lyx dialogue doesn´t work correctly anymore: While the bbox 
values can be read from the file by Lyx, the picture doesn´t get clipped to the 
tile but the whole page is shown.

I am really stuck with this problem 

Tom Schlangen
-- 



Re: Problem inner and outer margins

2008-06-25 Thread Anthony Campbell
On 25 Jun 2008, John wrote:
 On Wednesday 25 June 2008 12:39:13 pm Nigel Pegram wrote:
  Hi Adi,
 
  Offhand, no, I don't know the default settings. It'll be around
  somewhere, but that doesn't help you grin.
 
  The reason I suggested speaking with the publisher is that they should
  be able to inform you concerning good margin sizes. The correct answer
  depends on a number of factors, including text (point) size, paper
  size, number of pages (creep) and the style of binding (perfect,
  burst, ring, etc). If they can't/won't help you, you could aways print
  a sample page from lyx and take the measurements from that.
 In general the outer margins should re roughly twice the width of the inner 
 margins.
 This is so that when the book is opened out, the whitespace outside columns 
 of 
 text appears equal. If you look at published books you will see that this is 
 so.
 Of course the type of binding can affect how well that book can open out and 
 this may mean that the inner margins need to compensate  for this by being 
 increased a little. But the visible width of the two inner margins should 
 still look equal to one outer margin
 

Lulu specifies that for their distribution packages (for Amazon etc.)
the inner and outer margins must be the same, although you are allowed a
gutter on the inside. In practice, I've found that it's best not to have
the gutter and just set them all the same.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen
Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.

.EPS output file of the circuit drawing program I use:

http://www.ines.mynetcologne.de/dummy.eps (64k)

bbget script from http://silas.psfc.mit.edu/elec_fig/ :

http://www.ines.mynetcologne.de/bbget 

Output from bbget, using esp-gs v7.70.x:

http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)

Output from bbget, using gs v8.62:

http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)

Output from gsview v4.7, using option PS to EPS, also checkmarked 
Automatically calculate Baounding Box. BTW, using gsview v4.9 gives the same 
result.

http://www.ines.mynetcologne.de/dummy_gsview47.eps (64k) (doesn´t work)

Output from ps2eps v1.64 utility, parameters as suggested by 
http://www.tm.uka.de/~bless/ps2eps.html:

http://www.ines.mynetcologne.de/dummy_ps2eps164.eps (64k) (doesn´t work)

Just import those example eps files 

   dummy_bbget_espgs770.eps (64k) (works!)
   dummy_bbget_gs862.eps (64k) (doesn´t work)
   dummy_gsview47.eps (64k) (doesn´t work)
   dummy_ps2eps164.eps (64k) (doesn´t work)
   
to LyX always using the Clip to bounding box and Read from file options in 
the dialog, and have a look at the output. You will see the only file giving 
correct clipping is the one with the bounding box values generated by bbget and 
an old, discontinued ESP ghostscript version.

Now, everybody can say that is not a problem of LyX, but on the other hand, 
the LyX image import dialogue is left pretty useless if there is only some 
certain script/program combination being able to generate bounding boxes that 
LyX is able to deal with?

Regards,

Tom Schlangen
-- 



Rotated multirow table cell

2008-06-25 Thread D . Zorig
Hello LyX users,

Is there anyway to have rotated text span multiple rows in LyX?
90° rotated text should span multiple rows in a table.
I tried ERT
\multirow{2}{2cm}{text} then make the cell rotate 90° but didn't get it to
work.

Thank you in advance for your suggestions and solutions.


Zorigtkhuu Davaanyam


Re: keyboard question

2008-06-25 Thread Daniel Clément
[sorry if double post, previous one did not work]
On Tuesday 24 June 2008 18:31 +0200, Abdelrazak Younes wrote:

[...]
 Maybe try this:
 
 \bind 'c  unicode-insert 0x00e7
 
 Abdel.
 
It looked promising, but it did not work (still gives accented c).

I don't know why 

\kxmod ' c ç

in the kmap file does not work. Isn't exactly what sect. 4.4.1 of
Customization says? 

Also, I tried a normal US keyboard setting (without dead keys): it did
not change anything. So the dead keys are not the problem.

It looks like some other setting has precedence over the ones made in
bind or kmap files...
-- 

Daniel Clément




Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Nicolás
I you select the Clip to bounding box option and get the bounding box from the file, the result will be the same as if you simply do 
not select the Clip to bounding box option (in my experience, at least).
Now, regarding your eps files, are the last two or three eps files really useless? I can see that the only difference with the ok file 
is that their bounding box is one point bigger in both th evertical and horizontal dimensions. Is that really a problem? What you get 
is a white frame of less than 1mm of thickness, and since I assume your paper is white... no one will notice such fame! Just my opinion.


Cheers,
Nicolás

Tom Schlangen wrote:

Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.

.EPS output file of the circuit drawing program I use:

http://www.ines.mynetcologne.de/dummy.eps (64k)

bbget script from http://silas.psfc.mit.edu/elec_fig/ :

http://www.ines.mynetcologne.de/bbget 


Output from bbget, using esp-gs v7.70.x:

http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)

Output from bbget, using gs v8.62:

http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)

Output from gsview v4.7, using option PS to EPS, also checkmarked Automatically 
calculate Baounding Box. BTW, using gsview v4.9 gives the same result.

http://www.ines.mynetcologne.de/dummy_gsview47.eps (64k) (doesn´t work)

Output from ps2eps v1.64 utility, parameters as suggested by 
http://www.tm.uka.de/~bless/ps2eps.html:

http://www.ines.mynetcologne.de/dummy_ps2eps164.eps (64k) (doesn´t work)

Just import those example eps files 


   dummy_bbget_espgs770.eps (64k) (works!)
   dummy_bbget_gs862.eps (64k) (doesn´t work)
   dummy_gsview47.eps (64k) (doesn´t work)
   dummy_ps2eps164.eps (64k) (doesn´t work)
   
to LyX always using the Clip to bounding box and Read from file options in the dialog, and have a look at the output. You will see the only file giving correct clipping is the one with the bounding box values generated by bbget and an old, discontinued ESP ghostscript version.


Now, everybody can say that is not a problem of LyX, but on the other hand, 
the LyX image import dialogue is left pretty useless if there is only some certain 
script/program combination being able to generate bounding boxes that LyX is able to deal 
with?

Regards,

Tom Schlangen




Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen
Dear Nicolás,

 Now, regarding your eps files, are the last two or three eps files
 really useless? I can see that the only difference with the ok file 
 is that their bounding box is one point bigger in both th evertical
 and horizontal dimensions. Is that really a problem?

Good point - I must admit I didn´t check DVI output (which is correct) before, 
because it looks wrong already in the LyX GUI editor - both my installed 
Windows and Linux LyX versions (V1.55 for both OS) still show the wide border 
around the bounding box in the LyX GUI/Editor for both files. That is not a big 
Problem, but just a nuisance in the LyX GUI editor - which is not the case when 
bounding boxes are computed by the bbget/ESP-gs combo.

Now I am wondering who is the transgressor regarding the wrong display (with 
white borders): ImageMagick or LyX itself?

Anyway, thank you for the workaround regarding the old ghostscript version and 
let´s hope the LyX GUI display problem will be solved soon.

Regards,

Tom Schlangen

-- 



Re: keyboard question

2008-06-25 Thread G. Milde
On 25.06.08, Daniel Clément wrote:
 [sorry if double post, previous one did not work]
 On Tuesday 24 June 2008 18:31 +0200, Abdelrazak Younes wrote:

 [...]
  Maybe try this:
  \bind 'c  unicode-insert 0x00e7
 It looked promising, but it did not work (still gives accented c).
...
 It looks like some other setting has precedence over the ones made in
 bind or kmap files...

Could you find out whether the character inserted via dead-´ + c is
*one* character (c with accent) or 
*two* characters (c + combining acute acctent)

Both look similar at screen but are different representations.
Deleting a two character combination sometimes(?) leaves the accent or
the letter. The M-x accent-* functions insert two character combinations.

Maybe LyX does not map it to ç because it does not see the defined char.

Günter


Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Mukhtar Ullah
Dear Tom,
I checked your figures in LyX and could verify your problem. It seems that
imagemagick is culprit. I converted your eps files to pdf and included that in
LyX. That was shown perfectly clipped. So you could consider switchin gto
pdflatex, converting all your eps files by a script using epstopdf command from
MiKTeX. That, ofcourse, will only be possible if you are not using pstricks.

Mukhtar



Re: URL handling in 1.6

2008-06-25 Thread G. Milde
On 24.06.08, Uwe Stöhr wrote:
  There are 2 insets for URLs in the Insert menu:

 Both are explained in the UserGuide. Both differ a lot.

After reading the (German) UserGuide, one could argue that URL offers
just a subset of [href] and could therefore be dropped without loss of
functionality.

Inserting a [href] with just a link and no name has the same effect than
inserting the link as URL.


  * I can not dissolve a Hyperlink inset, only copy and paste its content
into another place.

 Yes, because it is not an inset. It's the same as a label. Therefore
 find and replace cannot find it.

This could be a (non-documented) reason to keep a distinct URL inset
even if the result in print does not differ. At least if there is no
possibility to implement the href button as an inset-like widget.


  Should 1.5 URLs be rather converted to 1.6 Hyperlinks?

 No, we won't change the output of the documents we convert.

... if not forced to do so as, e.g., for wrapped floats where the latex
output uses a new package but tries to keep the appearance in print.
Switching to href instead of url might be similar if the PS or PDF
output is the same.

Günter


hypepnation and bibtex

2008-06-25 Thread María José García
Hi all,

I cannot solve two of my main problems with lyx. I'm finishing my work and I 
would like to solve these 
problems.

The first one is the hypepnation. Mostly works ok, but there are a few words 
that doestn't recognize or 
whatever I know

For example,
desar- rolla

the correct way in spanish should be:
de- sarrolla
desa - rrolla
desarro - lla

The other problem its the bibtex style. I have the plain style with numeric, 
and the main problems are:
- The output document doesn't keep the capitals letters, so the acronyms 
doesn't appears in capitals 
and there are things like:

noaa-avhrr when should be NOA-AVHRR
eto when should be ETo
spain instead of Spain
...

- I would like to suppress the hypepnation in the bibliography because there 
are bibliography in 
spanish and in english and it doest work ok.

- I would like to put the name after the surname:
instead of F. Rosenblatt, Rosenblat, F. and I don't know how to change it.

- When I cite a PhD thesis its appears in english... and my document is in 
spanish, so should say tesis 
doctoral instead of PhD thesis.

I know there are too much things... and I sorry, but I have been looking for a 
solution in the 
documentation and in the list and I haven't found the solution.

thank you all
NinaNutz


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.


Re: keyboard question

2008-06-25 Thread Hellmut Weber

Hi Daniel,
my system is gentoo linux, KDE-3.5, LyX 1.5.3 1.5.5 1.6svn (a few weeks old

I have the problem that I sometimes wnat to have ç (in french texts) and 
also å (in swedish texts).


The solution I found already several years ago is to have a bash start 
script in the Autostart folder, in which I define:


xmodmap -e clear Lock
xmodmap -e keycode 66 = Multi_key

Since I nearly never use the caps lock key I redefine it in this way as 
'compose' key.
There are files like /usr/share/keymaps/include/compose.latin1 which 
show you the transformations of compose+key+key to different symbols.

For the above examples I have to type caps lock 'c' ',' and
caps lock 'a' 'a' one after the other.

This works inside LyX, vim and also on the command line.

HTH

Hellmut


Also, I tried a normal US keyboard setting (without dead keys): it did
not change anything. So the dead keys are not the problem.

BTW My LOCALE is de as well as my keyboard setting

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann

Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 
Help file Userguide tells me to check for detailed explanation under 
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported as .eps 
files and inserted in the LyX document as floats. 

My aim is to have the text of my fig files in the same font and size as the 
text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is there a 
global command to do that for all files in one run?

 And how exactly do I get it into the document? Is it the pstex or the pstex_t 
file or both? Or is this done internally by LyX? With Enter (Einfuegen) File 
(Datei) external Material I get the fig file but the text of the pdf output 
is not scaled correctly (nor the fonts). Somehow I haven't caught the way of 
entering it. 

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?

Thanks a lot

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX? Help file Userguide tells me to check
for detailed explanation under ImbeddedObjects but there I can´t find any
detailed explanation.


Wolfgang,

  I can try.


I have quite a number of xfig produced files which are all exported as .eps
files and inserted in the LyX document as floats.


  That's what I've done, too.


My aim is to have the text of my fig files in the same font and size as the
text in the document. This is not the case now.



Do I have to use for all my fig files the xfig -specialtext or is there a
global command to do that for all files in one run?


  I do not know if you can post-process the typeface, but I made the
Palatino typeface the standard in Xfig images because that's the standard
typeface I use in all my documents. This produces the same text appearance
in both body and images.


And how exactly do I get it into the document? Is it the pstex or the
pstex_t file or both? Or is this done internally by LyX? With Enter
(Einfuegen) File (Datei) external Material I get the fig file but the text
of the pdf output is not scaled correctly (nor the fonts). Somehow I
haven't caught the way of entering it.


  I've always used Insert - Float - Float Figure, then specified the file
in the dialog box.

  Perhaps I don't understand your concerns well enough.

Rich

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

Re: hypepnation and bibtex

2008-06-25 Thread G. Milde
On 25.06.08, María José García wrote:


 The first one is the hypepnation. 

 For example,
 desar- rolla

 the correct way in spanish should be:
 de- sarrolla
 desa - rrolla
 desarro - lla

You add words to the LaTeX knowledge base in the preamble
(DocumentSettingsLatex Preamble) with e.g.

\hyphenation{de-sa-rro-lla ana-lysis}

of (for single occurences) insert a soft-hyphen with
InsertFormatting... or Strg+'-'.


 The other problem its the bibtex style. I have the plain style with
 numeric, and the main problems are:

 - The output document doesn't keep the capitals letters, so the
   acronyms doesn't appears in capitals and there are things like:

This is an old BibTeX problem (as in English, capitalizing of words in
headings and titles is a matter of style, it is governed by the Bibtex
style. The solution is to protect capital letters with braces:

 The {NOA-AVHRR} system and its use
 Why we should be {ETo} in {S}pain

 - I would like to suppress the hypepnation in the bibliography because
   there are bibliography in spanish and in english and it doest work
   ok.

You could insert 

\setcounter{lefthyphenmin}{100}
\setcounter{righthyphenmin}{100}

as ERT (raw LaTeX) before the bibliography to increase the minimal
number of characters in front of and behind a hyphen from 2 to 100.
Don'f forget to set it back afterwards if there is text to follow.

OTOH, you could also specify the language of the Titles in the bib file.
Have a look at the LyX-Source (ViewSource) for a text part set in
English to find out what LaTeX commands should be put in the bibfile.


 - I would like to put the name after the surname:
 instead of F. Rosenblatt, Rosenblat, F. and I don't know how to change it.

 - When I cite a PhD thesis its appears in english... and my document is
   in spanish, so should say tesis doctoral instead of PhD thesis.

These definitions are part of the bibtex style definition. Try a
different bib style or create your own with custom-bib 
http://dante.ctan.org/CTAN/help/Catalogue/entries/custom-bib.html

Günter


Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:
Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 


Use the external inset (Inset-File-External Material) and choose the 
XFig template. You should also select preview in the display combo AFAIR.



I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?


1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing 
preview on the display combo, that's all.


Abdel.



Re: keyboard question

2008-06-25 Thread Daniel Clément
Günter,

On Wednesday 25 june 2008 à 12:19 +0200, G. Milde wrote:

[...]

 Could you find out whether the character inserted via dead-´ + c is
 *one* character (c with accent) or 
 *two* characters (c + combining acute acctent)

Not quite sure how to check this but I'd bet on single character...
 
 Both look similar at screen but are different representations.
 Deleting a two character combination sometimes(?) leaves the accent or
 the letter. The M-x accent-* functions insert two character combinations.

... because this latter behavior you describe is what I get (erase
accented c, accent remains) when I specify american.kmap while trying
to tweak it. 
By default (i.e. no kmap file selected) I can erase the accented c at
once.
(BTW I couldn't paste the character in question from LyX into this
message.)

 
 Maybe LyX does not map it to ç because it does not see the defined char.

Do you mean: in the kmap file, or the bind file? If the latter, it has
to be something like that, because I do have some personal keybindings
that work.

 
 Günter

-- 

Daniel Clément



Re: keyboard question

2008-06-25 Thread G. Milde
On 25.06.08, Daniel Clément wrote:
 On Wednesday 25 june 2008 à 12:19 +0200, G. Milde wrote:

  Could you find out whether the character inserted via dead-´ + c is
  *one* character (c with accent) or 
  *two* characters (c + combining acute acctent)

 Not quite sure how to check this but I'd bet on single character...

OK. Just let's assume this.

 (BTW I couldn't paste the character in question from LyX into this
 message.)

Maybe you are not using a utf-8 enabled mailer. 


  Maybe LyX does not map it to ç because it does not see the defined char.

 Do you mean: in the kmap file, or the bind file? If the latter, it has
 to be something like that, because I do have some personal keybindings
 that work.

The bind file. It uses a special naming for non-ASCII input. Looking at the
bind files that ship with LyX helps: 

$LYXDIR/bind/latinkeys.bind contains the definition:

\bind cacute  self-insert

which you should change to unicode-insert ... (as proposed earlier in this
thread). 

Hope this helps.


BTW: Alternatives that work here are 

  1. Combining-Key + Komma followed by c. (in my setup, X11 translates
 this to ç, Combining-Key is the Windows Key)

  2. \bind Meta ,   accent-cedilla
 and then Alt-, c.
 
Günter  


Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Nicolás
Do you mean that when the eps is displayed in LyX is not clipped, as it would happen if it was opened with Gsview? In my machine I can 
see the clipped figure both in LyX and in the generated pdf/ps/dvi.

I have LyX 1.5.5, ImageMagick-6.2.7-Q16, AFPL Ghostscript 8.14 and GSview 4.6.

Nicolás


Mukhtar Ullah wrote:

Dear Tom,
I checked your figures in LyX and could verify your problem. It seems that
imagemagick is culprit. I converted your eps files to pdf and included that in
LyX. That was shown perfectly clipped. So you could consider switchin gto
pdflatex, converting all your eps files by a script using epstopdf command from
MiKTeX. That, ofcourse, will only be possible if you are not using pstricks.

Mukhtar






Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX? Help file Userguide tells me to check
  for detailed explanation under ImbeddedObjects but there I can´t find any
  detailed explanation.

 Wolfgang,

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

That's what I've done, too.

  My aim is to have the text of my fig files in the same font and size as
  the text in the document. This is not the case now.
 
  Do I have to use for all my fig files the xfig -specialtext or is there a
  global command to do that for all files in one run?

I do not know if you can post-process the typeface, but I made the
 Palatino typeface the standard in Xfig images because that's the standard
 typeface I use in all my documents. This produces the same text appearance
 in both body and images.

Rich, thanks: 
What about the size of the text in your fig - eps file in respect to the size 
of the text of the body (that is the document text, I guess?). Do you adjust 
it just by comparing it? Thats what I did so far. But what about the pstex 
and the pstex_t which you get after running xfig -specialtext? I thought this 
is the way to divide the image part of the fig and the text part so that the 
latter can be adjusted (by the program) to the font size of my text (and also 
to include e.g. greek letters as latex etc). If I check my  pstex file, it 
still shows the image and the text, as it was in the normal .fig file. The 
pstex_t file reads like:
\begin{picture}(0,0)%
\includegraphics{S021n.pstex}%
\end{picture}%
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFontNFSS\undefined%
\gdef\SetFigFontNFSS#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(7881,10984)(1694,-10257)
\end{picture}%

perhaps I have to define things (see undefined% in the fifth line)

 I just did not get it yet, some step might be missing (perhaps something in 
the preamble

Wolfgang

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow I
  haven't caught the way of entering it.

I've always used Insert - Float - Float Figure, then specified the
 file in the dialog box.

Perhaps I don't understand your concerns well enough.

 Rich


Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:
 Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX?

 Use the external inset (Inset-File-External Material) and choose the
 XFig template. You should also select preview in the display combo AFAIR.

Thats what I did, Abdel. See also my answer to Rich

Wolfgang
  I am using version 1.5.4 of LyX
  Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is
  done by the program?

 1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing
 preview on the display combo, that's all.

 Abdel.


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


What about the size of the text in your fig - eps file in respect to the size
of the text of the body (that is the document text, I guess?). Do you adjust
it just by comparing it?


Wolfgang,

  No. I size the text in the figure to the figure (keeping in mind that it
will probably be smaller in the document), and pay no attention to the font
size relative to the text. The image is its own entity and the text should
be scaled to the graphics ... and clarity.


Thats what I did so far. But what about the pstex and the pstex_t which
you get after running xfig -specialtext? I thought this is the way to
divide the image part of the fig and the text part so that the latter can
be adjusted (by the program) to the font size of my text (and also to
include e.g. greek letters as latex etc).


  I've not done this. I create the figures separately, then insert them in
floats. If they're not readable in the pdf, I adjust the text size and try
again. For my purposes, 10pt or 12pt text in the figure is perfectly
readable.

  When I start a new figure, I change the default font (lower right corner
of the bottom) to 'postscript fonts' and select Palatino-Roman. Depending on
how much text will be in the figure, I leave the default size at 12pt (light
text) or reduce it to 10pt (a lot of text). Then I create the figure and
export it as .eps and put it in the document.

HTH,

Rich

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


Re: Using Sweave for R code in LyX on Windows

2008-06-25 Thread Liviu Andronic
On 6/25/08, G. Jay Kerns [EMAIL PROTECTED] wrote:
  Please note that - coincidentally - I had already installed Cygwin on
  my system for other reasons; that may have helped with the relative
  ease that I had with the configuration.

I'm currently not likely to test Gregor's approach, on Windows, but
I'd be curious to know whether using a portable Cygwin [1] should
suffice to prepapre most of the required environment. If anyone tries
this, please let us know.

Regards,
Liviu

[1] http://xlivecd.indiana.edu/


Keyboard lock

2008-06-25 Thread Joby Joseph
Lyx 1.5.5 on Ubuntu fiesty fawn.

Two occasions freezes the keyboard interaction.

1)Sometimes when I save the file i am not able to edit the file name. No key 
works including arrow keys.
2)Sometime after inserting a citation I get back the text for editing same 
thing happens.

any fixes?
  thanks, joby


Re: Xfig and LyX

2008-06-25 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

The external template way is supposed to be easier, since it does the
exporting automatically, so you can't get outdated figures because you
forgot to export.

  Do I have to use for all my fig files the xfig -specialtext or is there
  a global command to do that for all files in one run?

The special flag is a property of each text box that you have to set
individually. AFAIK the -specialtext switch only sets that as default for
new text. If you have a lot of files that you need to convert it would
probably easy to write a small script that does this.

 What about the size of the text in your fig - eps file in respect to the
 size of the text of the body (that is the document text, I guess?). Do you
 adjust it just by comparing it? Thats what I did so far. But what about
 the pstex and the pstex_t which you get after running xfig -specialtext? I
 thought this is the way to divide the image part of the fig and the text
 part so that the latter can be adjusted (by the program) to the font size
 of my text (and also
 to include e.g. greek letters as latex etc). If I check my  pstex file, it
 still shows the image and the text, as it was in the normal .fig file. The
 pstex_t file reads like:

You should not need to worry about pstex_t and friends if you use the
external template. LyX is supposed to create all needed files
automatically, whether you use pdflatex or the traditional DVI. The only
decision you have to make is whether you want to use the special flag or
not: If you use it, the text will be typeset by LaTeX, and you can use
math, own commands that are defined in ERT or the preamble etc. The size
and font would also be adjusted through LaTeX commands. If you do not use
the special flag the text will appear as is in the final document, and you
set the font, size etc. in xfig.

  I just did not get it yet, some step might be missing (perhaps something
  in
 the preamble

You do not need to set anything in the preamble unless you use the xfig
special text flag and inserted nonstandard commands in a textbox of the
xfig file yourself.

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow
  I haven't caught the way of entering it.

If the special flag was set you encountered a bug, either in xfig, fig2dev
or in LyX. Otherwise just set the flag, and the text should be typeset by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 18:51 schrieb Georg Baum:
 Wolfgang Engelmann wrote:
  Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 I can try.
 
   I have quite a number of xfig produced files which are all exported as
   .eps files and inserted in the LyX document as floats.

 The external template way is supposed to be easier, since it does the
 exporting automatically, so you can't get outdated figures because you
 forgot to export.
 with  external template way  you mean the way I and Rich use, i.e. export fig 
to eps and insert in Lyx?

   Do I have to use for all my fig files the xfig -specialtext or is
   there a global command to do that for all files in one run?

 The special flag is a property of each text box that you have to set
 individually. AFAIK the -specialtext switch only sets that as default for
 new text. If you have a lot of files that you need to convert it would
 probably easy to write a small script that does this.

  What about the size of the text in your fig - eps file in respect to the
  size of the text of the body (that is the document text, I guess?). Do
  you adjust it just by comparing it? Thats what I did so far. But what
  about the pstex and the pstex_t which you get after running xfig
  -specialtext? I thought this is the way to divide the image part of the
  fig and the text part so that the latter can be adjusted (by the program)
  to the font size of my text (and also
  to include e.g. greek letters as latex etc). If I check my  pstex file,
  it still shows the image and the text, as it was in the normal .fig file.
  The pstex_t file reads like:

 You should not need to worry about pstex_t and friends if you use the
 external template. LyX is supposed to create all needed files
 automatically, whether you use pdflatex or the traditional DVI. The only
 decision you have to make is whether you want to use the special flag or
 not: If you use it, the text will be typeset by LaTeX, and you can use
 math, own commands that are defined in ERT or the preamble etc. The size
 and font would also be adjusted through LaTeX commands. If you do not use
 the special flag the text will appear as is in the final document, and you
 set the font, size etc. in xfig.
Does it mean, I have to create the fig file after having started 
xfig -specialtext and xfig then puts my text in the pstex_t file with 
location marks etc?
With other words, I have to redo all my fig files and add (or copy, if I find 
out how the localization of the text is done in pstex_t)?

   I just did not get it yet, some step might be missing (perhaps something
   in
  the preamble

 You do not need to set anything in the preamble unless you use the xfig
 special text flag and inserted nonstandard commands in a textbox
textbox is pstex_t?
 of the 
 xfig file yourself.

   And how exactly do I get it into the document? Is it the pstex or the
   pstex_t file or both? Or is this done internally by LyX? With Enter
   (Einfuegen) File (Datei) external Material I get the fig file but the
   text of the pdf output is not scaled correctly (nor the fonts).
   Somehow I haven't caught the way of entering it.

 If the special flag was set you encountered a bug, either in xfig, fig2dev
 or in LyX. Otherwise just set the flag, and the text should be typeset by
 LaTeX.
How does xfig find out the size and font I used in the document, or does it 
make latex take it over?

Will experiment tomorrow a bit, but perhaps clarifying my (stupid) questions 
helps to reduce the experimenting time. Thanks a lot, Georg

Wolfgang


LyX doesn't start: Assertion `c-xlib.lock' failed

2008-06-25 Thread John Coppens
Hi guys,

After updating quite a lot of libraries, I can't start LyX anymore. I
didn't update Qt - still 4.3.3, and lyx --version still works:

LyX 1.5.3 (Mon, Dec 17, 2007)
Built on Dec 31 2007, 14:30:47
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  pch  use-aspell use-ispell
  C   Compiler: gcc 
  C   Compiler LyX flags:
  C   Compiler flags: -I/usr/X11R6/include -O2
  C++ Compiler: g++ (3.4.6)
  C++ Compiler LyX flags:
  C++ Compiler flags: -I/usr/X11R6/include -O2
  Linker flags: 
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.3.3
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

I did find a similar bug:

http://osdir.com/ml/freedesktop.xcb/2006-10/msg9.html

But I'm not enough of a programmer to judge if this is the problem - I
don't expect LyX to be needing Mesa, but maybe Qt does?

Running LyX in gdb: first it encounters some problem and gdb is stopped.
continuing with fg, advanced till the problem:

Program received signal SIGTTOU, Stopped (tty output).
[Switching to Thread 0xb6e3d8e0 (LWP 4479)]
0xb6f417de in __write_nocancel () from /lib/libc.so.6
(gdb) bt
#0  0xb6f417de in __write_nocancel () from /lib/libc.so.6
#1  0xb6ee03b4 in _IO_new_file_write () from /lib/libc.so.6
#2  0xb6ee0055 in new_do_write () from /lib/libc.so.6
#3  0xb6ee0319 in _IO_new_file_xsputn () from /lib/libc.so.6
#4  0xb6ed667f in fwrite () from /lib/libc.so.6
#5  0xb6e55767 in xcb_xlib_printbt () at xcb_xlib.c:48
#6  0xb6e5586d in xcb_xlib_unlock (c=0x8804f10) at xcb_xlib.c:82
#7  0xb702ccc2 in _XCBUnlockDisplay (dpy=0x8807778) at xcb_lock.c:41
#8  0xb767b5a6 in XFixesQueryVersion () from /usr/X11/lib/libXfixes.so.3
#9  0xb78d477a in qt_init (priv=0x87f75c0, display=0x8807778, 
visual=4294966784, colormap=4294966784) at
kernel/qapplication_x11.cpp:1627
#10 0xb7878e2f in QApplicationPrivate::construct (this=0x87f75c0,
#dpy=0x0, 
visual=0, cmap=0) at kernel/qapplication.cpp:705
#11 0xb7879be4 in QApplication (this=0x87faad8, [EMAIL PROTECTED], 
argv=0xbfa94a24, _internal=-512) at kernel/qapplication.cpp:619
#12 0x08420982 in lyx::frontend::GuiApplication::GuiApplication ()
#13 0x084216f5 in lyx::createApplication ()
#14 0x0818964c in lyx::LyX::exec ()
#15 0x08067919 in main ()

Can anyone suggest how to proceed?

John

System is mainly Slackware Linux 12.1...


.kmap ortography

2008-06-25 Thread MonAmiPierrot

I just want to write this lines

\kmap  «
\kmap  »

in my personal.kmap file to have a chevrons or guillemets marks (I use
also double quotes)

But it doesn't work, perhaps due to the mistaken ortography in the ASCII
file. How to refer to this characters?


-- 
View this message in context: 
http://www.nabble.com/.kmap-ortography-tp18120799p18120799.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:

Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:

Wolfgang Engelmann wrote:

Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX?

Use the external inset (Inset-File-External Material) and choose the
XFig template. You should also select preview in the display combo AFAIR.


Thats what I did, Abdel.


I don't think so. As I said, try Inset-File-External Material

Abdel.



Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen

Dear Mukhtar,

 Since I have got a working ps2eps, you could send me
 one example eps file so

Thank you for offering! Meanwhile I tested ps2eps V1.64 myself. While it 
calculates the bounding box exactly (great!) the clipping to bounding box 
option as per the Lyx dialogue doesn´t work correctly anymore: While the bbox 
values can be read from the file by Lyx, the picture doesn´t get clipped to the 
tile but the whole page is shown.

I am really stuck with this problem 

Tom Schlangen
-- 



Re: Problem inner and outer margins

2008-06-25 Thread Anthony Campbell
On 25 Jun 2008, John wrote:
 On Wednesday 25 June 2008 12:39:13 pm Nigel Pegram wrote:
  Hi Adi,
 
  Offhand, no, I don't know the default settings. It'll be around
  somewhere, but that doesn't help you grin.
 
  The reason I suggested speaking with the publisher is that they should
  be able to inform you concerning good margin sizes. The correct answer
  depends on a number of factors, including text (point) size, paper
  size, number of pages (creep) and the style of binding (perfect,
  burst, ring, etc). If they can't/won't help you, you could aways print
  a sample page from lyx and take the measurements from that.
 In general the outer margins should re roughly twice the width of the inner 
 margins.
 This is so that when the book is opened out, the whitespace outside columns 
 of 
 text appears equal. If you look at published books you will see that this is 
 so.
 Of course the type of binding can affect how well that book can open out and 
 this may mean that the inner margins need to compensate  for this by being 
 increased a little. But the visible width of the two inner margins should 
 still look equal to one outer margin
 

Lulu specifies that for their distribution packages (for Amazon etc.)
the inner and outer margins must be the same, although you are allowed a
gutter on the inside. In practice, I've found that it's best not to have
the gutter and just set them all the same.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen
Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.

.EPS output file of the circuit drawing program I use:

http://www.ines.mynetcologne.de/dummy.eps (64k)

bbget script from http://silas.psfc.mit.edu/elec_fig/ :

http://www.ines.mynetcologne.de/bbget 

Output from bbget, using esp-gs v7.70.x:

http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)

Output from bbget, using gs v8.62:

http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)

Output from gsview v4.7, using option PS to EPS, also checkmarked 
Automatically calculate Baounding Box. BTW, using gsview v4.9 gives the same 
result.

http://www.ines.mynetcologne.de/dummy_gsview47.eps (64k) (doesn´t work)

Output from ps2eps v1.64 utility, parameters as suggested by 
http://www.tm.uka.de/~bless/ps2eps.html:

http://www.ines.mynetcologne.de/dummy_ps2eps164.eps (64k) (doesn´t work)

Just import those example eps files 

   dummy_bbget_espgs770.eps (64k) (works!)
   dummy_bbget_gs862.eps (64k) (doesn´t work)
   dummy_gsview47.eps (64k) (doesn´t work)
   dummy_ps2eps164.eps (64k) (doesn´t work)
   
to LyX always using the Clip to bounding box and Read from file options in 
the dialog, and have a look at the output. You will see the only file giving 
correct clipping is the one with the bounding box values generated by bbget and 
an old, discontinued ESP ghostscript version.

Now, everybody can say that is not a problem of LyX, but on the other hand, 
the LyX image import dialogue is left pretty useless if there is only some 
certain script/program combination being able to generate bounding boxes that 
LyX is able to deal with?

Regards,

Tom Schlangen
-- 



Rotated multirow table cell

2008-06-25 Thread D . Zorig
Hello LyX users,

Is there anyway to have rotated text span multiple rows in LyX?
90° rotated text should span multiple rows in a table.
I tried ERT
\multirow{2}{2cm}{text} then make the cell rotate 90° but didn't get it to
work.

Thank you in advance for your suggestions and solutions.


Zorigtkhuu Davaanyam


Re: keyboard question

2008-06-25 Thread Daniel Clément
[sorry if double post, previous one did not work]
On Tuesday 24 June 2008 18:31 +0200, Abdelrazak Younes wrote:

[...]
 Maybe try this:
 
 \bind 'c  unicode-insert 0x00e7
 
 Abdel.
 
It looked promising, but it did not work (still gives accented c).

I don't know why 

\kxmod ' c ç

in the kmap file does not work. Isn't exactly what sect. 4.4.1 of
Customization says? 

Also, I tried a normal US keyboard setting (without dead keys): it did
not change anything. So the dead keys are not the problem.

It looks like some other setting has precedence over the ones made in
bind or kmap files...
-- 

Daniel Clément




Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Nicolás
I you select the Clip to bounding box option and get the bounding box from the file, the result will be the same as if you simply do 
not select the Clip to bounding box option (in my experience, at least).
Now, regarding your eps files, are the last two or three eps files really useless? I can see that the only difference with the ok file 
is that their bounding box is one point bigger in both th evertical and horizontal dimensions. Is that really a problem? What you get 
is a white frame of less than 1mm of thickness, and since I assume your paper is white... no one will notice such fame! Just my opinion.


Cheers,
Nicolás

Tom Schlangen wrote:

Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.

.EPS output file of the circuit drawing program I use:

http://www.ines.mynetcologne.de/dummy.eps (64k)

bbget script from http://silas.psfc.mit.edu/elec_fig/ :

http://www.ines.mynetcologne.de/bbget 


Output from bbget, using esp-gs v7.70.x:

http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)

Output from bbget, using gs v8.62:

http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)

Output from gsview v4.7, using option PS to EPS, also checkmarked Automatically 
calculate Baounding Box. BTW, using gsview v4.9 gives the same result.

http://www.ines.mynetcologne.de/dummy_gsview47.eps (64k) (doesn´t work)

Output from ps2eps v1.64 utility, parameters as suggested by 
http://www.tm.uka.de/~bless/ps2eps.html:

http://www.ines.mynetcologne.de/dummy_ps2eps164.eps (64k) (doesn´t work)

Just import those example eps files 


   dummy_bbget_espgs770.eps (64k) (works!)
   dummy_bbget_gs862.eps (64k) (doesn´t work)
   dummy_gsview47.eps (64k) (doesn´t work)
   dummy_ps2eps164.eps (64k) (doesn´t work)
   
to LyX always using the Clip to bounding box and Read from file options in the dialog, and have a look at the output. You will see the only file giving correct clipping is the one with the bounding box values generated by bbget and an old, discontinued ESP ghostscript version.


Now, everybody can say that is not a problem of LyX, but on the other hand, 
the LyX image import dialogue is left pretty useless if there is only some certain 
script/program combination being able to generate bounding boxes that LyX is able to deal 
with?

Regards,

Tom Schlangen




Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen
Dear Nicolás,

 Now, regarding your eps files, are the last two or three eps files
 really useless? I can see that the only difference with the ok file 
 is that their bounding box is one point bigger in both th evertical
 and horizontal dimensions. Is that really a problem?

Good point - I must admit I didn´t check DVI output (which is correct) before, 
because it looks wrong already in the LyX GUI editor - both my installed 
Windows and Linux LyX versions (V1.55 for both OS) still show the wide border 
around the bounding box in the LyX GUI/Editor for both files. That is not a big 
Problem, but just a nuisance in the LyX GUI editor - which is not the case when 
bounding boxes are computed by the bbget/ESP-gs combo.

Now I am wondering who is the transgressor regarding the wrong display (with 
white borders): ImageMagick or LyX itself?

Anyway, thank you for the workaround regarding the old ghostscript version and 
let´s hope the LyX GUI display problem will be solved soon.

Regards,

Tom Schlangen

-- 



Re: keyboard question

2008-06-25 Thread G. Milde
On 25.06.08, Daniel Clément wrote:
 [sorry if double post, previous one did not work]
 On Tuesday 24 June 2008 18:31 +0200, Abdelrazak Younes wrote:

 [...]
  Maybe try this:
  \bind 'c  unicode-insert 0x00e7
 It looked promising, but it did not work (still gives accented c).
...
 It looks like some other setting has precedence over the ones made in
 bind or kmap files...

Could you find out whether the character inserted via dead-´ + c is
*one* character (c with accent) or 
*two* characters (c + combining acute acctent)

Both look similar at screen but are different representations.
Deleting a two character combination sometimes(?) leaves the accent or
the letter. The M-x accent-* functions insert two character combinations.

Maybe LyX does not map it to ç because it does not see the defined char.

Günter


Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Mukhtar Ullah
Dear Tom,
I checked your figures in LyX and could verify your problem. It seems that
imagemagick is culprit. I converted your eps files to pdf and included that in
LyX. That was shown perfectly clipped. So you could consider switchin gto
pdflatex, converting all your eps files by a script using epstopdf command from
MiKTeX. That, ofcourse, will only be possible if you are not using pstricks.

Mukhtar



Re: URL handling in 1.6

2008-06-25 Thread G. Milde
On 24.06.08, Uwe Stöhr wrote:
  There are 2 insets for URLs in the Insert menu:

 Both are explained in the UserGuide. Both differ a lot.

After reading the (German) UserGuide, one could argue that URL offers
just a subset of [href] and could therefore be dropped without loss of
functionality.

Inserting a [href] with just a link and no name has the same effect than
inserting the link as URL.


  * I can not dissolve a Hyperlink inset, only copy and paste its content
into another place.

 Yes, because it is not an inset. It's the same as a label. Therefore
 find and replace cannot find it.

This could be a (non-documented) reason to keep a distinct URL inset
even if the result in print does not differ. At least if there is no
possibility to implement the href button as an inset-like widget.


  Should 1.5 URLs be rather converted to 1.6 Hyperlinks?

 No, we won't change the output of the documents we convert.

... if not forced to do so as, e.g., for wrapped floats where the latex
output uses a new package but tries to keep the appearance in print.
Switching to href instead of url might be similar if the PS or PDF
output is the same.

Günter


hypepnation and bibtex

2008-06-25 Thread María José García
Hi all,

I cannot solve two of my main problems with lyx. I'm finishing my work and I 
would like to solve these 
problems.

The first one is the hypepnation. Mostly works ok, but there are a few words 
that doestn't recognize or 
whatever I know

For example,
desar- rolla

the correct way in spanish should be:
de- sarrolla
desa - rrolla
desarro - lla

The other problem its the bibtex style. I have the plain style with numeric, 
and the main problems are:
- The output document doesn't keep the capitals letters, so the acronyms 
doesn't appears in capitals 
and there are things like:

noaa-avhrr when should be NOA-AVHRR
eto when should be ETo
spain instead of Spain
...

- I would like to suppress the hypepnation in the bibliography because there 
are bibliography in 
spanish and in english and it doest work ok.

- I would like to put the name after the surname:
instead of F. Rosenblatt, Rosenblat, F. and I don't know how to change it.

- When I cite a PhD thesis its appears in english... and my document is in 
spanish, so should say tesis 
doctoral instead of PhD thesis.

I know there are too much things... and I sorry, but I have been looking for a 
solution in the 
documentation and in the list and I haven't found the solution.

thank you all
NinaNutz


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.


Re: keyboard question

2008-06-25 Thread Hellmut Weber

Hi Daniel,
my system is gentoo linux, KDE-3.5, LyX 1.5.3 1.5.5 1.6svn (a few weeks old

I have the problem that I sometimes wnat to have ç (in french texts) and 
also å (in swedish texts).


The solution I found already several years ago is to have a bash start 
script in the Autostart folder, in which I define:


xmodmap -e clear Lock
xmodmap -e keycode 66 = Multi_key

Since I nearly never use the caps lock key I redefine it in this way as 
'compose' key.
There are files like /usr/share/keymaps/include/compose.latin1 which 
show you the transformations of compose+key+key to different symbols.

For the above examples I have to type caps lock 'c' ',' and
caps lock 'a' 'a' one after the other.

This works inside LyX, vim and also on the command line.

HTH

Hellmut


Also, I tried a normal US keyboard setting (without dead keys): it did
not change anything. So the dead keys are not the problem.

BTW My LOCALE is de as well as my keyboard setting

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann

Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 
Help file Userguide tells me to check for detailed explanation under 
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported as .eps 
files and inserted in the LyX document as floats. 

My aim is to have the text of my fig files in the same font and size as the 
text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is there a 
global command to do that for all files in one run?

 And how exactly do I get it into the document? Is it the pstex or the pstex_t 
file or both? Or is this done internally by LyX? With Enter (Einfuegen) File 
(Datei) external Material I get the fig file but the text of the pdf output 
is not scaled correctly (nor the fonts). Somehow I haven't caught the way of 
entering it. 

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?

Thanks a lot

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX? Help file Userguide tells me to check
for detailed explanation under ImbeddedObjects but there I can´t find any
detailed explanation.


Wolfgang,

  I can try.


I have quite a number of xfig produced files which are all exported as .eps
files and inserted in the LyX document as floats.


  That's what I've done, too.


My aim is to have the text of my fig files in the same font and size as the
text in the document. This is not the case now.



Do I have to use for all my fig files the xfig -specialtext or is there a
global command to do that for all files in one run?


  I do not know if you can post-process the typeface, but I made the
Palatino typeface the standard in Xfig images because that's the standard
typeface I use in all my documents. This produces the same text appearance
in both body and images.


And how exactly do I get it into the document? Is it the pstex or the
pstex_t file or both? Or is this done internally by LyX? With Enter
(Einfuegen) File (Datei) external Material I get the fig file but the text
of the pdf output is not scaled correctly (nor the fonts). Somehow I
haven't caught the way of entering it.


  I've always used Insert - Float - Float Figure, then specified the file
in the dialog box.

  Perhaps I don't understand your concerns well enough.

Rich

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

Re: hypepnation and bibtex

2008-06-25 Thread G. Milde
On 25.06.08, María José García wrote:


 The first one is the hypepnation. 

 For example,
 desar- rolla

 the correct way in spanish should be:
 de- sarrolla
 desa - rrolla
 desarro - lla

You add words to the LaTeX knowledge base in the preamble
(DocumentSettingsLatex Preamble) with e.g.

\hyphenation{de-sa-rro-lla ana-lysis}

of (for single occurences) insert a soft-hyphen with
InsertFormatting... or Strg+'-'.


 The other problem its the bibtex style. I have the plain style with
 numeric, and the main problems are:

 - The output document doesn't keep the capitals letters, so the
   acronyms doesn't appears in capitals and there are things like:

This is an old BibTeX problem (as in English, capitalizing of words in
headings and titles is a matter of style, it is governed by the Bibtex
style. The solution is to protect capital letters with braces:

 The {NOA-AVHRR} system and its use
 Why we should be {ETo} in {S}pain

 - I would like to suppress the hypepnation in the bibliography because
   there are bibliography in spanish and in english and it doest work
   ok.

You could insert 

\setcounter{lefthyphenmin}{100}
\setcounter{righthyphenmin}{100}

as ERT (raw LaTeX) before the bibliography to increase the minimal
number of characters in front of and behind a hyphen from 2 to 100.
Don'f forget to set it back afterwards if there is text to follow.

OTOH, you could also specify the language of the Titles in the bib file.
Have a look at the LyX-Source (ViewSource) for a text part set in
English to find out what LaTeX commands should be put in the bibfile.


 - I would like to put the name after the surname:
 instead of F. Rosenblatt, Rosenblat, F. and I don't know how to change it.

 - When I cite a PhD thesis its appears in english... and my document is
   in spanish, so should say tesis doctoral instead of PhD thesis.

These definitions are part of the bibtex style definition. Try a
different bib style or create your own with custom-bib 
http://dante.ctan.org/CTAN/help/Catalogue/entries/custom-bib.html

Günter


Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:
Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 


Use the external inset (Inset-File-External Material) and choose the 
XFig template. You should also select preview in the display combo AFAIR.



I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?


1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing 
preview on the display combo, that's all.


Abdel.



Re: keyboard question

2008-06-25 Thread Daniel Clément
Günter,

On Wednesday 25 june 2008 à 12:19 +0200, G. Milde wrote:

[...]

 Could you find out whether the character inserted via dead-´ + c is
 *one* character (c with accent) or 
 *two* characters (c + combining acute acctent)

Not quite sure how to check this but I'd bet on single character...
 
 Both look similar at screen but are different representations.
 Deleting a two character combination sometimes(?) leaves the accent or
 the letter. The M-x accent-* functions insert two character combinations.

... because this latter behavior you describe is what I get (erase
accented c, accent remains) when I specify american.kmap while trying
to tweak it. 
By default (i.e. no kmap file selected) I can erase the accented c at
once.
(BTW I couldn't paste the character in question from LyX into this
message.)

 
 Maybe LyX does not map it to ç because it does not see the defined char.

Do you mean: in the kmap file, or the bind file? If the latter, it has
to be something like that, because I do have some personal keybindings
that work.

 
 Günter

-- 

Daniel Clément



Re: keyboard question

2008-06-25 Thread G. Milde
On 25.06.08, Daniel Clément wrote:
 On Wednesday 25 june 2008 à 12:19 +0200, G. Milde wrote:

  Could you find out whether the character inserted via dead-´ + c is
  *one* character (c with accent) or 
  *two* characters (c + combining acute acctent)

 Not quite sure how to check this but I'd bet on single character...

OK. Just let's assume this.

 (BTW I couldn't paste the character in question from LyX into this
 message.)

Maybe you are not using a utf-8 enabled mailer. 


  Maybe LyX does not map it to ç because it does not see the defined char.

 Do you mean: in the kmap file, or the bind file? If the latter, it has
 to be something like that, because I do have some personal keybindings
 that work.

The bind file. It uses a special naming for non-ASCII input. Looking at the
bind files that ship with LyX helps: 

$LYXDIR/bind/latinkeys.bind contains the definition:

\bind cacute  self-insert

which you should change to unicode-insert ... (as proposed earlier in this
thread). 

Hope this helps.


BTW: Alternatives that work here are 

  1. Combining-Key + Komma followed by c. (in my setup, X11 translates
 this to ç, Combining-Key is the Windows Key)

  2. \bind Meta ,   accent-cedilla
 and then Alt-, c.
 
Günter  


Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Nicolás
Do you mean that when the eps is displayed in LyX is not clipped, as it would happen if it was opened with Gsview? In my machine I can 
see the clipped figure both in LyX and in the generated pdf/ps/dvi.

I have LyX 1.5.5, ImageMagick-6.2.7-Q16, AFPL Ghostscript 8.14 and GSview 4.6.

Nicolás


Mukhtar Ullah wrote:

Dear Tom,
I checked your figures in LyX and could verify your problem. It seems that
imagemagick is culprit. I converted your eps files to pdf and included that in
LyX. That was shown perfectly clipped. So you could consider switchin gto
pdflatex, converting all your eps files by a script using epstopdf command from
MiKTeX. That, ofcourse, will only be possible if you are not using pstricks.

Mukhtar






Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX? Help file Userguide tells me to check
  for detailed explanation under ImbeddedObjects but there I can´t find any
  detailed explanation.

 Wolfgang,

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

That's what I've done, too.

  My aim is to have the text of my fig files in the same font and size as
  the text in the document. This is not the case now.
 
  Do I have to use for all my fig files the xfig -specialtext or is there a
  global command to do that for all files in one run?

I do not know if you can post-process the typeface, but I made the
 Palatino typeface the standard in Xfig images because that's the standard
 typeface I use in all my documents. This produces the same text appearance
 in both body and images.

Rich, thanks: 
What about the size of the text in your fig - eps file in respect to the size 
of the text of the body (that is the document text, I guess?). Do you adjust 
it just by comparing it? Thats what I did so far. But what about the pstex 
and the pstex_t which you get after running xfig -specialtext? I thought this 
is the way to divide the image part of the fig and the text part so that the 
latter can be adjusted (by the program) to the font size of my text (and also 
to include e.g. greek letters as latex etc). If I check my  pstex file, it 
still shows the image and the text, as it was in the normal .fig file. The 
pstex_t file reads like:
\begin{picture}(0,0)%
\includegraphics{S021n.pstex}%
\end{picture}%
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFontNFSS\undefined%
\gdef\SetFigFontNFSS#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(7881,10984)(1694,-10257)
\end{picture}%

perhaps I have to define things (see undefined% in the fifth line)

 I just did not get it yet, some step might be missing (perhaps something in 
the preamble

Wolfgang

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow I
  haven't caught the way of entering it.

I've always used Insert - Float - Float Figure, then specified the
 file in the dialog box.

Perhaps I don't understand your concerns well enough.

 Rich


Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:
 Wolfgang Engelmann wrote:
  Could somebody kindly point me to an understandable explanation of how to
  use xfig produced figures in LyX?

 Use the external inset (Inset-File-External Material) and choose the
 XFig template. You should also select preview in the display combo AFAIR.

Thats what I did, Abdel. See also my answer to Rich

Wolfgang
  I am using version 1.5.4 of LyX
  Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is
  done by the program?

 1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing
 preview on the display combo, that's all.

 Abdel.


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


What about the size of the text in your fig - eps file in respect to the size
of the text of the body (that is the document text, I guess?). Do you adjust
it just by comparing it?


Wolfgang,

  No. I size the text in the figure to the figure (keeping in mind that it
will probably be smaller in the document), and pay no attention to the font
size relative to the text. The image is its own entity and the text should
be scaled to the graphics ... and clarity.


Thats what I did so far. But what about the pstex and the pstex_t which
you get after running xfig -specialtext? I thought this is the way to
divide the image part of the fig and the text part so that the latter can
be adjusted (by the program) to the font size of my text (and also to
include e.g. greek letters as latex etc).


  I've not done this. I create the figures separately, then insert them in
floats. If they're not readable in the pdf, I adjust the text size and try
again. For my purposes, 10pt or 12pt text in the figure is perfectly
readable.

  When I start a new figure, I change the default font (lower right corner
of the bottom) to 'postscript fonts' and select Palatino-Roman. Depending on
how much text will be in the figure, I leave the default size at 12pt (light
text) or reduce it to 10pt (a lot of text). Then I create the figure and
export it as .eps and put it in the document.

HTH,

Rich

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


Re: Using Sweave for R code in LyX on Windows

2008-06-25 Thread Liviu Andronic
On 6/25/08, G. Jay Kerns [EMAIL PROTECTED] wrote:
  Please note that - coincidentally - I had already installed Cygwin on
  my system for other reasons; that may have helped with the relative
  ease that I had with the configuration.

I'm currently not likely to test Gregor's approach, on Windows, but
I'd be curious to know whether using a portable Cygwin [1] should
suffice to prepapre most of the required environment. If anyone tries
this, please let us know.

Regards,
Liviu

[1] http://xlivecd.indiana.edu/


Keyboard lock

2008-06-25 Thread Joby Joseph
Lyx 1.5.5 on Ubuntu fiesty fawn.

Two occasions freezes the keyboard interaction.

1)Sometimes when I save the file i am not able to edit the file name. No key 
works including arrow keys.
2)Sometime after inserting a citation I get back the text for editing same 
thing happens.

any fixes?
  thanks, joby


Re: Xfig and LyX

2008-06-25 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:

I can try.

  I have quite a number of xfig produced files which are all exported as
  .eps files and inserted in the LyX document as floats.

The external template way is supposed to be easier, since it does the
exporting automatically, so you can't get outdated figures because you
forgot to export.

  Do I have to use for all my fig files the xfig -specialtext or is there
  a global command to do that for all files in one run?

The special flag is a property of each text box that you have to set
individually. AFAIK the -specialtext switch only sets that as default for
new text. If you have a lot of files that you need to convert it would
probably easy to write a small script that does this.

 What about the size of the text in your fig - eps file in respect to the
 size of the text of the body (that is the document text, I guess?). Do you
 adjust it just by comparing it? Thats what I did so far. But what about
 the pstex and the pstex_t which you get after running xfig -specialtext? I
 thought this is the way to divide the image part of the fig and the text
 part so that the latter can be adjusted (by the program) to the font size
 of my text (and also
 to include e.g. greek letters as latex etc). If I check my  pstex file, it
 still shows the image and the text, as it was in the normal .fig file. The
 pstex_t file reads like:

You should not need to worry about pstex_t and friends if you use the
external template. LyX is supposed to create all needed files
automatically, whether you use pdflatex or the traditional DVI. The only
decision you have to make is whether you want to use the special flag or
not: If you use it, the text will be typeset by LaTeX, and you can use
math, own commands that are defined in ERT or the preamble etc. The size
and font would also be adjusted through LaTeX commands. If you do not use
the special flag the text will appear as is in the final document, and you
set the font, size etc. in xfig.

  I just did not get it yet, some step might be missing (perhaps something
  in
 the preamble

You do not need to set anything in the preamble unless you use the xfig
special text flag and inserted nonstandard commands in a textbox of the
xfig file yourself.

  And how exactly do I get it into the document? Is it the pstex or the
  pstex_t file or both? Or is this done internally by LyX? With Enter
  (Einfuegen) File (Datei) external Material I get the fig file but the
  text of the pdf output is not scaled correctly (nor the fonts). Somehow
  I haven't caught the way of entering it.

If the special flag was set you encountered a bug, either in xfig, fig2dev
or in LyX. Otherwise just set the flag, and the text should be typeset by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 18:51 schrieb Georg Baum:
 Wolfgang Engelmann wrote:
  Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
 I can try.
 
   I have quite a number of xfig produced files which are all exported as
   .eps files and inserted in the LyX document as floats.

 The external template way is supposed to be easier, since it does the
 exporting automatically, so you can't get outdated figures because you
 forgot to export.
 with  external template way  you mean the way I and Rich use, i.e. export fig 
to eps and insert in Lyx?

   Do I have to use for all my fig files the xfig -specialtext or is
   there a global command to do that for all files in one run?

 The special flag is a property of each text box that you have to set
 individually. AFAIK the -specialtext switch only sets that as default for
 new text. If you have a lot of files that you need to convert it would
 probably easy to write a small script that does this.

  What about the size of the text in your fig - eps file in respect to the
  size of the text of the body (that is the document text, I guess?). Do
  you adjust it just by comparing it? Thats what I did so far. But what
  about the pstex and the pstex_t which you get after running xfig
  -specialtext? I thought this is the way to divide the image part of the
  fig and the text part so that the latter can be adjusted (by the program)
  to the font size of my text (and also
  to include e.g. greek letters as latex etc). If I check my  pstex file,
  it still shows the image and the text, as it was in the normal .fig file.
  The pstex_t file reads like:

 You should not need to worry about pstex_t and friends if you use the
 external template. LyX is supposed to create all needed files
 automatically, whether you use pdflatex or the traditional DVI. The only
 decision you have to make is whether you want to use the special flag or
 not: If you use it, the text will be typeset by LaTeX, and you can use
 math, own commands that are defined in ERT or the preamble etc. The size
 and font would also be adjusted through LaTeX commands. If you do not use
 the special flag the text will appear as is in the final document, and you
 set the font, size etc. in xfig.
Does it mean, I have to create the fig file after having started 
xfig -specialtext and xfig then puts my text in the pstex_t file with 
location marks etc?
With other words, I have to redo all my fig files and add (or copy, if I find 
out how the localization of the text is done in pstex_t)?

   I just did not get it yet, some step might be missing (perhaps something
   in
  the preamble

 You do not need to set anything in the preamble unless you use the xfig
 special text flag and inserted nonstandard commands in a textbox
textbox is pstex_t?
 of the 
 xfig file yourself.

   And how exactly do I get it into the document? Is it the pstex or the
   pstex_t file or both? Or is this done internally by LyX? With Enter
   (Einfuegen) File (Datei) external Material I get the fig file but the
   text of the pdf output is not scaled correctly (nor the fonts).
   Somehow I haven't caught the way of entering it.

 If the special flag was set you encountered a bug, either in xfig, fig2dev
 or in LyX. Otherwise just set the flag, and the text should be typeset by
 LaTeX.
How does xfig find out the size and font I used in the document, or does it 
make latex take it over?

Will experiment tomorrow a bit, but perhaps clarifying my (stupid) questions 
helps to reduce the experimenting time. Thanks a lot, Georg

Wolfgang


LyX doesn't start: Assertion `c-xlib.lock' failed

2008-06-25 Thread John Coppens
Hi guys,

After updating quite a lot of libraries, I can't start LyX anymore. I
didn't update Qt - still 4.3.3, and lyx --version still works:

LyX 1.5.3 (Mon, Dec 17, 2007)
Built on Dec 31 2007, 14:30:47
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  pch  use-aspell use-ispell
  C   Compiler: gcc 
  C   Compiler LyX flags:
  C   Compiler flags: -I/usr/X11R6/include -O2
  C++ Compiler: g++ (3.4.6)
  C++ Compiler LyX flags:
  C++ Compiler flags: -I/usr/X11R6/include -O2
  Linker flags: 
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.3.3
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

I did find a similar bug:

http://osdir.com/ml/freedesktop.xcb/2006-10/msg9.html

But I'm not enough of a programmer to judge if this is the problem - I
don't expect LyX to be needing Mesa, but maybe Qt does?

Running LyX in gdb: first it encounters some problem and gdb is stopped.
continuing with fg, advanced till the problem:

Program received signal SIGTTOU, Stopped (tty output).
[Switching to Thread 0xb6e3d8e0 (LWP 4479)]
0xb6f417de in __write_nocancel () from /lib/libc.so.6
(gdb) bt
#0  0xb6f417de in __write_nocancel () from /lib/libc.so.6
#1  0xb6ee03b4 in _IO_new_file_write () from /lib/libc.so.6
#2  0xb6ee0055 in new_do_write () from /lib/libc.so.6
#3  0xb6ee0319 in _IO_new_file_xsputn () from /lib/libc.so.6
#4  0xb6ed667f in fwrite () from /lib/libc.so.6
#5  0xb6e55767 in xcb_xlib_printbt () at xcb_xlib.c:48
#6  0xb6e5586d in xcb_xlib_unlock (c=0x8804f10) at xcb_xlib.c:82
#7  0xb702ccc2 in _XCBUnlockDisplay (dpy=0x8807778) at xcb_lock.c:41
#8  0xb767b5a6 in XFixesQueryVersion () from /usr/X11/lib/libXfixes.so.3
#9  0xb78d477a in qt_init (priv=0x87f75c0, display=0x8807778, 
visual=4294966784, colormap=4294966784) at
kernel/qapplication_x11.cpp:1627
#10 0xb7878e2f in QApplicationPrivate::construct (this=0x87f75c0,
#dpy=0x0, 
visual=0, cmap=0) at kernel/qapplication.cpp:705
#11 0xb7879be4 in QApplication (this=0x87faad8, [EMAIL PROTECTED], 
argv=0xbfa94a24, _internal=-512) at kernel/qapplication.cpp:619
#12 0x08420982 in lyx::frontend::GuiApplication::GuiApplication ()
#13 0x084216f5 in lyx::createApplication ()
#14 0x0818964c in lyx::LyX::exec ()
#15 0x08067919 in main ()

Can anyone suggest how to proceed?

John

System is mainly Slackware Linux 12.1...


.kmap ortography

2008-06-25 Thread MonAmiPierrot

I just want to write this lines

\kmap  «
\kmap  »

in my personal.kmap file to have a chevrons or guillemets marks (I use
also double quotes)

But it doesn't work, perhaps due to the mistaken ortography in the ASCII
file. How to refer to this characters?


-- 
View this message in context: 
http://www.nabble.com/.kmap-ortography-tp18120799p18120799.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:

Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:

Wolfgang Engelmann wrote:

Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX?

Use the external inset (Inset-File-External Material) and choose the
XFig template. You should also select preview in the display combo AFAIR.


Thats what I did, Abdel.


I don't think so. As I said, try Inset-File-External Material

Abdel.



Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen

Dear Mukhtar,

> Since I have got a working ps2eps, you could send me
> one example eps file so

Thank you for offering! Meanwhile I tested ps2eps V1.64 myself. While it 
calculates the bounding box exactly (great!) the clipping to bounding box 
option as per the Lyx dialogue doesn´t work correctly anymore: While the bbox 
values can be read from the file by Lyx, the picture doesn´t get clipped to the 
tile but the whole page is shown.

I am really stuck with this problem 

Tom Schlangen
-- 



Re: Problem inner and outer margins

2008-06-25 Thread Anthony Campbell
On 25 Jun 2008, John wrote:
> On Wednesday 25 June 2008 12:39:13 pm Nigel Pegram wrote:
> > Hi Adi,
> >
> > Offhand, no, I don't know the default settings. It'll be around
> > somewhere, but that doesn't help you .
> >
> > The reason I suggested speaking with the publisher is that they should
> > be able to inform you concerning good margin sizes. The correct answer
> > depends on a number of factors, including text (point) size, paper
> > size, number of pages (creep) and the style of binding (perfect,
> > burst, ring, etc). If they can't/won't help you, you could aways print
> > a sample page from lyx and take the measurements from that.
> In general the outer margins should re roughly twice the width of the inner 
> margins.
> This is so that when the book is opened out, the whitespace outside columns 
> of 
> text appears equal. If you look at published books you will see that this is 
> so.
> Of course the type of binding can affect how well that book can open out and 
> this may mean that the inner margins need to compensate  for this by being 
> increased a little. But the visible width of the two inner margins should 
> still look equal to one outer margin
> 

Lulu specifies that for their distribution packages (for Amazon etc.)
the inner and outer margins must be the same, although you are allowed a
gutter on the inside. In practice, I've found that it's best not to have
the gutter and just set them all the same.

Anthony


-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen
Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.

.EPS output file of the circuit drawing program I use:

http://www.ines.mynetcologne.de/dummy.eps (64k)

bbget script from http://silas.psfc.mit.edu/elec_fig/ :

http://www.ines.mynetcologne.de/bbget 

Output from bbget, using esp-gs v7.70.x:

http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)

Output from bbget, using gs v8.62:

http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)

Output from gsview v4.7, using option PS to EPS, also checkmarked 
"Automatically calculate Baounding Box". BTW, using gsview v4.9 gives the same 
result.

http://www.ines.mynetcologne.de/dummy_gsview47.eps (64k) (doesn´t work)

Output from ps2eps v1.64 utility, parameters as suggested by 
http://www.tm.uka.de/~bless/ps2eps.html:

http://www.ines.mynetcologne.de/dummy_ps2eps164.eps (64k) (doesn´t work)

Just import those example eps files 

   dummy_bbget_espgs770.eps (64k) (works!)
   dummy_bbget_gs862.eps (64k) (doesn´t work)
   dummy_gsview47.eps (64k) (doesn´t work)
   dummy_ps2eps164.eps (64k) (doesn´t work)
   
to LyX always using the "Clip to bounding box" and "Read from file" options in 
the dialog, and have a look at the output. You will see the only file giving 
correct clipping is the one with the bounding box values generated by bbget and 
an old, discontinued ESP ghostscript version.

Now, everybody can say "that is not a problem of LyX", but on the other hand, 
the LyX image import dialogue is left pretty useless if there is only some 
certain script/program combination being able to generate bounding boxes that 
LyX is able to deal with?

Regards,

Tom Schlangen
-- 



Rotated multirow table cell

2008-06-25 Thread D . Zorig
Hello LyX users,

Is there anyway to have rotated text span multiple rows in LyX?
90° rotated text should span multiple rows in a table.
I tried ERT
\multirow{2}{2cm}{text} then make the cell rotate 90° but didn't get it to
work.

Thank you in advance for your suggestions and solutions.


Zorigtkhuu Davaanyam


Re: keyboard question

2008-06-25 Thread Daniel Clément
[sorry if double post, previous one did not work]
On Tuesday 24 June 2008 18:31 +0200, Abdelrazak Younes wrote:

[...]
> Maybe try this:
> 
> \bind "'c"  "unicode-insert 0x00e7"
> 
> Abdel.
> 
It looked promising, but it did not work (still gives accented c).

I don't know why 

\kxmod ' c ç

in the kmap file does not work. Isn't exactly what sect. 4.4.1 of
"Customization" says? 

Also, I tried a "normal" US keyboard setting (without dead keys): it did
not change anything. So the dead keys are not the problem.

It looks like some other setting has precedence over the ones made in
bind or kmap files...
-- 

Daniel Clément




Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Nicolás
I you select the "Clip to bounding box" option and get the bounding box from the file, the result will be the same as if you simply do 
not select the "Clip to bounding box" option (in my experience, at least).
Now, regarding your eps files, are the last two or three eps files really useless? I can see that the only difference with the ok file 
is that their bounding box is one point bigger in both th evertical and horizontal dimensions. Is that really a problem? What you get 
is a white frame of less than 1mm of thickness, and since I assume your paper is white... no one will notice such fame! Just my opinion.


Cheers,
Nicolás

Tom Schlangen wrote:

Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.

.EPS output file of the circuit drawing program I use:

http://www.ines.mynetcologne.de/dummy.eps (64k)

bbget script from http://silas.psfc.mit.edu/elec_fig/ :

http://www.ines.mynetcologne.de/bbget 


Output from bbget, using esp-gs v7.70.x:

http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)

Output from bbget, using gs v8.62:

http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)

Output from gsview v4.7, using option PS to EPS, also checkmarked "Automatically 
calculate Baounding Box". BTW, using gsview v4.9 gives the same result.

http://www.ines.mynetcologne.de/dummy_gsview47.eps (64k) (doesn´t work)

Output from ps2eps v1.64 utility, parameters as suggested by 
http://www.tm.uka.de/~bless/ps2eps.html:

http://www.ines.mynetcologne.de/dummy_ps2eps164.eps (64k) (doesn´t work)

Just import those example eps files 


   dummy_bbget_espgs770.eps (64k) (works!)
   dummy_bbget_gs862.eps (64k) (doesn´t work)
   dummy_gsview47.eps (64k) (doesn´t work)
   dummy_ps2eps164.eps (64k) (doesn´t work)
   
to LyX always using the "Clip to bounding box" and "Read from file" options in the dialog, and have a look at the output. You will see the only file giving correct clipping is the one with the bounding box values generated by bbget and an old, discontinued ESP ghostscript version.


Now, everybody can say "that is not a problem of LyX", but on the other hand, 
the LyX image import dialogue is left pretty useless if there is only some certain 
script/program combination being able to generate bounding boxes that LyX is able to deal 
with?

Regards,

Tom Schlangen




Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Tom Schlangen
Dear Nicolás,

> Now, regarding your eps files, are the last two or three eps files
> really useless? I can see that the only difference with the ok file 
> is that their bounding box is one point bigger in both th evertical
> and horizontal dimensions. Is that really a problem?

Good point - I must admit I didn´t check DVI output (which is correct) before, 
because it looks wrong already in the LyX GUI editor - both my installed 
Windows and Linux LyX versions (V1.55 for both OS) still show the wide border 
around the bounding box in the LyX GUI/Editor for both files. That is not a big 
Problem, but just a nuisance in the LyX GUI editor - which is not the case when 
bounding boxes are computed by the bbget/ESP-gs combo.

Now I am wondering who is the transgressor regarding the wrong display (with 
white borders): ImageMagick or LyX itself?

Anyway, thank you for the workaround regarding the old ghostscript version and 
let´s hope the LyX GUI display problem will be solved soon.

Regards,

Tom Schlangen

-- 



Re: keyboard question

2008-06-25 Thread G. Milde
On 25.06.08, Daniel Clément wrote:
> [sorry if double post, previous one did not work]
> On Tuesday 24 June 2008 18:31 +0200, Abdelrazak Younes wrote:

> [...]
> > Maybe try this:
> > \bind "'c"  "unicode-insert 0x00e7"
> It looked promising, but it did not work (still gives accented c).
...
> It looks like some other setting has precedence over the ones made in
> bind or kmap files...

Could you find out whether the character inserted via dead-´ + c is
*one* character (c with accent) or 
*two* characters (c + combining acute acctent)

Both look similar at screen but are different representations.
Deleting a two character combination sometimes(?) leaves the accent or
the letter. The M-x accent-* functions insert two character combinations.

Maybe LyX does not map it to ç because it does not "see" the defined char.

Günter


Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Mukhtar Ullah
Dear Tom,
I checked your figures in LyX and could verify your problem. It seems that
imagemagick is culprit. I converted your eps files to pdf and included that in
LyX. That was shown perfectly clipped. So you could consider switchin gto
pdflatex, converting all your eps files by a script using epstopdf command from
MiKTeX. That, ofcourse, will only be possible if you are not using pstricks.

Mukhtar



Re: URL handling in 1.6

2008-06-25 Thread G. Milde
On 24.06.08, Uwe Stöhr wrote:
> > There are 2 insets for URLs in the Insert menu:

> Both are explained in the UserGuide. Both differ a lot.

After reading the (German) UserGuide, one could argue that URL offers
just a subset of [href] and could therefore be dropped without loss of
functionality.

Inserting a [href] with just a link and no name has the same effect than
inserting the link as URL.


> > * I can not dissolve a Hyperlink inset, only copy and paste its content
> >   into another place.

> Yes, because it is not an inset. It's the same as a label. Therefore
> find and replace cannot find it.

This could be a (non-documented) reason to keep a distinct URL inset
even if the "result in print" does not differ. At least if there is no
possibility to implement the href button as an inset-like widget.


> > Should 1.5 URLs be rather converted to 1.6 Hyperlinks?

> No, we won't change the output of the documents we convert.

... if not forced to do so as, e.g., for wrapped floats where the latex
output uses a new package but tries to keep the appearance in print.
Switching to "href" instead of "url" might be similar if the PS or PDF
output is the same.

Günter


hypepnation and bibtex

2008-06-25 Thread María José García
Hi all,

I cannot solve two of my main problems with lyx. I'm finishing my work and I 
would like to solve these 
problems.

The first one is the hypepnation. Mostly works ok, but there are a few words 
that doestn't recognize or 
whatever I know

For example,
desar- rolla

the correct way in spanish should be:
de- sarrolla
desa - rrolla
desarro - lla

The other problem its the bibtex style. I have the plain style with numeric, 
and the main problems are:
- The output document doesn't keep the capitals letters, so the acronyms 
doesn't appears in capitals 
and there are things like:

noaa-avhrr when should be NOA-AVHRR
eto when should be ETo
spain instead of Spain
...

- I would like to suppress the hypepnation in the bibliography because there 
are bibliography in 
spanish and in english and it doest work ok.

- I would like to put the name after the surname:
instead of F. Rosenblatt, Rosenblat, F. and I don't know how to change it.

- When I cite a PhD thesis its appears in english... and my document is in 
spanish, so should say tesis 
doctoral instead of PhD thesis.

I know there are too much things... and I sorry, but I have been looking for a 
solution in the 
documentation and in the list and I haven't found the solution.

thank you all
NinaNutz


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.


Re: keyboard question

2008-06-25 Thread Hellmut Weber

Hi Daniel,
my system is gentoo linux, KDE-3.5, LyX 1.5.3 1.5.5 1.6svn (a few weeks old

I have the problem that I sometimes wnat to have ç (in french texts) and 
also å (in swedish texts).


The solution I found already several years ago is to have a bash start 
script in the Autostart folder, in which I define:


xmodmap -e "clear Lock"
xmodmap -e "keycode 66 = Multi_key"

Since I nearly never use the caps lock key I redefine it in this way as 
'compose' key.
There are files like /usr/share/keymaps/include/compose.latin1 which 
show you the transformations of ++ to different symbols.

For the above examples I have to type  'c' ',' and
 'a' 'a' one after the other.

This works inside LyX, vim and also on the command line.

HTH

Hellmut


Also, I tried a "normal" US keyboard setting (without dead keys): it did
not change anything. So the dead keys are not the problem.

BTW My LOCALE is de as well as my keyboard setting

--
Dr. Hellmut Weber [EMAIL PROTECTED]
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann

Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 
Help file Userguide tells me to check for detailed explanation under 
ImbeddedObjects but there I can´t find any detailed explanation.

I have quite a number of xfig produced files which are all exported as .eps 
files and inserted in the LyX document as floats. 

My aim is to have the text of my fig files in the same font and size as the 
text in the document. This is not the case now.

Do I have to use for all my fig files the xfig -specialtext or is there a 
global command to do that for all files in one run?

 And how exactly do I get it into the document? Is it the pstex or the pstex_t 
file or both? Or is this done internally by LyX? With Enter (Einfuegen) File 
(Datei) external Material I get the fig file but the text of the pdf output 
is not scaled correctly (nor the fonts). Somehow I haven't caught the way of 
entering it. 

I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?

Thanks a lot

Wolfgang


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX? Help file Userguide tells me to check
for detailed explanation under ImbeddedObjects but there I can´t find any
detailed explanation.


Wolfgang,

  I can try.


I have quite a number of xfig produced files which are all exported as .eps
files and inserted in the LyX document as floats.


  That's what I've done, too.


My aim is to have the text of my fig files in the same font and size as the
text in the document. This is not the case now.



Do I have to use for all my fig files the xfig -specialtext or is there a
global command to do that for all files in one run?


  I do not know if you can post-process the typeface, but I made the
Palatino typeface the standard in Xfig images because that's the standard
typeface I use in all my documents. This produces the same text appearance
in both body and images.


And how exactly do I get it into the document? Is it the pstex or the
pstex_t file or both? Or is this done internally by LyX? With Enter
(Einfuegen) File (Datei) external Material I get the fig file but the text
of the pdf output is not scaled correctly (nor the fonts). Somehow I
haven't caught the way of entering it.


  I've always used Insert -> Float -> Float Figure, then specified the file
in the dialog box.

  Perhaps I don't understand your concerns well enough.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863

Re: hypepnation and bibtex

2008-06-25 Thread G. Milde
On 25.06.08, María José García wrote:


> The first one is the hypepnation. 

> For example,
> desar- rolla

> the correct way in spanish should be:
> de- sarrolla
> desa - rrolla
> desarro - lla

You add words to the LaTeX "knowledge base" in the preamble
(Document>Settings>Latex Preamble) with e.g.

\hyphenation{de-sa-rro-lla ana-lysis}

of (for single occurences) insert a soft-hyphen with
Insert>Formatting>... or Strg+'-'.


> The other problem its the bibtex style. I have the plain style with
> numeric, and the main problems are:

> - The output document doesn't keep the capitals letters, so the
>   acronyms doesn't appears in capitals and there are things like:

This is an old BibTeX problem (as in English, capitalizing of words in
headings and titles is a matter of style, it is governed by the Bibtex
style. The solution is to protect capital letters with braces:

 "The {NOA-AVHRR} system and its use"
 "Why we should be {ETo} in {S}pain"

> - I would like to suppress the hypepnation in the bibliography because
>   there are bibliography in spanish and in english and it doest work
>   ok.

You could insert 

\setcounter{lefthyphenmin}{100}
\setcounter{righthyphenmin}{100}

as ERT (raw LaTeX) before the bibliography to increase the minimal
number of characters in front of and behind a hyphen from 2 to 100.
Don'f forget to set it back afterwards if there is text to follow.

OTOH, you could also specify the language of the Titles in the bib file.
Have a look at the LyX-Source (View>Source) for a text part set in
English to find out what LaTeX commands should be put in the bibfile.


> - I would like to put the name after the surname:
> instead of F. Rosenblatt, Rosenblat, F. and I don't know how to change it.

> - When I cite a PhD thesis its appears in english... and my document is
>   in spanish, so should say tesis doctoral instead of PhD thesis.

These definitions are part of the bibtex style definition. Try a
different bib style or create your own with custom-bib 


Günter


Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:
Could somebody kindly point me to an understandable explanation of how to use 
xfig produced figures in LyX? 


Use the external inset ("Inset->File->External Material") and choose the 
XFig template. You should also select "preview" in the display combo AFAIR.



I am using version 1.5.4 of LyX
Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is done 
by the program?


1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing 
"preview" on the display combo, that's all.


Abdel.



Re: keyboard question

2008-06-25 Thread Daniel Clément
Günter,

On Wednesday 25 june 2008 à 12:19 +0200, G. Milde wrote:

[...]

> Could you find out whether the character inserted via dead-´ + c is
> *one* character (c with accent) or 
> *two* characters (c + combining acute acctent)

Not quite sure how to check this but I'd bet on "single character"...
> 
> Both look similar at screen but are different representations.
> Deleting a two character combination sometimes(?) leaves the accent or
> the letter. The M-x accent-* functions insert two character combinations.

... because this latter behavior you describe is what I get (erase
accented c, accent remains) when I specify "american.kmap" while trying
to tweak it. 
By default (i.e. no kmap file selected) I can erase the accented c at
once.
(BTW I couldn't paste the character in question from LyX into this
message.)

> 
> Maybe LyX does not map it to ç because it does not "see" the defined char.

Do you mean: in the kmap file, or the bind file? If the latter, it has
to be something like that, because I do have some personal keybindings
that work.

> 
> Günter

-- 

Daniel Clément



Re: keyboard question

2008-06-25 Thread G. Milde
On 25.06.08, Daniel Clément wrote:
> On Wednesday 25 june 2008 à 12:19 +0200, G. Milde wrote:

> > Could you find out whether the character inserted via dead-´ + c is
> > *one* character (c with accent) or 
> > *two* characters (c + combining acute acctent)

> Not quite sure how to check this but I'd bet on "single character"...

OK. Just let's assume this.

> (BTW I couldn't paste the character in question from LyX into this
> message.)

Maybe you are not using a utf-8 enabled mailer. 


> > Maybe LyX does not map it to ç because it does not "see" the defined char.

> Do you mean: in the kmap file, or the bind file? If the latter, it has
> to be something like that, because I do have some personal keybindings
> that work.

The bind file. It uses a special naming for non-ASCII input. Looking at the
bind files that ship with LyX helps: 

$LYXDIR/bind/latinkeys.bind contains the definition:

\bind "cacute"  "self-insert"

which you should change to "unicode-insert ..." (as proposed earlier in this
thread). 

Hope this helps.


BTW: Alternatives that work here are 

  1. "Combining-Key + Komma" followed by c. (in my setup, X11 translates
 this to ç, Combining-Key is the Windows Key)

  2. \bind "Meta ,"   "accent-cedilla"
 and then Alt-, c.
 
Günter  


Re: Bounding box problem (not caused by LyX but ghostscript)

2008-06-25 Thread Nicolás
Do you mean that when the eps is displayed in LyX is not clipped, as it would happen if it was opened with Gsview? In my machine I can 
see the clipped figure both in LyX and in the generated pdf/ps/dvi.

I have LyX 1.5.5, ImageMagick-6.2.7-Q16, AFPL Ghostscript 8.14 and GSview 4.6.

Nicolás


Mukhtar Ullah wrote:

Dear Tom,
I checked your figures in LyX and could verify your problem. It seems that
imagemagick is culprit. I converted your eps files to pdf and included that in
LyX. That was shown perfectly clipped. So you could consider switchin gto
pdflatex, converting all your eps files by a script using epstopdf command from
MiKTeX. That, ofcourse, will only be possible if you are not using pstricks.

Mukhtar






Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
> On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:
> > Could somebody kindly point me to an understandable explanation of how to
> > use xfig produced figures in LyX? Help file Userguide tells me to check
> > for detailed explanation under ImbeddedObjects but there I can´t find any
> > detailed explanation.
>
> Wolfgang,
>
>I can try.
>
> > I have quite a number of xfig produced files which are all exported as
> > .eps files and inserted in the LyX document as floats.
>
>That's what I've done, too.
>
> > My aim is to have the text of my fig files in the same font and size as
> > the text in the document. This is not the case now.
> >
> > Do I have to use for all my fig files the xfig -specialtext or is there a
> > global command to do that for all files in one run?
>
>I do not know if you can post-process the typeface, but I made the
> Palatino typeface the standard in Xfig images because that's the standard
> typeface I use in all my documents. This produces the same text appearance
> in both body and images.

Rich, thanks: 
What about the size of the text in your fig -> eps file in respect to the size 
of the text of the body (that is the document text, I guess?). Do you adjust 
it just by comparing it? Thats what I did so far. But what about the pstex 
and the pstex_t which you get after running xfig -specialtext? I thought this 
is the way to divide the image part of the fig and the text part so that the 
latter can be adjusted (by the program) to the font size of my text (and also 
to include e.g. greek letters as latex etc). If I check my  pstex file, it 
still shows the image and the text, as it was in the normal .fig file. The 
pstex_t file reads like:
\begin{picture}(0,0)%
\includegraphics{S021n.pstex}%
\end{picture}%
\setlength{\unitlength}{3947sp}%
%
\begingroup\makeatletter\ifx\SetFigFontNFSS\undefined%
\gdef\SetFigFontNFSS#1#2#3#4#5{%
  [EMAIL PROTECTED]
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(7881,10984)(1694,-10257)
\end{picture}%

perhaps I have to define things (see undefined% in the fifth line)

 I just did not get it yet, some step might be missing (perhaps something in 
the preamble

Wolfgang
>
> > And how exactly do I get it into the document? Is it the pstex or the
> > pstex_t file or both? Or is this done internally by LyX? With Enter
> > (Einfuegen) File (Datei) external Material I get the fig file but the
> > text of the pdf output is not scaled correctly (nor the fonts). Somehow I
> > haven't caught the way of entering it.
>
>I've always used Insert -> Float -> Float Figure, then specified the
> file in the dialog box.
>
>Perhaps I don't understand your concerns well enough.
>
> Rich


Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:
> Wolfgang Engelmann wrote:
> > Could somebody kindly point me to an understandable explanation of how to
> > use xfig produced figures in LyX?
>
> Use the external inset ("Inset->File->External Material") and choose the
> XFig template. You should also select "preview" in the display combo AFAIR.
>
Thats what I did, Abdel. See also my answer to Rich

Wolfgang
> > I am using version 1.5.4 of LyX
> > Has 1.5.5 or 1.6 a feature to insert fig files directly and the rest is
> > done by the program?
>
> 1.5.5 is the same as 1.5.4 in this regard. 1.6 will save you on choosing
> "preview" on the display combo, that's all.
>
> Abdel.


Re: Xfig and LyX

2008-06-25 Thread Rich Shepard

On Wed, 25 Jun 2008, Wolfgang Engelmann wrote:


What about the size of the text in your fig -> eps file in respect to the size
of the text of the body (that is the document text, I guess?). Do you adjust
it just by comparing it?


Wolfgang,

  No. I size the text in the figure to the figure (keeping in mind that it
will probably be smaller in the document), and pay no attention to the font
size relative to the text. The image is its own entity and the text should
be scaled to the graphics ... and clarity.


Thats what I did so far. But what about the pstex and the pstex_t which
you get after running xfig -specialtext? I thought this is the way to
divide the image part of the fig and the text part so that the latter can
be adjusted (by the program) to the font size of my text (and also to
include e.g. greek letters as latex etc).


  I've not done this. I create the figures separately, then insert them in
floats. If they're not readable in the pdf, I adjust the text size and try
again. For my purposes, 10pt or 12pt text in the figure is perfectly
readable.

  When I start a new figure, I change the default font (lower right corner
of the bottom) to 'postscript fonts' and select Palatino-Roman. Depending on
how much text will be in the figure, I leave the default size at 12pt (light
text) or reduce it to 10pt (a lot of text). Then I create the figure and
export it as .eps and put it in the document.

HTH,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Using Sweave for R code in LyX on Windows

2008-06-25 Thread Liviu Andronic
On 6/25/08, G. Jay Kerns <[EMAIL PROTECTED]> wrote:
>  Please note that - coincidentally - I had already installed Cygwin on
>  my system for other reasons; that may have helped with the relative
>  ease that I had with the configuration.
>
I'm currently not likely to test Gregor's approach, on Windows, but
I'd be curious to know whether using a portable Cygwin [1] should
suffice to prepapre most of the required environment. If anyone tries
this, please let us know.

Regards,
Liviu

[1] http://xlivecd.indiana.edu/


Keyboard lock

2008-06-25 Thread Joby Joseph
Lyx 1.5.5 on Ubuntu fiesty fawn.

Two occasions freezes the keyboard interaction.

1)Sometimes when I save the file i am not able to edit the file name. No key 
works including arrow keys.
2)Sometime after inserting a citation I get back the text for editing same 
thing happens.

any fixes?
  thanks, joby


Re: Xfig and LyX

2008-06-25 Thread Georg Baum
Wolfgang Engelmann wrote:

> Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
>>
>>I can try.
>>
>> > I have quite a number of xfig produced files which are all exported as
>> > .eps files and inserted in the LyX document as floats.

The external template way is supposed to be easier, since it does the
exporting automatically, so you can't get outdated figures because you
forgot to export.

>> > Do I have to use for all my fig files the xfig -specialtext or is there
>> > a global command to do that for all files in one run?

The special flag is a property of each text box that you have to set
individually. AFAIK the -specialtext switch only sets that as default for
new text. If you have a lot of files that you need to convert it would
probably easy to write a small script that does this.

> What about the size of the text in your fig -> eps file in respect to the
> size of the text of the body (that is the document text, I guess?). Do you
> adjust it just by comparing it? Thats what I did so far. But what about
> the pstex and the pstex_t which you get after running xfig -specialtext? I
> thought this is the way to divide the image part of the fig and the text
> part so that the latter can be adjusted (by the program) to the font size
> of my text (and also
> to include e.g. greek letters as latex etc). If I check my  pstex file, it
> still shows the image and the text, as it was in the normal .fig file. The
> pstex_t file reads like:

You should not need to worry about pstex_t and friends if you use the
external template. LyX is supposed to create all needed files
automatically, whether you use pdflatex or the traditional DVI. The only
decision you have to make is whether you want to use the special flag or
not: If you use it, the text will be typeset by LaTeX, and you can use
math, own commands that are defined in ERT or the preamble etc. The size
and font would also be adjusted through LaTeX commands. If you do not use
the special flag the text will appear as is in the final document, and you
set the font, size etc. in xfig.

>  I just did not get it yet, some step might be missing (perhaps something
>  in
> the preamble

You do not need to set anything in the preamble unless you use the xfig
special text flag and inserted nonstandard commands in a textbox of the
xfig file yourself.

>> > And how exactly do I get it into the document? Is it the pstex or the
>> > pstex_t file or both? Or is this done internally by LyX? With Enter
>> > (Einfuegen) File (Datei) external Material I get the fig file but the
>> > text of the pdf output is not scaled correctly (nor the fonts). Somehow
>> > I haven't caught the way of entering it.

If the special flag was set you encountered a bug, either in xfig, fig2dev
or in LyX. Otherwise just set the flag, and the text should be typeset by
LaTeX.


Georg



Re: Xfig and LyX

2008-06-25 Thread Wolfgang Engelmann
Am Mittwoch, 25. Juni 2008 18:51 schrieb Georg Baum:
> Wolfgang Engelmann wrote:
> > Am Mittwoch, 25. Juni 2008 13:26 schrieb Rich Shepard:
> >>I can try.
> >>
> >> > I have quite a number of xfig produced files which are all exported as
> >> > .eps files and inserted in the LyX document as floats.
>
> The external template way is supposed to be easier, since it does the
> exporting automatically, so you can't get outdated figures because you
> forgot to export.
 with  external template way  you mean the way I and Rich use, i.e. export fig 
to eps and insert in Lyx?
>
> >> > Do I have to use for all my fig files the xfig -specialtext or is
> >> > there a global command to do that for all files in one run?
>
> The special flag is a property of each text box that you have to set
> individually. AFAIK the -specialtext switch only sets that as default for
> new text. If you have a lot of files that you need to convert it would
> probably easy to write a small script that does this.
>
> > What about the size of the text in your fig -> eps file in respect to the
> > size of the text of the body (that is the document text, I guess?). Do
> > you adjust it just by comparing it? Thats what I did so far. But what
> > about the pstex and the pstex_t which you get after running xfig
> > -specialtext? I thought this is the way to divide the image part of the
> > fig and the text part so that the latter can be adjusted (by the program)
> > to the font size of my text (and also
> > to include e.g. greek letters as latex etc). If I check my  pstex file,
> > it still shows the image and the text, as it was in the normal .fig file.
> > The pstex_t file reads like:
>
> You should not need to worry about pstex_t and friends if you use the
> external template. LyX is supposed to create all needed files
> automatically, whether you use pdflatex or the traditional DVI. The only
> decision you have to make is whether you want to use the special flag or
> not: If you use it, the text will be typeset by LaTeX, and you can use
> math, own commands that are defined in ERT or the preamble etc. The size
> and font would also be adjusted through LaTeX commands. If you do not use
> the special flag the text will appear as is in the final document, and you
> set the font, size etc. in xfig.
Does it mean, I have to create the fig file after having started 
xfig -specialtext and xfig then puts my text in the pstex_t file with 
location marks etc?
With other words, I have to redo all my fig files and add (or copy, if I find 
out how the localization of the text is done in pstex_t)?
>
> >  I just did not get it yet, some step might be missing (perhaps something
> >  in
> > the preamble
>
> You do not need to set anything in the preamble unless you use the xfig
> special text flag and inserted nonstandard commands in a textbox
textbox is pstex_t?
> of the 
> xfig file yourself.
>
> >> > And how exactly do I get it into the document? Is it the pstex or the
> >> > pstex_t file or both? Or is this done internally by LyX? With Enter
> >> > (Einfuegen) File (Datei) external Material I get the fig file but the
> >> > text of the pdf output is not scaled correctly (nor the fonts).
> >> > Somehow I haven't caught the way of entering it.
>
> If the special flag was set you encountered a bug, either in xfig, fig2dev
> or in LyX. Otherwise just set the flag, and the text should be typeset by
> LaTeX.
How does xfig find out the size and font I used in the document, or does it 
make latex take it over?

Will experiment tomorrow a bit, but perhaps clarifying my (stupid) questions 
helps to reduce the experimenting time. Thanks a lot, Georg

Wolfgang


LyX doesn't start: Assertion `c->xlib.lock' failed

2008-06-25 Thread John Coppens
Hi guys,

After updating quite a lot of libraries, I can't start LyX anymore. I
didn't update Qt - still 4.3.3, and lyx --version still works:

LyX 1.5.3 (Mon, Dec 17, 2007)
Built on Dec 31 2007, 14:30:47
Configuration
  Host type:i686-pc-linux-gnu
  Special build flags:  pch  use-aspell use-ispell
  C   Compiler: gcc 
  C   Compiler LyX flags:
  C   Compiler flags: -I/usr/X11R6/include -O2
  C++ Compiler: g++ (3.4.6)
  C++ Compiler LyX flags:
  C++ Compiler flags: -I/usr/X11R6/include -O2
  Linker flags: 
  Linker user flags:
  Qt 4 Frontend:
  Qt 4 version: 4.3.3
  Packaging:posix
  LyX binary dir:   /usr/local/bin
  LyX files dir:/usr/local/share/lyx

I did find a similar bug:

http://osdir.com/ml/freedesktop.xcb/2006-10/msg9.html

But I'm not enough of a programmer to judge if this is the problem - I
don't expect LyX to be needing Mesa, but maybe Qt does?

Running LyX in gdb: first it encounters some problem and gdb is stopped.
continuing with fg, advanced till the problem:

Program received signal SIGTTOU, Stopped (tty output).
[Switching to Thread 0xb6e3d8e0 (LWP 4479)]
0xb6f417de in __write_nocancel () from /lib/libc.so.6
(gdb) bt
#0  0xb6f417de in __write_nocancel () from /lib/libc.so.6
#1  0xb6ee03b4 in _IO_new_file_write () from /lib/libc.so.6
#2  0xb6ee0055 in new_do_write () from /lib/libc.so.6
#3  0xb6ee0319 in _IO_new_file_xsputn () from /lib/libc.so.6
#4  0xb6ed667f in fwrite () from /lib/libc.so.6
#5  0xb6e55767 in xcb_xlib_printbt () at xcb_xlib.c:48
#6  0xb6e5586d in xcb_xlib_unlock (c=0x8804f10) at xcb_xlib.c:82
#7  0xb702ccc2 in _XCBUnlockDisplay (dpy=0x8807778) at xcb_lock.c:41
#8  0xb767b5a6 in XFixesQueryVersion () from /usr/X11/lib/libXfixes.so.3
#9  0xb78d477a in qt_init (priv=0x87f75c0, display=0x8807778, 
visual=4294966784, colormap=4294966784) at
kernel/qapplication_x11.cpp:1627
#10 0xb7878e2f in QApplicationPrivate::construct (this=0x87f75c0,
#dpy=0x0, 
visual=0, cmap=0) at kernel/qapplication.cpp:705
#11 0xb7879be4 in QApplication (this=0x87faad8, [EMAIL PROTECTED], 
argv=0xbfa94a24, _internal=-512) at kernel/qapplication.cpp:619
#12 0x08420982 in lyx::frontend::GuiApplication::GuiApplication ()
#13 0x084216f5 in lyx::createApplication ()
#14 0x0818964c in lyx::LyX::exec ()
#15 0x08067919 in main ()

Can anyone suggest how to proceed?

John

System is mainly Slackware Linux 12.1...


.kmap ortography

2008-06-25 Thread MonAmiPierrot

I just want to write this lines

\kmap < «
\kmap > »

in my personal.kmap file to have a "chevrons" or "guillemets" marks (I use
also double quotes)

But it doesn't work, perhaps due to the mistaken ortography in the ASCII
file. How to refer to this characters?


-- 
View this message in context: 
http://www.nabble.com/.kmap-ortography-tp18120799p18120799.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Xfig and LyX

2008-06-25 Thread Abdelrazak Younes

Wolfgang Engelmann wrote:

Am Mittwoch, 25. Juni 2008 13:58 schrieb Abdelrazak Younes:

Wolfgang Engelmann wrote:

Could somebody kindly point me to an understandable explanation of how to
use xfig produced figures in LyX?

Use the external inset ("Inset->File->External Material") and choose the
XFig template. You should also select "preview" in the display combo AFAIR.


Thats what I did, Abdel.


I don't think so. As I said, try Inset->File->External Material

Abdel.