Creating different caption name

2008-06-26 Thread Waluyo Adi Siswanto
1) I would like to create an additional caption, and the appearance would be 
Example No: ##. The Examples also will be listed (separately), just like 
Figures.

2) Is that possible to change the name of the caption (inside the float 
figure), 
    Figure: # - Picture: #

Could anyone help me ??



  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: keyboard question

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

The more I try, the less I understand... Nothing seems to work as it
should! See the reports of my attempts below

On Wednesday 25 June 2008 à 17:56 +0200, G. Milde wrote:
 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.
 
Maybe it was not the case after all
[...]
 
   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 cacuteself-insert
 
 which you should change to unicode-insert ... (as proposed earlier in this
 thread). 

I tried this in my /home/daniel/.lyx/bind/swpperso.bind file. (It's the
modified sciword.bind file that I use; it contains the same shortcuts as
in my former SciWord.)

It did not work.

Then I noticed that this file eventually calls latinkeys.bind. So I
tried to edit it directly, replacing the suggested line with

\bind cacute  unicode-insert 0x00e7

This, to my great disappointment, did not work either (always
acute-accented c).
 
 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

I assume \bind M-,? --tried them both however.

  and then Alt-, c.

I tried this too, and it did not act as I wanted: M-, enters math
mode!... There mus be a conflict with another binding, but I was unable
to locate it.

  
 Günter  

I think all this is becoming unreasonably complicated. I wonder if I had
not better wait for LyX 1.6. Possibly the shortcut editor will help me
fix this...
-- 

Daniel Clément



Re: Xfig and LyX

2008-06-26 Thread Vaclav Smidl
Hi Wolfgang,
I also prefer having the fontsize in figures equal to that of the surrounding 
text.

  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?

To do that, you really need the special flag switched on for strings in 
xfig. If you did not do it in your xfig files, you can change it quite 
efficiently using update functionality in xfig gui, or by a script on raw 
xfig file format. All strings are terminated by \001 so it is easy to detect 
them and the special flag is just one of the numbers in front of the text. Do 
not remember which one, you can easily find it out by diffing two files, one 
with and one without the special flag.

As a second step, redefine latex macro SetFigFont in the preamble:
either
\gdef\SetFigFont#1#2#3#4#5{\relax}
or 
\gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
depending on the xfig version. Check one of your .pdftex_t file which version 
is used in it.

Then, all texts will be typeset by the active font in latex.

Hope this helps,
Vasek



Re: keyboard question

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

I am quite sure that combo-key ´ c is inserted by LyX as unicode char ć
(cacute), at least it is here. Also my text editor inserts this key combo
as one character.

(A combining char is inserted *behind* the accented char and
recognizable e.g. when moving with cursor keys or deleting a word
char by char. Try e.g. with M-x accent cedilla a: you will see
an a with cedilla but this is composed of two characters: a and
combining-char-cedilla.)

...

  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
...
 It did not work.
Nor does it work here.

Dear LyX gurus: why does LyX ignore:

  \bind cacute  unicode-insert 0x00e7

while e.g. 

  \bind M-C-comma unicode-insert 0x00e7  # insert a ç (c with cedilla)

works?


  Alternatives that work here are 
  
2. \bind Meta ,   accent-cedilla

 I assume \bind M-,? --tried them both 
...
Well, it is 

  \bind M-comma  accent-cedilla

 I think all this is becoming unreasonably complicated. I wonder if I had
 not better wait for LyX 1.6. Possibly the shortcut editor will help me
 fix this...

From my first impression, no.
It does not support remapping of characters to insert.


Günter

PS:

 Then I noticed that this file eventually calls latinkeys.bind. So I
 tried to edit it directly, replacing the suggested line with ...

You can override a keybinding if you give a new definition after the 
input of a standard file. (Only exception are Shift-independent
bindings with ~S where the first definition wins over other ~S
definitions but is overwritten by either S or non-shifted defs.)

 (It's the modified sciword.bind file that I use; it contains the same
 shortcuts as in my former SciWord.)

I recommend loading the default sciword.bind in the custom bind file,
e.g.

# Before defining your own bindings, select one of the available default
# binding sets. These are resource files (like this one) that define a
# large set of (keyboard) bindings. These files live in the /bind directory of
# the LyX system directory and have the .bind suffix.
#
# The \bind_file command looks in the LyX bind directory for a file
# of the given name, so a full path should not be given.
#
# Currently, you can choose from the following flavors::

\bind_file cua.bind #   KDE-, Windows-, Mac- and Motif-like bindings
#\bind_file emacs.bind  #   for Emacs-like bindings.
#   ...

# we also would like to incorporate some additional menu shortcuts

# \bind_file menus.bind # English menu shortcut additions
\bind_file de_menus.bind# German version 



Re: Xfig and LyX

2008-06-26 Thread Wolfgang Engelmann
Am Donnerstag, 26. Juni 2008 07:28 schrieb Vaclav Smidl:
 Hi Wolfgang,
 I also prefer having the fontsize in figures equal to that of the
 surrounding text.

   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?

 To do that, you really need the special flag switched on for strings in
 xfig. If you did not do it in your xfig files, you can change it quite
 efficiently using update functionality in xfig gui, or by a script on raw
 xfig file format. All strings are terminated by \001 so it is easy to
 detect them and the special flag is just one of the numbers in front of the
 text. Do not remember which one, you can easily find it out by diffing two
 files, one with and one without the special flag.

 As a second step, redefine latex macro SetFigFont in the preamble:
 either
 \gdef\SetFigFont#1#2#3#4#5{\relax}
 or
 \gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
 depending on the xfig version. Check one of your .pdftex_t file which
 version is used in it.

 Then, all texts will be typeset by the active font in latex.

 Hope this helps,
 Vasek

Vasek, this is a very valuable information and I am thankful.
Wolfgang


Re: keyboard question

2008-06-26 Thread Daniel Clément
At least something that works!

On Tuesday 26 June 2008 à 09:36 +0200, G. Milde wrote:

[...]
 
 Dear LyX gurus: why does LyX ignore:
 
   \bind cacute  unicode-insert 0x00e7
 
 while e.g. 
 
   \bind M-C-comma unicode-insert 0x00e7  # insert a ç (c with cedilla)
 
 works?

YES it does! Thanks!

[...]

 You can override a keybinding if you give a new definition after the 
 input of a standard file. (Only exception are Shift-independent
 bindings with ~S where the first definition wins over other ~S
 definitions but is overwritten by either S or non-shifted defs.)

Interesting, but that does not account for my previous failed attempts.

  (It's the modified sciword.bind file that I use; it contains the same
  shortcuts as in my former SciWord.)
 
 I recommend loading the default sciword.bind in the custom bind file,

I could have done this, but I had to actually modify some definitions in
sciword.bind. (It appears to match a rather old version o SciWord...)

I have more or less concluded that: once a key is dead in the keyboard
setup (in the OS I mean), it cannot be used effectively in a \bind
sequence.

IMHO the kmap file would have been the most appropriate place to deal
with this, but I was unable to get it working.

However, I'm quite pleased with the workaround that you gave me. Thanks
again.

-- 

Daniel Clément



How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Christopher Reeve
Hi,

I am using LyX 1.5.5 on a Mac OS 10.4

I need to write an equation with two leading exponents. E.g:

{_{10}^{1000}X}

This equation would look (roughly) like:

1000
10  X

But I need the numbers to fit snug against the X, e.g.

1000
  10X

Other people writing plain LaTeX do this. Any ideas?

Cheers,

Chris.


gnumeric and lyx

2008-06-26 Thread assasukasse

Hello everyone
i have to import a matrix made with gnumeric into lyx.
I saved the file as a .tex file in gnumeric, and added as a child 
document in lyx

but it doesn't compile giving me a bunch of errors..
what is the correct way to do?
Thanks
Assa


Re:gnumeric and lyx

2008-06-26 Thread Christopher Reeve
What if you import your .tex file into LyX by going FileImportLaTeX (plain)

Then copy and paste the bits you need into your main LyX document.

Does that work? If not you might have to modify your .tex file
slightly to a format that LyX supports, or include a missing package.
What are the errors?

Chris.


Blank Line Before \begin{itemize} in Geneterated LaTeX

2008-06-26 Thread Etienne M. Gagnon

Hi LyX gurus,

I've been playing with LyX lately. It has much improved since the last 
time I looked at it, 6 years ago. It really looks as a nice alternative 
to writing painful plain LaTeX by hand.


I can't figure out if I missed some workaround in the documentation or 
if it is an undocumented feature (i.e. a bug). When I write using LyX 
1.5.5 on OSX 10.15.3:


Some text followed by an itemized list:

   * Some item.
   * Another item.

Then some text that follows.

LyX generates the following LaTeX code:

Some text followed by an itemized list:

\begin{itemize}
\item Some item.
\item Another item.
\end{itemize}
Then some text that follows.

Why does LyX generate a blank line between list: and 
\begin{itemize}? I have not been able to prevent LyX from doing so. To 
get the itemized list to be considered as part of the preceding 
paragraph, I only figured out the following ugly workarounds:


  1. don't use LyX lists at all; instead, write all of
 \[begin|item|end] commands as embedded TeX (ERT), or
  2. use the verbatim package to add multi-line comments using ERT:
 ... list:[[ \begin{comment}]]
 * [[\end{comment} \begin{itemize} \item]] Some item.
 * Another Item.
 Then...

