Re: custom display of specific ERT

2008-10-06 Thread Jean-Marc Lasgouttes
However, is there any way to put a math macro like that in a layout  
file or a preamble?


Not currently.

JMarc


Re: custom display of specific ERT

2008-10-06 Thread Wendell Smith
I apologize for the confusion, but I figured one thing out but would 
like to ask something new.


I figured out how to insert a math macro: "Alt-x" to start writing a 
command, and then "math-macro dbar 0" to start a new math macro will 
then input the macro right then and there (with "dbar" being the macro 
command I want to create); I found this online, once I knew to look for 
a macro.


However, is there any way to put a math macro like that in a layout file 
or a preamble?


thanks,
Wendell


Re: custom display of specific ERT

2008-10-06 Thread Wendell Smith

Andre Poenitz wrote:

On Mon, Oct 06, 2008 at 11:44:47PM -0400, Wendell Smith wrote:
  

Hello,
I am a new LyX user, and I am really enjoying it! Thanks to all the  
developers!


I was just wondering if it was at all possible to get a specific TeX  
command that LyX does not recognize to display as some sort of non-ERT.


To make that clearer, I'll tell you my issue:
In the preamble, I have (using kerning and other commands I copied  
online) defined \dbar to be a d crossed at the top, like \hbar. LyX, of  
course, recognizes neither \dbar nor the code underneath it, although it  
looks great in the pdf output. It would be nice (although not necessary)  
if there was some way I could tell LyX to display \dbar as just a plain  
"d" instead of ERT, or even better, as a bold or non-italicized (in math  
mode) "d".


I've looked a little through the archives, and I didn't see anything  
there that looked like this question, but if it has already been  
answered, please point me to it!



It only works for math. In this case you can define a math macro with
zero arguments. This definiton will appear with two boxes on screen.
In he first one you put the TeX expansion, in the second one you could
put anything. The contents of the second box will be used for on-screen
rendering, so you can try to fake the appearance of \dbar there.

Andre'
  


Thanks, I only need it for math! But... how and do I define a math 
macro? In the preamble? You said "this definiton will appear with two 
boxes on screen" - how do I get that definition to appear on the screen 
at all?


thanks,
Wendell


Re: custom display of specific ERT

2008-10-06 Thread Andre Poenitz
On Mon, Oct 06, 2008 at 11:44:47PM -0400, Wendell Smith wrote:
> Hello,
> I am a new LyX user, and I am really enjoying it! Thanks to all the  
> developers!
>
> I was just wondering if it was at all possible to get a specific TeX  
> command that LyX does not recognize to display as some sort of non-ERT.
>
> To make that clearer, I'll tell you my issue:
> In the preamble, I have (using kerning and other commands I copied  
> online) defined \dbar to be a d crossed at the top, like \hbar. LyX, of  
> course, recognizes neither \dbar nor the code underneath it, although it  
> looks great in the pdf output. It would be nice (although not necessary)  
> if there was some way I could tell LyX to display \dbar as just a plain  
> "d" instead of ERT, or even better, as a bold or non-italicized (in math  
> mode) "d".
>
> I've looked a little through the archives, and I didn't see anything  
> there that looked like this question, but if it has already been  
> answered, please point me to it!

It only works for math. In this case you can define a math macro with
zero arguments. This definiton will appear with two boxes on screen.
In he first one you put the TeX expansion, in the second one you could
put anything. The contents of the second box will be used for on-screen
rendering, so you can try to fake the appearance of \dbar there.

Andre'


Re: External_templates file format

2008-10-06 Thread David Townshend
On Mon, Oct 6, 2008 at 1:52 PM, rgheck <[EMAIL PROTECTED]> wrote:

> aquavitae wrote:
>
>> Hi
>>
>> Can anyone tell me exactly how the external_templates file works?  I want
>> to
>> use datatool to plot some graphs, and I have the data in a csv file.  Just
>> referencing the csv file in ERT (the code is
>> \DTLloaddb{databasename}{filename}) gives the usual problems with relative
>> paths, so I wanted to try to write a copier for it in external_templates.
>> So
>> far my attempts have got me nowhere and I haven't been able to find any
>> documentation for the file.
>>
>>
> There's material on this in the Customization manual, chapter 6, but I
> can't say I understand it.
>
>  Also, I would have thought that it would be fairly easy to create a
>> generic
>> entry which simply ensures that a file is copied to temp so that if it is
>> referenced in ERT it will be found.  Any comments on this?
>>
>>
>>
> File it in bugzilla, if you wish.
>
> rh
>
>
Uh, thanks.  I feel a bit stupid now - hours googling and I didn't think of
looking at the installed docs!


