Re: What are your experiences (including figures)?

2007-12-13 Thread Helge Hafting

bigblop wrote:


Jürgen Spitzmüller wrote:
  

bigblop wrote:


I always convert to .pdf and don't like to see the image in the LyX
editor,
only in the created pdf. But are there other advantages that I don't get?
  

LyX watches if the image is externally modified.

Jürgen





Ok it also seems that its not possible to refer to labelled figures in plain
tex. Is it correct that I need to insert figures with lyx and label to refer
to them later?
  

You don't really need a lyx figure, but you need a lyx label
in order to have the label show up in the cross reference dialog.

If you want to use ERT figures, just write everything up to the
label in ERT. Then, move out of ERT and insert a lyx label.
Finally, another ERT with the rest of the code for your figure.
Example:

ERT_START\begin{figure}[tbh]\caption{mycaptionERT_ENDlyxlabelERT_START}\end{figure}ERT_END

Braces and environments are not balanced within each ERT,
but they are balanced as a whole. Make sure you don't
get a paragraph break between them, i.e. don't press enter.


Finally, you can reference a tex label from the cross reference
dialog, at least in 1.6. But it won't show up in the list, you'll have to
type the label text yourself.

Helge Hafting






Re: Spell check on the fly?

2007-12-13 Thread Helge Hafting

bigblop wrote:

Is there any chance that LyX in the future will support spell check on fly,
where each misspelled word is underlined with a red line in the editor if
its incorrectly spelled?
  

If someone can be bothered to do it.
I hope it will be less intrusive than a _red_ line though,
seeing red lines under every abbreviation, name, and other
word not in the wordlist is annoying.

Helge Hafting


Re: Lyx en español

2007-12-13 Thread Nicolás

Hi!

I would say that the de facto language (if not the official one) of the list is English. So if you can speak English, I would advise 
you to use it. But if you can not speak English, you may ask in Spanish, add an automatic translation, and kindly ask someone to help 
you correct the translation if not clear. I am pretty sure you will find some Spanish-speaking person willing to help you (maybe myself 
:-) ).


And now in Spanish, in case you do not understand English:

Hola!

Me atrevería a decir que el idioma de hecho (si no el oficial) de la lista es el inglés, así que te recomendaría preguntar en inglés si 
es que puedes. Si no hablas inglés, pregunta en español, añade una traducción automática y pide por favor a yuda a alguna persona de 
habla hispana para que te ayude a corregir la traducción, en caso de que ésta no sea del todo correcta. Estoy seguro de que encontrarás 
a alguien, quizás yo mismo :-), dispuesto a ayudarte.


Nicolás


Todd Denniston wrote:

Jorge Mario wrote, On 12/12/2007 10:32 AM:

Hola compañeros


Comapñeros de habal hispana. podemos preguntar en español?

atte Ken


from http://www.google.com/language_tools?hl=en
we get
Automatically translated text:
Comapñeros of habal Hispanic. We ask in Spanish?




 From an email thread a few months ago[1], I would suspect you can, but 
it might be better to ask in both Spanish, and _attempt_ to put an 
english translation in the email too, in case those who can answer your 
question don't read Spanish.


[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg58916.html

passed through:
http://translate.google.com/translate_t?langpair=en|es
Texto traducido de forma automática:
Desde un subproceso de correo electrónico hace unos meses [1], yo 
sospecho que puede, pero tal vez sería mejor preguntar en español, y el 
intento de poner Inglés traducción en el mensaje de correo electrónico 
también, en caso de los que pueden hacer responder a su pregunta No 
saben leer español.






Re: Spell check on the fly?

2007-12-13 Thread Hellmut Weber

Hi list,
I fully support Manveru's reasoning.

When writing in my native language german I don't want to be disturbed 
at all by these red underlinings. And I#m well aware that in my 
documents there are ALWAYS lot of typos.


So Ihave to give it a critical look when I have finished writing.
In mot cases this turns out to be helpful anyway ;-)

And most documents I (have to) read show that the author has not had 
sufficient self discipline to give his work a second look.
IMHO this is one of the negative effects of the crazy conditions many 
poeple have to work under nowadays.



When I write a document in an other language I don't care about typos 
while writing (even if I notice one myself). Clearly I need the self 
discipline of a small investment in the quality of my documents.


Be sure no high quality document can be produced just hacking in the 
text, correcting typos on the fly .. and that's it.

For me LyX/LaTeX is a great tools to produce high quality documents

Best regards

Hellmut


Manveru schrieb:

For most writers such feature is more a bug that a helpful feature. Those
annoying red underlines may break your way of thinking during writing, the
same is about autocorrection. These Word feature is for people, who do not
want to click spell check my doc every time they finish writing - there
are plenty of writers who still use typewriters - they do not like to be
corrected on-line.

If such feature ever be created for LyX it should be disabled by default
IMVHO.

Regards,
M.

2007/12/11, Abdelrazak Younes [EMAIL PROTECTED]:

bigblop wrote:

Is there any chance that LyX in the future will support spell check on

fly,

where each misspelled word is underlined with a red line in the editor

if

its incorrectly spelled?

When/if someone feels like implementing this, there might be a chance
yes. But nobody ever felt this way up to now :-)

Abdel.







--
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: Spell check on the fly?

2007-12-13 Thread Ethan Metsger
On Thu, 13 Dec 2007 05:06:23 -0500, Hellmut Weber [EMAIL PROTECTED]  
wrote:


Be sure no high quality document can be produced just hacking in the  
text, correcting typos on the fly .. and that's it.


This is absolutely correct.  Good writers are not necessarily grammatical  
writers or good spellers; but they're all adept at turning off the  
internal critic.  Spell-check on the fly is simply an extension of the  
internal critic.


IMHO,

Ethan


Shortcuts for environments?

2007-12-13 Thread Neal Becker
Are there keyboard shortcuts to select an environment?  I do a lot of beamer
presentations, could use one for 'begin frame' and 'itemize'.



Re: Shortcuts for environments?

2007-12-13 Thread G. Milde
On 13.12.07, Neal Becker wrote:
 Are there keyboard shortcuts to select an environment?  

yes. and they are even shown for a short while in the status bar at the very
bottom of LyX when you select a layout style from the list.

 I do a lot of beamer
 presentations, could use one for 'begin frame' and 'itemize'.

I am not sure for 'begin frame', but itemize is pretty standard.

you can define your own shortcuts in a bind file like in the example below.


Günter



# ##
# gm.bind:  private keybindings file
# ##

# To customize the bindings, you can write your own bind-file (or use
# this template) and load the default bindings from here.
# In the GUI, set the bindings to your privat bind-file. LyX will search for
# private keybinding files in the directory ~/.lyx/bind/

# Inputs
# ==

# 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 

# Customization
# =

# Based on the default, you can now change part or all of it with the
# \bind command.

# Bugfix
# --

# word-delete-forward deletes also non-word space behind the word!
# \bind C-Delete  word-delete-forward
\bind C-Deletecommand-sequence word-capitalize; delete-forward

# ...

## New Layout Styles for Seminar
#
# Adapted for de_menus.bind. Users of English menus might want to bind
# M-p instead of M-a 
\bind M-a f   layout LandscapeSlide
\bind M-a S-F layout PortraitSlide
\bind M-a h   layout SlideHeading
\bind M-a S-H layout SlideSubHeading



Re: Lyx en español

2007-12-13 Thread Marcelo Acuña
 I would say that the de facto language (if not the
 official one) of the list is English. So if you can
 speak English, I would advise 
 you to use it. But if you can not speak English, you
 may ask in Spanish, add an automatic translation,
 and kindly ask someone to help 
 you correct the translation if not clear. I am
 pretty sure you will find some Spanish-speaking
 person willing to help you (maybe myself 
 :-) ).

 Para mí, escribir y leer en Inglés es un esfuerzo
enorme y me sería muy útil tener una lista de Lyx en
castellano, pero mientras no tengamos suficientes
usuarios avanzados que hablen español creo que podemos
llevar a cabo esta propuesta de consultas en dos
idiomas.
 Saludos
Marcelo



  Yahoo! Encuentros.

Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros 
http://yahoo.cupidovirtual.com/servlet/NewRegistration


GUI configuration

2007-12-13 Thread G. Milde
Dear LyX users,

is there support for a modular definition of the user interface similar to

  Input SOME_FILE

in *.layout files or

  \bind_file SOME_FILE

in *.bind keybinding definitions?