Of course, neither is satisfactory. This is quite annoying, as lists are 
rather common in my texts. Have I missed something? How hard would it be 
for me to change whatever template LyX uses to generate the list header 
(I know programming, but I am not a LyX/TeX/LaTeX expert)?


Etienne
P.S. Note that LyX seems quite inconsistent in putting a blank line 
before the item list, but not after. As it is quite easy to add a blank 
line using ERT, maybe LyX shouldn't add a blank line by default?


--
Etienne M. Gagnon, Ph.D.
SableCC:http://sablecc.org
SableVM:http://sablevm.org



signature.asc
Description: OpenPGP digital signature


Re: How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Paul A. Rubin

Christopher Reeve wrote:

Hi,

I am using LyX 1.5.5 on a Mac OS 10.4

I need to write an equation with two leading exponents. E.g:

{_{10}^{1000}X}

This equation would look (roughly) like:

1000
10  X

But I need the numbers to fit snug against the X, e.g.

1000
  10X

Other people writing plain LaTeX do this. Any ideas?

Cheers,

Chris.



_{\phantom{00}10}^{1000}X

/Paul



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Ralf77



rgheck wrote:
 
 vu wrote:

 rgheck wrote:
   
 Export the document to LaTeX and try compiling it manually. Report the 
 error messages. It sounds to me as if either LyX or LaTeX isn't finding 
 the .bib file, and there are various reasons this can happen.
 

Hi,

I have a similar problem.
Some of my References from Jabref 2.3.1 are shown in the list of references
in lyx 1.5.5 but SOME ARE NOT.

e.g. this entry is shown:
@TECHREPORT{URI-standard,
 author = {{Tim Berners-Lee}},
 title = {{Uniform Resource Identifier (URI): Generic Syntax}},
 institution = {W3C / MIT / The Internet Society},
 year = {2005},
 type = {RFC},
 number = {3986},
 owner = {rwe},
 timestamp = {2008.06.26},
 url = {http://tools.ietf.org/html/rfc3986}
}

while this one is not:
@MISC{Thatte2001,
 author = {{Thatte}},
 title = {{XLANG – Web Services for Business Process Design}},
 howpublished = {Online},
 year = {2001},
 institution = {Microsoft Corporation},
 owner = {rwe},
 timestamp = {2008.06.24},
 url = {http://www.gotdotnet.com/team/xml_wsspecs/xlang-c/default.htm}
}

Can someone help?

Cheers,
Ralf
-- 
View this message in context: 
http://www.nabble.com/Lyx-1.5.3-not-showing-references-from-Jabref-2.3.1-tp17510841p18136144.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Nicolás

If I create a .bib file with those two references and use it in LyX, I can see 
both references. Don't know where is the problem.
I use JabRef 2.3.1 to create my .bib file and have not experienced any problem 
so far.

Ralf77 wrote:



rgheck wrote:

vu wrote:

rgheck wrote:
  
Export the document to LaTeX and try compiling it manually. Report the 
error messages. It sounds to me as if either LyX or LaTeX isn't finding 
the .bib file, and there are various reasons this can happen.


Hi,

I have a similar problem.
Some of my References from Jabref 2.3.1 are shown in the list of references
in lyx 1.5.5 but SOME ARE NOT.

e.g. this entry is shown:
@TECHREPORT{URI-standard,
 author = {{Tim Berners-Lee}},
 title = {{Uniform Resource Identifier (URI): Generic Syntax}},
 institution = {W3C / MIT / The Internet Society},
 year = {2005},
 type = {RFC},
 number = {3986},
 owner = {rwe},
 timestamp = {2008.06.26},
 url = {http://tools.ietf.org/html/rfc3986}
}

while this one is not:
@MISC{Thatte2001,
 author = {{Thatte}},
 title = {{XLANG – Web Services for Business Process Design}},
 howpublished = {Online},
 year = {2001},
 institution = {Microsoft Corporation},
 owner = {rwe},
 timestamp = {2008.06.24},
 url = {http://www.gotdotnet.com/team/xml_wsspecs/xlang-c/default.htm}
}

Can someone help?

Cheers,
Ralf




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

2008-06-26 Thread Olivier Ripoll

Hi,

I tried your eps files in LyX 1.6 beta3 under windows XP. I use Adobe 
reader 8 for pdf (generated by pdflatex IIRC) and gsview 4.9 / 
ghostscript 8.62 for postscript viewing.
It does work better for me that for you it seems (you may suffer from an 
outdated/buggy imagemagick). I tried the images without checking the 
option to clip to the bounding box, and with it (ion that case, also 
with clicking on the button to get the size from the file).


Tom Schlangen wrote:

Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.
Output from bbget, using esp-gs v7.70.x: 
http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)


displays fine in LyX with or without the clipping options
pdf/ps/dvi output is fine


Output from bbget, using gs v8.62:
http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)


gsview 4.9 cannot even open this file... it reports errors.
displays wrong in LyX with and without the clipping options. LyX cannot 
actually read the bounding box at all.
does not display in pdf (blank pages), result in errors in gsview and 
dvi viewer.



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)

displays wrong (full page) in LyX with or without the clipping options
pdf/ps/dvi is fine though


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)
displays wrong (full page) in LyX without the clipping options and fine 
with it.

ps/dvi are correct
pdf is correct without the clipping option, but the figure is missing 
when using the clipping option (yep... it works without and _not_ with).


Now, I do not really understand why you need such a complex workflow. 
Why do you need to go in Linux ?

I did the following in Windows (one line, mail agent may wrap it):

gswin32c -dBATCH -dNOPAUSE -dEPSCrop -sDEVICE=epswrite 
-sOutputFile=dummy2.eps dummy.eps


(You need to have gs in your path)

The resulting image displays fine in LyX with or without the clipping 
options, and ps/pdf/dvi is fine also.


So my conclusion is : don't care about what LyX displays, care about the 
final result, and most encapsulated postscripts (eps) are fine there.

And also, use ghostscript 8.62 on windows.


Regards,

Tom Schlangen


Regards,

Olivier

PS: personally, I use pdf instead of eps: it takes less disc space, you 
can edit easily with inkscape, everyone can view them, and last but not 
least, it is the base format for pdf(La)TeX which is nicer (pdf bookmarks).




Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Ralf77


Nicolás wrote:
 
 If I create a .bib file with those two references and use it in LyX, I can
 see both references. Don't know where is the problem.
 I use JabRef 2.3.1 to create my .bib file and have not experienced any
 problem so far.
 
 

That´s strange.

I could post by complete .bib file if you wanna try it out.
Can I file a bug report in this list as well?
-- 
View this message in context: 
http://www.nabble.com/Lyx-1.5.3-not-showing-references-from-Jabref-2.3.1-tp17510841p18137096.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: gnumeric and lyx

2008-06-26 Thread assasukasse

Christopher Reeve ha scritto:

What if you import your .tex file into LyX by going FileImportLaTeX (plain)

Then copy and paste the bits you need into your main LyX document.

Does that work? If not you might have to modify your .tex file
slightly to a format that LyX supports, or include a missing package.
What are the errors?

Chris.

  

Hello
unfortunately it doesn't work ..
i just get a bunch of errors when i try to compile it (also it doesn't 
look correct having a lot of \gnumeric here and there)

now
if i have a matrix in text format
is there a way to import it in lyx w/o having to manually type each cell?
Thanks

assa


Re: How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Christopher Reeve
Sneaky! I eventually found adding a number of spaces worked but your
way is much better. Cheers.
C


problem with tracked changes and citations

2008-06-26 Thread Pete Phillips

There is a problem with lyx when you are using change tracking and you
have citations that you delete.  lyx itself is OK in that it shows the
deleted citation reference struck through, but if you try to print or 
create a pdf, you get an error message as follows:

 \cite{B50}}, [some other body text appended]

 I've run across a `}' that doesn't seem to match anything.
 For example, `\def\a#1{...}' and `\a}' would produce
 this error. If you simply proceed now, the `\par' that
 I've just inserted will cause me to report a runaway
 argument that might be the root of the problem. But if
 your `}' was spurious, just type `2' and it will go away.

If I just Accept that deletion with the change tracking, everything
works ok. 

Anyone else had this problem ?

Running lyx.1.5.3 under hardy Heron.

I have screen captures of the issue if anyone is interested :-)

Pete



Re: gnumeric and lyx

2008-06-26 Thread Christopher Reeve
Yes you can. I even tested it with gnumeric and it worked. See this post.

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg65207.html

Chris.


Re: Blank Line Before \begin{itemize} in Geneterated LaTeX

2008-06-26 Thread Christopher Reeve
Sorry I can't help you, although personally I think the spacing looks
just right. Maybe with your line spacing settings it looks funny? I
agree thought that LyX does not seem to be very flexible here.

I just wanted to add to your comments the following.

When you start a display formula, if you hit return before doing so
it adds an extra space. If you start the equation but don't hit return
before no space is added.

The problem is that in LyX you can't see the difference, so you only
notice the large gap when you compile the document.

Bit annoying right?

Chris.


