Re: eLyxer and (web) typography

2009-06-25 Thread Guenter Milde
On 2009-06-24, Alex Fernandez wrote:

 Sure, but eLyXer does not output MathML. I am waiting for Richard to
 implement it in LyX so that I can then rip it off... (just joking).

As eLyXer is written in Python, the MathML extension for Docutils
might provide something to rip off:
http://docutils.sourceforge.net/sandbox/jensj/latex_math/

Günter



Re: New style with similar properties as listings?

2009-06-25 Thread Philippe Grosjean

I would love to see this feature added in the next LyX version.
Many thanks,

PhG


rgheck wrote:

Jean-Marc Lasgouttes wrote:

LFUN_TAB_INSERT currently
only works with listings. You might be able to redo the bindings so
that the tab key would insert a tab, perhaps via unicode-insert and
then the tab character, but I'm not sure.



This probably that this code should be made more generic and usable in
custom insets... I am not sure how difficult this would be.

  
Fairly easy, I think. The attached basically just moves the code from 
InsetListings to InsetCollapsable and tests against PassThru. I haven't 
actually tested it but can't see how it wouldn't work.


rh



Re: New style with similar properties as listings?

2009-06-25 Thread Philippe Grosjean

As a temporary workaround to get tabs available, I redefine:

\bind Tab command-alternatives 
completion-accept;cell-forward;tab-insert;depth-increment;outline-in;self-insert 
	
with last command being self-insert \t (the actual tabulation). I have 
tried unicode-insert 0x0009, but it does not work.


This is not as good as tab-insert/tab-delete, but will do the job for now...
Best,

PhG


Philippe Grosjean wrote:

I would love to see this feature added in the next LyX version.
Many thanks,

PhG


rgheck wrote:

Jean-Marc Lasgouttes wrote:

LFUN_TAB_INSERT currently
only works with listings. You might be able to redo the bindings so
that the tab key would insert a tab, perhaps via unicode-insert and
then the tab character, but I'm not sure.



This probably that this code should be made more generic and usable in
custom insets... I am not sure how difficult this would be.

  
Fairly easy, I think. The attached basically just moves the code from 
InsetListings to InsetCollapsable and tests against PassThru. I 
haven't actually tested it but can't see how it wouldn't work.


rh






Re: How do i plot a function?

2009-06-25 Thread Liviu Andronic
On 6/25/09, voidie voidina...@gmail.com wrote:
  i would like to plot a simple function like f(x)=3x^2. I know there

You could also do it with Sweave, but this would require knowledge of R.
Liviu


Re: Sciposter example

2009-06-25 Thread Liviu Andronic
On 6/24/09, Ehud Kaplan ehud.kap...@mssm.edu wrote:
 I am looking for an example of a latex or LyX document that used the 
 sciposter.cls
 document class.

Perhaps this [1] would qualify?
Liviu

[1] http://users.soe.ucsc.edu/~avg/Poster/Sciposter/


Re: Sciposter example

2009-06-25 Thread E. Kaplan
Thanks a lot, Phil.  I had given up on Lyx for posters, and used 
sciposter.cls with latex direcly, which turned out to be very good.
However, the example you have referred me to might reignite my interest 
in using Lyx for posters.




Ehud Kaplan



Phil wrote:
check here... I think there is an example 

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



  
  


Article (Koma)-Class: How could I get a smaller fontsize for Abstract

2009-06-25 Thread jezZiFeR

Hello,

I use Lyx 1.6.2 and want to have a smaller fontsize for the abstract- 
article. How could I achieve that?


Best*
Jess


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Rich Shepard

On Wed, 24 Jun 2009, Mauricio Fabian Duque Daza wrote:


My Slackware 12.2 with kde 3.5 and qt4-4.4.3-i486-1 don't work with
lyx-1.6.3-i486-1, at terminal after of lyx, result


Mauricio,

  I do not know what problem you are having. I build my own Slackware
packages for LyX using a SlackBuild script. This has worked well for years.

  Are you having difficulties invoking the appliacation? At the command line
in a virtual terminal type (without the quotation marks) 'lyx -dbg'. The
results flags can be seen here: http://wiki.lyx.org/LyX/DebugFlags.

Rich

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


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Pavel Sanda
Rich Shepard wrote:
 On Wed, 24 Jun 2009, Mauricio Fabian Duque Daza wrote:

 My Slackware 12.2 with kde 3.5 and qt4-4.4.3-i486-1 don't work with
 lyx-1.6.3-i486-1, at terminal after of lyx, result

 Mauricio,

   I do not know what problem you are having. I build my own Slackware
 packages for LyX using a SlackBuild script. This has worked well for years.

   Are you having difficulties invoking the appliacation? At the command 
 line
 in a virtual terminal type (without the quotation marks) 'lyx -dbg'. The
 results flags can be seen here: http://wiki.lyx.org/LyX/DebugFlags.

no this wont help. lyx binary is missing correct libary/ies. either compile
it against libraries on your system or get lyx binary from some standard
packaging system on slackware which provides this compatibility, dunno
how it works on slack.

pavel


Re: How do i plot a function?