I would like to customize the menus on some places¹ but keep them up-to date
with new a LyX version's defaults.


Also, I would like to change some defaults of the button texts.  e.g. 
[- ...] instead of the very long [Querverweis: ].


Guenter


¹ e.g. why is the outline bar activated under DokumentGliederung but
  the source view under AnsichtQuelle ansehen?


Re: [patch] implement \slash and \nobreakdash

2007-12-13 Thread Hellmut Weber

Hi Pavel,


doxygen is a program for making documentation from particular comments in the
source code. you don't need any specific experience, just looking into the 
few already documented lfuns will give you an idea how to proceed.

Got the idea


trunk is not a program, but the name for the current branch in development,
currently 1.6.




i just meant, that it may be better to document it in an incremental way,
say 10 lfuns or so, these put into trunk and then again...

Reasonable, should be done in this way


Did you define a structure (in doxygen?) for this documentation?


yes, you can find it in file src/lfuns.h (for quick view look on
http://www.lyx.org/trac/browser/lyx-devel/trunk/src/lfuns.h )

Made a copy on my machine



for the work you will need local copy of lyx source tree -
it maybe helpful if you read http://www.lyx.org/devel/cvs.php .

Did svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel



are running on windows, linux or mac ?

gentoo linux, kde-3.5.7, lyx-1.5.0

Thanks + regards

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: Shortcuts for environments?

2007-12-13 Thread Paul A. Rubin

Neal Becker wrote:

Are there keyboard shortcuts to select an environment?  I do a lot of beamer
presentations, could use one for 'begin frame' and 'itemize'.



As Günter points out, you can add shortcuts in the bindings file.  Since 
beamer has quite a few environments that are unique to beamer, it might 
be worth creating a separate bind file and switching to it when you're 
doing a beamer presentation.


I also use beamer quite a bit, but I don't have the memory capacity for 
any more shortcuts.  :-)  So what I do is M-p followed by the space bar 
to open the environment drop-down list, then type the first letter or 
two of the environment name I want.  If you type the first letter 
repeatedly (with minor pauses), you will cycle through all environments 
beginning with that letter.  It's a bit more typing than a shortcut 
would be, but easier on my overloaded internal RAM.


/Paul



Re: Bug? LyX crashes when opening Embed. Objects manual

2007-12-13 Thread David Hewitt



 
 Confirmed here : it crashes ...
 
 Windows XP pro with LyX 1.5.2 (french version)
 
 Cannot reproduce, neither with LyX 1.5.2 nor with 1.5.3svn.
 What are the exact steps to reproduce the crash?
 
 regards Uwe
 
 

Open LyX.

Go to Help - User's Guide. Click on the TOC widget to open the outline.

Go to Help - EO... death becomes it when trying to open Dummy Document 1
(according to the buffer).

Happens every time for me.

-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/Bug--LyX-%22crashes%22-when-opening-Embed.-Objects-manual-tp14277313p14319913.html
Sent from the LyX - Users mailing list archive at Nabble.com.



lyx cannot display Greek symbol real time

2007-12-13 Thread Zhi Huang
Hi,

I have just installed LyX through Cygwin on my Windows XP system. When in
math mode, I can type \frac and then press SPACE I will get the fraction
symbol. Also it works for the \sqrt symbol. However, all the Greek letters
are not displayed. For example, when I type in \alpha, it just returns
alpha in the box, not the symbol. I can only see the symbol after I export
my document to the pdf format.

On the other hand, for the LyX under the Suse10.2 system on my work
computer, all Greek terms appear immediately after I type in the
corresponding latex code.

Is this just a problem for the Windows version (through cygwin) ?

Thanks a lot for your help,

Zhi



btw: I also installed texmacs through cygwin on my XP system. texamcs is
able to accept latex input in its math mode, and display the equations
immediately. However, as texmacs is not a latex frontend, it only
simulates the latex functionality, and the equations it gives are not good
as real latex ones...


Re: a bit more Re: Problem with segmentation fault on some versions of Solaris 10

2007-12-13 Thread Enrico Forestieri
Dave Price writes:

 Are there any obvious checks I can make first?

Your problem might be related to the fontconfig version. On Solaris 10
you can check that by issuing the following command:

egrep MAJOR|MINOR|REVISION /usr/include/fontconfig/fontconfig.h

See whether the version is different on machines where it crashes
wrt the ones where it doesn't crash.

-- 
Enrico



Re: want to add new format options to cross-reference

2007-12-13 Thread nooj

Uwe Stöhr schrieb:

1) You need to document the no-so-unusual behavior of reference on
 page
  page
 to output only reference.
 
 What do you mean?  
 Note that the style page won't print the page number if the label is on
 the previous, the same, 
 or the next page. You will e.g.see the text ``on this page'' instead.

This is exactly what I'm talking about when I say the documentation is bad. 
First of all, you say 
page won't print the page number, but that's not true.  page always
prints the page number 
and only the page number.  It's the page part of reference on page
page which doesn't 
always print the page number!  

Your note in the documentation is misleading also because it's in the wrong
place.  That line comes 
after all of the format types are described, so it appears to apply to all
the formats.  But, as we have 
seen, it only applies to one of them.  Move it to the one that it refers to.  

And finally, don't use the word style.  That's a technical LaTeX term. 
Use format, since that's what
LyX calls them in the cross-reference dialog box.  


 [prettyref] is not described by design, because then I had to use
 prettyref for the docs. But this 
 package is since a whuile obsolete and no longer part of all
 LaTeX-distribuions. So when I use it in 
 the docs, people can't process the docs anymore. So you have to find out
 by your own how this ref 
 format behaves, in case you have prettyref installed.

No way.  If prettyref is no longer maintained, then it won't be changing
much, so you should document
the thing.  And I bet that you could find a way to describe its behavior
without actually requiring the 
package.  And I'm still confused as to why you include a feature in the gui
that you won't support fully.
The file is short.  Include it in LyX.  How hard is that?  

-- 
View this message in context: 
http://www.nabble.com/want-to-add-new-format-options-to-cross-reference-tp14215830p14325616.html
Sent from the LyX - Users mailing list archive at Nabble.com.



LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Zhi Huang
Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns alpha in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences-Graphics-Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
instant-preview, it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
instant preview, seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi


Re: Bug? LyX crashes when opening Embed. Objects manual

2007-12-13 Thread Uwe Stöhr

David Hewitt schrieb:


Go to Help - EO... death becomes it when trying to open Dummy Document 1
(according to the buffer).


This will be fixed with the next Version LyX 1.5.3 that will be released next 
week.

regards Uwe


LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Zhi Huang
//sorry if you received this email multiple times. I am just subscribed to
this mailing list and I didn't know whether previous email has been sent
successfully.


Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns alpha in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences-Graphics-Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
instant-preview, it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
instant preview, seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi


Re: lyx cannot display Greek symbol real time

2007-12-13 Thread Enrico Forestieri
Zhi Huang writes:

 Hi,
 
 I have just installed LyX through Cygwin on my Windows XP system. When in
 math mode, I can type \frac and then press SPACE I will get the fraction
 symbol. Also it works for the \sqrt symbol. However, all the Greek letters
 are not displayed. For example, when I type in \alpha, it just returns
 alpha in the box, not the symbol. I can only see the symbol after I export
 my document to the pdf format.

Using a cygwin text editor (vim is ok, notepad is *not* ok) create the
file /etc/fonts/local.conf with the following 5 lines:

?xml version=1.0?
!DOCTYPE fontconfig SYSTEM fonts.dtd
fontconfig
dir/usr/share/lyx/fonts/dir
/fontconfig

save the file and then issue the following command:

fc-cache /usr/share/lyx/fonts

Now you should get the greek letters in LyX.


Bo, seems that recent versions of fontconfig for cygwin do not come
with a default local.conf file, so the postinstall script is not able
to register the fonts needed by LyX. You should upload a new version
of LyX (btw, I see that 1.4.4 is still the current available version)
with a corrected postinstall script that checks for the existence of
/etc/fonts/local.conf and provides a minimal version in case it doesn't
exist. The script should do something along the lines of:

# In case /etc/fonts/local.conf is missing, provide a minimal one.
if [ -f /etc/fonts/local.conf ]; then
the old code goes here
else
echo '?xml version=1.0?'  /etc/fonts/local.conf
echo '!DOCTYPE fontconfig SYSTEM fonts.dtd'  /etc/fonts/local.conf
echo 'fontconfig'  /etc/fonts/local.conf
echo 'dir/usr/share/lyx/fonts/dir'  /etc/fonts/local.conf
echo '/fontconfig'  /etc/fonts/local.conf
fi
fc-cache /usr/share/lyx/fonts