Re: Xfig and LyX

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

  with  external template way  you mean the way I and Rich use, i.e. export
  fig
 to eps and insert in Lyx?

No. I mean what Abdel uses: Insert-File-External Material and then choose
the xfig template. In the file dialog you specify the .fig file. If you
want to edit the .fig file from within LyX press cklick on the file and
then press the edit button in the dialog that opens.

 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?

No, the -specialtext switch is only the default for new textboxes. Therefore
it is useful, but it does not change existing ones. How the text is output
to LaTeX depends on the flags that are stored in the .fig file, not on
the -specialtext switch.

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

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script). No ned to look at pstex_t. Then you include
all .fig files as external material, and maybe set the preamble command
mentioned by Vasek.

 textbox is pstex_t?

No, a textbox is what you get when you press the big T in xfig and where you
enter your text.

 How does xfig find out the size and font I used in the document, or does
 it make latex take it over?

It does not find it out. It puts the text in a file that is processed by
LaTeX.


Georg



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Paul A. Rubin

Ralf77 wrote:


Nicolás wrote:

If I create a .bib file with those two references and use it in LyX, I can
see both references. Don't know where is the problem.
I use JabRef 2.3.1 to create my .bib file and have not experienced any
problem so far.




That´s strange.

I could post by complete .bib file if you wanna try it out.
Can I file a bug report in this list as well?


Post the .bib file first.  In particular, run iconv against it to make 
sure you didn't accidentally get an unsupported character in the file. 
Also, does the LaTeX log show any error messages relating to the missing 
references?  If you export a .tex file and run latex-bibtex-latex-latex 
against it, are the refs still missing?


/Paul



Re: Xfig and LyX

2008-06-26 Thread curtis osterhoudt


/* original message below **/

- Original Message 
From: Georg Baum [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Thursday, June 26, 2008 11:55:17 AM
Subject: Re: Xfig and LyX

snip

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

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script).

snip


Georg
/* original message above **/


Does anyone know of such a script to set the special flag post-facto? I 
have a Mathematica program I've been using to do it, but if someone has a quick 
perl file or bash script (or something analogous on Windows), that would be 
very helpful. 

  Thanks!
   Curtis O.



  

Compatibility problems

2008-06-26 Thread Jackson Ocampo
Hi Lyx People.

I have a several problems with lyx.

I was user for Lyx 1.3.3-win32 and iI wrote many important documents on it,
sudenly, the programs began to auto-type some quotations in all the text
that I open.
For that reason I had to change my version for the new 1.5.4 for windows.
Everithing was good... except for one thing... I CAN'T open or import my old
documents. I tried to export my old documents to *.tex in the Lyx
1.3.3-win23, and import in the new version, but lyx 1.5.4 can't do
anything

I Need Help
My actal version of Lyx is 1.5.4 for windows, and I have Windows Vista

Thanks for help
-- 
Att.
Jackson Ocampo


Re: keyboard question

2008-06-26 Thread Hellmut Weber

Hi Daniel,


I fear your solution is too general for my case: wouldn't it interfere
with my keyboard settings in other programs?
I wouldn't think so. You don't have to use this 'feature' in other 
contexts.

If you heavily use the caps lock key then the situation is different.
But in that case you can redefine any other key to become the compose key.

Under Linux there is a nice little program 'xev' which gives you the key 
code for all keys.




I point out that I am perfectly satisfied with my US int'l setup in
almost every software, command line included. Since LyX is the only
major program I'm having this (however little) trouble with, I was in
search of a LyX-specific solution.

You could try to define your personal bind file in '$HOME/.lyx/bind/...'
You'll find info on global and local bind files somewhere in the (more 
advanced ;-) LyX documentation.
I don't remeber exactly where, it's several years  tackled with these 
problems.


HTH

Hellmut

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



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

2008-06-26 Thread Nigel Pegram
The debug output doesn't mean much to me, but I've often found it
informative to start programs from a terminal and look at the output
there when having problems with X programs.

HTH
Nigel

On 25/06/2008, John Coppens [EMAIL PROTECTED] wrote:
 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...



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

2008-06-26 Thread John Coppens
On Thu, 26 Jun 2008 23:38:56 +
Nigel Pegram [EMAIL PROTECTED] wrote:

 The debug output doesn't mean much to me, but I've often found it
 informative to start programs from a terminal and look at the output
 there when having problems with X programs.
 
 HTH
 Nigel
 
 On 25/06/2008, John Coppens [EMAIL PROTECTED] wrote:
  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:

Hi Nigel.

This is the output of starting LyX from a terminal - it does look
somewhat different:

Locking assertion failure.  Backtrace:
#0 /usr/X11/lib/libxcb-xlib.so.0 [0xb6d8c740]
#1 /usr/X11/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x2d) [0xb6d8c86d]
#2 /usr/X11/lib/libX11.so.6 [0xb6f63cc2]
#3 /usr/X11/lib/libXfixes.so.3(XFixesQueryVersion+0x86) [0xb75b25a6]
#4 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_Z7qt_initP19QApplicationPrivateiP9_XDisplaymm+0x1dda) [0xb780b77a]
#5 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_ZN19QApplicationPrivate9constructEP9_XDisplaymm+0x4f) [0xb77afe2f]
#6 /usr/lib/qt-4.3.3/lib/libQtGui.so.4(_ZN12QApplicationC2ERiPPci+0x64)
#[0xb77b0be4] 7 lyx [0x8420982] 8 lyx [0x84216f5] 9 lyx [0x818964c]
#10 lyx(_ZNK17QAbstractItemView14sizeHintForRowEi+0x411) [0x8067919]
#11 /lib/libc.so.6(__libc_start_main+0xe0) [0xb6dc8390]
#12 lyx(_ZN18QStandardItemModel13insertColumnsEiiRK11QModelIndex+0x99)
#[0x8067801]
lyx: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c-xlib.lock' failed.
Aborted


John


Creating different caption name

2008-06-26 Thread Waluyo Adi Siswanto
1) I would like to create an additional caption, and the appearance would be 
Example No: ##. The Examples also will be listed (separately), just like 
Figures.

2) Is that possible to change the name of the caption (inside the float 
figure), 
    Figure: # - Picture: #

Could anyone help me ??



  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: keyboard question

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

The more I try, the less I understand... Nothing seems to work as it
should! See the reports of my attempts below

On Wednesday 25 June 2008 à 17:56 +0200, G. Milde wrote:
 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.
 
Maybe it was not the case after all
[...]
 
   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 cacuteself-insert
 
 which you should change to unicode-insert ... (as proposed earlier in this
 thread). 

I tried this in my /home/daniel/.lyx/bind/swpperso.bind file. (It's the
modified sciword.bind file that I use; it contains the same shortcuts as
in my former SciWord.)

It did not work.

Then I noticed that this file eventually calls latinkeys.bind. So I
tried to edit it directly, replacing the suggested line with

\bind cacute  unicode-insert 0x00e7

This, to my great disappointment, did not work either (always
acute-accented c).
 
 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

I assume \bind M-,? --tried them both however.

  and then Alt-, c.

I tried this too, and it did not act as I wanted: M-, enters math
mode!... There mus be a conflict with another binding, but I was unable
to locate it.

  
 Günter  

I think all this is becoming unreasonably complicated. I wonder if I had
not better wait for LyX 1.6. Possibly the shortcut editor will help me
fix this...
-- 

Daniel Clément



Re: Xfig and LyX

2008-06-26 Thread Vaclav Smidl
Hi Wolfgang,
I also prefer having the fontsize in figures equal to that of the surrounding 
text.

  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?

To do that, you really need the special flag switched on for strings in 
xfig. If you did not do it in your xfig files, you can change it quite 
efficiently using update functionality in xfig gui, or by a script on raw 
xfig file format. All strings are terminated by \001 so it is easy to detect 
them and the special flag is just one of the numbers in front of the text. Do 
not remember which one, you can easily find it out by diffing two files, one 
with and one without the special flag.

As a second step, redefine latex macro SetFigFont in the preamble:
either
\gdef\SetFigFont#1#2#3#4#5{\relax}
or 
\gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
depending on the xfig version. Check one of your .pdftex_t file which version 
is used in it.

Then, all texts will be typeset by the active font in latex.

Hope this helps,
Vasek



Re: keyboard question

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

I am quite sure that combo-key ´ c is inserted by LyX as unicode char ć
(cacute), at least it is here. Also my text editor inserts this key combo
as one character.

(A combining char is inserted *behind* the accented char and
recognizable e.g. when moving with cursor keys or deleting a word
char by char. Try e.g. with M-x accent cedilla a: you will see
an a with cedilla but this is composed of two characters: a and
combining-char-cedilla.)

...

  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
...
 It did not work.
Nor does it work here.

Dear LyX gurus: why does LyX ignore:

  \bind cacute  unicode-insert 0x00e7

while e.g. 

  \bind M-C-comma unicode-insert 0x00e7  # insert a ç (c with cedilla)

works?


  Alternatives that work here are 
  
2. \bind Meta ,   accent-cedilla

 I assume \bind M-,? --tried them both 
...
Well, it is 

  \bind M-comma  accent-cedilla

 I think all this is becoming unreasonably complicated. I wonder if I had
 not better wait for LyX 1.6. Possibly the shortcut editor will help me
 fix this...

