Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
Hi

I created myself a TODO module, which adds text in green to the text
(below). it works nicely,, but I would like to have brackests arount the
TODO: and the text, i.e., at the moment I get:

(TODO:) I still heve to do this

I want:

(TODO: I still have to do this)

How can I achieve this?

Thanks

Rainer


#\DeclareLyXModule{TODO}
#DescriptionBegin
#Inserts green TODO note in tesxt
#DescriptionEnd
# Author: Rainer M Krug rai...@krugs.de

Format 11

InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName
textcolor{green}{\textbf(TODO):~}\textcolor{green}
Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}
EndPreamble
End


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Manveru
2009/12/14 Rainer M Krug r.m.k...@gmail.com:
 Hi

 I created myself a TODO module, which adds text in green to the text
 (below). it works nicely,, but I would like to have brackests arount the
 TODO: and the text, i.e., at the moment I get:

 (TODO:) I still heve to do this

 I want:

 (TODO: I still have to do this)

 How can I achieve this?

 Thanks

 Rainer


 #\DeclareLyXModule{TODO}
 #DescriptionBegin
 #Inserts green TODO note in tesxt
 #DescriptionEnd
 # Author: Rainer M Krug rai...@krugs.de

 Format 11

 InsetLayout TODO
        LyXType               custom
        LabelString           TODO
        LatexType             command
        LatexName
 textcolor{green}{\textbf(TODO):~}\textcolor{green}
        Decoration            classic
        LabelFont
          Color               green
          Size                Large
          Series              Bold
        EndFont
        OptionalArgs          1
        MultiPar              false
        Preamble
            \RequirePackage{xcolor}
        EndPreamble
 End


 --
 NEW GERMAN FAX NUMBER!!!

 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
 UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Natural Sciences Building
 Office Suite 2039
 Stellenbosch University
 Main Campus, Merriman Avenue
 Stellenbosch
 South Africa

 Cell:           +27 - (0)83 9479 042
 Fax:            +27 - (0)86 516 2782
 Fax:            +49 - (0)321 2125 2244
 email:          rai...@krugs.de

 Skype:          RMkrug
 Google:         r.m.k...@gmail.com


The line:

textcolor{green}{\textbf(TODO):~}\textcolor{green}

I think it should be (move the bracket):

textcolor{green}{\textbf(TODO:~)}\textcolor{green}

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:06 AM, Manveru manv...@manveru.pl wrote:

 2009/12/14 Rainer M Krug r.m.k...@gmail.com:
  Hi
 
  I created myself a TODO module, which adds text in green to the text
  (below). it works nicely,, but I would like to have brackests arount the
  TODO: and the text, i.e., at the moment I get:
 
  (TODO:) I still heve to do this
 
  I want:
 
  (TODO: I still have to do this)
 
  How can I achieve this?
 
  Thanks
 
  Rainer
 
 
  #\DeclareLyXModule{TODO}
  #DescriptionBegin
  #Inserts green TODO note in tesxt
  #DescriptionEnd
  # Author: Rainer M Krug rai...@krugs.de
 
  Format 11
 
  InsetLayout TODO
 LyXType   custom
 LabelString   TODO
 LatexType command
 LatexName
  textcolor{green}{\textbf(TODO):~}\textcolor{green}
 Decorationclassic
 LabelFont
   Color   green
   SizeLarge
   Series  Bold
 EndFont
 OptionalArgs  1
 MultiPar  false
 Preamble
 \RequirePackage{xcolor}
 EndPreamble
  End
 
 
  --
  NEW GERMAN FAX NUMBER!!!
 
  Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology,
  UCT), Dipl. Phys. (Germany)
 
  Centre of Excellence for Invasion Biology
  Natural Sciences Building
  Office Suite 2039
  Stellenbosch University
  Main Campus, Merriman Avenue
  Stellenbosch
  South Africa
 
  Cell:   +27 - (0)83 9479 042
  Fax:+27 - (0)86 516 2782
  Fax:+49 - (0)321 2125 2244
  email:  rai...@krugs.de
 
  Skype:  RMkrug
  Google: r.m.k...@gmail.com
 

 The line:

 textcolor{green}{\textbf(TODO):~}\textcolor{green}

 I think it should be (move the bracket):

 textcolor{green}{\textbf(TODO:~)}\textcolor{green}


Thanks - but this produces:

(TODO:  )I still have to do this

The ~ is a protected space, and the test which is entered in the TODO field,
is added AFTER the LatexName is executed.


 --
 Manveru
 jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Lyx 1.6.5 Installer

2009-12-14 Thread Olivier Ripoll

Vincent van Ravesteijn wrote:

Uwe Stöhr schreef:

Am 13.12.2009 14:10, schrieb Vincent van Ravesteijn:


LyX is programmed in a way that a console is always started. My and
also the standard installer hides it immediately.


The standard installer doesn't open this console window.


Ok, I see some extra movement in the task bar when opening LyX, .. 
that's all.


I believe that with your installer, one can really see a window popping 
up (or two).


Well, it's three in fact: first two windows open and close quickly, then 
one opens and stays for quite a while. That's probably the one most 
people complain about. this one opens also if you use lyxLauncher.exe or 
lyx.exe.


If you change the lyx.bat start command with /MIN and/or /B, the 2 
first windows will actually stay longer (IOW don't do that ;-) ).


Note that it's unclear to me why such a minor cosmetic problem who lead 
to prefer one installer over the other. Uwe's installer has the 
advantage of being out sometimes up to 1 week before the other one. 
That's quite a significant bonus if you are waiting for the new version 
because you have a nasty problem (crash, etc.).


Best regards,

Olivier

PS: I also remember that there is a message about installing PyWin or 
something with a similar name to avoid the console. Could that be a 
difference between installers ?




Vincent






Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rudi van der Linde




SNIP
This has not been tested but try something along the lines of:

  

  

InsetLayout TODO
   LyXType   custom
   LabelString   TODO
   LatexType command
   LatexName
myOwnTodo
  

  



  

 Decorationclassic
   LabelFont
 Color   green
 SizeLarge
 Series  Bold
   EndFont
   OptionalArgs  1
   MultiPar  false
   Preamble
   \RequirePackage{xcolor}
  

  


\newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~}
#1}\textcolor{green}

  

 EndPreamble
End
  

  

SNIP

i.e. do the following: 
1. Declare your own command in the Preamble section to do exactly what
you need, e.g. \myOwnTodo
2. Make that the LatexName in the layout, i.e. "LatexName myOwnTodo"

hth

-- 


 Rudi van der Linde
Senior Development Engineer

  Phone: +27 12 424 8539 



  

  
   ANSYS Limited
  ansys.co.zaReg. No.
1987/001222/06
  
Phone: +27 12 346 3141Fax: +27 12 346 3720
170 Outeniqua Avenue, Waterkloof Park, Pretoria
P.O.Box 95361, Waterkloof, 0145, South Africa 

  

This message (and attachments) is subject to
restrictions and a disclaimer. Please refer to ansys.co.za or e-mail for full details.






Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 1:03 PM, Rudi van der Linde rudi...@ansys.co.zawrote:

  SNIP
 This has not been tested but try something along the lines of:

  InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName
 myOwnTodo



  Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}



 \newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~}
 #1}\textcolor{green}

 EndPreamble
 End


   SNIP

 i.e. do the following:
 1. Declare your own command in the Preamble section to do exactly what you
 need, e.g. \myOwnTodo
 2. Make that the LatexName in the layout, i.e. LatexName myOwnTodo


Thanks - that's it. It is working. For reference: below find the TODO
module:


#\DeclareLyXModule{TODO}
#DescriptionBegin
#Inserts green TODO note in text
#DescriptionEnd
# Author: Rainer M Krug rai...@krugs.de

Format 11

InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName myOwnTodo
Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}
\newcommand{\myOwnTodo}[1]{\textcolor{green}{[\textbf{TODO:~} #1
]} }
EndPreamble
End


The advantage: if yiou load the TODO notes module from Juergen, it
automatically uses those instead of the in-text-TODO notes!

Cheers,

Rainer


 hth

 --

  Rudi van der Linde
 Senior Development Engineer

  Phone: +27 12 424 8539
 --
   [image: ANSYS Logo] ANSYS Limited
 ansys.co.za http://www.ansys.co.za Reg. No. 1987/001222/06

 Phone: +27 12 346 3141 Fax: +27 12 346 3720
 170 Outeniqua Avenue, Waterkloof Park, Pretoria
 P.O.Box 95361, Waterkloof, 0145, South Africa

 This message (and attachments) is subject to restrictions and a disclaimer.
 Please refer to ansys.co.za http://www.ansys.co.za/?page_id=136 or
 e-mail geni...@ansys.co.za for full details.




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
ansyslogo.png