-- 
Enrico



Re: LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Paul A. Rubin

Zhi Huang wrote:

Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns alpha in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences-Graphics-Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
instant-preview, it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
instant preview, seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi



Use the link ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.1.zip to 
download the BaKoMa fonts.  Unpack the zip archive to a temporary 
directory somewhere.  Now run the Windows font applet from the Control 
Panel, and use it to install the eight BaKoMa fonts.  After they're 
installed, you can erase the temp directory - but you might want to hang 
onto the zip file, in case you need to reinstall them.  Restart LyX and 
math fonts should work.


Recent versions of LyX for Windows put these fonts in 
lyx\Resources\fonts, but for some unknown reason they don't always 
work.  You can try use the Windows font applet to install them from that 
folder, without the zip download.


/Paul



Re: LyX QuickLook Plugin

2007-12-13 Thread Bennett Helm

On Dec 14, 2007, at 12:01 AM, mike c wrote:


Hi All,
Anyone thought about a LyX quicklook component for Mac OSX Leopard?


I haven't thought, mostly because I haven't paid much attention to  
Leopard. (With operating systems especially I find it worthwhile not  
to be an early adopter.) Nonetheless, it looks like adding Quick Look  
support is relatively easy -- if you don't expect the LyX document to  
show formatting. Try following the advice given here:


http://www.macosxhints.com/article.php?story=20071028184428583

If I'm reading that right, you should find the Info.plist file within  
the LyX.app bundle and add the following (after the first dict  
string, e.g.):


keyUTExportedTypeDeclarations/key
array
dict
keyUTTypeIdentifier/key
stringorg.lyx.lyx/string
keyUTTypeReferenceURL/key
stringhttp://www.lyx.org/string
keyUTTypeDescription/key
stringLyX Document/string
keyUTTypeConformsTo/key
array
stringpublic.text/string
stringpublic.plain-text/string
/array
keyUTTypeTagSpecification/key
dict
keycom.apple.ostype/key
stringOLYX/string
keypublic.filename-extension/key
array
stringlyx/string
/array
/dict
/dict
/array

Then from Terminal.app, enter:

touch /Applications/LyX.app

(substituting the appropriate path to your LyX application). It  
should then work -- at least sort of: it should display the contents  
of your .lyx files as plain text, showing you what you'd see if you  
opened that file in TextEdit, e.g.


If you do this, please report back, and if it works I can alter the  
Info.plist file in the sources.


Bennett


Re: LyX QuickLook Plugin

2007-12-13 Thread mike c
I actually meant to elaborate in my original post, but it got sent
half-finished thanks to gmail and a bad key combo.

On Dec 14, 2007 3:53 PM, Bennett Helm [EMAIL PROTECTED]  wrote:
Nonetheless, it looks like adding Quick Look
support is relatively easy -- if you don't expect the LyX document to
show formatting.

Currently, without any special plugins installed, Leopard treats the LyX
file as a text file and shows it as such. So I didn't have to change
anything in Leopard at all to get that functionality. The display of the raw
lyx is slightly helpful, but not really.

I am considering diving in and making a quicklook plugin in that does
something/anything more helpful, and was really asking if anyone had
bothered hacking themselves something before I started.

Really, all I'd desire is a plugin that:
* lyx -e pdf file
* quicklook points to that file.

However, this brings in the overhead of having the entire file processed
lyx-pdf.  And I have no idea on how QuickLook info is cached.


Re: LyX QuickLook Plugin

2007-12-13 Thread Abdelrazak Younes

mike c wrote:

I actually meant to elaborate in my original post, but it got sent
half-finished thanks to gmail and a bad key combo.

On Dec 14, 2007 3:53 PM, Bennett Helm [EMAIL PROTECTED]  wrote:

Nonetheless, it looks like adding Quick Look
support is relatively easy -- if you don't expect the LyX document to
show formatting.


Currently, without any special plugins installed, Leopard treats the LyX
file as a text file and shows it as such. So I didn't have to change
anything in Leopard at all to get that functionality. The display of the raw
lyx is slightly helpful, but not really.

I am considering diving in and making a quicklook plugin in that does
something/anything more helpful, and was really asking if anyone had
bothered hacking themselves something before I started.

Really, all I'd desire is a plugin that:
* lyx -e pdf file
* quicklook points to that file.

However, this brings in the overhead of having the entire file processed
lyx-pdf.  And I have no idea on how QuickLook info is cached.


You could try 'lyx -e text' instead as this is processed by LyX only 
should be very fast.


Abdel.



Re: LyX QuickLook Plugin

2007-12-13 Thread mike c
On Dec 14, 2007 5:28 PM, Abdelrazak Younes [EMAIL PROTECTED] wrote:

 You could try 'lyx -e text' instead as this is processed by LyX only
 should be very fast.


That's going to be my first attempt.  If I can get quicklook to see the
output text file, then it's only a short step (i hope) to get it to see an
output pdf file.

Formatting is important for me, so text-only is an interim measure.


Re: What are your experiences (including figures)?

2007-12-13 Thread Helge Hafting

bigblop wrote:


Jürgen Spitzmüller wrote:
  

bigblop wrote:


I always convert to .pdf and don't like to see the image in the LyX
editor,
only in the created pdf. But are there other advantages that I don't get?
  

LyX watches if the image is externally modified.

Jürgen





Ok it also seems that its not possible to refer to labelled figures in plain
tex. Is it correct that I need to insert figures with lyx and label to refer
to them later?
  

You don't really need a lyx figure, but you need a lyx label
in order to have the label show up in the cross reference dialog.

If you want to use ERT figures, just write everything up to the
label in ERT. Then, move out of ERT and insert a lyx label.
Finally, another ERT with the rest of the code for your figure.
Example:

ERT_START\begin{figure}[tbh]\caption{mycaptionERT_ENDlyxlabelERT_START}\end{figure}ERT_END

Braces and environments are not balanced within each ERT,
but they are balanced as a whole. Make sure you don't
get a paragraph break between them, i.e. don't press enter.


Finally, you can reference a tex label from the cross reference
dialog, at least in 1.6. But it won't show up in the list, you'll have to
type the label text yourself.

Helge Hafting






Re: Spell check on the fly?

2007-12-13 Thread Helge Hafting

bigblop wrote:

Is there any chance that LyX in the future will support spell check on fly,
where each misspelled word is underlined with a red line in the editor if
its incorrectly spelled?
  

If someone can be bothered to do it.
I hope it will be less intrusive than a _red_ line though,
seeing red lines under every abbreviation, name, and other
word not in the wordlist is annoying.

Helge Hafting


Re: Lyx en español

2007-12-13 Thread Nicolás

Hi!

I would say that the de facto language (if not the official one) of the list is English. So if you can speak English, I would advise 
you to use it. But if you can not speak English, you may ask in Spanish, add an automatic translation, and kindly ask someone to help 
you correct the translation if not clear. I am pretty sure you will find some Spanish-speaking person willing to help you (maybe myself 
:-) ).


And now in Spanish, in case you do not understand English:

Hola!

Me atrevería a decir que el idioma de hecho (si no el oficial) de la lista es el inglés, así que te recomendaría preguntar en inglés si 
es que puedes. Si no hablas inglés, pregunta en español, añade una traducción automática y pide por favor a yuda a alguna persona de 
habla hispana para que te ayude a corregir la traducción, en caso de que ésta no sea del todo correcta. Estoy seguro de que encontrarás 
a alguien, quizás yo mismo :-), dispuesto a ayudarte.


Nicolás


Todd Denniston wrote:

Jorge Mario wrote, On 12/12/2007 10:32 AM:

Hola compañeros


Comapñeros de habal hispana. podemos preguntar en español?

atte Ken


from http://www.google.com/language_tools?hl=en
we get
Automatically translated text:
Comapñeros of habal Hispanic. We ask in Spanish?




 From an email thread a few months ago[1], I would suspect you can, but 
it might be better to ask in both Spanish, and _attempt_ to put an 
english translation in the email too, in case those who can answer your 
question don't read Spanish.