From my first impression, no.
It does not support remapping of characters to insert.


Günter

PS:

 Then I noticed that this file eventually calls latinkeys.bind. So I
 tried to edit it directly, replacing the suggested line with ...

You can override a keybinding if you give a new definition after the 
input of a standard file. (Only exception are Shift-independent
bindings with ~S where the first definition wins over other ~S
definitions but is overwritten by either S or non-shifted defs.)

 (It's the modified sciword.bind file that I use; it contains the same
 shortcuts as in my former SciWord.)

I recommend loading the default sciword.bind in the custom bind file,
e.g.

# Before defining your own bindings, select one of the available default
# binding sets. These are resource files (like this one) that define a
# large set of (keyboard) bindings. These files live in the /bind directory of
# the LyX system directory and have the .bind suffix.
#
# The \bind_file command looks in the LyX bind directory for a file
# of the given name, so a full path should not be given.
#
# Currently, you can choose from the following flavors::

\bind_file cua.bind #   KDE-, Windows-, Mac- and Motif-like bindings
#\bind_file emacs.bind  #   for Emacs-like bindings.
#   ...

# we also would like to incorporate some additional menu shortcuts

# \bind_file menus.bind # English menu shortcut additions
\bind_file de_menus.bind# German version 



Re: Xfig and LyX

2008-06-26 Thread Wolfgang Engelmann
Am Donnerstag, 26. Juni 2008 07:28 schrieb Vaclav Smidl:
 Hi Wolfgang,
 I also prefer having the fontsize in figures equal to that of the
 surrounding text.

   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?

 To do that, you really need the special flag switched on for strings in
 xfig. If you did not do it in your xfig files, you can change it quite
 efficiently using update functionality in xfig gui, or by a script on raw
 xfig file format. All strings are terminated by \001 so it is easy to
 detect them and the special flag is just one of the numbers in front of the
 text. Do not remember which one, you can easily find it out by diffing two
 files, one with and one without the special flag.

 As a second step, redefine latex macro SetFigFont in the preamble:
 either
 \gdef\SetFigFont#1#2#3#4#5{\relax}
 or
 \gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
 depending on the xfig version. Check one of your .pdftex_t file which
 version is used in it.

 Then, all texts will be typeset by the active font in latex.

 Hope this helps,
 Vasek

Vasek, this is a very valuable information and I am thankful.
Wolfgang


Re: keyboard question

2008-06-26 Thread Daniel Clément
At least something that works!

On Tuesday 26 June 2008 à 09:36 +0200, G. Milde wrote:

[...]
 
 Dear LyX gurus: why does LyX ignore:
 
   \bind cacute  unicode-insert 0x00e7
 
 while e.g. 
 
   \bind M-C-comma unicode-insert 0x00e7  # insert a ç (c with cedilla)
 
 works?

YES it does! Thanks!

[...]

 You can override a keybinding if you give a new definition after the 
 input of a standard file. (Only exception are Shift-independent
 bindings with ~S where the first definition wins over other ~S
 definitions but is overwritten by either S or non-shifted defs.)

Interesting, but that does not account for my previous failed attempts.

  (It's the modified sciword.bind file that I use; it contains the same
  shortcuts as in my former SciWord.)
 
 I recommend loading the default sciword.bind in the custom bind file,

I could have done this, but I had to actually modify some definitions in
sciword.bind. (It appears to match a rather old version o SciWord...)

I have more or less concluded that: once a key is dead in the keyboard
setup (in the OS I mean), it cannot be used effectively in a \bind
sequence.

IMHO the kmap file would have been the most appropriate place to deal
with this, but I was unable to get it working.

However, I'm quite pleased with the workaround that you gave me. Thanks
again.

-- 

Daniel Clément



How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Christopher Reeve
Hi,

I am using LyX 1.5.5 on a Mac OS 10.4

I need to write an equation with two leading exponents. E.g:

{_{10}^{1000}X}

This equation would look (roughly) like:

1000
10  X

But I need the numbers to fit snug against the X, e.g.

1000
  10X

Other people writing plain LaTeX do this. Any ideas?

Cheers,

Chris.


gnumeric and lyx

2008-06-26 Thread assasukasse

Hello everyone
i have to import a matrix made with gnumeric into lyx.
I saved the file as a .tex file in gnumeric, and added as a child 
document in lyx

but it doesn't compile giving me a bunch of errors..
what is the correct way to do?
Thanks
Assa


Re:gnumeric and lyx

2008-06-26 Thread Christopher Reeve
What if you import your .tex file into LyX by going FileImportLaTeX (plain)

Then copy and paste the bits you need into your main LyX document.

Does that work? If not you might have to modify your .tex file
slightly to a format that LyX supports, or include a missing package.
What are the errors?

Chris.


Blank Line Before \begin{itemize} in Geneterated LaTeX

2008-06-26 Thread Etienne M. Gagnon

Hi LyX gurus,

I've been playing with LyX lately. It has much improved since the last 
time I looked at it, 6 years ago. It really looks as a nice alternative 
to writing painful plain LaTeX by hand.


I can't figure out if I missed some workaround in the documentation or 
if it is an undocumented feature (i.e. a bug). When I write using LyX 
1.5.5 on OSX 10.15.3:


Some text followed by an itemized list:

   * Some item.
   * Another item.

Then some text that follows.

LyX generates the following LaTeX code:

Some text followed by an itemized list:

\begin{itemize}
\item Some item.
\item Another item.
\end{itemize}
Then some text that follows.

Why does LyX generate a blank line between list: and 
\begin{itemize}? I have not been able to prevent LyX from doing so. To 
get the itemized list to be considered as part of the preceding 
paragraph, I only figured out the following ugly workarounds:


  1. don't use LyX lists at all; instead, write all of
 \[begin|item|end] commands as embedded TeX (ERT), or
  2. use the verbatim package to add multi-line comments using ERT:
 ... list:[[ \begin{comment}]]
 * [[\end{comment} \begin{itemize} \item]] Some item.
 * Another Item.
 Then...

Of course, neither is satisfactory. This is quite annoying, as lists are 
rather common in my texts. Have I missed something? How hard would it be 
for me to change whatever template LyX uses to generate the list header 
(I know programming, but I am not a LyX/TeX/LaTeX expert)?


Etienne
P.S. Note that LyX seems quite inconsistent in putting a blank line 
before the item list, but not after. As it is quite easy to add a blank 
line using ERT, maybe LyX shouldn't add a blank line by default?


--
Etienne M. Gagnon, Ph.D.
SableCC:http://sablecc.org
SableVM:http://sablevm.org



signature.asc
Description: OpenPGP digital signature


Re: How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Paul A. Rubin

Christopher Reeve wrote:

Hi,

I am using LyX 1.5.5 on a Mac OS 10.4

I need to write an equation with two leading exponents. E.g:

{_{10}^{1000}X}

This equation would look (roughly) like:

1000
10  X

But I need the numbers to fit snug against the X, e.g.

1000
  10X

Other people writing plain LaTeX do this. Any ideas?

Cheers,

Chris.



_{\phantom{00}10}^{1000}X

/Paul



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Ralf77



rgheck wrote:
 
 vu wrote:

 rgheck wrote:
   
 Export the document to LaTeX and try compiling it manually. Report the 
 error messages. It sounds to me as if either LyX or LaTeX isn't finding 
 the .bib file, and there are various reasons this can happen.
 

Hi,

I have a similar problem.
Some of my References from Jabref 2.3.1 are shown in the list of references
in lyx 1.5.5 but SOME ARE NOT.