2009-06-25 Thread Murray Eisenberg
Another possible option is to use PiCTeX, available at CTAN.  With 
LaTeX, you have to load the PiCTeX macros and then insert the code for 
your graph within a \beginpicture...\endpicture environment.  I've used 
this with LaTeX, but never with LyX.


Liviu Andronic wrote:

On 6/25/09, voidie voidina...@gmail.com wrote:

 i would like to plot a simple function like f(x)=3x^2. I know there


You could also do it with Sweave, but this would require knowledge of R.
Liviu



--
Murray Eisenberg mur...@math.umass.edu
Mathematics  Statistics Dept.
Lederle Graduate Research Tower  phone 413 549-1020 (H)
University of Massachusetts413 545-2859 (W)
710 North Pleasant Streetfax   413 545-1801
Amherst, MA 01003-9305


Article (Koma): How to change fontsize for Abstract

2009-06-25 Thread jezZiFeR

Hello,

I use Lyx 1.6.2 and want to have a smaller fontsize for the abstract- 
article. How could I achieve that?
I´ve tried, just for one instance, to enter ERT: {\footnotesize\}.  
But this works just for one instance, and even then Lyx tells me the  
following:


 \end{abstract}
I've inserted something that you may have forgotten.
(See the inserted text above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

In the compiled text there´s a } as the first sign of the text…

I hope you could help, best*
Jess


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Rich Shepard

On Thu, 25 Jun 2009, Pavel Sanda wrote:


no this wont help. lyx binary is missing correct libary/ies. either compile
it against libraries on your system or get lyx binary from some standard
packaging system on slackware which provides this compatibility, dunno
how it works on slack.


pavel,

  LyX is not part of the Slackware distribution. I'll be happy to send the
OP the lyx.SlackBuild script, but it can also be downloaded from
http://www.slackbuilds.org.

Rich

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


Re: How do i plot a function?

2009-06-25 Thread Phil
   i would like to plot a simple function like
 f(x)=3x^2.  

I found an example I had to make a graph using pstricks.   



  

pstricks_simple_graphing.lyx
Description: application/lyx


Defining external material product on several lines

2009-06-25 Thread Philippe Grosjean
Using LyX 1.6.3 Mac OS X, I am not able to define Product on several 
lines (as the example in the Customization manual). Here is my definition:


Template Rcode
GuiName R code: $$FName
HelpText
Insert R code inside a R-Chunk (Sweave document).
HelpTextEnd
InputFormat R
FileFilter *.{R,r}
AutomaticProduction false
Preview Off
Transform Extra
[...]
Format Ascii
TransformOption Extra  ExtraOption
Option Pre $$Extra=
Product $$Pre
$$Contents(\$$AbsPath$$Basename$$Extension\)
@
FormatEnd
TemplateEnd

Using this, I got only the string equivalent to $$Pre printed in my 
document. If I put everything on one line, that is:


Product $$Pre$$Contents(\$$AbsPath$$Basename$$Extension\)@

it works fine (except the '@' that is not printed)... except I need to 
include line feed between the three elements for correct noweb 
formatting of my output!
May be is it an alternate way to include line feed or @ in the product 
(I have testes \n and \@ without success)?

Best,

PhG
--
..°}))
 ) ) ) ) )