[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg58916.html

passed through:
http://translate.google.com/translate_t?langpair=en|es
Texto traducido de forma automática:
Desde un subproceso de correo electrónico hace unos meses [1], yo 
sospecho que puede, pero tal vez sería mejor preguntar en español, y el 
intento de poner Inglés traducción en el mensaje de correo electrónico 
también, en caso de los que pueden hacer responder a su pregunta No 
saben leer español.






Re: Spell check on the fly?

2007-12-13 Thread Hellmut Weber

Hi list,
I fully support Manveru's reasoning.

When writing in my native language german I don't want to be disturbed 
at all by these red underlinings. And I#m well aware that in my 
documents there are ALWAYS lot of typos.


So Ihave to give it a critical look when I have finished writing.
In mot cases this turns out to be helpful anyway ;-)

And most documents I (have to) read show that the author has not had 
sufficient self discipline to give his work a second look.
IMHO this is one of the negative effects of the crazy conditions many 
poeple have to work under nowadays.



When I write a document in an other language I don't care about typos 
while writing (even if I notice one myself). Clearly I need the self 
discipline of a small investment in the quality of my documents.


Be sure no high quality document can be produced just hacking in the 
text, correcting typos on the fly .. and that's it.

For me LyX/LaTeX is a great tools to produce high quality documents

Best regards

Hellmut


Manveru schrieb:

For most writers such feature is more a bug that a helpful feature. Those
annoying red underlines may break your way of thinking during writing, the
same is about autocorrection. These Word feature is for people, who do not
want to click spell check my doc every time they finish writing - there
are plenty of writers who still use typewriters - they do not like to be
corrected on-line.

If such feature ever be created for LyX it should be disabled by default
IMVHO.

Regards,
M.

2007/12/11, Abdelrazak Younes [EMAIL PROTECTED]:

bigblop wrote:

Is there any chance that LyX in the future will support spell check on

fly,

where each misspelled word is underlined with a red line in the editor

if

its incorrectly spelled?

When/if someone feels like implementing this, there might be a chance
yes. But nobody ever felt this way up to now :-)

Abdel.







--
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: Spell check on the fly?

2007-12-13 Thread Ethan Metsger
On Thu, 13 Dec 2007 05:06:23 -0500, Hellmut Weber [EMAIL PROTECTED]  
wrote:


Be sure no high quality document can be produced just hacking in the  
text, correcting typos on the fly .. and that's it.


This is absolutely correct.  Good writers are not necessarily grammatical  
writers or good spellers; but they're all adept at turning off the  
internal critic.  Spell-check on the fly is simply an extension of the  
internal critic.


IMHO,

Ethan


Shortcuts for environments?

2007-12-13 Thread Neal Becker
Are there keyboard shortcuts to select an environment?  I do a lot of beamer
presentations, could use one for 'begin frame' and 'itemize'.



Re: Shortcuts for environments?

2007-12-13 Thread G. Milde
On 13.12.07, Neal Becker wrote:
 Are there keyboard shortcuts to select an environment?  

yes. and they are even shown for a short while in the status bar at the very
bottom of LyX when you select a layout style from the list.

 I do a lot of beamer
 presentations, could use one for 'begin frame' and 'itemize'.

I am not sure for 'begin frame', but itemize is pretty standard.

you can define your own shortcuts in a bind file like in the example below.


Günter



# ##
# gm.bind:  private keybindings file
# ##

# To customize the bindings, you can write your own bind-file (or use
# this template) and load the default bindings from here.
# In the GUI, set the bindings to your privat bind-file. LyX will search for
# private keybinding files in the directory ~/.lyx/bind/

# Inputs
# ==

# 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 

# Customization
# =

# Based on the default, you can now change part or all of it with the
# \bind command.

# Bugfix
# --

# word-delete-forward deletes also non-word space behind the word!
# \bind C-Delete  word-delete-forward
\bind C-Deletecommand-sequence word-capitalize; delete-forward

# ...

## New Layout Styles for Seminar
#
# Adapted for de_menus.bind. Users of English menus might want to bind
# M-p instead of M-a 
\bind M-a f   layout LandscapeSlide
\bind M-a S-F layout PortraitSlide
\bind M-a h   layout SlideHeading
\bind M-a S-H layout SlideSubHeading



Re: Lyx en español

2007-12-13 Thread Marcelo Acuña
 I would say that the de facto language (if not the
 official one) of the list is English. So if you can
 speak English, I would advise 
 you to use it. But if you can not speak English, you
 may ask in Spanish, add an automatic translation,
 and kindly ask someone to help 
 you correct the translation if not clear. I am
 pretty sure you will find some Spanish-speaking
 person willing to help you (maybe myself 
 :-) ).

 Para mí, escribir y leer en Inglés es un esfuerzo
enorme y me sería muy útil tener una lista de Lyx en
castellano, pero mientras no tengamos suficientes
usuarios avanzados que hablen español creo que podemos
llevar a cabo esta propuesta de consultas en dos
idiomas.
 Saludos
Marcelo



  Yahoo! Encuentros.

Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros 
http://yahoo.cupidovirtual.com/servlet/NewRegistration


GUI configuration

2007-12-13 Thread G. Milde
Dear LyX users,

is there support for a modular definition of the user interface similar to

  Input SOME_FILE

in *.layout files or

  \bind_file SOME_FILE

in *.bind keybinding definitions?

I would like to customize the menus on some places¹ but keep them up-to date
with new a LyX version's defaults.


Also, I would like to change some defaults of the button texts.  e.g. 
[- ...] instead of the very long [Querverweis: ].


Guenter


¹ e.g. why is the outline bar activated under DokumentGliederung but
  the source view under AnsichtQuelle ansehen?


Re: [patch] implement \slash and \nobreakdash

2007-12-13 Thread Hellmut Weber

Hi Pavel,


doxygen is a program for making documentation from particular comments in the
source code. you don't need any specific experience, just looking into the 
few already documented lfuns will give you an idea how to proceed.

Got the idea


trunk is not a program, but the name for the current branch in development,
currently 1.6.




i just meant, that it may be better to document it in an incremental way,
say 10 lfuns or so, these put into trunk and then again...

Reasonable, should be done in this way


Did you define a structure (in doxygen?) for this documentation?


yes, you can find it in file src/lfuns.h (for quick view look on
http://www.lyx.org/trac/browser/lyx-devel/trunk/src/lfuns.h )

Made a copy on my machine



for the work you will need local copy of lyx source tree -
it maybe helpful if you read http://www.lyx.org/devel/cvs.php .

Did svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel



are running on windows, linux or mac ?

gentoo linux, kde-3.5.7, lyx-1.5.0

Thanks + regards

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: Shortcuts for environments?

2007-12-13 Thread Paul A. Rubin

Neal Becker wrote:

Are there keyboard shortcuts to select an environment?  I do a lot of beamer
presentations, could use one for 'begin frame' and 'itemize'.



As Günter points out, you can add shortcuts in the bindings file.  Since 
beamer has quite a few environments that are unique to beamer, it might 
be worth creating a separate bind file and switching to it when you're 
doing a beamer presentation.


I also use beamer quite a bit, but I don't have the memory capacity for 
any more shortcuts.  :-)  So what I do is M-p followed by the space bar 
to open the environment drop-down list, then type the first letter or 
two of the environment name I want.  If you type the first letter 
repeatedly (with minor pauses), you will cycle through all environments 
beginning with that letter.  It's a bit more typing than a shortcut 
would be, but easier on my overloaded internal RAM.


/Paul



Re: Bug? LyX crashes when opening Embed. Objects manual

2007-12-13 Thread David Hewitt



 
 Confirmed here : it crashes ...
 
 Windows XP pro with LyX 1.5.2 (french version)
 
 Cannot reproduce, neither with LyX 1.5.2 nor with 1.5.3svn.
 What are the exact steps to reproduce the crash?
 
 regards Uwe
 
 

Open LyX.

Go to Help - User's Guide. Click on the TOC widget to open the outline.

Go to Help - EO... death becomes it when trying to open Dummy Document 1
(according to the buffer).

Happens every time for me.

-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/Bug--LyX-%22crashes%22-when-opening-Embed.-Objects-manual-tp14277313p14319913.html
Sent from the LyX - Users mailing list archive at Nabble.com.



lyx cannot display Greek symbol real time

2007-12-13 Thread Zhi Huang
Hi,