e.g. this entry is shown:
@TECHREPORT{URI-standard,
 author = {{Tim Berners-Lee}},
 title = {{Uniform Resource Identifier (URI): Generic Syntax}},
 institution = {W3C / MIT / The Internet Society},
 year = {2005},
 type = {RFC},
 number = {3986},
 owner = {rwe},
 timestamp = {2008.06.26},
 url = {http://tools.ietf.org/html/rfc3986}
}

while this one is not:
@MISC{Thatte2001,
 author = {{Thatte}},
 title = {{XLANG – Web Services for Business Process Design}},
 howpublished = {Online},
 year = {2001},
 institution = {Microsoft Corporation},
 owner = {rwe},
 timestamp = {2008.06.24},
 url = {http://www.gotdotnet.com/team/xml_wsspecs/xlang-c/default.htm}
}

Can someone help?

Cheers,
Ralf
-- 
View this message in context: 
http://www.nabble.com/Lyx-1.5.3-not-showing-references-from-Jabref-2.3.1-tp17510841p18136144.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Nicolás

If I create a .bib file with those two references and use it in LyX, I can see 
both references. Don't know where is the problem.
I use JabRef 2.3.1 to create my .bib file and have not experienced any problem 
so far.

Ralf77 wrote:



rgheck wrote:

vu wrote:

rgheck wrote:
  
Export the document to LaTeX and try compiling it manually. Report the 
error messages. It sounds to me as if either LyX or LaTeX isn't finding 
the .bib file, and there are various reasons this can happen.


Hi,

I have a similar problem.
Some of my References from Jabref 2.3.1 are shown in the list of references
in lyx 1.5.5 but SOME ARE NOT.

e.g. this entry is shown:
@TECHREPORT{URI-standard,
 author = {{Tim Berners-Lee}},
 title = {{Uniform Resource Identifier (URI): Generic Syntax}},
 institution = {W3C / MIT / The Internet Society},
 year = {2005},
 type = {RFC},
 number = {3986},
 owner = {rwe},
 timestamp = {2008.06.26},
 url = {http://tools.ietf.org/html/rfc3986}
}

while this one is not:
@MISC{Thatte2001,
 author = {{Thatte}},
 title = {{XLANG – Web Services for Business Process Design}},
 howpublished = {Online},
 year = {2001},
 institution = {Microsoft Corporation},
 owner = {rwe},
 timestamp = {2008.06.24},
 url = {http://www.gotdotnet.com/team/xml_wsspecs/xlang-c/default.htm}
}

Can someone help?

Cheers,
Ralf




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

2008-06-26 Thread Olivier Ripoll

Hi,

I tried your eps files in LyX 1.6 beta3 under windows XP. I use Adobe 
reader 8 for pdf (generated by pdflatex IIRC) and gsview 4.9 / 
ghostscript 8.62 for postscript viewing.
It does work better for me that for you it seems (you may suffer from an 
outdated/buggy imagemagick). I tried the images without checking the 
option to clip to the bounding box, and with it (ion that case, also 
with clicking on the button to get the size from the file).


Tom Schlangen wrote:

Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.
Output from bbget, using esp-gs v7.70.x: 
http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)


displays fine in LyX with or without the clipping options
pdf/ps/dvi output is fine


Output from bbget, using gs v8.62:
http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)


gsview 4.9 cannot even open this file... it reports errors.
displays wrong in LyX with and without the clipping options. LyX cannot 
actually read the bounding box at all.
does not display in pdf (blank pages), result in errors in gsview and 
dvi viewer.



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)

displays wrong (full page) in LyX with or without the clipping options
pdf/ps/dvi is fine though


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)
displays wrong (full page) in LyX without the clipping options and fine 
with it.

ps/dvi are correct
pdf is correct without the clipping option, but the figure is missing 
when using the clipping option (yep... it works without and _not_ with).


Now, I do not really understand why you need such a complex workflow. 
Why do you need to go in Linux ?

I did the following in Windows (one line, mail agent may wrap it):

gswin32c -dBATCH -dNOPAUSE -dEPSCrop -sDEVICE=epswrite 
-sOutputFile=dummy2.eps dummy.eps


(You need to have gs in your path)

The resulting image displays fine in LyX with or without the clipping 
options, and ps/pdf/dvi is fine also.


So my conclusion is : don't care about what LyX displays, care about the 
final result, and most encapsulated postscripts (eps) are fine there.

And also, use ghostscript 8.62 on windows.


Regards,

Tom Schlangen


Regards,

Olivier

PS: personally, I use pdf instead of eps: it takes less disc space, you 
can edit easily with inkscape, everyone can view them, and last but not 
least, it is the base format for pdf(La)TeX which is nicer (pdf bookmarks).




Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Ralf77


Nicolás wrote:
 
 If I create a .bib file with those two references and use it in LyX, I can
 see both references. Don't know where is the problem.
 I use JabRef 2.3.1 to create my .bib file and have not experienced any
 problem so far.
 
 

That´s strange.

I could post by complete .bib file if you wanna try it out.
Can I file a bug report in this list as well?
-- 
View this message in context: 
http://www.nabble.com/Lyx-1.5.3-not-showing-references-from-Jabref-2.3.1-tp17510841p18137096.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: gnumeric and lyx

2008-06-26 Thread assasukasse

Christopher Reeve ha scritto:

What if you import your .tex file into LyX by going FileImportLaTeX (plain)

Then copy and paste the bits you need into your main LyX document.

Does that work? If not you might have to modify your .tex file
slightly to a format that LyX supports, or include a missing package.
What are the errors?

Chris.

  

Hello
unfortunately it doesn't work ..
i just get a bunch of errors when i try to compile it (also it doesn't 
look correct having a lot of \gnumeric here and there)

now
if i have a matrix in text format
is there a way to import it in lyx w/o having to manually type each cell?
Thanks

assa


Re: How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Christopher Reeve
Sneaky! I eventually found adding a number of spaces worked but your
way is much better. Cheers.
C


problem with tracked changes and citations

2008-06-26 Thread Pete Phillips

There is a problem with lyx when you are using change tracking and you
have citations that you delete.  lyx itself is OK in that it shows the
deleted citation reference struck through, but if you try to print or 
create a pdf, you get an error message as follows:

 \cite{B50}}, [some other body text appended]

 I've run across a `}' that doesn't seem to match anything.
 For example, `\def\a#1{...}' and `\a}' would produce
 this error. If you simply proceed now, the `\par' that
 I've just inserted will cause me to report a runaway
 argument that might be the root of the problem. But if
 your `}' was spurious, just type `2' and it will go away.

If I just Accept that deletion with the change tracking, everything
works ok. 

Anyone else had this problem ?

Running lyx.1.5.3 under hardy Heron.

I have screen captures of the issue if anyone is interested :-)

Pete



Re: gnumeric and lyx

2008-06-26 Thread Christopher Reeve
Yes you can. I even tested it with gnumeric and it worked. See this post.

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg65207.html

Chris.


Re: Blank Line Before \begin{itemize} in Geneterated LaTeX

2008-06-26 Thread Christopher Reeve
Sorry I can't help you, although personally I think the spacing looks
just right. Maybe with your line spacing settings it looks funny? I
agree thought that LyX does not seem to be very flexible here.

I just wanted to add to your comments the following.

When you start a display formula, if you hit return before doing so
it adds an extra space. If you start the equation but don't hit return
before no space is added.

The problem is that in LyX you can't see the difference, so you only
notice the large gap when you compile the document.

Bit annoying right?

Chris.


Re: Xfig and LyX

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

  with  external template way  you mean the way I and Rich use, i.e. export
  fig
 to eps and insert in Lyx?

No. I mean what Abdel uses: Insert-File-External Material and then choose
the xfig template. In the file dialog you specify the .fig file. If you
want to edit the .fig file from within LyX press cklick on the file and
then press the edit button in the dialog that opens.

 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?

No, the -specialtext switch is only the default for new textboxes. Therefore
it is useful, but it does not change existing ones. How the text is output
to LaTeX depends on the flags that are stored in the .fig file, not on
the -specialtext switch.

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

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script). No ned to look at pstex_t. Then you include
all .fig files as external material, and maybe set the preamble command
mentioned by Vasek.

 textbox is pstex_t?

No, a textbox is what you get when you press the big T in xfig and where you
enter your text.

 How does xfig find out the size and font I used in the document, or does
 it make latex take it over?

It does not find it out. It puts the text in a file that is processed by
LaTeX.


Georg



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Paul A. Rubin

Ralf77 wrote:


Nicolás wrote:

If I create a .bib file with those two references and use it in LyX, I can
see both references. Don't know where is the problem.
I use JabRef 2.3.1 to create my .bib file and have not experienced any
problem so far.




That´s strange.

I could post by complete .bib file if you wanna try it out.
Can I file a bug report in this list as well?


Post the .bib file first.  In particular, run iconv against it to make 
sure you didn't accidentally get an unsupported character in the file. 
Also, does the LaTeX log show any error messages relating to the missing 
references?  If you export a .tex file and run latex-bibtex-latex-latex 
against it, are the refs still missing?


/Paul



Re: Xfig and LyX

2008-06-26 Thread curtis osterhoudt


/* original message below **/

- Original Message 
From: Georg Baum [EMAIL PROTECTED]
To: lyx-users@lists.lyx.org
Sent: Thursday, June 26, 2008 11:55:17 AM
Subject: Re: Xfig and LyX

snip

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

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script).

snip


Georg
/* original message above **/


Does anyone know of such a script to set the special flag post-facto? I 
have a Mathematica program I've been using to do it, but if someone has a quick 
perl file or bash script (or something analogous on Windows), that would be 
very helpful. 

  Thanks!
   Curtis O.



  

Compatibility problems

2008-06-26 Thread Jackson Ocampo
Hi Lyx People.

I have a several problems with lyx.

I was user for Lyx 1.3.3-win32 and iI wrote many important documents on it,
sudenly, the programs began to auto-type some quotations in all the text
that I open.
For that reason I had to change my version for the new 1.5.4 for windows.
Everithing was good... except for one thing... I CAN'T open or import my old
documents. I tried to export my old documents to *.tex in the Lyx
1.3.3-win23, and import in the new version, but lyx 1.5.4 can't do
anything

I Need Help
My actal version of Lyx is 1.5.4 for windows, and I have Windows Vista

Thanks for help
-- 
Att.
Jackson Ocampo


Re: keyboard question

2008-06-26 Thread Hellmut Weber

Hi Daniel,


I fear your solution is too general for my case: wouldn't it interfere
with my keyboard settings in other programs?
I wouldn't think so. You don't have to use this 'feature' in other 
contexts.

If you heavily use the caps lock key then the situation is different.
But in that case you can redefine any other key to become the compose key.

Under Linux there is a nice little program 'xev' which gives you the key 
code for all keys.




I point out that I am perfectly satisfied with my US int'l setup in
almost every software, command line included. Since LyX is the only
major program I'm having this (however little) trouble with, I was in
search of a LyX-specific solution.