( ( ( ( (Prof. Philippe Grosjean
 ) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
 ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..


Re: How do i plot a function?

2009-06-25 Thread Les Denham
On Thursday 25 June 2009, Murray Eisenberg wrote:
 Another possible option is to use PiCTeX, available at CTAN.  With
 LaTeX, you have to load the PiCTeX macros and then insert the code for
 your graph within a \beginpicture...\endpicture environment.  I've used
 this with LaTeX, but never with LyX.

 Liviu Andronic wrote:
  On 6/25/09, voidie voidina...@gmail.com wrote:
   i would like to plot a simple function like f(x)=3x^2. I know there
 
  You could also do it with Sweave, but this would require knowledge of R.
  Liviu

I would do this using Grace (http://plasma-gate.weizmann.ac.il/Grace/) and 
print the plot to a PDF file.  This can then be included in LyX as a figure. 

Within Grace, the menu sequence is: EditDatasetsEditCreate newBy formula

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


sciposter layout

2009-06-25 Thread Ehud Kaplan
Although I can now make nice posters using Latex with sciposter.cls, I 
still wanted to use Lyx for posters, if possible.

I have tried to use the sciposter.layout for Lyx posted here:
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg63740.html
and stored the layout file in /usr/share/lyx/layouts
but when I tried to reconfigure Lyx (in order to acquaint it with 
sciposter.layout and make the documentclass sciposter available in the 
Document/settings, I got the message that reconfiguration had failed.  
Removing the sciposter.layout file from the layouts directory
made it possible for me to reconfigure the system again, but how do I 
include the layout file?  Do I need to create a matching .inc file for 
sciposter.layout? 
THe manual recommends adult beverages for the creation of layout files, 
but I need more sober advice.

Thanks,

Ehud Kaplan


Re: sciposter layout

2009-06-25 Thread Phil

 message that reconfiguration had failed.   

Make sure this line is in the layout file.  I believe the copy and paste 
removed the end of line feed after the #.   The line should look like this and 
then you should be able to reconfigure.

#  
\DeclareLaTeXClass[sciposter,sectionbox.sty,multicol.sty,wallpaper.sty]{SciPoster}






Re: How do i plot a function?

2009-06-25 Thread Yago

If you need to plot this function you can use this code:

\psset{yunit=0.5cm,xunit=1cm}
\begin{pspicture*}(-2.5,-2)(2.5,10)
\psaxes[Dy=2]{-}(0,0)(-2.5,-1)(2.5,10)
\psset{linewidth=1.5pt}
\psPolynomial[coeff=0 0 3]{-2.5}{5}
\rput[lb](1.6,4.2){$f(x)$}
\end{pspicture*}

You will need the package pst-func in your preamble. See the documentation.
- Original Message - 
From: voidie voidina...@gmail.com

To: lyx-users@lists.lyx.org
Sent: Thursday, June 25, 2009 2:05 AM
Subject: How do i plot a function?



Hey dudes,

i would like to plot a simple function like f(x)=3x^2. I know there
are 2 ways of doing that. The first is to generate an image with an
external tool like gnuplot and include that image in the document
(Which i don't want to do). I would rather use a latex package so the
plot will be generated by data in have in the document. I have been
told i had to alter the latex preamble but is that possible at all? I
know there is a button to include Tex code but that's all.

Cheers!


Re: STY Layout and \maketitle Help

2009-06-25 Thread Jean-Marc Lasgouttes

Le 24 juin 09 à 22:31, rgheck a écrit :
guess it's a tex2lyx importation bug, but I also doubt that any sane  
version of tex2lyx could ever catch this kind of thing reliably.


Could you make an executive summary for me?

JMarc

Re: different counters for different environments

2009-06-25 Thread Paul A. Rubin

rgheck wrote:

Is there a place on the wiki where people can put modules they've 
created for their own use that they think might be useful for others? 
I've got a few of these myself.




There's now a Modules page in the LyX page group 
(http://wiki.lyx.org/LyX/Modules).


/Paul



script

2009-06-25 Thread kgilbert

JanR,

I don't think I ever sent you the script for un-scrambling lyx to  
pdflatex exports.  I am enclosing the email from Carrick Talmadge  
(c...@olemiss.edu) and a zip file with the script.  You might want to  
contact Carrick directly if you have questions.  I have not used the  
script yet, so I would be interested in how it goes for you. Also,  
please let me know if you receive this email.  Thanks - Ken

Here is the email Carrick:

Hi Ken,

I'm including a zip'd version of the file (otherwise the University  
virus filter may kick it out).

Unzip it in the directory you want to correct the latex.

Open a Terminal window, cd to the directory where your latex is then  
run this command:

fixEquations.sh ExampleCalculation.tex

(replace ExampleCalculation.tex with your file name of course.)

You can even type:

fixEquations.sh *.tex

or give it a list of (space delimited) files that you want to run it  
on.  E.g.,

fixEquations.tex a.tex b.tex c.tex

Notes:

The script will move all embedded \begin and \end statements to the  
beginning of a line.  (Not just begin{equations}.)  If you want it to  
be more specific in terms of which types of begin/end statements you  
want to always start at the beginning of a line, let me know.

This script makes a copy of each file it modifies as filename~.  For  
example running the command

fixEquations.sh ExampleCalculation.tex

will create a file named ExampleCalculation.tex~

I've tested it on my computer, there is no reason to expect it not to  
work on yours, but as with any new script that is this invasive, I  
recommend backing up all of your files before trying it and verifying  
it does what you want.

Carrick

 
-- 
View this message in context: 
http://n2.nabble.com/export-to-pdflatex-tp2111628p3159310.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: eLyxer and (web) typography

2009-06-25 Thread Guenter Milde
On 2009-06-24, Alex Fernandez wrote:

 Sure, but eLyXer does not output MathML. I am waiting for Richard to
 implement it in LyX so that I can then rip it off... (just joking).

As eLyXer is written in Python, the MathML extension for Docutils
might provide something to rip off:
http://docutils.sourceforge.net/sandbox/jensj/latex_math/

Günter



Re: New style with similar properties as listings?

2009-06-25 Thread Philippe Grosjean

I would love to see this feature added in the next LyX version.
Many thanks,

PhG


rgheck wrote:

Jean-Marc Lasgouttes wrote:

LFUN_TAB_INSERT currently
only works with listings. You might be able to redo the bindings so
that the tab key would insert a tab, perhaps via unicode-insert and
then the tab character, but I'm not sure.



This probably that this code should be made more generic and usable in
custom insets... I am not sure how difficult this would be.

  
Fairly easy, I think. The attached basically just moves the code from 
InsetListings to InsetCollapsable and tests against PassThru. I haven't 
actually tested it but can't see how it wouldn't work.


rh



Re: New style with similar properties as listings?

2009-06-25 Thread Philippe Grosjean

As a temporary workaround to get tabs available, I redefine:

\bind Tab command-alternatives 
completion-accept;cell-forward;tab-insert;depth-increment;outline-in;self-insert 
	
with last command being self-insert \t (the actual tabulation). I have 
tried unicode-insert 0x0009, but it does not work.


This is not as good as tab-insert/tab-delete, but will do the job for now...
Best,

PhG


Philippe Grosjean wrote:

I would love to see this feature added in the next LyX version.
Many thanks,

PhG


rgheck wrote:

Jean-Marc Lasgouttes wrote:

LFUN_TAB_INSERT currently
only works with listings. You might be able to redo the bindings so
that the tab key would insert a tab, perhaps via unicode-insert and
then the tab character, but I'm not sure.



This probably that this code should be made more generic and usable in
custom insets... I am not sure how difficult this would be.

  
Fairly easy, I think. The attached basically just moves the code from 
InsetListings to InsetCollapsable and tests against PassThru. I 
haven't actually tested it but can't see how it wouldn't work.


rh






Re: How do i plot a function?

2009-06-25 Thread Liviu Andronic
On 6/25/09, voidie voidina...@gmail.com wrote:
  i would like to plot a simple function like f(x)=3x^2. I know there

You could also do it with Sweave, but this would require knowledge of R.
Liviu


Re: Sciposter example

2009-06-25 Thread Liviu Andronic
On 6/24/09, Ehud Kaplan ehud.kap...@mssm.edu wrote:
 I am looking for an example of a latex or LyX document that used the 
 sciposter.cls
 document class.

Perhaps this [1] would qualify?
Liviu

[1] http://users.soe.ucsc.edu/~avg/Poster/Sciposter/


Re: Sciposter example

2009-06-25 Thread E. Kaplan
Thanks a lot, Phil.  I had given up on Lyx for posters, and used 
sciposter.cls with latex direcly, which turned out to be very good.
However, the example you have referred me to might reignite my interest 
in using Lyx for posters.




Ehud Kaplan



Phil wrote:
check here... I think there is an example 

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



  
  


Article (Koma)-Class: How could I get a smaller fontsize for Abstract

2009-06-25 Thread jezZiFeR

Hello,

I use Lyx 1.6.2 and want to have a smaller fontsize for the abstract- 
article. How could I achieve that?


Best*
Jess


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Rich Shepard

On Wed, 24 Jun 2009, Mauricio Fabian Duque Daza wrote:


My Slackware 12.2 with kde 3.5 and qt4-4.4.3-i486-1 don't work with
lyx-1.6.3-i486-1, at terminal after of lyx, result


Mauricio,

  I do not know what problem you are having. I build my own Slackware
packages for LyX using a SlackBuild script. This has worked well for years.

  Are you having difficulties invoking the appliacation? At the command line
in a virtual terminal type (without the quotation marks) 'lyx -dbg'. The
results flags can be seen here: http://wiki.lyx.org/LyX/DebugFlags.

Rich

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


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Pavel Sanda
Rich Shepard wrote:
 On Wed, 24 Jun 2009, Mauricio Fabian Duque Daza wrote:

 My Slackware 12.2 with kde 3.5 and qt4-4.4.3-i486-1 don't work with
 lyx-1.6.3-i486-1, at terminal after of lyx, result

 Mauricio,

   I do not know what problem you are having. I build my own Slackware
 packages for LyX using a SlackBuild script. This has worked well for years.

   Are you having difficulties invoking the appliacation? At the command 
 line
 in a virtual terminal type (without the quotation marks) 'lyx -dbg'. The
 results flags can be seen here: http://wiki.lyx.org/LyX/DebugFlags.

no this wont help. lyx binary is missing correct libary/ies. either compile
it against libraries on your system or get lyx binary from some standard
packaging system on slackware which provides this compatibility, dunno
how it works on slack.

pavel


Re: How do i plot a function?

2009-06-25 Thread Murray Eisenberg
Another possible option is to use PiCTeX, available at CTAN.  With 
LaTeX, you have to load the PiCTeX macros and then insert the code for 
your graph within a \beginpicture...\endpicture environment.  I've used 
this with LaTeX, but never with LyX.


Liviu Andronic wrote:

On 6/25/09, voidie voidina...@gmail.com wrote:

 i would like to plot a simple function like f(x)=3x^2. I know there


You could also do it with Sweave, but this would require knowledge of R.
Liviu



--
Murray Eisenberg mur...@math.umass.edu
Mathematics  Statistics Dept.
Lederle Graduate Research Tower  phone 413 549-1020 (H)
University of Massachusetts413 545-2859 (W)
710 North Pleasant Streetfax   413 545-1801
Amherst, MA 01003-9305


Article (Koma): How to change fontsize for Abstract

2009-06-25 Thread jezZiFeR

Hello,

I use Lyx 1.6.2 and want to have a smaller fontsize for the abstract- 
article. How could I achieve that?
I´ve tried, just for one instance, to enter ERT: {\footnotesize\}.  
But this works just for one instance, and even then Lyx tells me the  
following:


 \end{abstract}
I've inserted something that you may have forgotten.
(See the inserted text above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

In the compiled text there´s a } as the first sign of the text…

I hope you could help, best*
Jess


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Rich Shepard

On Thu, 25 Jun 2009, Pavel Sanda wrote:


no this wont help. lyx binary is missing correct libary/ies. either compile
it against libraries on your system or get lyx binary from some standard
packaging system on slackware which provides this compatibility, dunno
how it works on slack.


pavel,

  LyX is not part of the Slackware distribution. I'll be happy to send the
OP the lyx.SlackBuild script, but it can also be downloaded from
http://www.slackbuilds.org.

Rich

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


Re: How do i plot a function?

2009-06-25 Thread Phil
   i would like to plot a simple function like
 f(x)=3x^2.  

I found an example I had to make a graph using pstricks.   



  

pstricks_simple_graphing.lyx
Description: application/lyx


Defining external material product on several lines

2009-06-25 Thread Philippe Grosjean
Using LyX 1.6.3 Mac OS X, I am not able to define Product on several 
lines (as the example in the Customization manual). Here is my definition:


Template Rcode
GuiName R code: $$FName
HelpText
Insert R code inside a R-Chunk (Sweave document).
HelpTextEnd
InputFormat R
FileFilter *.{R,r}
AutomaticProduction false
Preview Off
Transform Extra
[...]
Format Ascii
TransformOption Extra  ExtraOption
Option Pre $$Extra=
Product $$Pre
$$Contents(\$$AbsPath$$Basename$$Extension\)
@
FormatEnd
TemplateEnd

Using this, I got only the string equivalent to $$Pre printed in my 
document. If I put everything on one line, that is:


Product $$Pre$$Contents(\$$AbsPath$$Basename$$Extension\)@

it works fine (except the '@' that is not printed)... except I need to 
include line feed between the three elements for correct noweb 
formatting of my output!
May be is it an alternate way to include line feed or @ in the product 
(I have testes \n and \@ without success)?

Best,

PhG
--
..°}))
 ) ) ) ) )