I have just installed LyX through Cygwin on my Windows XP system. When in
math mode, I can type \frac and then press SPACE I will get the fraction
symbol. Also it works for the \sqrt symbol. However, all the Greek letters
are not displayed. For example, when I type in \alpha, it just returns
alpha in the box, not the symbol. I can only see the symbol after I export
my document to the pdf format.

On the other hand, for the LyX under the Suse10.2 system on my work
computer, all Greek terms appear immediately after I type in the
corresponding latex code.

Is this just a problem for the Windows version (through cygwin) ?

Thanks a lot for your help,

Zhi



btw: I also installed texmacs through cygwin on my XP system. texamcs is
able to accept latex input in its math mode, and display the equations
immediately. However, as texmacs is not a latex frontend, it only
simulates the latex functionality, and the equations it gives are not good
as real latex ones...


Re: a bit more Re: Problem with segmentation fault on some versions of Solaris 10

2007-12-13 Thread Enrico Forestieri
Dave Price writes:

 Are there any obvious checks I can make first?

Your problem might be related to the fontconfig version. On Solaris 10
you can check that by issuing the following command:

egrep MAJOR|MINOR|REVISION /usr/include/fontconfig/fontconfig.h

See whether the version is different on machines where it crashes
wrt the ones where it doesn't crash.

-- 
Enrico



Re: want to add new format options to cross-reference

2007-12-13 Thread nooj

Uwe Stöhr schrieb:

1) You need to document the no-so-unusual behavior of reference on
 page
  page
 to output only reference.
 
 What do you mean?  
 Note that the style page won't print the page number if the label is on
 the previous, the same, 
 or the next page. You will e.g.see the text ``on this page'' instead.

This is exactly what I'm talking about when I say the documentation is bad. 
First of all, you say 
page won't print the page number, but that's not true.  page always
prints the page number 
and only the page number.  It's the page part of reference on page
page which doesn't 
always print the page number!  

Your note in the documentation is misleading also because it's in the wrong
place.  That line comes 
after all of the format types are described, so it appears to apply to all
the formats.  But, as we have 
seen, it only applies to one of them.  Move it to the one that it refers to.  

And finally, don't use the word style.  That's a technical LaTeX term. 
Use format, since that's what
LyX calls them in the cross-reference dialog box.  


 [prettyref] is not described by design, because then I had to use
 prettyref for the docs. But this 
 package is since a whuile obsolete and no longer part of all
 LaTeX-distribuions. So when I use it in 
 the docs, people can't process the docs anymore. So you have to find out
 by your own how this ref 
 format behaves, in case you have prettyref installed.

No way.  If prettyref is no longer maintained, then it won't be changing
much, so you should document
the thing.  And I bet that you could find a way to describe its behavior
without actually requiring the 
package.  And I'm still confused as to why you include a feature in the gui
that you won't support fully.
The file is short.  Include it in LyX.  How hard is that?  

-- 
View this message in context: 
http://www.nabble.com/want-to-add-new-format-options-to-cross-reference-tp14215830p14325616.html
Sent from the LyX - Users mailing list archive at Nabble.com.



LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Zhi Huang
Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns alpha in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences-Graphics-Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
instant-preview, it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
instant preview, seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi


Re: Bug? LyX crashes when opening Embed. Objects manual

2007-12-13 Thread Uwe Stöhr

David Hewitt schrieb:


Go to Help - EO... death becomes it when trying to open Dummy Document 1
(according to the buffer).


This will be fixed with the next Version LyX 1.5.3 that will be released next 
week.

regards Uwe


LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Zhi Huang
//sorry if you received this email multiple times. I am just subscribed to
this mailing list and I didn't know whether previous email has been sent
successfully.


Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns alpha in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences-Graphics-Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
instant-preview, it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
instant preview, seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi


Re: lyx cannot display Greek symbol real time

2007-12-13 Thread Enrico Forestieri
Zhi Huang writes:

 Hi,
 
 I have just installed LyX through Cygwin on my Windows XP system. When in
 math mode, I can type \frac and then press SPACE I will get the fraction
 symbol. Also it works for the \sqrt symbol. However, all the Greek letters
 are not displayed. For example, when I type in \alpha, it just returns
 alpha in the box, not the symbol. I can only see the symbol after I export
 my document to the pdf format.

Using a cygwin text editor (vim is ok, notepad is *not* ok) create the
file /etc/fonts/local.conf with the following 5 lines:

?xml version=1.0?
!DOCTYPE fontconfig SYSTEM fonts.dtd
fontconfig
dir/usr/share/lyx/fonts/dir
/fontconfig

save the file and then issue the following command:

fc-cache /usr/share/lyx/fonts

Now you should get the greek letters in LyX.


Bo, seems that recent versions of fontconfig for cygwin do not come
with a default local.conf file, so the postinstall script is not able
to register the fonts needed by LyX. You should upload a new version
of LyX (btw, I see that 1.4.4 is still the current available version)
with a corrected postinstall script that checks for the existence of
/etc/fonts/local.conf and provides a minimal version in case it doesn't
exist. The script should do something along the lines of:

# In case /etc/fonts/local.conf is missing, provide a minimal one.
if [ -f /etc/fonts/local.conf ]; then
the old code goes here
else
echo '?xml version=1.0?'  /etc/fonts/local.conf
echo '!DOCTYPE fontconfig SYSTEM fonts.dtd'  /etc/fonts/local.conf
echo 'fontconfig'  /etc/fonts/local.conf
echo 'dir/usr/share/lyx/fonts/dir'  /etc/fonts/local.conf
echo '/fontconfig'  /etc/fonts/local.conf
fi
fc-cache /usr/share/lyx/fonts

-- 
Enrico



Re: LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Paul A. Rubin

Zhi Huang wrote:

Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns alpha in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences-Graphics-Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
instant-preview, it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
instant preview, seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi



Use the link ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.1.zip to 
download the BaKoMa fonts.  Unpack the zip archive to a temporary 
directory somewhere.  Now run the Windows font applet from the Control 
Panel, and use it to install the eight BaKoMa fonts.  After they're 
installed, you can erase the temp directory - but you might want to hang 
onto the zip file, in case you need to reinstall them.  Restart LyX and 
math fonts should work.


Recent versions of LyX for Windows put these fonts in 
lyx\Resources\fonts, but for some unknown reason they don't always 
work.  You can try use the Windows font applet to install them from that 
folder, without the zip download.


/Paul



Re: LyX QuickLook Plugin

2007-12-13 Thread Bennett Helm

On Dec 14, 2007, at 12:01 AM, mike c wrote:


Hi All,
Anyone thought about a LyX quicklook component for Mac OSX Leopard?


I haven't thought, mostly because I haven't paid much attention to  
Leopard. (With operating systems especially I find it worthwhile not  
to be an early adopter.) Nonetheless, it looks like adding Quick Look  
support is relatively easy -- if you don't expect the LyX document to  
show formatting. Try following the advice given here:


http://www.macosxhints.com/article.php?story=20071028184428583

If I'm reading that right, you should find the Info.plist file within  
the LyX.app bundle and add the following (after the first dict  
string, e.g.):


keyUTExportedTypeDeclarations/key
array
dict
keyUTTypeIdentifier/key
stringorg.lyx.lyx/string
keyUTTypeReferenceURL/key
stringhttp://www.lyx.org/string
keyUTTypeDescription/key
stringLyX Document/string
keyUTTypeConformsTo/key
array
stringpublic.text/string
stringpublic.plain-text/string
/array
keyUTTypeTagSpecification/key
dict
keycom.apple.ostype/key
stringOLYX/string
keypublic.filename-extension/key
array
stringlyx/string
/array
/dict
/dict
/array

Then from Terminal.app, enter:

touch /Applications/LyX.app

(substituting the appropriate path to your LyX application). It  
should then work -- at least sort of: it should display the contents  
of your .lyx files as plain text, showing you what you'd see if you  
opened that file in TextEdit, e.g.


If you do this, please report back, and if it works I can alter the  
Info.plist file in the sources.


Bennett


Re: LyX QuickLook Plugin

2007-12-13 Thread mike c
I actually meant to elaborate in my original post, but it got sent
half-finished thanks to gmail and a bad key combo.

On Dec 14, 2007 3:53 PM, Bennett Helm [EMAIL PROTECTED]  wrote:
Nonetheless, it looks like adding Quick Look
support is relatively easy -- if you don't expect the LyX document to
show formatting.

Currently, without any special plugins installed, Leopard treats the LyX
file as a text file and shows it as such. So I didn't have to change
anything in Leopard at all to get that functionality. The display of the raw
lyx is slightly helpful, but not really.