You could try to define your personal bind file in '$HOME/.lyx/bind/...'
You'll find info on global and local bind files somewhere in the (more 
advanced ;-) LyX documentation.
I don't remeber exactly where, it's several years  tackled with these 
problems.


HTH

Hellmut

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



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

2008-06-26 Thread Nigel Pegram
The debug output doesn't mean much to me, but I've often found it
informative to start programs from a terminal and look at the output
there when having problems with X programs.

HTH
Nigel

On 25/06/2008, John Coppens [EMAIL PROTECTED] wrote:
 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...



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

2008-06-26 Thread John Coppens
On Thu, 26 Jun 2008 23:38:56 +
Nigel Pegram [EMAIL PROTECTED] wrote:

 The debug output doesn't mean much to me, but I've often found it
 informative to start programs from a terminal and look at the output
 there when having problems with X programs.
 
 HTH
 Nigel
 
 On 25/06/2008, John Coppens [EMAIL PROTECTED] wrote:
  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:

Hi Nigel.

This is the output of starting LyX from a terminal - it does look
somewhat different:

Locking assertion failure.  Backtrace:
#0 /usr/X11/lib/libxcb-xlib.so.0 [0xb6d8c740]
#1 /usr/X11/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x2d) [0xb6d8c86d]
#2 /usr/X11/lib/libX11.so.6 [0xb6f63cc2]
#3 /usr/X11/lib/libXfixes.so.3(XFixesQueryVersion+0x86) [0xb75b25a6]
#4 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_Z7qt_initP19QApplicationPrivateiP9_XDisplaymm+0x1dda) [0xb780b77a]
#5 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_ZN19QApplicationPrivate9constructEP9_XDisplaymm+0x4f) [0xb77afe2f]
#6 /usr/lib/qt-4.3.3/lib/libQtGui.so.4(_ZN12QApplicationC2ERiPPci+0x64)
#[0xb77b0be4] 7 lyx [0x8420982] 8 lyx [0x84216f5] 9 lyx [0x818964c]
#10 lyx(_ZNK17QAbstractItemView14sizeHintForRowEi+0x411) [0x8067919]
#11 /lib/libc.so.6(__libc_start_main+0xe0) [0xb6dc8390]
#12 lyx(_ZN18QStandardItemModel13insertColumnsEiiRK11QModelIndex+0x99)
#[0x8067801]
lyx: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c-xlib.lock' failed.
Aborted


John


Creating different caption name

2008-06-26 Thread Waluyo Adi Siswanto
1) I would like to create an additional caption, and the appearance would be 
"Example No: ##". The Examples also will be listed (separately), just like 
Figures.

2) Is that possible to change the name of the caption (inside the float 
figure), 
    Figure: # -> Picture: #

Could anyone help me ??



  Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/mail

Re: keyboard question

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

The more I try, the less I understand... Nothing seems to work as it
should! See the reports of my attempts below

On Wednesday 25 June 2008 à 17:56 +0200, G. Milde wrote:
> 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.
> 
Maybe it was not the case after all
[...]
> 
> > > 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). 

I tried this in my /home/daniel/.lyx/bind/swpperso.bind file. (It's the
modified sciword.bind file that I use; it contains the same shortcuts as
in my former SciWord.)

It did not work.

Then I noticed that this file eventually calls latinkeys.bind. So I
tried to edit it directly, replacing the suggested line with

\bind "cacute"  "unicode-insert 0x00e7"

This, to my great disappointment, did not work either (always
acute-accented c).
> 
> 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"

I assume \bind "M-,"? --tried them both however.

>  and then Alt-, c.

I tried this too, and it did not act as I wanted: M-, enters math
mode!... There mus be a conflict with another binding, but I was unable
to locate it.

>  
> Günter  

I think all this is becoming unreasonably complicated. I wonder if I had
not better wait for LyX 1.6. Possibly the shortcut editor will help me
fix this...
-- 

Daniel Clément



Re: Xfig and LyX

2008-06-26 Thread Vaclav Smidl
Hi Wolfgang,
I also prefer having the fontsize in figures equal to that of the surrounding 
text.

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

To do that, you really need the "special" flag switched on for strings in 
xfig. If you did not do it in your xfig files, you can change it quite 
efficiently using "update" functionality in xfig gui, or by a script on raw 
xfig file format. All strings are terminated by \001 so it is easy to detect 
them and the special flag is just one of the numbers in front of the text. Do 
not remember which one, you can easily find it out by diffing two files, one 
with and one without the special flag.

As a second step, redefine latex macro SetFigFont in the preamble:
either
\gdef\SetFigFont#1#2#3#4#5{\relax}
or 
\gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
depending on the xfig version. Check one of your .pdftex_t file which version 
is used in it.

Then, all texts will be typeset by the active font in latex.

Hope this helps,
Vasek



Re: keyboard question

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

I am quite sure that "combo-key ´ c" is inserted by LyX as unicode char ć
(cacute), at least it is here. Also my text editor inserts this key combo
as one character.

(A combining char is inserted *behind* the accented char and
recognizable e.g. when moving with cursor keys or deleting a word
char by char. Try e.g. with "M-x accent cedilla a": you will see
an a with cedilla but this is composed of two characters: a and
combining-char-cedilla.)

...

> > 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"
...
> It did not work.
Nor does it work here.

Dear LyX gurus: why does LyX ignore:

  \bind "cacute"  "unicode-insert 0x00e7"

while e.g. 

  \bind "M-C-comma" "unicode-insert 0x00e7"  # insert a ç (c with cedilla)

works?


> > Alternatives that work here are 
> > 
> >   2. \bind "Meta ,"   "accent-cedilla"

> I assume \bind "M-,"? --tried them both 
...
Well, it is 

  \bind "M-comma"  "accent-cedilla"

> I think all this is becoming unreasonably complicated. I wonder if I had
> not better wait for LyX 1.6. Possibly the shortcut editor will help me
> fix this...

>From my first impression, no.
It does not support remapping of characters to insert.


Günter

PS:

> Then I noticed that this file eventually calls latinkeys.bind. So I
> tried to edit it directly, replacing the suggested line with ...

You can override a keybinding if you give a new definition after the 
input of a "standard" file. (Only exception are Shift-independent
bindings with ~S where the first definition "wins" over other ~S
definitions but is overwritten by either S or non-shifted defs.)

> (It's the modified sciword.bind file that I use; it contains the same
> shortcuts as in my former SciWord.)

I recommend loading the default sciword.bind in the custom bind file,
e.g.

# Before defining your own bindings, select one of the available default
# binding sets. These are resource files (like this one) that define a
# large set of (keyboard) bindings. These files live in the /bind directory of
# the LyX system directory and have the .bind suffix.
#
# The \bind_file command looks in the LyX bind directory for a file
# of the given name, so a full path should not be given.
#
# Currently, you can choose from the following flavors::

\bind_file cua.bind #   KDE-, Windows-, Mac- and Motif-like bindings
#\bind_file emacs.bind  #   for Emacs-like bindings.
#   ...

# we also would like to incorporate some additional menu shortcuts

# \bind_file menus.bind # English menu shortcut additions
\bind_file de_menus.bind# German version 



Re: Xfig and LyX

2008-06-26 Thread Wolfgang Engelmann
Am Donnerstag, 26. Juni 2008 07:28 schrieb Vaclav Smidl:
> Hi Wolfgang,
> I also prefer having the fontsize in figures equal to that of the
> surrounding text.
>
> > > 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?
>
> To do that, you really need the "special" flag switched on for strings in
> xfig. If you did not do it in your xfig files, you can change it quite
> efficiently using "update" functionality in xfig gui, or by a script on raw
> xfig file format. All strings are terminated by \001 so it is easy to
> detect them and the special flag is just one of the numbers in front of the
> text. Do not remember which one, you can easily find it out by diffing two
> files, one with and one without the special flag.
>
> As a second step, redefine latex macro SetFigFont in the preamble:
> either
> \gdef\SetFigFont#1#2#3#4#5{\relax}
> or
> \gdef\SetFigFontNFSS#1#2#3#4#5{\relax}
> depending on the xfig version. Check one of your .pdftex_t file which
> version is used in it.
>
> Then, all texts will be typeset by the active font in latex.
>
> Hope this helps,
> Vasek

Vasek, this is a very valuable information and I am thankful.
Wolfgang


Re: keyboard question

2008-06-26 Thread Daniel Clément
At least something that works!

On Tuesday 26 June 2008 à 09:36 +0200, G. Milde wrote:

[...]
> 
> Dear LyX gurus: why does LyX ignore:
> 
>   \bind "cacute"  "unicode-insert 0x00e7"
> 
> while e.g. 
> 
>   \bind "M-C-comma" "unicode-insert 0x00e7"  # insert a ç (c with cedilla)
> 
> works?

YES it does! Thanks!

[...]

> You can override a keybinding if you give a new definition after the 
> input of a "standard" file. (Only exception are Shift-independent
> bindings with ~S where the first definition "wins" over other ~S
> definitions but is overwritten by either S or non-shifted defs.)

Interesting, but that does not account for my previous failed attempts.