( ( ( ( (Prof. Philippe Grosjean
 ) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
 ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..


Re: How do i plot a function?

2009-06-25 Thread Les Denham
On Thursday 25 June 2009, Murray Eisenberg wrote:
 Another possible option is to use PiCTeX, available at CTAN.  With
 LaTeX, you have to load the PiCTeX macros and then insert the code for
 your graph within a \beginpicture...\endpicture environment.  I've used
 this with LaTeX, but never with LyX.

 Liviu Andronic wrote:
  On 6/25/09, voidie voidina...@gmail.com wrote:
   i would like to plot a simple function like f(x)=3x^2. I know there
 
  You could also do it with Sweave, but this would require knowledge of R.
  Liviu

I would do this using Grace (http://plasma-gate.weizmann.ac.il/Grace/) and 
print the plot to a PDF file.  This can then be included in LyX as a figure. 

Within Grace, the menu sequence is: EditDatasetsEditCreate newBy formula

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


sciposter layout

2009-06-25 Thread Ehud Kaplan
Although I can now make nice posters using Latex with sciposter.cls, I 
still wanted to use Lyx for posters, if possible.

I have tried to use the sciposter.layout for Lyx posted here:
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg63740.html
and stored the layout file in /usr/share/lyx/layouts
but when I tried to reconfigure Lyx (in order to acquaint it with 
sciposter.layout and make the documentclass sciposter available in the 
Document/settings, I got the message that reconfiguration had failed.  
Removing the sciposter.layout file from the layouts directory
made it possible for me to reconfigure the system again, but how do I 
include the layout file?  Do I need to create a matching .inc file for 
sciposter.layout? 
THe manual recommends adult beverages for the creation of layout files, 
but I need more sober advice.

Thanks,

Ehud Kaplan


Re: sciposter layout

2009-06-25 Thread Phil

 message that reconfiguration had failed.   

Make sure this line is in the layout file.  I believe the copy and paste 
removed the end of line feed after the #.   The line should look like this and 
then you should be able to reconfigure.

#  
\DeclareLaTeXClass[sciposter,sectionbox.sty,multicol.sty,wallpaper.sty]{SciPoster}






Re: How do i plot a function?

2009-06-25 Thread Yago

If you need to plot this function you can use this code:

\psset{yunit=0.5cm,xunit=1cm}
\begin{pspicture*}(-2.5,-2)(2.5,10)
\psaxes[Dy=2]{-}(0,0)(-2.5,-1)(2.5,10)
\psset{linewidth=1.5pt}
\psPolynomial[coeff=0 0 3]{-2.5}{5}
\rput[lb](1.6,4.2){$f(x)$}
\end{pspicture*}

You will need the package pst-func in your preamble. See the documentation.
- Original Message - 
From: voidie voidina...@gmail.com

To: lyx-users@lists.lyx.org
Sent: Thursday, June 25, 2009 2:05 AM
Subject: How do i plot a function?



Hey dudes,

i would like to plot a simple function like f(x)=3x^2. I know there
are 2 ways of doing that. The first is to generate an image with an
external tool like gnuplot and include that image in the document
(Which i don't want to do). I would rather use a latex package so the
plot will be generated by data in have in the document. I have been
told i had to alter the latex preamble but is that possible at all? I
know there is a button to include Tex code but that's all.

Cheers!


Re: STY Layout and \maketitle Help

2009-06-25 Thread Jean-Marc Lasgouttes

Le 24 juin 09 à 22:31, rgheck a écrit :
guess it's a tex2lyx importation bug, but I also doubt that any sane  
version of tex2lyx could ever catch this kind of thing reliably.


Could you make an executive summary for me?

JMarc

Re: different counters for different environments

2009-06-25 Thread Paul A. Rubin

rgheck wrote:

Is there a place on the wiki where people can put modules they've 
created for their own use that they think might be useful for others? 
I've got a few of these myself.




There's now a Modules page in the LyX page group 
(http://wiki.lyx.org/LyX/Modules).


/Paul



script

2009-06-25 Thread kgilbert

JanR,

I don't think I ever sent you the script for un-scrambling lyx to  
pdflatex exports.  I am enclosing the email from Carrick Talmadge  
(c...@olemiss.edu) and a zip file with the script.  You might want to  
contact Carrick directly if you have questions.  I have not used the  
script yet, so I would be interested in how it goes for you. Also,  
please let me know if you receive this email.  Thanks - Ken

Here is the email Carrick:

Hi Ken,

I'm including a zip'd version of the file (otherwise the University  
virus filter may kick it out).

Unzip it in the directory you want to correct the latex.

Open a Terminal window, cd to the directory where your latex is then  
run this command:

fixEquations.sh ExampleCalculation.tex

(replace ExampleCalculation.tex with your file name of course.)

You can even type:

fixEquations.sh *.tex

or give it a list of (space delimited) files that you want to run it  
on.  E.g.,

fixEquations.tex a.tex b.tex c.tex

Notes:

The script will move all embedded \begin and \end statements to the  
beginning of a line.  (Not just begin{equations}.)  If you want it to  
be more specific in terms of which types of begin/end statements you  
want to always start at the beginning of a line, let me know.

This script makes a copy of each file it modifies as filename~.  For  
example running the command

fixEquations.sh ExampleCalculation.tex

will create a file named ExampleCalculation.tex~

I've tested it on my computer, there is no reason to expect it not to  
work on yours, but as with any new script that is this invasive, I  
recommend backing up all of your files before trying it and verifying  
it does what you want.

Carrick

 
-- 
View this message in context: 
http://n2.nabble.com/export-to-pdflatex-tp2111628p3159310.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: eLyxer and (web) typography

2009-06-25 Thread Guenter Milde
On 2009-06-24, Alex Fernandez wrote:

> Sure, but eLyXer does not output MathML. I am waiting for Richard to
> implement it in LyX so that I can then rip it off... (just joking).

As eLyXer is written in Python, the MathML extension for Docutils
might provide something to rip off:
http://docutils.sourceforge.net/sandbox/jensj/latex_math/

Günter



Re: New style with similar properties as listings?

2009-06-25 Thread Philippe Grosjean

I would love to see this feature added in the next LyX version.
Many thanks,

PhG


rgheck wrote:

Jean-Marc Lasgouttes wrote:

LFUN_TAB_INSERT currently
only works with listings. You might be able to redo the bindings so
that the tab key would insert a tab, perhaps via unicode-insert and
then the tab character, but I'm not sure.



This probably that this code should be made more generic and usable in
custom insets... I am not sure how difficult this would be.

  
Fairly easy, I think. The attached basically just moves the code from 
InsetListings to InsetCollapsable and tests against PassThru. I haven't 
actually tested it but can't see how it wouldn't work.


rh



Re: New style with similar properties as listings?

2009-06-25 Thread Philippe Grosjean

As a temporary workaround to get tabs available, I redefine:

\bind "Tab" "command-alternatives 
completion-accept;cell-forward;tab-insert;depth-increment;outline-in;self-insert 
	"
with last command being self-insert \t (the actual tabulation). I have 
tried unicode-insert 0x0009, but it does not work.


This is not as good as tab-insert/tab-delete, but will do the job for now...
Best,

PhG


Philippe Grosjean wrote:

I would love to see this feature added in the next LyX version.
Many thanks,

PhG


rgheck wrote:

Jean-Marc Lasgouttes wrote:

LFUN_TAB_INSERT currently
only works with listings. You might be able to redo the bindings so
that the tab key would insert a tab, perhaps via unicode-insert and
then the tab character, but I'm not sure.



This probably that this code should be made more generic and usable in
custom insets... I am not sure how difficult this would be.

  
Fairly easy, I think. The attached basically just moves the code from 
InsetListings to InsetCollapsable and tests against PassThru. I 
haven't actually tested it but can't see how it wouldn't work.


rh






Re: How do i plot a function?

2009-06-25 Thread Liviu Andronic
On 6/25/09, voidie  wrote:
>  i would like to plot a simple function like f(x)=3x^2. I know there
>
You could also do it with Sweave, but this would require knowledge of R.
Liviu


Re: Sciposter example

2009-06-25 Thread Liviu Andronic
On 6/24/09, Ehud Kaplan  wrote:
> I am looking for an example of a latex or LyX document that used the 
> sciposter.cls
> document class.
>
Perhaps this [1] would qualify?
Liviu

[1] http://users.soe.ucsc.edu/~avg/Poster/Sciposter/


Re: Sciposter example

2009-06-25 Thread E. Kaplan
Thanks a lot, Phil.  I had given up on Lyx for posters, and used 
sciposter.cls with latex direcly, which turned out to be very good.
However, the example you have referred me to might reignite my interest 
in using Lyx for posters.




Ehud Kaplan



Phil wrote:
check here... I think there is an example 

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



  
  


Article (Koma)-Class: How could I get a smaller fontsize for "Abstract"

2009-06-25 Thread jezZiFeR

Hello,

I use Lyx 1.6.2 and want to have a smaller fontsize for the "abstract"- 
article. How could I achieve that?


Best*
Jess


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Rich Shepard

On Wed, 24 Jun 2009, Mauricio Fabian Duque Daza wrote:


My Slackware 12.2 with kde 3.5 and qt4-4.4.3-i486-1 don't work with
lyx-1.6.3-i486-1, at terminal after of lyx, result


Mauricio,

  I do not know what problem you are having. I build my own Slackware
packages for LyX using a SlackBuild script. This has worked well for years.

  Are you having difficulties invoking the appliacation? At the command line
in a virtual terminal type (without the quotation marks) 'lyx -dbg'. The
results flags can be seen here: .

Rich

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


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Pavel Sanda
Rich Shepard wrote:
> On Wed, 24 Jun 2009, Mauricio Fabian Duque Daza wrote:
>
>> My Slackware 12.2 with kde 3.5 and qt4-4.4.3-i486-1 don't work with
>> lyx-1.6.3-i486-1, at terminal after of lyx, result
>
> Mauricio,
>
>   I do not know what problem you are having. I build my own Slackware
> packages for LyX using a SlackBuild script. This has worked well for years.
>
>   Are you having difficulties invoking the appliacation? At the command 
> line
> in a virtual terminal type (without the quotation marks) 'lyx -dbg'. The
> results flags can be seen here: .

no this wont help. lyx binary is missing correct libary/ies. either compile
it against libraries on your system or get lyx binary from some standard
packaging system on slackware which provides this compatibility, dunno
how it works on slack.

pavel


Re: How do i plot a function?

2009-06-25 Thread Murray Eisenberg
Another possible option is to use PiCTeX, available at CTAN.  With 
LaTeX, you have to load the PiCTeX macros and then insert the code for 
your graph within a \beginpicture...\endpicture environment.  I've used 
this with LaTeX, but never with LyX.


Liviu Andronic wrote:

On 6/25/09, voidie  wrote:

 i would like to plot a simple function like f(x)=3x^2. I know there


You could also do it with Sweave, but this would require knowledge of R.
Liviu



--
Murray Eisenberg mur...@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower  phone 413 549-1020 (H)
University of Massachusetts413 545-2859 (W)
710 North Pleasant Streetfax   413 545-1801
Amherst, MA 01003-9305


Article (Koma): How to change fontsize for "Abstract"

2009-06-25 Thread jezZiFeR

Hello,

I use Lyx 1.6.2 and want to have a smaller fontsize for the "abstract"- 
article. How could I achieve that?
I´ve tried, just for one instance, to enter ERT: "{\footnotesize\}".  
But this works just for one instance, and even then Lyx tells me the  
following:


 \end{abstract}
I've inserted something that you may have forgotten.
(See the  above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

In the compiled text there´s a "}" as the first sign of the text…

I hope you could help, best*
Jess


Re: problem with lyx at slackware 12.2

2009-06-25 Thread Rich Shepard

On Thu, 25 Jun 2009, Pavel Sanda wrote:


no this wont help. lyx binary is missing correct libary/ies. either compile
it against libraries on your system or get lyx binary from some standard
packaging system on slackware which provides this compatibility, dunno
how it works on slack.


pavel,

  LyX is not part of the Slackware distribution. I'll be happy to send the
OP the lyx.SlackBuild script, but it can also be downloaded from
http://www.slackbuilds.org.

Rich

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


Re: How do i plot a function?

2009-06-25 Thread Phil
> >>  i would like to plot a simple function like
> f(x)=3x^2.  

I found an example I had to make a graph using pstricks.   



  

pstricks_simple_graphing.lyx
Description: application/lyx


Defining external material product on several lines

2009-06-25 Thread Philippe Grosjean
Using LyX 1.6.3 Mac OS X, I am not able to define Product on several 
lines (as the example in the Customization manual). Here is my definition:


Template Rcode
GuiName "R code: $$FName"
HelpText
Insert R code inside a R-Chunk (Sweave document).
HelpTextEnd
InputFormat R
FileFilter "*.{R,r}"
AutomaticProduction false
Preview Off
Transform Extra
[...]
Format Ascii
TransformOption Extra  ExtraOption
Option Pre "<<$$Extra>>="
Product "$$Pre
$$Contents(\"$$AbsPath$$Basename$$Extension\")
@"
FormatEnd
TemplateEnd

Using this, I got only the string equivalent to $$Pre printed in my 
document. If I put everything on one line, that is:


Product "$$Pre$$Contents(\"$$AbsPath$$Basename$$Extension\")@"

it works fine (except the '@' that is not printed)... except I need to 
include line feed between the three elements for correct noweb 
formatting of my output!
May be is it an alternate way to include line feed or @ in the product 
(I have testes \n and \@ without success)?

Best,

PhG
--
..<°}))><
 ) ) ) ) )
( ( ( ( (Prof. Philippe Grosjean
 ) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
 ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..


Re: How do i plot a function?

2009-06-25 Thread Les Denham
On Thursday 25 June 2009, Murray Eisenberg wrote:
> Another possible option is to use PiCTeX, available at CTAN.  With
> LaTeX, you have to load the PiCTeX macros and then insert the code for
> your graph within a \beginpicture...\endpicture environment.  I've used
> this with LaTeX, but never with LyX.
>
> Liviu Andronic wrote:
> > On 6/25/09, voidie  wrote:
> >>  i would like to plot a simple function like f(x)=3x^2. I know there
> >
> > You could also do it with Sweave, but this would require knowledge of R.
> > Liviu

I would do this using Grace (http://plasma-gate.weizmann.ac.il/Grace/) and 
print the plot to a PDF file.  This can then be included in LyX as a figure. 

Within Grace, the menu sequence is: Edit>Datasets>Edit>Create new>By formula

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


>sciposter layout

2009-06-25 Thread Ehud Kaplan
Although I can now make nice posters using Latex with sciposter.cls, I 
still wanted to use Lyx for posters, if possible.

I have tried to use the sciposter.layout for Lyx posted here:
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg63740.html
and stored the layout file in /usr/share/lyx/layouts
but when I tried to reconfigure Lyx (in order to acquaint it with 
sciposter.layout and make the documentclass sciposter available in the 
Document/settings, I got the message that reconfiguration had failed.  
Removing the sciposter.layout file from the layouts directory
made it possible for me to reconfigure the system again, but how do I 
include the layout file?  Do I need to create a matching .inc file for 
sciposter.layout? 
THe manual recommends adult beverages for the creation of layout files, 
but I need more sober advice.

Thanks,

Ehud Kaplan


Re: >sciposter layout

2009-06-25 Thread Phil

> message that reconfiguration had failed.   

Make sure this line is in the layout file.  I believe the copy and paste 
removed the end of line feed after the #.   The line should look like this and 
then you should be able to reconfigure.

#  
\DeclareLaTeXClass[sciposter,sectionbox.sty,multicol.sty,wallpaper.sty]{SciPoster}






Re: How do i plot a function?

2009-06-25 Thread Yago

If you need to plot this function you can use this code:

\psset{yunit=0.5cm,xunit=1cm}
\begin{pspicture*}(-2.5,-2)(2.5,10)
\psaxes[Dy=2]{->}(0,0)(-2.5,-1)(2.5,10)
\psset{linewidth=1.5pt}
\psPolynomial[coeff=0 0 3]{-2.5}{5}
\rput[lb](1.6,4.2){$f(x)$}
\end{pspicture*}

You will need the package pst-func in your preamble. See the documentation.
- Original Message - 
From: "voidie" 

To: 
Sent: Thursday, June 25, 2009 2:05 AM
Subject: How do i plot a function?



Hey dudes,

i would like to plot a simple function like f(x)=3x^2. I know there
are 2 ways of doing that. The first is to generate an image with an
external tool like gnuplot and include that image in the document
(Which i don't want to do). I would rather use a latex package so the
plot will be generated by data in have in the document. I have been
told i had to alter the latex preamble but is that possible at all? I
know there is a button to include Tex code but that's all.

Cheers!


Re: STY Layout and \maketitle Help

2009-06-25 Thread Jean-Marc Lasgouttes

Le 24 juin 09 à 22:31, rgheck a écrit :
guess it's a tex2lyx importation bug, but I also doubt that any sane  
version of tex2lyx could ever catch this kind of thing reliably.


Could you make an executive summary for me?

JMarc

Re: different counters for different environments

2009-06-25 Thread Paul A. Rubin

rgheck wrote:

Is there a place on the wiki where people can put modules they've 
created for their own use that they think might be useful for others? 
I've got a few of these myself.




There's now a Modules page in the LyX page group 
(http://wiki.lyx.org/LyX/Modules).


/Paul



script

2009-06-25 Thread kgilbert

JanR,

I don't think I ever sent you the script for un-scrambling lyx to  
pdflatex exports.  I am enclosing the email from Carrick Talmadge  
(c...@olemiss.edu) and a zip file with the script.  You might want to  
contact Carrick directly if you have questions.  I have not used the  
script yet, so I would be interested in how it goes for you. Also,  
please let me know if you receive this email.  Thanks - Ken

Here is the email Carrick:

Hi Ken,

I'm including a zip'd version of the file (otherwise the University  
virus filter may kick it out).

Unzip it in the directory you want to correct the latex.

Open a Terminal window, cd to the directory where your latex is then  
run this command:

fixEquations.sh ExampleCalculation.tex

(replace "ExampleCalculation.tex" with your file name of course.)

You can even type:

fixEquations.sh *.tex

or give it a list of (space delimited) files that you want to run it  
on.  E.g.,

fixEquations.tex a.tex b.tex c.tex

Notes:

The script will move all embedded \begin and \end statements to the  
beginning of a line.  (Not just begin{equations}.)  If you want it to  
be more specific in terms of which types of begin/end statements you  
want to always start at the beginning of a line, let me know.

This script makes a copy of each file it modifies as filename~.  For  
example running the command

fixEquations.sh ExampleCalculation.tex

will create a file named ExampleCalculation.tex~

I've tested it on my computer, there is no reason to expect it not to  
work on yours, but as with any new script that is this invasive, I  
recommend backing up all of your files before trying it and verifying  
it does what you want.

Carrick

 
-- 
View this message in context: 
http://n2.nabble.com/export-to-pdflatex-tp2111628p3159310.html
Sent from the LyX - Users mailing list archive at Nabble.com.