I am considering diving in and making a quicklook plugin in that does
something/anything more helpful, and was really asking if anyone had
bothered hacking themselves something before I started.

Really, all I'd desire is a plugin that:
* lyx -e pdf file
* quicklook points to that file.

However, this brings in the overhead of having the entire file processed
lyx-pdf.  And I have no idea on how QuickLook info is cached.


Re: LyX QuickLook Plugin

2007-12-13 Thread Abdelrazak Younes

mike c wrote:

I actually meant to elaborate in my original post, but it got sent
half-finished thanks to gmail and a bad key combo.

On Dec 14, 2007 3:53 PM, Bennett Helm [EMAIL PROTECTED]  wrote:

Nonetheless, it looks like adding Quick Look
support is relatively easy -- if you don't expect the LyX document to
show formatting.


Currently, without any special plugins installed, Leopard treats the LyX
file as a text file and shows it as such. So I didn't have to change
anything in Leopard at all to get that functionality. The display of the raw
lyx is slightly helpful, but not really.

I am considering diving in and making a quicklook plugin in that does
something/anything more helpful, and was really asking if anyone had
bothered hacking themselves something before I started.

Really, all I'd desire is a plugin that:
* lyx -e pdf file
* quicklook points to that file.

However, this brings in the overhead of having the entire file processed
lyx-pdf.  And I have no idea on how QuickLook info is cached.


You could try 'lyx -e text' instead as this is processed by LyX only 
should be very fast.


Abdel.



Re: LyX QuickLook Plugin

2007-12-13 Thread mike c
On Dec 14, 2007 5:28 PM, Abdelrazak Younes [EMAIL PROTECTED] wrote:

 You could try 'lyx -e text' instead as this is processed by LyX only
 should be very fast.


That's going to be my first attempt.  If I can get quicklook to see the
output text file, then it's only a short step (i hope) to get it to see an
output pdf file.

Formatting is important for me, so text-only is an interim measure.


Re: What are your experiences (including figures)?

2007-12-13 Thread Helge Hafting

bigblop wrote:


Jürgen Spitzmüller wrote:
  

bigblop wrote:


I always convert to .pdf and don't like to see the image in the LyX
editor,
only in the created pdf. But are there other advantages that I don't get?
  

LyX watches if the image is externally modified.

Jürgen





Ok it also seems that its not possible to refer to labelled figures in plain
tex. Is it correct that I need to insert figures with lyx and label to refer
to them later?
  

You don't really need a "lyx figure", but you need a "lyx label"
in order to have the label show up in the cross reference dialog.

If you want to use ERT figures, just write everything up to the
label in ERT. Then, move out of ERT and insert a lyx label.
Finally, another ERT with the rest of the code for your figure.
Example:

ERT_START\begin{figure}[tbh]\caption{mycaptionERT_ENDERT_START}\end{figure}ERT_END

Braces and environments are not balanced within each ERT,
but they are balanced as a whole. Make sure you don't
get a paragraph break between them, i.e. don't press enter.


Finally, you can reference a tex label from the cross reference
dialog, at least in 1.6. But it won't show up in the list, you'll have to
type the label text yourself.

Helge Hafting






Re: Spell check on the fly?

2007-12-13 Thread Helge Hafting

bigblop wrote:

Is there any chance that LyX in the future will support spell check on fly,
where each misspelled word is underlined with a red line in the editor if
its incorrectly spelled?
  

If someone can be bothered to do it.
I hope it will be less intrusive than a _red_ line though,
seeing red lines under every abbreviation, name, and other
word not in the wordlist is annoying.

Helge Hafting


Re: Lyx en español

2007-12-13 Thread Nicolás

Hi!

I would say that the "de facto" language (if not the official one) of the list is English. So if you can speak English, I would advise 
you to use it. But if you can not speak English, you may ask in Spanish, add an automatic translation, and kindly ask someone to help 
you correct the translation if not clear. I am pretty sure you will find some Spanish-speaking person willing to help you (maybe myself 
:-) ).


And now in Spanish, in case you do not understand English:

Hola!

Me atrevería a decir que el idioma de hecho (si no el oficial) de la lista es el inglés, así que te recomendaría preguntar en inglés si 
es que puedes. Si no hablas inglés, pregunta en español, añade una traducción automática y pide por favor a yuda a alguna persona de 
habla hispana para que te ayude a corregir la traducción, en caso de que ésta no sea del todo correcta. Estoy seguro de que encontrarás 
a alguien, quizás yo mismo :-), dispuesto a ayudarte.


Nicolás


Todd Denniston wrote:

Jorge Mario wrote, On 12/12/2007 10:32 AM:

Hola compañeros


Comapñeros de habal hispana. podemos preguntar en español?

atte Ken


from http://www.google.com/language_tools?hl=en
we get
Automatically translated text:
Comapñeros of habal Hispanic. We ask in Spanish?




 From an email thread a few months ago[1], I would suspect you can, but 
it might be better to ask in both Spanish, and _attempt_ to put an 
english translation in the email too, in case those who can answer your 
question don't read Spanish.


[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg58916.html

passed through:
http://translate.google.com/translate_t?langpair=en|es
Texto traducido de forma automática:
Desde un subproceso de correo electrónico hace unos meses [1], yo 
sospecho que puede, pero tal vez sería mejor preguntar en español, y el 
intento de poner Inglés traducción en el mensaje de correo electrónico 
también, en caso de los que pueden hacer responder a su pregunta No 
saben leer español.






Re: Spell check on the fly?

2007-12-13 Thread Hellmut Weber

Hi list,
I fully support Manveru's reasoning.

When writing in my native language german I don't want to be disturbed 
at all by these red underlinings. And I#m well aware that in my 
documents there are ALWAYS lot of typos.


So Ihave to give it a critical look when I have finished writing.
In mot cases this turns out to be helpful anyway ;-)

And most documents I (have to) read show that the author has not had 
sufficient self discipline to give his work a second look.
IMHO this is one of the negative effects of the crazy conditions many 
poeple have to work under nowadays.



When I write a document in an other language I don't care about typos 
while writing (even if I notice one myself). Clearly I need the self 
discipline of a small investment in the quality of my documents.


Be sure no high quality document can be produced just hacking in the 
text, correcting typos on the fly .. and that's it.

For me LyX/LaTeX is a great tools to produce high quality documents

Best regards

Hellmut


Manveru schrieb:

For most writers such feature is more a bug that a helpful feature. Those
annoying red underlines may break your way of thinking during writing, the
same is about autocorrection. These Word feature is for people, who do not
want to click "spell check my doc" every time they finish writing - there
are plenty of writers who still use typewriters - they do not like to be
corrected on-line.

If such feature ever be created for LyX it should be disabled by default
IMVHO.

Regards,
M.

2007/12/11, Abdelrazak Younes <[EMAIL PROTECTED]>:

bigblop wrote:

Is there any chance that LyX in the future will support spell check on

fly,

where each misspelled word is underlined with a red line in the editor

if

its incorrectly spelled?

When/if someone feels like implementing this, there might be a chance
yes. But nobody ever felt this way up to now :-)

Abdel.







--
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: Spell check on the fly?

2007-12-13 Thread Ethan Metsger
On Thu, 13 Dec 2007 05:06:23 -0500, Hellmut Weber <[EMAIL PROTECTED]>  
wrote:


Be sure no high quality document can be produced just hacking in the  
text, correcting typos on the fly .. and that's it.


This is absolutely correct.  Good writers are not necessarily grammatical  
writers or good spellers; but they're all adept at turning off the  
internal critic.  Spell-check "on the fly" is simply an extension of the  
internal critic.


IMHO,

Ethan


Shortcuts for environments?

2007-12-13 Thread Neal Becker
Are there keyboard shortcuts to select an environment?  I do a lot of beamer
presentations, could use one for 'begin frame' and 'itemize'.



Re: Shortcuts for environments?

2007-12-13 Thread G. Milde
On 13.12.07, Neal Becker wrote:
> Are there keyboard shortcuts to select an environment?  

yes. and they are even shown for a short while in the status bar at the very
bottom of LyX when you select a layout style from the list.

> I do a lot of beamer
> presentations, could use one for 'begin frame' and 'itemize'.

I am not sure for 'begin frame', but itemize is pretty standard.

you can define your own shortcuts in a bind file like in the example below.


Günter