> > (It's the modified sciword.bind file that I use; it contains the same
> > shortcuts as in my former SciWord.)
> 
> I recommend loading the default sciword.bind in the custom bind file,

I could have done this, but I had to actually modify some definitions in
sciword.bind. (It appears to match a rather old version o SciWord...)

I have more or less concluded that: once a key is "dead" in the keyboard
setup (in the OS I mean), it cannot be used effectively in a \bind
sequence.

IMHO the kmap file would have been the most appropriate place to deal
with this, but I was unable to get it working.

However, I'm quite pleased with the workaround that you gave me. Thanks
again.

-- 

Daniel Clément



How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Christopher Reeve
Hi,

I am using LyX 1.5.5 on a Mac OS 10.4

I need to write an equation with two leading exponents. E.g:

{_{10}^{1000}X}

This equation would look (roughly) like:

1000
10  X

But I need the numbers to fit snug against the X, e.g.

1000
  10X

Other people writing plain LaTeX do this. Any ideas?

Cheers,

Chris.


gnumeric and lyx

2008-06-26 Thread assasukasse

Hello everyone
i have to import a matrix made with gnumeric into lyx.
I saved the file as a .tex file in gnumeric, and added as a child 
document in lyx

but it doesn't compile giving me a bunch of errors..
what is the correct way to do?
Thanks
Assa


Re:gnumeric and lyx

2008-06-26 Thread Christopher Reeve
What if you import your .tex file into LyX by going File>Import>LaTeX (plain)

Then copy and paste the bits you need into your main LyX document.

Does that work? If not you might have to modify your .tex file
slightly to a format that LyX supports, or include a missing package.
What are the errors?

Chris.


Blank Line Before \begin{itemize} in Geneterated LaTeX

2008-06-26 Thread Etienne M. Gagnon

Hi LyX gurus,

I've been playing with LyX lately. It has much improved since the last 
time I looked at it, 6 years ago. It really looks as a nice alternative 
to writing painful plain LaTeX by hand.


I can't figure out if I missed some workaround in the documentation or 
if it is an "undocumented feature" (i.e. a bug). When I write using LyX 
1.5.5 on OSX 10.15.3:


Some text followed by an itemized list:

   * Some item.
   * Another item.

Then some text that follows.

LyX generates the following LaTeX code:

Some text followed by an itemized list:

\begin{itemize}
\item Some item.
\item Another item.
\end{itemize}
Then some text that follows.

Why does LyX generate a blank line between "list:" and 
"\begin{itemize}"? I have not been able to prevent LyX from doing so. To 
get the itemized list to be considered as part of the preceding 
paragraph, I only figured out the following ugly workarounds:


  1. don't use LyX lists at all; instead, write all of
 "\[begin|item|end]" commands as embedded TeX (ERT), or
  2. use the verbatim package to add multi-line comments using ERT:
 "... list:[[ \begin{comment}]]
 * [[\end{comment} \begin{itemize} \item]] Some item.
 * Another Item.
 Then..."

Of course, neither is satisfactory. This is quite annoying, as lists are 
rather common in my texts. Have I missed something? How hard would it be 
for me to change whatever template LyX uses to generate the list header 
(I know programming, but I am not a LyX/TeX/LaTeX expert)?


Etienne
P.S. Note that LyX seems quite inconsistent in putting a blank line 
before the item list, but not after. As it is quite easy to add a blank 
line using ERT, maybe LyX shouldn't add a blank line by default?


--
Etienne M. Gagnon, Ph.D.
SableCC:http://sablecc.org
SableVM:http://sablevm.org



signature.asc
Description: OpenPGP digital signature


Re: How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Paul A. Rubin

Christopher Reeve wrote:

Hi,

I am using LyX 1.5.5 on a Mac OS 10.4

I need to write an equation with two leading exponents. E.g:

{_{10}^{1000}X}

This equation would look (roughly) like:

1000
10  X

But I need the numbers to fit snug against the X, e.g.

1000
  10X

Other people writing plain LaTeX do this. Any ideas?

Cheers,

Chris.



_{\phantom{00}10}^{1000}X

/Paul



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Ralf77



rgheck wrote:
> 
> vu wrote:
>>
>> rgheck wrote:
>>   
>>> Export the document to LaTeX and try compiling it manually. Report the 
>>> error messages. It sounds to me as if either LyX or LaTeX isn't finding 
>>> the .bib file, and there are various reasons this can happen.
> 

Hi,

I have a similar problem.
Some of my References from Jabref 2.3.1 are shown in the list of references
in lyx 1.5.5 but SOME ARE NOT.

e.g. this entry is shown:
@TECHREPORT{URI-standard,
 author = {{Tim Berners-Lee}},
 title = {{Uniform Resource Identifier (URI): Generic Syntax}},
 institution = {W3C / MIT / The Internet Society},
 year = {2005},
 type = {RFC},
 number = {3986},
 owner = {rwe},
 timestamp = {2008.06.26},
 url = {http://tools.ietf.org/html/rfc3986}
}

while this one is not:
@MISC{Thatte2001,
 author = {{Thatte}},
 title = {{XLANG – Web Services for Business Process Design}},
 howpublished = {Online},
 year = {2001},
 institution = {Microsoft Corporation},
 owner = {rwe},
 timestamp = {2008.06.24},
 url = {http://www.gotdotnet.com/team/xml_wsspecs/xlang-c/default.htm}
}

Can someone help?

Cheers,
Ralf
-- 
View this message in context: 
http://www.nabble.com/Lyx-1.5.3-not-showing-references-from-Jabref-2.3.1-tp17510841p18136144.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Nicolás

If I create a .bib file with those two references and use it in LyX, I can see 
both references. Don't know where is the problem.
I use JabRef 2.3.1 to create my .bib file and have not experienced any problem 
so far.

Ralf77 wrote:



rgheck wrote:

vu wrote:

rgheck wrote:
  
Export the document to LaTeX and try compiling it manually. Report the 
error messages. It sounds to me as if either LyX or LaTeX isn't finding 
the .bib file, and there are various reasons this can happen.


Hi,

I have a similar problem.
Some of my References from Jabref 2.3.1 are shown in the list of references
in lyx 1.5.5 but SOME ARE NOT.

e.g. this entry is shown:
@TECHREPORT{URI-standard,
 author = {{Tim Berners-Lee}},
 title = {{Uniform Resource Identifier (URI): Generic Syntax}},
 institution = {W3C / MIT / The Internet Society},
 year = {2005},
 type = {RFC},
 number = {3986},
 owner = {rwe},
 timestamp = {2008.06.26},
 url = {http://tools.ietf.org/html/rfc3986}
}

while this one is not:
@MISC{Thatte2001,
 author = {{Thatte}},
 title = {{XLANG – Web Services for Business Process Design}},
 howpublished = {Online},
 year = {2001},
 institution = {Microsoft Corporation},
 owner = {rwe},
 timestamp = {2008.06.24},
 url = {http://www.gotdotnet.com/team/xml_wsspecs/xlang-c/default.htm}
}

Can someone help?

Cheers,
Ralf




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

2008-06-26 Thread Olivier Ripoll

Hi,

I tried your eps files in LyX 1.6 beta3 under windows XP. I use Adobe 
reader 8 for pdf (generated by pdflatex IIRC) and gsview 4.9 / 
ghostscript 8.62 for postscript viewing.
It does work better for me that for you it seems (you may suffer from an 
outdated/buggy imagemagick). I tried the images without checking the 
option to clip to the bounding box, and with it (ion that case, also 
with clicking on the button to get the size from the file).


Tom Schlangen wrote:

Okay, I have prepared some files to illustrate the problem, so other have a 
chance to verify.
Output from bbget, using esp-gs v7.70.x: 
http://www.ines.mynetcologne.de/dummy_bbget_espgs770.eps (64k) (works!)


displays fine in LyX with or without the clipping options
pdf/ps/dvi output is fine


Output from bbget, using gs v8.62:
http://www.ines.mynetcologne.de/dummy_bbget_gs862.eps (64k) (doesn´t work)


gsview 4.9 cannot even open this file... it reports errors.
displays wrong in LyX with and without the clipping options. LyX cannot 
actually read the bounding box at all.
does not display in pdf (blank pages), result in errors in gsview and 
dvi viewer.



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)

displays wrong (full page) in LyX with or without the clipping options
pdf/ps/dvi is fine though


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)
displays wrong (full page) in LyX without the clipping options and fine 
with it.

ps/dvi are correct
pdf is correct without the clipping option, but the figure is missing 
when using the clipping option (yep... it works without and _not_ with).


Now, I do not really understand why you need such a complex workflow. 
Why do you need to go in Linux ?

I did the following in Windows (one line, mail agent may wrap it):

gswin32c -dBATCH -dNOPAUSE -dEPSCrop -sDEVICE=epswrite 
-sOutputFile=dummy2.eps dummy.eps


(You need to have gs in your path)

The resulting image displays fine in LyX with or without the clipping 
options, and ps/pdf/dvi is fine also.


So my conclusion is : don't care about what LyX displays, care about the 
final result, and most encapsulated postscripts (eps) are fine there.

And also, use ghostscript 8.62 on windows.


Regards,

Tom Schlangen


Regards,

Olivier

PS: personally, I use pdf instead of eps: it takes less disc space, you 
can edit easily with inkscape, everyone can view them, and last but not 
least, it is the base format for pdf(La)TeX which is nicer (pdf bookmarks).




Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Ralf77


Nicolás wrote:
> 
> If I create a .bib file with those two references and use it in LyX, I can
> see both references. Don't know where is the problem.
> I use JabRef 2.3.1 to create my .bib file and have not experienced any
> problem so far.
> 
> 

That´s strange.

I could post by complete .bib file if you wanna try it out.
Can I file a bug report in this list as well?
-- 
View this message in context: 
http://www.nabble.com/Lyx-1.5.3-not-showing-references-from-Jabref-2.3.1-tp17510841p18137096.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: gnumeric and lyx

2008-06-26 Thread assasukasse

Christopher Reeve ha scritto:

What if you import your .tex file into LyX by going File>Import>LaTeX (plain)

Then copy and paste the bits you need into your main LyX document.

Does that work? If not you might have to modify your .tex file
slightly to a format that LyX supports, or include a missing package.
What are the errors?

Chris.

  

Hello
unfortunately it doesn't work ..
i just get a bunch of errors when i try to compile it (also it doesn't 
look correct having a lot of \gnumeric here and there)

now
if i have a matrix in text format
is there a way to import it in lyx w/o having to manually type each cell?
Thanks

assa


Re: How to I right-justify exponents? {_{10}^{100}X}

2008-06-26 Thread Christopher Reeve
Sneaky! I eventually found adding a number of spaces worked but your
way is much better. Cheers.
C


problem with tracked changes and citations

2008-06-26 Thread Pete Phillips

There is a problem with lyx when you are using change tracking and you
have citations that you delete.  lyx itself is OK in that it shows the
deleted citation reference struck through, but if you try to print or 
create a pdf, you get an error message as follows:

" \cite{B50}}, [some other body text appended]

 I've run across a `}' that doesn't seem to match anything.
 For example, `\def\a#1{...}' and `\a}' would produce
 this error. If you simply proceed now, the `\par' that
 I've just inserted will cause me to report a runaway
 argument that might be the root of the problem. But if
 your `}' was spurious, just type `2' and it will go away."