How does one use the Liberation fonts in LyX?

2009-12-14 Thread Steve Litt
Hi all,

How does one use the Liberation fonts in LyX? These are truetype fonts 
metrically identical to Microsoft's main fonts:

Liberation Mono - Courier New
Liberation Sans - Arial
Liberation Serif - Times New Roman

(http://en.wikipedia.org/wiki/Liberation_fonts)

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 02:54 AM, Rainer M Krug wrote:

Sorry - the copier should read:

###
#!/bin/bash

FROM=$1

TO=$2
TODIR=`dirname $TO`

svn info $FROM  $TODIR/svninfo.txt
###

   

This might work.

You should put the copier in ~/.lyx/scripts/

rh



Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck rgh...@bobjweil.com

 On 12/14/2009 02:54 AM, Rainer M Krug wrote:

 Sorry - the copier should read:

 ###
 #!/bin/bash

 FROM=$1

 TO=$2
 TODIR=`dirname $TO`

 svn info $FROM  $TODIR/svninfo.txt
 ###



 This might work.

 You should put the copier in ~/.lyx/scripts/


I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set the
copier to execute this script somwehere under FileFormats?

Or are the scripts in ~/.lyx/scripts automatically executed?

Rainer


 rh




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 09:41 AM, Rainer M Krug wrote:


I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set 
the copier to execute this script somwehere under FileFormats?


Yes, you have to set the copier under Converters, for whichever 
converter you want to use it with. Note that you will want to use the 
variables mentioned in Customization 3.2 to get the arguments you need.


By the way, I think you will also need to do the actual copying of the 
file from the temporary directory to the destination directory yourself. 
If you use a special copier, then LyX does not do it for you.


rh



Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck rgh...@bobjweil.com

 On 12/14/2009 09:41 AM, Rainer M Krug wrote:


 I save it in  ~/.lyx/scripts/ but it is not executed.

 Do I have to set it somewhere to execute the script? Do I have to set the
 copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever converter
 you want to use it with. Note that you will want to use the variables
 mentioned in Customization 3.2 to get the arguments you need.


Do I have to set it under Copiers File Formats, or under Converters? I
thought if I specify it under File Formats - Copier, it should work.



 By the way, I think you will also need to do the actual copying of the file
 from the temporary directory to the destination directory yourself. If you
 use a special copier, then LyX does not do it for you.


Makes sense.

Rainer



 rh




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: How does one use the Liberation fonts in LyX?

2009-12-14 Thread Rob Oakes
Hi Steve, 

I think that you have one of two options.  The first, of course is to
install the fonts onto your system in the normal way and then use XeTeX
to compile the document.  If you choose this route, you can assign the
font through the use of the \setfont macros: \setmainfont{font name},
\setsansfont{font name}, \setmonofont{font name}

If using LyX 1.6.5, you will need to set up XeLaTeX to work with LyX.
There is information on how to do this on the wiki.  If using LyX SVN,
it already has support built-in.  Just go to Document Settings - Output
and enable Use XeTeX.

Additional information about XeLaTex and font support is available at:

http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/

The alternative is to see if someone has created a font definition file.
You can also create your own.  Additional information about the process
is available from the excellent blog, Existential Type:

http://existentialtype.net/2008/07/12/fonts-in-latex-part-two-pdftex-and-opentype/

I personally prefer to go the XeLaTeX route.  Since moving over to LyX
SVN, I use it to compile more or less everything.  While there are some
packages it doesn't support (like microtype), I find that it does a good
job with just about everything.  I've even been able to use some of the
more exotic modules (like Sweave) and classes (like Tufte) without
problems.  For an example output, see:

http://www.oak-tree.us/stuff/LyX/Sweave-Opportunity.pdf

(Aside: In the example above, using xetex allowed me to use the same
typefaces that Tufte uses -- Bembo and Gil Sans -- without creating a
font definition file for them -- which ranks right alongside major oral
surgery on my priority list.)

Cheers,

Rob Oakes





Re: install new layout class

2009-12-14 Thread Sergio Celani

El 13/12/2009 11:33 p.m., rgheck escribió:

On 12/13/2009 07:46 PM, Sergio Celani wrote:

Hi

I have some problems for to install a new layout.

I create a layout for the class au.cl of the journal Algebra Universalis
http://www.math.umanitoba.ca/homepages/au/instructions.html

I assume you have saved this as au.cls? I don't know for sure, but LyX 
may want to see the standard .cls extension.


First, I install the au.cl class in Miktex.  The class is installed 
correctly because I have checked with Texnicenter.

So take the amsar.layout  (the au.class is a derived of the amsart.cl).
I change the \DeclareLaTeXClass{article (AMS)}  by  
\DeclareLaTeXClass[au]{AlgUniversalis (AU)}.

I record a new layout called alguniv.layout
In LyX   run Reconfigure, closed and open Lyx. Open a new document.
So, I go  Document =  Settings -  Document Class  and when I select 
the new class is not available.



Do you see your layout there at all? Or is it marked unavailable?


If you don't see it at all, then where did you put your new layout 
file? You might try saving it as au.layout, and deleting the [au] 
optional argument. This is easier.


If it's marked unavailable, then the problem is that the configure.py 
script is not finding the class for some reason. Try to reconfigure 
again.


Richard





It is marked unavailable, in a computer with Windows 7, and other with 
Windows Vista.


But, in a computer with Windows XP no problem (is the same layout, put 
in the \layouts)

Maybe it's a problem of seven and vista





Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 09:53 AM, Rainer M Krug wrote:

2009/12/14 rgheckrgh...@bobjweil.com

   

On 12/14/2009 09:41 AM, Rainer M Krug wrote:

 

I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set the
copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever converter
   

you want to use it with. Note that you will want to use the variables
mentioned in Customization 3.2 to get the arguments you need.

 

Do I have to set it under Copiers File Formats, or under Converters? I
thought if I specify it under File Formats - Copier, it should work.

   

Sorry, yes, under Formats.

rh



Re: install new layout class

2009-12-14 Thread rgheck

On 12/14/2009 10:17 AM, Sergio Celani wrote:

El 13/12/2009 11:33 p.m., rgheck escribió:

On 12/13/2009 07:46 PM, Sergio Celani wrote:

Hi

I have some problems for to install a new layout.

I create a layout for the class au.cl of the journal Algebra 
Universalis

http://www.math.umanitoba.ca/homepages/au/instructions.html

I assume you have saved this as au.cls? I don't know for sure, but 
LyX may want to see the standard .cls extension.


First, I install the au.cl class in Miktex.  The class is installed 
correctly because I have checked with Texnicenter.

So take the amsar.layout  (the au.class is a derived of the amsart.cl).
I change the \DeclareLaTeXClass{article (AMS)}  by  
\DeclareLaTeXClass[au]{AlgUniversalis (AU)}.

I record a new layout called alguniv.layout
In LyX   run Reconfigure, closed and open Lyx. Open a new document.
So, I go  Document =  Settings -  Document Class  and when I 
select the new class is not available.



Do you see your layout there at all? Or is it marked unavailable?


If you don't see it at all, then where did you put your new layout 
file? You might try saving it as au.layout, and deleting the [au] 
optional argument. This is easier.


If it's marked unavailable, then the problem is that the configure.py 
script is not finding the class for some reason. Try to reconfigure 
again.


Richard





It is marked unavailable, in a computer with Windows 7, and other with 
Windows Vista.


But, in a computer with Windows XP no problem (is the same layout, put 
in the \layouts)

Maybe it's a problem of seven and vista.

OK, so the problem is that for some reason LyX isn't finding the 
document class. Try it with as au.layout and no optional argument.


rh



XeTeX with LyX

2009-12-14 Thread Yago
Hi to all.

I have XeTeX installed and builded in my MikTex installation but I cannot add a 
new pdf converter in accord with this instructions from the wiki.

Setting up LyX to work with Xetex
This assumes you have Xetex installed. On my texlive installation, it was 
installed automatically. Try running 'xetex' or 'xelatex' to check if its 
there. If not, install it (depends on your LaTeX distribution). 

First of all, you need to add a PDF (xetex) File Format and LyX-Xetex 
conversion: 

Under Tools-Preferences-File handling-File formats, click New and 

[x] check Document Format 
[x] check Vector Graphic Format 
Short Name: pdf4 
Extension: pdf 
Viewer: xdg-open
(Windows users should use pdfview. Alternatively, use any viewer that worked 
for you under File Format PDF (pdflatex).) 

Under Converters (just above the File formats you just clicked on), click 
on add and set 

From format: LaTeX (pdflatex) 
To format: PDF (xelatex) 
Converter: xelatex $$i 
Extra flag: latex 
[x] check Enabled 

There's no problem for me with the first part, but in my Converters window I 
cannot select the option Add that's she's in gray.


Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck rgh...@bobjweil.com

 On 12/14/2009 09:53 AM, Rainer M Krug wrote:

 2009/12/14 rgheckrgh...@bobjweil.com



 On 12/14/2009 09:41 AM, Rainer M Krug wrote:



 I save it in  ~/.lyx/scripts/ but it is not executed.

 Do I have to set it somewhere to execute the script? Do I have to set
 the
 copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever
 converter


 you want to use it with. Note that you will want to use the variables
 mentioned in Customization 3.2 to get the arguments you need.



 Do I have to set it under Copiers File Formats, or under Converters? I
 thought if I specify it under File Formats - Copier, it should work.



 Sorry, yes, under Formats.


I don't get it to work - whatever I try. The copier (cp.lyx) in
~/.lyx/scriots reads:

##
#!/bin/bash
FROM=$1
TO=$2
TODIR=`dirname $TO`

svn info $FROM  $TODIR/svninfo.txt
cp $FROM $TO
###

Now which copier should I define? I want to have it preferably for all
output formats, for View as well as Export. But I would be happy if it works
for pdf (pdflatex).

So I thought, I define the copier for PDF (pdflatex) as:

cp.lyx $$i $$o

First observation: I have to specify the whole path, i.e:

~/.lyx/scripts/cp.lyx $$i $$o

Second: it works only when I use Export - and then this is the final step,
i.e. AFTER the pdf is created (obviously) and the svn info can not be
included in the document.

What I would need, is a way of executing the command svn info
TheLyxFile.lyx  TheTMPDIR/svninfo.txt BEFORE LaTeX is compiling, so that
the file can be included in the final document.

Any tips appreciated,

Rainer





 rh




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: svninfo packages and similar in LyX

2009-12-14 Thread Julien Rioux
Sure, try to start with the minimal attached file

at the prompt, do:

svn add svn.lyx
svn propset svn:keywords Id svn.lyx
svn commit
svn update

then open the file with lyx and view-dvi (or whatever)

it works here

Cheers,
Julien


svn.lyx
Description: Binary data


pkg/42449: pkgsrc-built LyX uses unusable font on Red Hat (fwd)

2009-12-14 Thread Jeremy C. Reed
Anyone recognize this problem in this bug report?
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=42449
(A screenshot is linked from there too.)

Using wrong fonts for menu and introductory graphic.


Page numbering for subpages

2009-12-14 Thread Dainis Zegners
Hello to everybody!

I have the following problem to solve in Lyx:

I have a couple of graphics in floats that each fill a whole page. I want that
these pages are inserted as subpages, that is with numberings 40a, 40b, etc.

The reason is that I am writting a thesis with a maximum page limit of 40, but I
am allowed to count pages with graphs only as subpages.

I have already searched the internet for some hours but have not found a
solution yet. I found a latex package called subfigure , but some how this did
not work together with the float environment.

I would greatly appreciate any help, thanks in advance ! 

Dainis

P.S. I am using Lyx 1.6.2 on a Ubuntu 9.0.4 system.

   



change latex export

2009-12-14 Thread Sergio Celani

Hi

I new user of Lyx.Before I used Scientific Workplace.


I would like to change the way as Lyx export some  latex files.

For example, take the ams article. When Lyx export to latex put

\newtheorem{thm}{Theorem}

\newtheorem{cor}[thm]{Corollary}

but I would like
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}