# ##
# gm.bind:  private keybindings file
# ##

# To customize the bindings, you can write your own bind-file (or use
# this template) and load the default bindings from here.
# In the GUI, set the bindings to your privat bind-file. LyX will search for
# private keybinding files in the directory ~/.lyx/bind/

# Inputs
# ==

# 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 

# Customization
# =

# Based on the default, you can now change part or all of it with the
# \bind command.

# Bugfix
# --

# word-delete-forward deletes also non-word space behind the word!
# \bind "C-Delete"  "word-delete-forward"
\bind "C-Delete""command-sequence word-capitalize; delete-forward"

# ...

## New Layout Styles for Seminar
#
# Adapted for de_menus.bind. Users of English menus might want to bind
# M-p instead of M-a 
\bind "M-a f"   "layout LandscapeSlide"
\bind "M-a S-F" "layout PortraitSlide"
\bind "M-a h"   "layout SlideHeading"
\bind "M-a S-H" "layout SlideSubHeading"



Re: Lyx en español

2007-12-13 Thread Marcelo Acuña
> I would say that the "de facto" language (if not the
> official one) of the list is English. So if you can
> speak English, I would advise 
> you to use it. But if you can not speak English, you
> may ask in Spanish, add an automatic translation,
> and kindly ask someone to help 
> you correct the translation if not clear. I am
> pretty sure you will find some Spanish-speaking
> person willing to help you (maybe myself 
> :-) ).

 Para mí, escribir y leer en Inglés es un esfuerzo
enorme y me sería muy útil tener una lista de Lyx en
castellano, pero mientras no tengamos suficientes
usuarios avanzados que hablen español creo que podemos
llevar a cabo esta propuesta de consultas en dos
idiomas.
 Saludos
Marcelo



  Yahoo! Encuentros.

Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros 
http://yahoo.cupidovirtual.com/servlet/NewRegistration


GUI configuration

2007-12-13 Thread G. Milde
Dear LyX users,

is there support for a modular definition of the user interface similar to

  Input SOME_FILE

in *.layout files or

  \bind_file SOME_FILE

in *.bind keybinding definitions?

I would like to customize the menus on some places¹ but keep them up-to date
with new a LyX version's defaults.


Also, I would like to change some defaults of the button texts.  e.g. 
[-> ...] instead of the very long [Querverweis: ].


Guenter


¹ e.g. why is the outline bar activated under Dokument>Gliederung but
  the source view under Ansicht>Quelle ansehen?


Re: [patch] implement \slash and \nobreakdash

2007-12-13 Thread Hellmut Weber

Hi Pavel,


doxygen is a program for making documentation from particular comments in the
source code. you don't need any specific experience, just looking into the 
few already documented lfuns will give you an idea how to proceed.

Got the idea


trunk is not a program, but the name for the current branch in development,
currently 1.6.




i just meant, that it may be better to document it in an incremental way,
say 10 lfuns or so, these put into trunk and then again...

Reasonable, should be done in this way


Did you define a structure (in doxygen?) for this documentation?


yes, you can find it in file src/lfuns.h (for quick view look on
http://www.lyx.org/trac/browser/lyx-devel/trunk/src/lfuns.h )

Made a copy on my machine



for the work you will need local copy of lyx source tree -
it maybe helpful if you read http://www.lyx.org/devel/cvs.php .

Did svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel



are running on windows, linux or mac ?

gentoo linux, kde-3.5.7, lyx-1.5.0

Thanks + regards

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: Shortcuts for environments?

2007-12-13 Thread Paul A. Rubin

Neal Becker wrote:

Are there keyboard shortcuts to select an environment?  I do a lot of beamer
presentations, could use one for 'begin frame' and 'itemize'.



As Günter points out, you can add shortcuts in the bindings file.  Since 
beamer has quite a few environments that are unique to beamer, it might 
be worth creating a separate bind file and switching to it when you're 
doing a beamer presentation.


I also use beamer quite a bit, but I don't have the memory capacity for 
any more shortcuts.  :-)  So what I do is M-p followed by the space bar 
to open the environment drop-down list, then type the first letter or 
two of the environment name I want.  If you type the first letter 
repeatedly (with minor pauses), you will cycle through all environments 
beginning with that letter.  It's a bit more typing than a shortcut 
would be, but easier on my overloaded internal RAM.


/Paul



Re: Bug? LyX "crashes" when opening Embed. Objects manual

2007-12-13 Thread David Hewitt



> 
>> Confirmed here : it crashes ...
>> 
>> Windows XP pro with LyX 1.5.2 (french version)
> 
> Cannot reproduce, neither with LyX 1.5.2 nor with 1.5.3svn.
> What are the exact steps to reproduce the crash?
> 
> regards Uwe
> 
> 

Open LyX.

Go to Help -> User's Guide. Click on the TOC widget to open the outline.

Go to Help -> EO... death becomes it when trying to open Dummy Document 1
(according to the buffer).

Happens every time for me.

-
David Hewitt
Virginia Institute of Marine Science
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: 
http://www.nabble.com/Bug--LyX-%22crashes%22-when-opening-Embed.-Objects-manual-tp14277313p14319913.html
Sent from the LyX - Users mailing list archive at Nabble.com.



lyx cannot display Greek symbol real time

2007-12-13 Thread Zhi Huang
Hi,

I have just installed LyX through Cygwin on my Windows XP system. When in
math mode, I can type \frac and then press SPACE I will get the fraction
symbol. Also it works for the \sqrt symbol. However, all the Greek letters
are not displayed. For example, when I type in \alpha, it just returns
"alpha" in the box, not the symbol. I can only see the symbol after I export
my document to the pdf format.

On the other hand, for the LyX under the Suse10.2 system on my work
computer, all Greek terms appear immediately after I type in the
corresponding latex code.

Is this just a problem for the Windows version (through cygwin) ?

Thanks a lot for your help,

Zhi



btw: I also installed texmacs through cygwin on my XP system. texamcs is
able to accept latex input in its math mode, and display the equations
immediately. However, as texmacs is not a latex frontend, it only
"simulates" the latex functionality, and the equations it gives are not good
as real latex ones...


Re: a bit more Re: Problem with segmentation fault on some versions of Solaris 10

2007-12-13 Thread Enrico Forestieri
Dave Price writes:

> Are there any obvious checks I can make first?

Your problem might be related to the fontconfig version. On Solaris 10
you can check that by issuing the following command:

egrep "MAJOR|MINOR|REVISION" /usr/include/fontconfig/fontconfig.h

See whether the version is different on machines where it crashes
wrt the ones where it doesn't crash.

-- 
Enrico



Re: want to add new format options to cross-reference

2007-12-13 Thread nooj

Uwe Stöhr schrieb:

> >   1) You need to document the no-so-unusual behavior of " on
> page
> > "
> >to output only "".
> 
> What do you mean?  
> "Note that the style  won't print the page number if the label is on
> the previous, the same, 
> or the next page. You will e.g.see the text ``on this page'' instead."

This is exactly what I'm talking about when I say the documentation is bad. 
First of all, you say 
 won't print the page number, but that's not true.  "" always
prints the page number 
and only the page number.  It's the  part of " on page
" which doesn't 
always print the page number!  

Your note in the documentation is misleading also because it's in the wrong
place.  That line comes 
after all of the format types are described, so it appears to apply to all
the formats.  But, as we have 
seen, it only applies to one of them.  Move it to the one that it refers to.  

And finally, don't use the word "style".  That's a technical LaTeX term. 
Use "format", since that's what
LyX calls them in the cross-reference dialog box.  


> [prettyref] is not described by design, because then I had to use
> prettyref for the docs. But this 
> package is since a whuile obsolete and no longer part of all
> LaTeX-distribuions. So when I use it in 
> the docs, people can't process the docs anymore. So you have to find out
> by your own how this ref 
> format behaves, in case you have prettyref installed.

No way.  If prettyref is no longer maintained, then it won't be changing
much, so you should document
the thing.  And I bet that you could find a way to describe its behavior
without actually requiring the 
package.  And I'm still confused as to why you include a feature in the gui
that you won't support fully.
The file is short.  Include it in LyX.  How hard is that?  

-- 
View this message in context: 
http://www.nabble.com/want-to-add-new-format-options-to-cross-reference-tp14215830p14325616.html
Sent from the LyX - Users mailing list archive at Nabble.com.



LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Zhi Huang
Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns "alpha" in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences->Graphics->Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
"instant-preview", it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
"instant preview", seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi


Re: Bug? LyX "crashes" when opening Embed. Objects manual

2007-12-13 Thread Uwe Stöhr

David Hewitt schrieb:


Go to Help -> EO... death becomes it when trying to open Dummy Document 1
(according to the buffer).


This will be fixed with the next Version LyX 1.5.3 that will be released next 
week.

regards Uwe


LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Zhi Huang
//sorry if you received this email multiple times. I am just subscribed to
this mailing list and I didn't know whether previous email has been sent
successfully.


Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns "alpha" in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences->Graphics->Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
"instant-preview", it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
"instant preview", seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi


Re: lyx cannot display Greek symbol real time

2007-12-13 Thread Enrico Forestieri
Zhi Huang writes:

> Hi,
> 
> I have just installed LyX through Cygwin on my Windows XP system. When in
> math mode, I can type \frac and then press SPACE I will get the fraction
> symbol. Also it works for the \sqrt symbol. However, all the Greek letters
> are not displayed. For example, when I type in \alpha, it just returns
> "alpha" in the box, not the symbol. I can only see the symbol after I export
> my document to the pdf format.

Using a cygwin text editor (vim is ok, notepad is *not* ok) create the
file /etc/fonts/local.conf with the following 5 lines:




/usr/share/lyx/fonts


save the file and then issue the following command:

fc-cache /usr/share/lyx/fonts

Now you should get the greek letters in LyX.


Bo, seems that recent versions of fontconfig for cygwin do not come
with a default local.conf file, so the postinstall script is not able
to register the fonts needed by LyX. You should upload a new version
of LyX (btw, I see that 1.4.4 is still the current available version)
with a corrected postinstall script that checks for the existence of
/etc/fonts/local.conf and provides a minimal version in case it doesn't
exist. The script should do something along the lines of:

# In case /etc/fonts/local.conf is missing, provide a minimal one.
if [ -f /etc/fonts/local.conf ]; then

else
echo '' > /etc/fonts/local.conf
echo '' >> /etc/fonts/local.conf
echo '' >> /etc/fonts/local.conf
echo '/usr/share/lyx/fonts' >> /etc/fonts/local.conf
echo '' >> /etc/fonts/local.conf
fi
fc-cache /usr/share/lyx/fonts

-- 
Enrico



Re: LyX cannot display Greek letters when typing in latex command

2007-12-13 Thread Paul A. Rubin

Zhi Huang wrote:

Hi,

I have just installed LyX (1.4.4) through Cygwin on my Windows XP system.
When in math mode, I can type \frac and then press SPACE I will get the
fraction symbol. Also it works for the \sqrt symbol. However, all the Greek
letters are not displayed. For example, when I type in \alpha, it just
returns "alpha" in the box, not the symbol. I can only see the symbol after
I export my document to the pdf format.

On the other hand, for the LyX (1.3.6) under the SUSE 10.2 system on my work
computer, all Greek letters appear immediately after I type in the
corresponding latex code.

I went to the LyX wiki pages and found an article talking about using
instant Preview. However, it seems not to be the case here. I checked the
Preferences->Graphics->Instant-Preview of the LyX on my SUSE system, the
instant preview is Not on; but there I still got the instant Greek letters
as I type in its latex code.

I then came back to my LyX on my Windows system. when I enabled the
"instant-preview", it DOES give me greek letters AFTER I finished the Latex
command typing and jumping out of the math mode box. It obviously took a
while for the Preview to process the command and insert in the Greek letters
produced. This behavior of showing the Greek letters after I enabled the
"instant preview", seems works in the same way as I use auc-tex inside emacs
when I use emacs to edit a latex file: it took a while to generate the
required images.

So I am wondering what could be done to enable this immediate display of
mathematical symbol inside math mode box as I type in the latex commands,
just like how it works on my SUSE system. The problem seems to be not
related with preview-latex. Is this just a problem for the Windows version
of lyx (ported through cygwin) ?

Thanks a lot for your help,

Zhi



Use the link ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.1.zip to 
download the BaKoMa fonts.  Unpack the zip archive to a temporary 
directory somewhere.  Now run the Windows font applet from the Control 
Panel, and use it to install the eight BaKoMa fonts.  After they're 
installed, you can erase the temp directory - but you might want to hang 
onto the zip file, in case you need to reinstall them.  Restart LyX and 
math fonts should work.


Recent versions of LyX for Windows put these fonts in 
\Resources\fonts, but for some unknown reason they don't always 
work.  You can try use the Windows font applet to install them from that 
folder, without the zip download.


/Paul



Re: LyX QuickLook Plugin

2007-12-13 Thread Bennett Helm

On Dec 14, 2007, at 12:01 AM, mike c wrote:


Hi All,
Anyone thought about a LyX quicklook component for Mac OSX Leopard?


I haven't thought, mostly because I haven't paid much attention to  
Leopard. (With operating systems especially I find it worthwhile not  
to be an early adopter.) Nonetheless, it looks like adding Quick Look  
support is relatively easy -- if you don't expect the LyX document to  
show formatting. Try following the advice given here:




If I'm reading that right, you should find the Info.plist file within  
the LyX.app bundle and add the following (after the first   
string, e.g.):


UTExportedTypeDeclarations


UTTypeIdentifier
org.lyx.lyx
UTTypeReferenceURL
http://www.lyx.org
UTTypeDescription
LyX Document
UTTypeConformsTo

public.text
public.plain-text

UTTypeTagSpecification

com.apple.ostype
OLYX
public.filename-extension

lyx





Then from Terminal.app, enter:

touch /Applications/LyX.app

(substituting the appropriate path to your LyX application). It  
should then work -- at least sort of: it should display the contents  
of your .lyx files as plain text, showing you what you'd see if you  
opened that file in TextEdit, e.g.


If you do this, please report back, and if it works I can alter the  
Info.plist file in the sources.


Bennett


Re: LyX QuickLook Plugin

2007-12-13 Thread mike c
I actually meant to elaborate in my original post, but it got sent
half-finished thanks to gmail and a bad key combo.

On Dec 14, 2007 3:53 PM, Bennett Helm <[EMAIL PROTECTED] > wrote:
>Nonetheless, it looks like adding Quick Look
>support is relatively easy -- if you don't expect the LyX document to
>show formatting.

Currently, without any special plugins installed, Leopard treats the LyX
file as a text file and shows it as such. So I didn't have to change
anything in Leopard at all to get that functionality. The display of the raw
lyx is slightly helpful, but not really.

I am considering diving in and making a quicklook plugin in that does
something/anything more helpful, and was really asking if anyone had
bothered hacking themselves something before I started.

Really, all I'd desire is a plugin that:
* "lyx -e pdf "
* quicklook points to that file.

However, this brings in the overhead of having the entire file processed
lyx->pdf.  And I have no idea on how QuickLook info is cached.


Re: LyX QuickLook Plugin

2007-12-13 Thread Abdelrazak Younes

mike c wrote:

I actually meant to elaborate in my original post, but it got sent
half-finished thanks to gmail and a bad key combo.

On Dec 14, 2007 3:53 PM, Bennett Helm <[EMAIL PROTECTED] > wrote:

Nonetheless, it looks like adding Quick Look
support is relatively easy -- if you don't expect the LyX document to
show formatting.


Currently, without any special plugins installed, Leopard treats the LyX
file as a text file and shows it as such. So I didn't have to change
anything in Leopard at all to get that functionality. The display of the raw
lyx is slightly helpful, but not really.

I am considering diving in and making a quicklook plugin in that does
something/anything more helpful, and was really asking if anyone had
bothered hacking themselves something before I started.

Really, all I'd desire is a plugin that:
* "lyx -e pdf "
* quicklook points to that file.

However, this brings in the overhead of having the entire file processed
lyx->pdf.  And I have no idea on how QuickLook info is cached.


You could try 'lyx -e text' instead as this is processed by LyX only 
should be very fast.


Abdel.



Re: LyX QuickLook Plugin

2007-12-13 Thread mike c
On Dec 14, 2007 5:28 PM, Abdelrazak Younes <[EMAIL PROTECTED]> wrote:

> You could try 'lyx -e text' instead as this is processed by LyX only
> should be very fast.
>

That's going to be my first attempt.  If I can get quicklook to see the
output text file, then it's only a short step (i hope) to get it to see an
output pdf file.

Formatting is important for me, so text-only is an interim measure.