If I just Accept that deletion with the change tracking, everything
works ok. 

Anyone else had this problem ?

Running lyx.1.5.3 under hardy Heron.

I have screen captures of the issue if anyone is interested :-)

Pete



Re: gnumeric and lyx

2008-06-26 Thread Christopher Reeve
Yes you can. I even tested it with gnumeric and it worked. See this post.

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg65207.html

Chris.


Re: Blank Line Before \begin{itemize} in Geneterated LaTeX

2008-06-26 Thread Christopher Reeve
Sorry I can't help you, although personally I think the spacing looks
just right. Maybe with your line spacing settings it looks funny? I
agree thought that LyX does not seem to be very flexible here.

I just wanted to add to your comments the following.

When you start a "display formula", if you hit return before doing so
it adds an extra space. If you start the equation but don't hit return
before no space is added.

The problem is that in LyX you can't see the difference, so you only
notice the large gap when you compile the document.

Bit annoying right?

Chris.


Re: Xfig and LyX

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

>  with  external template way  you mean the way I and Rich use, i.e. export
>  fig
> to eps and insert in Lyx?

No. I mean what Abdel uses: Insert->File->External Material and then choose
the xfig template. In the file dialog you specify the .fig file. If you
want to edit the .fig file from within LyX press cklick on the file and
then press the edit button in the dialog that opens.

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

No, the -specialtext switch is only the default for new textboxes. Therefore
it is useful, but it does not change existing ones. How the text is output
to LaTeX depends on the flags that are stored in the .fig file, not on
the -specialtext switch.

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

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script). No ned to look at pstex_t. Then you include
all .fig files as external material, and maybe set the preamble command
mentioned by Vasek.

> textbox is pstex_t?

No, a textbox is what you get when you press the big T in xfig and where you
enter your text.

> How does xfig find out the size and font I used in the document, or does
> it make latex take it over?

It does not find it out. It puts the text in a file that is processed by
LaTeX.


Georg



Re: Lyx 1.5.3 not showing references from Jabref 2.3.1

2008-06-26 Thread Paul A. Rubin

Ralf77 wrote:


Nicolás wrote:

If I create a .bib file with those two references and use it in LyX, I can
see both references. Don't know where is the problem.
I use JabRef 2.3.1 to create my .bib file and have not experienced any
problem so far.




That´s strange.

I could post by complete .bib file if you wanna try it out.
Can I file a bug report in this list as well?


Post the .bib file first.  In particular, run iconv against it to make 
sure you didn't accidentally get an unsupported character in the file. 
Also, does the LaTeX log show any error messages relating to the missing 
references?  If you export a .tex file and run latex-bibtex-latex-latex 
against it, are the refs still missing?


/Paul



Re: Xfig and LyX

2008-06-26 Thread curtis osterhoudt


/* original message below **/

- Original Message 
From: Georg Baum <[EMAIL PROTECTED]>
To: lyx-users@lists.lyx.org
Sent: Thursday, June 26, 2008 11:55:17 AM
Subject: Re: Xfig and LyX



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

If they miss the flag, then you simply need to set the flag in the .fig file
(manually or with a script).




Georg
/* original message above **/


Does anyone know of such a script to set the "special" flag post-facto? I 
have a Mathematica program I've been using to do it, but if someone has a quick 
perl file or bash script (or something analogous on Windows), that would be 
very helpful. 

  Thanks!
   Curtis O.



  

Compatibility problems

2008-06-26 Thread Jackson Ocampo
Hi Lyx People.

I have a several problems with lyx.

I was user for Lyx 1.3.3-win32 and iI wrote many important documents on it,
sudenly, the programs began to auto-type some quotations in all the text
that I open.
For that reason I had to change my version for the new 1.5.4 for windows.
Everithing was good... except for one thing... I CAN'T open or import my old
documents. I tried to export my old documents to *.tex in the Lyx
1.3.3-win23, and import in the new version, but lyx 1.5.4 can't do
anything

I Need Help
My actal version of Lyx is 1.5.4 for windows, and I have Windows Vista

Thanks for help
-- 
Att.
Jackson Ocampo


Re: keyboard question

2008-06-26 Thread Hellmut Weber

Hi Daniel,


I fear your solution is too general for my case: wouldn't it interfere
with my keyboard settings in other programs?
I wouldn't think so. You don't have to use this 'feature' in other 
contexts.

If you heavily use the caps lock key then the situation is different.
But in that case you can redefine any other key to become the compose key.

Under Linux there is a nice little program 'xev' which gives you the key 
code for all keys.




I point out that I am perfectly satisfied with my "US int'l" setup in
almost every software, command line included. Since LyX is the only
major program I'm having this (however little) trouble with, I was in
search of a LyX-specific solution.

You could try to define your personal bind file in '$HOME/.lyx/bind/...'
You'll find info on global and local bind files somewhere in the (more 
advanced ;-) LyX documentation.
I don't remeber exactly where, it's several years  tackled with these 
problems.


HTH

Hellmut

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



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

2008-06-26 Thread Nigel Pegram
The debug output doesn't mean much to me, but I've often found it
informative to start programs from a terminal and look at the output
there when having problems with X programs.

HTH
Nigel

On 25/06/2008, John Coppens <[EMAIL PROTECTED]> wrote:
> 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...
>


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

2008-06-26 Thread John Coppens
On Thu, 26 Jun 2008 23:38:56 +
"Nigel Pegram" <[EMAIL PROTECTED]> wrote:

> The debug output doesn't mean much to me, but I've often found it
> informative to start programs from a terminal and look at the output
> there when having problems with X programs.
> 
> HTH
> Nigel
> 
> On 25/06/2008, John Coppens <[EMAIL PROTECTED]> wrote:
> > 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:

Hi Nigel.

This is the output of starting LyX from a terminal - it does look
somewhat different:

Locking assertion failure.  Backtrace:
#0 /usr/X11/lib/libxcb-xlib.so.0 [0xb6d8c740]
#1 /usr/X11/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x2d) [0xb6d8c86d]
#2 /usr/X11/lib/libX11.so.6 [0xb6f63cc2]
#3 /usr/X11/lib/libXfixes.so.3(XFixesQueryVersion+0x86) [0xb75b25a6]
#4 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_Z7qt_initP19QApplicationPrivateiP9_XDisplaymm+0x1dda) [0xb780b77a]
#5 /usr/lib/qt-4.3.3/lib/libQtGui.so.4
#(_ZN19QApplicationPrivate9constructEP9_XDisplaymm+0x4f) [0xb77afe2f]
#6 /usr/lib/qt-4.3.3/lib/libQtGui.so.4(_ZN12QApplicationC2ERiPPci+0x64)
#[0xb77b0be4] 7 lyx [0x8420982] 8 lyx [0x84216f5] 9 lyx [0x818964c]
#10 lyx(_ZNK17QAbstractItemView14sizeHintForRowEi+0x411) [0x8067919]
#11 /lib/libc.so.6(__libc_start_main+0xe0) [0xb6dc8390]
#12 lyx(_ZN18QStandardItemModel13insertColumnsEiiRK11QModelIndex+0x99)
#[0x8067801]
lyx: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted


John