Where I can change these parameters ?
thanks in advance


Cordially

sergio



Re: change latex export

2009-12-14 Thread rgheck

On 12/14/2009 08:28 PM, Sergio Celani wrote:

Hi

I new user of Lyx.Before I used Scientific Workplace.


I would like to change the way as Lyx export some  latex files.

For example, take the ams article. When Lyx export to latex put

\newtheorem{thm}{Theorem}

\newtheorem{cor}[thm]{Corollary}

but I would like
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}

Where I can change these parameters ?

The easiest way, probably, is to copy the theorems-ams.inc file to your 
local LyX directory (e.g., $HOME/.lyx/layouts/, on Linux) and then make 
the modifications you need in that file. It'll be clear, if you look at 
the file, where to make them. The disadvantage to this method is that 
you're making the change globally. A more flexible way is to create a 
module of your own that will override the existing declarations, and 
then you can use it when you want to do so. Have a look at the 
theorems-sec.module to get a sense for how this is done and at Chapter 5 
of the Customization manual for all the details.


Richard



Re: svninfo packages and similar in LyX

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:44 PM, Julien Rioux julien.ri...@gmail.comwrote:

 Sure, try to start with the minimal attached file

 at the prompt, do:

 svn add svn.lyx
 svn propset svn:keywords Id svn.lyx
 svn commit
 svn update

 then open the file with lyx and view-dvi (or whatever)

 it works here


Here as well.

So I have to use svn.update, to get the version with the svn-info included.

Thanks a lot,

Rainer



 Cheers,
 Julien




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
Hi

I created myself a TODO module, which adds text in green to the text
(below). it works nicely,, but I would like to have brackests arount the
TODO: and the text, i.e., at the moment I get:

(TODO:) I still heve to do this

I want:

(TODO: I still have to do this)

How can I achieve this?

Thanks

Rainer


#\DeclareLyXModule{TODO}
#DescriptionBegin
#Inserts green TODO note in tesxt
#DescriptionEnd
# Author: Rainer M Krug rai...@krugs.de

Format 11

InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName
textcolor{green}{\textbf(TODO):~}\textcolor{green}
Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}
EndPreamble
End


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Manveru
2009/12/14 Rainer M Krug r.m.k...@gmail.com:
 Hi

 I created myself a TODO module, which adds text in green to the text
 (below). it works nicely,, but I would like to have brackests arount the
 TODO: and the text, i.e., at the moment I get:

 (TODO:) I still heve to do this

 I want:

 (TODO: I still have to do this)

 How can I achieve this?

 Thanks

 Rainer


 #\DeclareLyXModule{TODO}
 #DescriptionBegin
 #Inserts green TODO note in tesxt
 #DescriptionEnd
 # Author: Rainer M Krug rai...@krugs.de

 Format 11

 InsetLayout TODO
        LyXType               custom
        LabelString           TODO
        LatexType             command
        LatexName
 textcolor{green}{\textbf(TODO):~}\textcolor{green}
        Decoration            classic
        LabelFont
          Color               green
          Size                Large
          Series              Bold
        EndFont
        OptionalArgs          1
        MultiPar              false
        Preamble
            \RequirePackage{xcolor}
        EndPreamble
 End


 --
 NEW GERMAN FAX NUMBER!!!

 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
 UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Natural Sciences Building
 Office Suite 2039
 Stellenbosch University
 Main Campus, Merriman Avenue
 Stellenbosch
 South Africa

 Cell:           +27 - (0)83 9479 042
 Fax:            +27 - (0)86 516 2782
 Fax:            +49 - (0)321 2125 2244
 email:          rai...@krugs.de

 Skype:          RMkrug
 Google:         r.m.k...@gmail.com


The line:

textcolor{green}{\textbf(TODO):~}\textcolor{green}

I think it should be (move the bracket):

textcolor{green}{\textbf(TODO:~)}\textcolor{green}

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:06 AM, Manveru manv...@manveru.pl wrote:

 2009/12/14 Rainer M Krug r.m.k...@gmail.com:
  Hi
 
  I created myself a TODO module, which adds text in green to the text
  (below). it works nicely,, but I would like to have brackests arount the
  TODO: and the text, i.e., at the moment I get:
 
  (TODO:) I still heve to do this
 
  I want:
 
  (TODO: I still have to do this)
 
  How can I achieve this?
 
  Thanks
 
  Rainer
 
 
  #\DeclareLyXModule{TODO}
  #DescriptionBegin
  #Inserts green TODO note in tesxt
  #DescriptionEnd
  # Author: Rainer M Krug rai...@krugs.de
 
  Format 11
 
  InsetLayout TODO
 LyXType   custom
 LabelString   TODO
 LatexType command
 LatexName
  textcolor{green}{\textbf(TODO):~}\textcolor{green}
 Decorationclassic
 LabelFont
   Color   green
   SizeLarge
   Series  Bold
 EndFont
 OptionalArgs  1
 MultiPar  false
 Preamble
 \RequirePackage{xcolor}
 EndPreamble
  End
 
 
  --
  NEW GERMAN FAX NUMBER!!!
 
  Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology,
  UCT), Dipl. Phys. (Germany)
 
  Centre of Excellence for Invasion Biology
  Natural Sciences Building
  Office Suite 2039
  Stellenbosch University
  Main Campus, Merriman Avenue
  Stellenbosch
  South Africa
 
  Cell:   +27 - (0)83 9479 042
  Fax:+27 - (0)86 516 2782
  Fax:+49 - (0)321 2125 2244
  email:  rai...@krugs.de
 
  Skype:  RMkrug
  Google: r.m.k...@gmail.com
 

 The line:

 textcolor{green}{\textbf(TODO):~}\textcolor{green}

 I think it should be (move the bracket):

 textcolor{green}{\textbf(TODO:~)}\textcolor{green}