custom display of specific ERT

2008-10-06 Thread Wendell Smith

Hello,
I am a new LyX user, and I am really enjoying it! Thanks to all the 
developers!


I was just wondering if it was at all possible to get a specific TeX 
command that LyX does not recognize to display as some sort of non-ERT.


To make that clearer, I'll tell you my issue:
In the preamble, I have (using kerning and other commands I copied 
online) defined \dbar to be a d crossed at the top, like \hbar. LyX, of 
course, recognizes neither \dbar nor the code underneath it, although it 
looks great in the pdf output. It would be nice (although not necessary) 
if there was some way I could tell LyX to display \dbar as just a plain 
"d" instead of ERT, or even better, as a bold or non-italicized (in math 
mode) "d".


I've looked a little through the archives, and I didn't see anything 
there that looked like this question, but if it has already been 
answered, please point me to it!


thanks,
Wendell


Re: problems converting from eps to pdf

2008-10-06 Thread Paul A. Rubin

Ralph Boland wrote:

I am running lyx 1.5.3 on ubuntu 08 10  (hardy).
I just added a eps file to a lyx document.
Now I cannot generate a pdf file.
I am told by lyx that I need to add a converter for this in the preferences
dialog.
I found out that if I install livetex-extra-utils I will get a command:
epstopdf

I did this and the command was installed.
I then added converters
epstopdf $$i  (EPS -->PDF (dvipdfm)
epstopdf $$i  (EPS -> PDF (pdflatex)
epstopdf $$i  (EPS -> PDF (ps2pdf)

(I didn't know which of these I needed).

This didn't work however because the command

 "convert"was not found.

I could not find any references to this command on ubuntu.

Can anyone tell me how to install the "convert" command on ubuntu?

 If I am doing anything else wrong fell free to point that out as well.




I'm pretty sure this refers to ImageMagick's convert command.  Make sure 
that you have ImageMagick installed and that convert is on the global 
command path.  When I run 'which convert' in a shell, it's found in 
/usr/bin.


/Paul



Error 0x800f0214

2008-10-06 Thread Gary Ri
I'm on Windows Vista Home Premium x64. I installed LyX version 1.5.6, and
towards the end of the installation it tried to do something with a printer
and gave error 0x800f0214. However when I ran LyX, nothing seemed to be
broken so I'm wondering if I can just ignore it. I googled 0x800f0214 and it
seems to be some problem with printing from x64 to a printer installed in
XP.


problems converting from eps to pdf

2008-10-06 Thread Ralph Boland
I am running lyx 1.5.3 on ubuntu 08 10  (hardy).
I just added a eps file to a lyx document.
Now I cannot generate a pdf file.
I am told by lyx that I need to add a converter for this in the preferences
dialog.
I found out that if I install livetex-extra-utils I will get a command:
epstopdf

I did this and the command was installed.
I then added converters
epstopdf $$i  (EPS -->PDF (dvipdfm)
epstopdf $$i  (EPS -> PDF (pdflatex)
epstopdf $$i  (EPS -> PDF (ps2pdf)

(I didn't know which of these I needed).

This didn't work however because the command

 "convert"was not found.

I could not find any references to this command on ubuntu.

Can anyone tell me how to install the "convert" command on ubuntu?

 If I am doing anything else wrong fell free to point that out as well.


Sincerely,

Ralph Boland


Re: External_templates file format

2008-10-06 Thread rgheck

aquavitae wrote:

Hi

Can anyone tell me exactly how the external_templates file works?  I want to
use datatool to plot some graphs, and I have the data in a csv file.  Just
referencing the csv file in ERT (the code is
\DTLloaddb{databasename}{filename}) gives the usual problems with relative
paths, so I wanted to try to write a copier for it in external_templates. So
far my attempts have got me nowhere and I haven't been able to find any
documentation for the file.  

  
There's material on this in the Customization manual, chapter 6, but I 
can't say I understand it.



Also, I would have thought that it would be fairly easy to create a generic
entry which simply ensures that a file is copied to temp so that if it is
referenced in ERT it will be found.  Any comments on this?

  

File it in bugzilla, if you wish.

rh