Thanks - but this produces:

(TODO:  )I still have to do this

The ~ is a protected space, and the test which is entered in the TODO field,
is added AFTER the LatexName is executed.


 --
 Manveru
 jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Lyx 1.6.5 Installer

2009-12-14 Thread Olivier Ripoll

Vincent van Ravesteijn wrote:

Uwe Stöhr schreef:

Am 13.12.2009 14:10, schrieb Vincent van Ravesteijn:


LyX is programmed in a way that a console is always started. My and
also the standard installer hides it immediately.


The standard installer doesn't open this console window.


Ok, I see some extra movement in the task bar when opening LyX, .. 
that's all.


I believe that with your installer, one can really see a window popping 
up (or two).


Well, it's three in fact: first two windows open and close quickly, then 
one opens and stays for quite a while. That's probably the one most 
people complain about. this one opens also if you use lyxLauncher.exe or 
lyx.exe.


If you change the lyx.bat start command with /MIN and/or /B, the 2 
first windows will actually stay longer (IOW don't do that ;-) ).


Note that it's unclear to me why such a minor cosmetic problem who lead 
to prefer one installer over the other. Uwe's installer has the 
advantage of being out sometimes up to 1 week before the other one. 
That's quite a significant bonus if you are waiting for the new version 
because you have a nasty problem (crash, etc.).


Best regards,

Olivier

PS: I also remember that there is a message about installing PyWin or 
something with a similar name to avoid the console. Could that be a 
difference between installers ?




Vincent






Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rudi van der Linde




SNIP
This has not been tested but try something along the lines of:

  

  

InsetLayout TODO
   LyXType   custom
   LabelString   TODO
   LatexType command
   LatexName
myOwnTodo
  

  



  

 Decorationclassic
   LabelFont
 Color   green
 SizeLarge
 Series  Bold
   EndFont
   OptionalArgs  1
   MultiPar  false
   Preamble
   \RequirePackage{xcolor}
  

  


\newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~}
#1}\textcolor{green}

  

 EndPreamble
End
  

  

SNIP

i.e. do the following: 
1. Declare your own command in the Preamble section to do exactly what
you need, e.g. \myOwnTodo
2. Make that the LatexName in the layout, i.e. "LatexName myOwnTodo"

hth

-- 


 Rudi van der Linde
Senior Development Engineer

  Phone: +27 12 424 8539 



  

  
   ANSYS Limited
  ansys.co.zaReg. No.
1987/001222/06
  
Phone: +27 12 346 3141Fax: +27 12 346 3720
170 Outeniqua Avenue, Waterkloof Park, Pretoria
P.O.Box 95361, Waterkloof, 0145, South Africa 

  

This message (and attachments) is subject to
restrictions and a disclaimer. Please refer to ansys.co.za or e-mail for full details.






Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 1:03 PM, Rudi van der Linde rudi...@ansys.co.zawrote:

  SNIP
 This has not been tested but try something along the lines of:

  InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName
 myOwnTodo



  Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}



 \newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~}
 #1}\textcolor{green}

 EndPreamble
 End


   SNIP

 i.e. do the following:
 1. Declare your own command in the Preamble section to do exactly what you
 need, e.g. \myOwnTodo
 2. Make that the LatexName in the layout, i.e. LatexName myOwnTodo


Thanks - that's it. It is working. For reference: below find the TODO
module:


#\DeclareLyXModule{TODO}
#DescriptionBegin
#Inserts green TODO note in text
#DescriptionEnd
# Author: Rainer M Krug rai...@krugs.de

Format 11

InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName myOwnTodo
Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}
\newcommand{\myOwnTodo}[1]{\textcolor{green}{[\textbf{TODO:~} #1
]} }
EndPreamble
End


The advantage: if yiou load the TODO notes module from Juergen, it
automatically uses those instead of the in-text-TODO notes!

Cheers,

Rainer


 hth

 --

  Rudi van der Linde
 Senior Development Engineer

  Phone: +27 12 424 8539
 --
   [image: ANSYS Logo] ANSYS Limited
 ansys.co.za http://www.ansys.co.za Reg. No. 1987/001222/06

 Phone: +27 12 346 3141 Fax: +27 12 346 3720
 170 Outeniqua Avenue, Waterkloof Park, Pretoria
 P.O.Box 95361, Waterkloof, 0145, South Africa

 This message (and attachments) is subject to restrictions and a disclaimer.
 Please refer to ansys.co.za http://www.ansys.co.za/?page_id=136 or
 e-mail geni...@ansys.co.za for full details.




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
ansyslogo.png

How does one use the Liberation fonts in LyX?

2009-12-14 Thread Steve Litt
Hi all,

How does one use the Liberation fonts in LyX? These are truetype fonts 
metrically identical to Microsoft's main fonts:

Liberation Mono - Courier New
Liberation Sans - Arial
Liberation Serif - Times New Roman

(http://en.wikipedia.org/wiki/Liberation_fonts)

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 02:54 AM, Rainer M Krug wrote:

Sorry - the copier should read:

###
#!/bin/bash

FROM=$1

TO=$2
TODIR=`dirname $TO`

svn info $FROM  $TODIR/svninfo.txt
###

   

This might work.

You should put the copier in ~/.lyx/scripts/

rh



Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck rgh...@bobjweil.com

 On 12/14/2009 02:54 AM, Rainer M Krug wrote:

 Sorry - the copier should read:

 ###
 #!/bin/bash

 FROM=$1

 TO=$2
 TODIR=`dirname $TO`

 svn info $FROM  $TODIR/svninfo.txt
 ###



 This might work.

 You should put the copier in ~/.lyx/scripts/


I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set the
copier to execute this script somwehere under FileFormats?

Or are the scripts in ~/.lyx/scripts automatically executed?

Rainer


 rh




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 09:41 AM, Rainer M Krug wrote:


I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set 
the copier to execute this script somwehere under FileFormats?


Yes, you have to set the copier under Converters, for whichever 
converter you want to use it with. Note that you will want to use the 
variables mentioned in Customization 3.2 to get the arguments you need.


By the way, I think you will also need to do the actual copying of the 
file from the temporary directory to the destination directory yourself. 
If you use a special copier, then LyX does not do it for you.


rh



Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck rgh...@bobjweil.com

 On 12/14/2009 09:41 AM, Rainer M Krug wrote:


 I save it in  ~/.lyx/scripts/ but it is not executed.

 Do I have to set it somewhere to execute the script? Do I have to set the
 copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever converter
 you want to use it with. Note that you will want to use the variables
 mentioned in Customization 3.2 to get the arguments you need.


Do I have to set it under Copiers File Formats, or under Converters? I
thought if I specify it under File Formats - Copier, it should work.



 By the way, I think you will also need to do the actual copying of the file
 from the temporary directory to the destination directory yourself. If you
 use a special copier, then LyX does not do it for you.


Makes sense.

Rainer



 rh




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: How does one use the Liberation fonts in LyX?

2009-12-14 Thread Rob Oakes
Hi Steve, 

I think that you have one of two options.  The first, of course is to
install the fonts onto your system in the normal way and then use XeTeX
to compile the document.  If you choose this route, you can assign the
font through the use of the \setfont macros: \setmainfont{font name},
\setsansfont{font name}, \setmonofont{font name}

If using LyX 1.6.5, you will need to set up XeLaTeX to work with LyX.
There is information on how to do this on the wiki.  If using LyX SVN,
it already has support built-in.  Just go to Document Settings - Output
and enable Use XeTeX.

Additional information about XeLaTex and font support is available at:

http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/

The alternative is to see if someone has created a font definition file.
You can also create your own.  Additional information about the process
is available from the excellent blog, Existential Type:

http://existentialtype.net/2008/07/12/fonts-in-latex-part-two-pdftex-and-opentype/

I personally prefer to go the XeLaTeX route.  Since moving over to LyX
SVN, I use it to compile more or less everything.  While there are some
packages it doesn't support (like microtype), I find that it does a good
job with just about everything.  I've even been able to use some of the
more exotic modules (like Sweave) and classes (like Tufte) without
problems.  For an example output, see:

http://www.oak-tree.us/stuff/LyX/Sweave-Opportunity.pdf

(Aside: In the example above, using xetex allowed me to use the same
typefaces that Tufte uses -- Bembo and Gil Sans -- without creating a
font definition file for them -- which ranks right alongside major oral
surgery on my priority list.)

Cheers,

Rob Oakes





Re: install new layout class

2009-12-14 Thread Sergio Celani

El 13/12/2009 11:33 p.m., rgheck escribió:

On 12/13/2009 07:46 PM, Sergio Celani wrote:

Hi

I have some problems for to install a new layout.

I create a layout for the class au.cl of the journal Algebra Universalis
http://www.math.umanitoba.ca/homepages/au/instructions.html

I assume you have saved this as au.cls? I don't know for sure, but LyX 
may want to see the standard .cls extension.


First, I install the au.cl class in Miktex.  The class is installed 
correctly because I have checked with Texnicenter.

So take the amsar.layout  (the au.class is a derived of the amsart.cl).
I change the \DeclareLaTeXClass{article (AMS)}  by  
\DeclareLaTeXClass[au]{AlgUniversalis (AU)}.

I record a new layout called alguniv.layout
In LyX   run Reconfigure, closed and open Lyx. Open a new document.
So, I go  Document =  Settings -  Document Class  and when I select 
the new class is not available.



Do you see your layout there at all? Or is it marked unavailable?


If you don't see it at all, then where did you put your new layout 
file? You might try saving it as au.layout, and deleting the [au] 
optional argument. This is easier.


If it's marked unavailable, then the problem is that the configure.py 
script is not finding the class for some reason. Try to reconfigure 
again.


Richard





It is marked unavailable, in a computer with Windows 7, and other with 
Windows Vista.


But, in a computer with Windows XP no problem (is the same layout, put 
in the \layouts)

Maybe it's a problem of seven and vista





Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 09:53 AM, Rainer M Krug wrote:

2009/12/14 rgheckrgh...@bobjweil.com

   

On 12/14/2009 09:41 AM, Rainer M Krug wrote:

 

I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set the
copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever converter
   

you want to use it with. Note that you will want to use the variables
mentioned in Customization 3.2 to get the arguments you need.

 

Do I have to set it under Copiers File Formats, or under Converters? I
thought if I specify it under File Formats - Copier, it should work.

   

Sorry, yes, under Formats.

rh



Re: install new layout class

2009-12-14 Thread rgheck

On 12/14/2009 10:17 AM, Sergio Celani wrote:

El 13/12/2009 11:33 p.m., rgheck escribió:

On 12/13/2009 07:46 PM, Sergio Celani wrote:

Hi

I have some problems for to install a new layout.

I create a layout for the class au.cl of the journal Algebra 
Universalis

http://www.math.umanitoba.ca/homepages/au/instructions.html

I assume you have saved this as au.cls? I don't know for sure, but 
LyX may want to see the standard .cls extension.


First, I install the au.cl class in Miktex.  The class is installed 
correctly because I have checked with Texnicenter.

So take the amsar.layout  (the au.class is a derived of the amsart.cl).
I change the \DeclareLaTeXClass{article (AMS)}  by  
\DeclareLaTeXClass[au]{AlgUniversalis (AU)}.

I record a new layout called alguniv.layout
In LyX   run Reconfigure, closed and open Lyx. Open a new document.
So, I go  Document =  Settings -  Document Class  and when I 
select the new class is not available.



Do you see your layout there at all? Or is it marked unavailable?


If you don't see it at all, then where did you put your new layout 
file? You might try saving it as au.layout, and deleting the [au] 
optional argument. This is easier.


If it's marked unavailable, then the problem is that the configure.py 
script is not finding the class for some reason. Try to reconfigure 
again.


Richard





It is marked unavailable, in a computer with Windows 7, and other with 
Windows Vista.


But, in a computer with Windows XP no problem (is the same layout, put 
in the \layouts)

Maybe it's a problem of seven and vista.

OK, so the problem is that for some reason LyX isn't finding the 
document class. Try it with as au.layout and no optional argument.


rh



XeTeX with LyX

2009-12-14 Thread Yago
Hi to all.

I have XeTeX installed and builded in my MikTex installation but I cannot add a 
new pdf converter in accord with this instructions from the wiki.

Setting up LyX to work with Xetex
This assumes you have Xetex installed. On my texlive installation, it was 
installed automatically. Try running 'xetex' or 'xelatex' to check if its 
there. If not, install it (depends on your LaTeX distribution). 

First of all, you need to add a PDF (xetex) File Format and LyX-Xetex 
conversion: 

Under Tools-Preferences-File handling-File formats, click New and 

[x] check Document Format 
[x] check Vector Graphic Format 
Short Name: pdf4 
Extension: pdf 
Viewer: xdg-open
(Windows users should use pdfview. Alternatively, use any viewer that worked 
for you under File Format PDF (pdflatex).) 

Under Converters (just above the File formats you just clicked on), click 
on add and set 

From format: LaTeX (pdflatex) 
To format: PDF (xelatex) 
Converter: xelatex $$i 
Extra flag: latex 
[x] check Enabled 

There's no problem for me with the first part, but in my Converters window I 
cannot select the option Add that's she's in gray.


Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck rgh...@bobjweil.com

 On 12/14/2009 09:53 AM, Rainer M Krug wrote:

 2009/12/14 rgheckrgh...@bobjweil.com



 On 12/14/2009 09:41 AM, Rainer M Krug wrote:



 I save it in  ~/.lyx/scripts/ but it is not executed.

 Do I have to set it somewhere to execute the script? Do I have to set
 the
 copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever
 converter


 you want to use it with. Note that you will want to use the variables
 mentioned in Customization 3.2 to get the arguments you need.



 Do I have to set it under Copiers File Formats, or under Converters? I
 thought if I specify it under File Formats - Copier, it should work.



 Sorry, yes, under Formats.


I don't get it to work - whatever I try. The copier (cp.lyx) in
~/.lyx/scriots reads:

##
#!/bin/bash
FROM=$1
TO=$2
TODIR=`dirname $TO`

svn info $FROM  $TODIR/svninfo.txt
cp $FROM $TO
###

Now which copier should I define? I want to have it preferably for all
output formats, for View as well as Export. But I would be happy if it works
for pdf (pdflatex).

So I thought, I define the copier for PDF (pdflatex) as:

cp.lyx $$i $$o

First observation: I have to specify the whole path, i.e:

~/.lyx/scripts/cp.lyx $$i $$o

Second: it works only when I use Export - and then this is the final step,
i.e. AFTER the pdf is created (obviously) and the svn info can not be
included in the document.

What I would need, is a way of executing the command svn info
TheLyxFile.lyx  TheTMPDIR/svninfo.txt BEFORE LaTeX is compiling, so that
the file can be included in the final document.

Any tips appreciated,

Rainer





 rh




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: svninfo packages and similar in LyX

2009-12-14 Thread Julien Rioux
Sure, try to start with the minimal attached file

at the prompt, do:

svn add svn.lyx
svn propset svn:keywords Id svn.lyx
svn commit
svn update

then open the file with lyx and view-dvi (or whatever)

it works here

Cheers,
Julien


svn.lyx
Description: Binary data


pkg/42449: pkgsrc-built LyX uses unusable font on Red Hat (fwd)

2009-12-14 Thread Jeremy C. Reed
Anyone recognize this problem in this bug report?
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=42449
(A screenshot is linked from there too.)

Using wrong fonts for menu and introductory graphic.


Page numbering for subpages

2009-12-14 Thread Dainis Zegners
Hello to everybody!

I have the following problem to solve in Lyx:

I have a couple of graphics in floats that each fill a whole page. I want that
these pages are inserted as subpages, that is with numberings 40a, 40b, etc.

The reason is that I am writting a thesis with a maximum page limit of 40, but I
am allowed to count pages with graphs only as subpages.

I have already searched the internet for some hours but have not found a
solution yet. I found a latex package called subfigure , but some how this did
not work together with the float environment.

I would greatly appreciate any help, thanks in advance ! 

Dainis

P.S. I am using Lyx 1.6.2 on a Ubuntu 9.0.4 system.

   



change latex export

2009-12-14 Thread Sergio Celani

Hi

I new user of Lyx.Before I used Scientific Workplace.


I would like to change the way as Lyx export some  latex files.

For example, take the ams article. When Lyx export to latex put

\newtheorem{thm}{Theorem}

\newtheorem{cor}[thm]{Corollary}

but I would like
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}

Where I can change these parameters ?
thanks in advance


Cordially

sergio



Re: change latex export

2009-12-14 Thread rgheck

On 12/14/2009 08:28 PM, Sergio Celani wrote:

Hi

I new user of Lyx.Before I used Scientific Workplace.


I would like to change the way as Lyx export some  latex files.

For example, take the ams article. When Lyx export to latex put

\newtheorem{thm}{Theorem}

\newtheorem{cor}[thm]{Corollary}

but I would like
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}

Where I can change these parameters ?

The easiest way, probably, is to copy the theorems-ams.inc file to your 
local LyX directory (e.g., $HOME/.lyx/layouts/, on Linux) and then make 
the modifications you need in that file. It'll be clear, if you look at 
the file, where to make them. The disadvantage to this method is that 
you're making the change globally. A more flexible way is to create a 
module of your own that will override the existing declarations, and 
then you can use it when you want to do so. Have a look at the 
theorems-sec.module to get a sense for how this is done and at Chapter 5 
of the Customization manual for all the details.


Richard



Re: svninfo packages and similar in LyX

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:44 PM, Julien Rioux julien.ri...@gmail.comwrote:

 Sure, try to start with the minimal attached file

 at the prompt, do:

 svn add svn.lyx
 svn propset svn:keywords Id svn.lyx
 svn commit
 svn update

 then open the file with lyx and view-dvi (or whatever)

 it works here


Here as well.

So I have to use svn.update, to get the version with the svn-info included.

Thanks a lot,

Rainer



 Cheers,
 Julien




-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
Hi

I created myself a TODO module, which adds text in green to the text
(below). it works nicely,, but I would like to have brackests arount the
TODO: and the text, i.e., at the moment I get:

(TODO:) I still heve to do this

I want:

(TODO: I still have to do this)

How can I achieve this?

Thanks

Rainer


#\DeclareLyXModule{TODO}
#DescriptionBegin
#Inserts green TODO note in tesxt
#DescriptionEnd
# Author: Rainer M Krug 

Format 11

InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName
textcolor{green}{\textbf(TODO):~}\textcolor{green}
Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}
EndPreamble
End


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Manveru
2009/12/14 Rainer M Krug :
> Hi
>
> I created myself a TODO module, which adds text in green to the text
> (below). it works nicely,, but I would like to have brackests arount the
> TODO: and the text, i.e., at the moment I get:
>
> (TODO:) I still heve to do this
>
> I want:
>
> (TODO: I still have to do this)
>
> How can I achieve this?
>
> Thanks
>
> Rainer
>
>
> #\DeclareLyXModule{TODO}
> #DescriptionBegin
> #Inserts green TODO note in tesxt
> #DescriptionEnd
> # Author: Rainer M Krug 
>
> Format 11
>
> InsetLayout TODO
>        LyXType               custom
>        LabelString           TODO
>        LatexType             command
>        LatexName
> textcolor{green}{\textbf(TODO):~}\textcolor{green}
>        Decoration            classic
>        LabelFont
>          Color               green
>          Size                Large
>          Series              Bold
>        EndFont
>        OptionalArgs          1
>        MultiPar              false
>        Preamble
>            \RequirePackage{xcolor}
>        EndPreamble
> End
>
>
> --
> NEW GERMAN FAX NUMBER!!!
>
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
> UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Natural Sciences Building
> Office Suite 2039
> Stellenbosch University
> Main Campus, Merriman Avenue
> Stellenbosch
> South Africa
>
> Cell:           +27 - (0)83 9479 042
> Fax:            +27 - (0)86 516 2782
> Fax:            +49 - (0)321 2125 2244
> email:          rai...@krugs.de
>
> Skype:          RMkrug
> Google:         r.m.k...@gmail.com
>

The line:

textcolor{green}{\textbf(TODO):~}\textcolor{green}

I think it should be (move the bracket):

textcolor{green}{\textbf(TODO:~)}\textcolor{green}

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:06 AM, Manveru  wrote:

> 2009/12/14 Rainer M Krug :
> > Hi
> >
> > I created myself a TODO module, which adds text in green to the text
> > (below). it works nicely,, but I would like to have brackests arount the
> > TODO: and the text, i.e., at the moment I get:
> >
> > (TODO:) I still heve to do this
> >
> > I want:
> >
> > (TODO: I still have to do this)
> >
> > How can I achieve this?
> >
> > Thanks
> >
> > Rainer
> >
> >
> > #\DeclareLyXModule{TODO}
> > #DescriptionBegin
> > #Inserts green TODO note in tesxt
> > #DescriptionEnd
> > # Author: Rainer M Krug 
> >
> > Format 11
> >
> > InsetLayout TODO
> >LyXType   custom
> >LabelString   TODO
> >LatexType command
> >LatexName
> > textcolor{green}{\textbf(TODO):~}\textcolor{green}
> >Decorationclassic
> >LabelFont
> >  Color   green
> >  SizeLarge
> >  Series  Bold
> >EndFont
> >OptionalArgs  1
> >MultiPar  false
> >Preamble
> >\RequirePackage{xcolor}
> >EndPreamble
> > End
> >
> >
> > --
> > NEW GERMAN FAX NUMBER!!!
> >
> > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology,
> > UCT), Dipl. Phys. (Germany)
> >
> > Centre of Excellence for Invasion Biology
> > Natural Sciences Building
> > Office Suite 2039
> > Stellenbosch University
> > Main Campus, Merriman Avenue
> > Stellenbosch
> > South Africa
> >
> > Cell:   +27 - (0)83 9479 042
> > Fax:+27 - (0)86 516 2782
> > Fax:+49 - (0)321 2125 2244
> > email:  rai...@krugs.de
> >
> > Skype:  RMkrug
> > Google: r.m.k...@gmail.com
> >
>
> The line:
>
> textcolor{green}{\textbf(TODO):~}\textcolor{green}
>
> I think it should be (move the bracket):
>
> textcolor{green}{\textbf(TODO:~)}\textcolor{green}
>

Thanks - but this produces:

(TODO:  )I still have to do this

The ~ is a protected space, and the test which is entered in the TODO field,
is added AFTER the LatexName is executed.


> --
> Manveru
> jabber: manv...@manveru.pl
> gg: 1624001
>   http://www.manveru.pl
>



-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: Lyx 1.6.5 Installer

2009-12-14 Thread Olivier Ripoll

Vincent van Ravesteijn wrote:

Uwe Stöhr schreef:

Am 13.12.2009 14:10, schrieb Vincent van Ravesteijn:


LyX is programmed in a way that a console is always started. My and
also the standard installer hides it immediately.


The standard installer doesn't open this console window.


Ok, I see some extra movement in the task bar when opening LyX, .. 
that's all.


I believe that with your installer, one can really see a window popping 
up (or two).


Well, it's three in fact: first two windows open and close quickly, then 
one opens and stays for quite a while. That's probably the one most 
people complain about. this one opens also if you use lyxLauncher.exe or 
lyx.exe.


If you change the lyx.bat start command with "/MIN" and/or "/B", the 2 
first windows will actually stay longer (IOW don't do that ;-) ).


Note that it's unclear to me why such a minor cosmetic problem who lead 
to prefer one installer over the other. Uwe's installer has the 
advantage of being out sometimes up to 1 week before the other one. 
That's quite a significant bonus if you are waiting for the new version 
because you have a nasty problem (crash, etc.).


Best regards,

Olivier

PS: I also remember that there is a message about installing "PyWin" or 
something with a similar name to avoid the console. Could that be a 
difference between installers ?




Vincent






Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rudi van der Linde





This has not been tested but try something along the lines of:

  

  

InsetLayout TODO
   LyXType   custom
   LabelString   TODO
   LatexType command
   LatexName
myOwnTodo
  

  



  

 Decorationclassic
   LabelFont
 Color   green
 SizeLarge
 Series  Bold
   EndFont
   OptionalArgs  1
   MultiPar  false
   Preamble
   \RequirePackage{xcolor}
  

  

   
\newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~}
#1}\textcolor{green}

  

 EndPreamble
End
  

  



i.e. do the following:  
1. Declare your own command in the Preamble section to do exactly what
you need, e.g. \myOwnTodo
2. Make that the LatexName in the layout, i.e. "LatexName myOwnTodo"

hth

-- 


 Rudi van der Linde
Senior Development Engineer

  Phone: +27 12 424 8539 



  

  
   ANSYS Limited
  ansys.co.za Reg. No.
1987/001222/06
  
Phone: +27 12 346 3141 Fax: +27 12 346 3720
170 Outeniqua Avenue, Waterkloof Park, Pretoria
P.O.Box 95361, Waterkloof, 0145, South Africa 

  

This message (and attachments) is subject to
restrictions and a disclaimer. Please refer to ansys.co.za or e-mail for full details.






Re: Module which ENCLOSES text in brackets

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 1:03 PM, Rudi van der Linde wrote:

>  
> This has not been tested but try something along the lines of:
>
>  InsetLayout TODO
>LyXType   custom
>LabelString   TODO
>LatexType command
>LatexName
> myOwnTodo
>
>
>
>  Decorationclassic
>LabelFont
>  Color   green
>  SizeLarge
>  Series  Bold
>EndFont
>OptionalArgs  1
>MultiPar  false
>Preamble
>\RequirePackage{xcolor}
>
>
>
> \newcommand{\myOwnTodo}[1]{\textcolor{green}{\textbf{TODO:~}
> #1}\textcolor{green}
>
> EndPreamble
> End
>
>
>   
>
> i.e. do the following:
> 1. Declare your own command in the Preamble section to do exactly what you
> need, e.g. \myOwnTodo
> 2. Make that the LatexName in the layout, i.e. "LatexName myOwnTodo"
>

Thanks - that's it. It is working. For reference: below find the TODO
module:


#\DeclareLyXModule{TODO}
#DescriptionBegin
#Inserts green TODO note in text
#DescriptionEnd
# Author: Rainer M Krug 

Format 11

InsetLayout TODO
LyXType   custom
LabelString   TODO
LatexType command
LatexName myOwnTodo
Decorationclassic
LabelFont
  Color   green
  SizeLarge
  Series  Bold
EndFont
OptionalArgs  1
MultiPar  false
Preamble
\RequirePackage{xcolor}
\newcommand{\myOwnTodo}[1]{\textcolor{green}{[\textbf{TODO:~} #1
]} }
EndPreamble
End


The advantage: if yiou load the "TODO notes" module from Juergen, it
automatically uses those instead of the in-text-TODO notes!

Cheers,

Rainer


> hth
>
> --
>
>  Rudi van der Linde
> Senior Development Engineer
>
>  Phone: +27 12 424 8539
> --
>   [image: ANSYS Logo] ANSYS Limited
> ansys.co.za  Reg. No. 1987/001222/06
>
> Phone: +27 12 346 3141 Fax: +27 12 346 3720
> 170 Outeniqua Avenue, Waterkloof Park, Pretoria
> P.O.Box 95361, Waterkloof, 0145, South Africa
>
> This message (and attachments) is subject to restrictions and a disclaimer.
> Please refer to ansys.co.za  or
> e-mail  for full details.
>



-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
<>

How does one use the Liberation fonts in LyX?

2009-12-14 Thread Steve Litt
Hi all,

How does one use the Liberation fonts in LyX? These are truetype fonts 
metrically identical to Microsoft's main fonts:

Liberation Mono -> Courier New
Liberation Sans -> Arial
Liberation Serif -> Times New Roman

(http://en.wikipedia.org/wiki/Liberation_fonts)

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 02:54 AM, Rainer M Krug wrote:

Sorry - the copier should read:

###
#!/bin/bash

FROM=$1

TO=$2
TODIR=`dirname $TO`

svn info $FROM>  $TODIR/svninfo.txt
###

   

This might work.

You should put the copier in ~/.lyx/scripts/

rh



Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck 

> On 12/14/2009 02:54 AM, Rainer M Krug wrote:
>
>> Sorry - the copier should read:
>>
>> ###
>> #!/bin/bash
>>
>> FROM=$1
>>
>> TO=$2
>> TODIR=`dirname $TO`
>>
>> svn info $FROM>  $TODIR/svninfo.txt
>> ###
>>
>>
>>
> This might work.
>
> You should put the copier in ~/.lyx/scripts/
>

I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set the
copier to execute this script somwehere under FileFormats?

Or are the scripts in ~/.lyx/scripts automatically executed?

Rainer

>
> rh
>
>


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 09:41 AM, Rainer M Krug wrote:


I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set 
the copier to execute this script somwehere under FileFormats?


Yes, you have to set the copier under Converters, for whichever 
converter you want to use it with. Note that you will want to use the 
variables mentioned in Customization 3.2 to get the arguments you need.


By the way, I think you will also need to do the actual copying of the 
file from the temporary directory to the destination directory yourself. 
If you use a special copier, then LyX does not do it for you.


rh



Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck 

> On 12/14/2009 09:41 AM, Rainer M Krug wrote:
>
>>
>> I save it in  ~/.lyx/scripts/ but it is not executed.
>>
>> Do I have to set it somewhere to execute the script? Do I have to set the
>> copier to execute this script somwehere under FileFormats?
>>
>>  Yes, you have to set the copier under Converters, for whichever converter
> you want to use it with. Note that you will want to use the variables
> mentioned in Customization 3.2 to get the arguments you need.
>

Do I have to set it under Copiers File Formats, or under Converters? I
thought if I specify it under File Formats - Copier, it should work.


>
> By the way, I think you will also need to do the actual copying of the file
> from the temporary directory to the destination directory yourself. If you
> use a special copier, then LyX does not do it for you.
>

Makes sense.

Rainer


>
> rh
>
>


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: How does one use the Liberation fonts in LyX?

2009-12-14 Thread Rob Oakes
Hi Steve, 

I think that you have one of two options.  The first, of course is to
install the fonts onto your system in the normal way and then use XeTeX
to compile the document.  If you choose this route, you can assign the
font through the use of the \setfont macros: \setmainfont{font name},
\setsansfont{font name}, \setmonofont{font name}

If using LyX 1.6.5, you will need to set up XeLaTeX to work with LyX.
There is information on how to do this on the wiki.  If using LyX SVN,
it already has support built-in.  Just go to Document Settings -> Output
and enable "Use XeTeX".

Additional information about XeLaTex and font support is available at:

http://existentialtype.net/2008/07/12/fonts-in-latex-part-one-xelatex/

The alternative is to see if someone has created a font definition file.
You can also create your own.  Additional information about the process
is available from the excellent blog, Existential Type:

http://existentialtype.net/2008/07/12/fonts-in-latex-part-two-pdftex-and-opentype/

I personally prefer to go the XeLaTeX route.  Since moving over to LyX
SVN, I use it to compile more or less everything.  While there are some
packages it doesn't support (like microtype), I find that it does a good
job with just about everything.  I've even been able to use some of the
more exotic modules (like Sweave) and classes (like Tufte) without
problems.  For an example output, see:

http://www.oak-tree.us/stuff/LyX/Sweave-Opportunity.pdf

(Aside: In the example above, using xetex allowed me to use the same
typefaces that Tufte uses -- Bembo and Gil Sans -- without creating a
font definition file for them -- which ranks right alongside major oral
surgery on my priority list.)

Cheers,

Rob Oakes





Re: install new layout class

2009-12-14 Thread Sergio Celani

El 13/12/2009 11:33 p.m., rgheck escribió:

On 12/13/2009 07:46 PM, Sergio Celani wrote:

Hi

I have some problems for to install a new layout.

I create a layout for the class au.cl of the journal Algebra Universalis
http://www.math.umanitoba.ca/homepages/au/instructions.html

I assume you have saved this as au.cls? I don't know for sure, but LyX 
may want to see the standard .cls extension.


First, I install the au.cl class in Miktex.  The class is installed 
correctly because I have checked with Texnicenter.

So take the amsar.layout  (the au.class is a derived of the amsart.cl).
I change the \DeclareLaTeXClass{article (AMS)}  by  
\DeclareLaTeXClass[au]{AlgUniversalis (AU)}.

I record a new layout called alguniv.layout
In LyX   run Reconfigure, closed and open Lyx. Open a new document.
So, I go  Document =>  Settings ->  Document Class  and when I select 
the new class is not available.



Do you see your layout there at all? Or is it marked unavailable?


If you don't see it at all, then where did you put your new layout 
file? You might try saving it as au.layout, and deleting the "[au]" 
optional argument. This is easier.


If it's marked unavailable, then the problem is that the configure.py 
script is not finding the class for some reason. Try to reconfigure 
again.


Richard





It is marked unavailable, in a computer with Windows 7, and other with 
Windows Vista.


But, in a computer with Windows XP no problem (is the same layout, put 
in the \layouts)

Maybe it's a problem of seven and vista





Re: execute command whenever I compile LyX file

2009-12-14 Thread rgheck

On 12/14/2009 09:53 AM, Rainer M Krug wrote:

2009/12/14 rgheck

   

On 12/14/2009 09:41 AM, Rainer M Krug wrote:

 

I save it in  ~/.lyx/scripts/ but it is not executed.

Do I have to set it somewhere to execute the script? Do I have to set the
copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever converter
   

you want to use it with. Note that you will want to use the variables
mentioned in Customization 3.2 to get the arguments you need.

 

Do I have to set it under Copiers File Formats, or under Converters? I
thought if I specify it under File Formats - Copier, it should work.

   

Sorry, yes, under Formats.

rh



Re: install new layout class

2009-12-14 Thread rgheck

On 12/14/2009 10:17 AM, Sergio Celani wrote:

El 13/12/2009 11:33 p.m., rgheck escribió:

On 12/13/2009 07:46 PM, Sergio Celani wrote:

Hi

I have some problems for to install a new layout.

I create a layout for the class au.cl of the journal Algebra 
Universalis

http://www.math.umanitoba.ca/homepages/au/instructions.html

I assume you have saved this as au.cls? I don't know for sure, but 
LyX may want to see the standard .cls extension.


First, I install the au.cl class in Miktex.  The class is installed 
correctly because I have checked with Texnicenter.

So take the amsar.layout  (the au.class is a derived of the amsart.cl).
I change the \DeclareLaTeXClass{article (AMS)}  by  
\DeclareLaTeXClass[au]{AlgUniversalis (AU)}.

I record a new layout called alguniv.layout
In LyX   run Reconfigure, closed and open Lyx. Open a new document.
So, I go  Document =>  Settings ->  Document Class  and when I 
select the new class is not available.



Do you see your layout there at all? Or is it marked unavailable?


If you don't see it at all, then where did you put your new layout 
file? You might try saving it as au.layout, and deleting the "[au]" 
optional argument. This is easier.


If it's marked unavailable, then the problem is that the configure.py 
script is not finding the class for some reason. Try to reconfigure 
again.


Richard





It is marked unavailable, in a computer with Windows 7, and other with 
Windows Vista.


But, in a computer with Windows XP no problem (is the same layout, put 
in the \layouts)

Maybe it's a problem of seven and vista.

OK, so the problem is that for some reason LyX isn't finding the 
document class. Try it with as au.layout and no optional argument.


rh



XeTeX with LyX

2009-12-14 Thread Yago
Hi to all.

I have XeTeX installed and builded in my MikTex installation but I cannot add a 
new pdf converter in accord with this instructions from the wiki.

Setting up LyX to work with Xetex
This assumes you have Xetex installed. On my texlive installation, it was 
installed automatically. Try running 'xetex' or 'xelatex' to check if its 
there. If not, install it (depends on your LaTeX distribution). 

First of all, you need to add a PDF (xetex) File Format and LyX->Xetex 
conversion: 

Under Tools->Preferences->File handling->File formats, click "New" and 

[x] check "Document Format" 
[x] check "Vector Graphic Format" 
Short Name: pdf4 
Extension: pdf 
Viewer: xdg-open
(Windows users should use pdfview. Alternatively, use any viewer that worked 
for you under File Format PDF (pdflatex).) 

Under "Converters" (just above the "File formats" you just clicked on), click 
on add and set 

>From format: LaTeX (pdflatex) 
To format: PDF (xelatex) 
Converter: xelatex $$i 
Extra flag: latex 
[x] check "Enabled" 

There's no problem for me with the first part, but in my "Converters" window I 
cannot select the option "Add" that's she's in gray.


Re: execute command whenever I compile LyX file

2009-12-14 Thread Rainer M Krug
2009/12/14 rgheck 

> On 12/14/2009 09:53 AM, Rainer M Krug wrote:
>
>> 2009/12/14 rgheck
>>
>>
>>
>>> On 12/14/2009 09:41 AM, Rainer M Krug wrote:
>>>
>>>
>>>
 I save it in  ~/.lyx/scripts/ but it is not executed.

 Do I have to set it somewhere to execute the script? Do I have to set
 the
 copier to execute this script somwehere under FileFormats?

  Yes, you have to set the copier under Converters, for whichever
 converter


>>> you want to use it with. Note that you will want to use the variables
>>> mentioned in Customization 3.2 to get the arguments you need.
>>>
>>>
>>>
>> Do I have to set it under Copiers File Formats, or under Converters? I
>> thought if I specify it under File Formats - Copier, it should work.
>>
>>
>>
> Sorry, yes, under Formats.
>

I don't get it to work - whatever I try. The copier (cp.lyx) in
~/.lyx/scriots reads:

##
#!/bin/bash
FROM=$1
TO=$2
TODIR=`dirname $TO`

svn info $FROM > $TODIR/svninfo.txt
cp $FROM $TO
###

Now which copier should I define? I want to have it preferably for all
output formats, for View as well as Export. But I would be happy if it works
for pdf (pdflatex).

So I thought, I define the copier for PDF (pdflatex) as:

cp.lyx $$i $$o

First observation: I have to specify the whole path, i.e:

~/.lyx/scripts/cp.lyx $$i $$o

Second: it works only when I use Export - and then this is the final step,
i.e. AFTER the pdf is created (obviously) and the svn info can not be
included in the document.

What I would need, is a way of executing the command "svn info
TheLyxFile.lyx > TheTMPDIR/svninfo.txt" BEFORE LaTeX is compiling, so that
the file can be included in the final document.

Any tips appreciated,

Rainer




>
> rh
>
>


-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: svninfo packages and similar in LyX

2009-12-14 Thread Julien Rioux
Sure, try to start with the minimal attached file

at the prompt, do:

svn add svn.lyx
svn propset svn:keywords "Id" svn.lyx
svn commit
svn update

then open the file with lyx and view->dvi (or whatever)

it works here

Cheers,
Julien


svn.lyx
Description: Binary data


pkg/42449: pkgsrc-built LyX uses unusable font on Red Hat (fwd)

2009-12-14 Thread Jeremy C. Reed
Anyone recognize this problem in this bug report?
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=42449
(A screenshot is linked from there too.)

Using wrong fonts for menu and introductory graphic.


Page numbering for subpages

2009-12-14 Thread Dainis Zegners
Hello to everybody!

I have the following problem to solve in Lyx:

I have a couple of graphics in floats that each fill a whole page. I want that
these pages are inserted as subpages, that is with numberings 40a, 40b, etc.

The reason is that I am writting a thesis with a maximum page limit of 40, but I
am allowed to count pages with graphs only as subpages.

I have already searched the internet for some hours but have not found a
solution yet. I found a latex package called subfigure , but some how this did
not work together with the float environment.

I would greatly appreciate any help, thanks in advance ! 

Dainis

P.S. I am using Lyx 1.6.2 on a Ubuntu 9.0.4 system.

   



change latex export

2009-12-14 Thread Sergio Celani

Hi

I new user of Lyx.Before I used Scientific Workplace.


I would like to change the way as Lyx export some  latex files.

For example, take the ams article. When Lyx export to latex put

\newtheorem{thm}{Theorem}

\newtheorem{cor}[thm]{Corollary}

but I would like
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}

Where I can change these parameters ?
thanks in advance


Cordially

sergio



Re: change latex export

2009-12-14 Thread rgheck

On 12/14/2009 08:28 PM, Sergio Celani wrote:

Hi

I new user of Lyx.Before I used Scientific Workplace.


I would like to change the way as Lyx export some  latex files.

For example, take the ams article. When Lyx export to latex put

\newtheorem{thm}{Theorem}

\newtheorem{cor}[thm]{Corollary}

but I would like
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}

Where I can change these parameters ?

The easiest way, probably, is to copy the theorems-ams.inc file to your 
local LyX directory (e.g., $HOME/.lyx/layouts/, on Linux) and then make 
the modifications you need in that file. It'll be clear, if you look at 
the file, where to make them. The disadvantage to this method is that 
you're making the change globally. A more flexible way is to create a 
module of your own that will override the existing declarations, and 
then you can use it when you want to do so. Have a look at the 
theorems-sec.module to get a sense for how this is done and at Chapter 5 
of the Customization manual for all the details.


Richard



Re: svninfo packages and similar in LyX

2009-12-14 Thread Rainer M Krug
On Mon, Dec 14, 2009 at 11:44 PM, Julien Rioux wrote:

> Sure, try to start with the minimal attached file
>
> at the prompt, do:
>
> svn add svn.lyx
> svn propset svn:keywords "Id" svn.lyx
> svn commit
> svn update
>
> then open the file with lyx and view->dvi (or whatever)
>
> it works here
>

Here as well.

So I have to use svn.update, to get the version with the svn-info included.

Thanks a lot,

Rainer



> Cheers,
> Julien
>



-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com