Re: module question - modifying list environment

2009-05-06 Thread Guenter Milde
On 2009-05-06, James C. Sutherland wrote:

 I am trying to create a modified List environment where is counter is  
 not reset each time the environment begins.  I have created a module  
 (attached) that does part of this for me - it creates a new TaskList  
 environment in LyX. However, I cannot seem to get the counter to keep  
 incrementing - it resets with each instantiation of the environment.

You might try the enumitem.module. Search at http://wiki.lyx.org for
enumitem.

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the enumitem
package.)

Günter



Re: Embedding documents/text files in PDF

2009-05-06 Thread Xie Chao
Is it because lyx is trying to compile your file in a temp folder, but the
file you want to attach was not copied over to the temp location, so a
relative path (relative to the actual lyx file, not the temp file) doesn't
work?

I am also new to lyx, so lyxers, please correct me if I am wrong.

Regards,
Xie Chao


On Wed, May 6, 2009 at 5:41 AM, Parul Bali parul.sarasw...@gmail.comwrote:

  To be more specific, it doesn’t seem to locate the file when I specify
 relative path in the Lyx file and try converting it to pdflatex. However, if
 the same lyx file is exported to tex format and then converted to pdflatex,
 it works great.



 Any help  will be greatly  appreciated.



 Thanks,

 Parul



 *From:* Parul Bali [mailto:parul.sarasw...@gmail.com]
 *Sent:* 05 May 2009 22:30
 *To:* 'Xie Chao'
 *Cc:* lyx-users@lists.lyx.org
 *Subject:* RE: Embedding documents/text files in PDF



 Many thanks to everyone for their responses.



 Xie,



 The `attachfile’ package you suggested works great if I export  lyx file to
 tex format and then convert the tex file to pdflatex. However, if I try
 converting the lyx file  to pdflatex directly, it  throws me an error –
  “pdftex error: cannot open file for embedding” .

 It doesn’t seem to locate the  file. Any pointers on how to resolve this
 would be very helpful.



 Thank you.



 Parul



 *From:* Xie Chao [mailto:xiech...@gmail.com]
 *Sent:* 05 May 2009 20:09
 *To:* Parul Bali
 *Cc:* lyx-users@lists.lyx.org
 *Subject:* Re: Embedding documents/text files in PDF



 I guess you are looking for this:
 http://www.ctan.org/get/macros/latex/contrib/attachfile/attachfile.pdf

 You can use this LaTeX package to attach files in your PDF.

 Regards,
 Xie Chao

 On Tue, May 5, 2009 at 5:39 AM, Parul Bali parul.sarasw...@gmail.com
 wrote:

 This may  sound strange, but does anybody know if its possible to embed
 text
 file or doc file in a PDF generated from Lyx/Latex?  I have seen facility
 to
 attach documents to PDFs through  Adobe writer.  Is the same possible
 through Lyx/Latex?



 Thanks,

 Parul





pg - pdf

2009-05-06 Thread Wolfgang Engelmann
I noticed that jpg files are not converted to pdf files since I changed to 
1.6.2. 
Am I missing some additional converter prg? 

Wolfgang


Re: Putting images side by side

2009-05-06 Thread Erez Yerushalmi
Hi,

sorry for answering so late. I wasn't near a computer.

have you tried to add in box minipage.



• Insert figure float (either by pressing button or by insert)

• Insert minipage (press 'insert box button' or insertbox)

• Insert  Formatting  Horizontal Fill

• Insert graphics

• Right mouse click and obtain extra settings: example, “prefer figure here”

set box setting: width according to how many pics in a row. If three, then
33%.

set graphics setting: width is 100; column width

Did you try this?

erez



On Tue, May 5, 2009 at 4:35 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Erez,

 Thanks for the feedback,

 For the first row i have set  the width to 100 with TextWidht % and i have
 included subfigure for both the images
 and it worked fine . I inserted horizontal fill before and after each of
 the
 images and Both of them are side by side


 Things get messed up if i try to do the very same thing in the next line


 Regards
 Sajjad






 -- Forwarded message --
 From: Erez Yerushalmi erezyerusha...@gmail.com
 Date: Tue, May 5, 2009 at 5:30 PM
 Subject: Re: Putting images side by side
 To: ami guru dosto.wa...@gmail.com
 Cc: lyx-users@lists.lyx.org


 Hi Sajjad,

 Did you play around with the settings:  scale graphics, set width, set
 height  .

 You can choose as a % of page height or page column etc...

 Double click on the images and fix its specific features...

 So, if you have two figures side by side, you need to have 50% and 50% of
 the column width.
 If you have two figures one over the others, the same story...

 Erez



 On Tue, May 5, 2009 at 4:19 PM, ami guru dosto.wa...@gmail.com wrote:

  Hello forum,
 
  I have inserted a float figure and then inside the float figute i have
  added
  two graphic objects side by side and it worked fine.
 
  Then i moved to  the second row after putting some vertical space and
 added
  2 images the same way as above, bur this time
 
  part of the images are cropped.
 
 
  Any hint on that one?
 
 
  Regards
  Sajjad
 



 --
 Erez Yerushalmi
 PhD Student
 Warwick University, UK
 homepage:

 http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


Re: pg - pdf

2009-05-06 Thread Guenter Milde
On 2009-05-06, Wolfgang Engelmann wrote:
 I noticed that jpg files are not converted to pdf files since I changed to 
 1.6.2. 
 Am I missing some additional converter prg? 

pdflatex can work with jpg files (if exporting to PDF).

Günter



Re: pg - pdf

2009-05-06 Thread Wolfgang Engelmann
Am Wednesday 06 May 2009 14:31:12 schrieb Guenter Milde:
 On 2009-05-06, Wolfgang Engelmann wrote:
  I noticed that jpg files are not converted to pdf files since I changed
  to 1.6.2.
  Am I missing some additional converter prg?

 pdflatex can work with jpg files (if exporting to PDF).

 Günter

yes, I was expecting it. But in my setup it is not doing it. I am using 
pdflatex for export. 

Wolfgang

Re: Another beamer class issue -- RESOLVED!

2009-05-06 Thread Rich Shepard

On Tue, 5 May 2009, Rich Shepard wrote:


 Now that I have the logo displaying properly and the slides for the
presentation finished, I need to get the navigation tools in acroread
working.


  Thanks to Murat, and some magic computer foo, it's working.

  Yesterday I could not get proper output using File-Export-PDF(pdflatex).
So I tried File-Export-LaTeX(pdflatex), but ran pdflatex only twice on the
.tex file.

  This morning I decided to try the direct PDF(pdflatex) build before
running LaTeX 3 times (I forgot yesterday that it needs that many passes to
build TOC and other portions.) Well, the direct build worked today.

  The visuals consists of 215 slides, and the workshop handout is,
interestingly, 215 pages (with cover and TOC). All done with LyX and
PSTricks for the figures. That's for 12+ hours of teaching over two days. In
Australia (Perth and Melbourne).

  As many of us have known for years, this is one of the most civil,
helpful, and productive application-specific mail lists on the 'Net. What a
wonderful group we have here.

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: arrangement issue

2009-05-06 Thread Olivier Ripoll

ami guru wrote:

Hello forum,

I have inserted C++ code snippet inside the float:algorithm block and then i
inserted vertical spaces

And then i inserted float:figure, inserted images.


When i preview the in the pdf format the images show up before the code
snippet. I should be vice versa.

Any idea on that one?


Floats are floating elements. But Lyx let's you choose the default 
behaviour for floats and even each float behaviour.

You may want to try the here definitely or the here if possible
To set this behaviour document-wise, got to
Documents-Settings-Float Placement
To set this only for a given float, right-click onto the Float : 
Algorithm box (resp. Float : Figure) and choose settings. Then 
click the here definitely choice. You can also access this by Float 
Settings... at the bottom of the edit menu when a float is selected.


Best regards,

Olivier

PS: LyX is not a word processor, vertical spaces are most of the time 
not the right way to go.




What am i missing in the process?


Regards
Sajjad





Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 5, 2009, at 10:26 PM, Steve Litt wrote:


On Tuesday 05 May 2009 11:07:13 pm James C. Sutherland wrote:

On May 5, 2009, at 6:06 PM, James C. Sutherland wrote:

LyX Module Gurus:

I am trying to create a modified List environment where is counter
is not reset each time the environment begins.  I have created a
module (attached) that does part of this for me - it creates a new
TaskList environment in LyX. However, I cannot seem to get the
counter to keep incrementing - it resets with each instantiation of
the environment.

This may be a LaTeX question, since I cannot get it working properly
in LaTeX either.  I just hope someone out there can shed some light
on this...


I have managed to find a solution to this (see attached), although I
could really benefit from knowing how modules work in more depth.   
The

user manual (Customization Ch. 5) is very terse on this topic!


I'm almost positive both of you should have used LatexType  
Item_Environment

in the LyX part of your definitions.


Actually it works fine without it.  I tried two things:
LatexType   List_Environment
LatexType   Item_Environment
The List option worked better for me since the Item one just gives  
a bullet in LyX whereas the List option allows you more control over  
what LyX shows for the enumeration.  However, this is all pretty  
cloudy to me - there is a sore lack of documentation on this really  
nice feature in LyX.


Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 6, 2009, at 12:40 AM, Guenter Milde wrote:


On 2009-05-06, James C. Sutherland wrote:


I am trying to create a modified List environment where is counter is
not reset each time the environment begins.  I have created a module
(attached) that does part of this for me - it creates a new  
TaskList

environment in LyX. However, I cannot seem to get the counter to keep
incrementing - it resets with each instantiation of the environment.


You might try the enumitem.module. Search at http://wiki.lyx.org for
enumitem.

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the  
enumitem

package.)

Günter



I have used the enumitem module.  However, I wanted to change the  
enumeration name (Task 1 rather than 1).  Also, I wanted to be  
able to have enumeration environments in my document and a special  
TaskItem environment that was globally incremented.  The enumitem  
module will not quite allow this.


I think that we could benefit from a detailed description of how to  
create modules, and what all of the knobs mean.  For example, I  
struggled with determining how to set a LabelType and LabelString  
in LyX.  I never got quite what I wanted: something like Task 1   
Task 2  etc.  The closest I could get was Task or 1 but not a  
string and a counter together.  The compiled output looks fine, but in  
LyX it isn't quite what I would like...

Fwd: Putting images side by side

2009-05-06 Thread ami guru
Thanks again Erez,


I tried to follow the way that you have suggested.


At one point of your instruction you have mentioned


set box setting: width according to how many pics in a row. If three, then
33%.

Right-clicking on the image i do get  the settings but i did not find
anyhting named box settings

I am using LyX version 1.6.1 and i have the following tabs in the settings
dialog.

*Graphics
*Clipping
*Latex and LyX options

Did you mean  the Clipping one as box?

Please guide me through  the way.

Regards
Sajjad

-- Forwarded message --
From: Erez Yerushalmi erezyerusha...@gmail.com
Date: Wed, May 6, 2009 at 1:57 PM
Subject: Re: Putting images side by side
To: ami guru dosto.wa...@gmail.com
Cc: lyx-users@lists.lyx.org


Hi,

sorry for answering so late. I wasn't near a computer.

have you tried to add in box minipage.



• Insert figure float (either by pressing button or by insert)

• Insert minipage (press 'insert box button' or insertbox)

• Insert  Formatting  Horizontal Fill

• Insert graphics

• Right mouse click and obtain extra settings: example, “prefer figure here”

set box setting: width according to how many pics in a row. If three, then
33%.

set graphics setting: width is 100; column width

Did you try this?

erez




On Tue, May 5, 2009 at 4:35 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Erez,

 Thanks for the feedback,

 For the first row i have set  the width to 100 with TextWidht % and i have
 included subfigure for both the images
 and it worked fine . I inserted horizontal fill before and after each of
 the
 images and Both of them are side by side


 Things get messed up if i try to do the very same thing in the next line


 Regards
 Sajjad






 -- Forwarded message --
 From: Erez Yerushalmi erezyerusha...@gmail.com
 Date: Tue, May 5, 2009 at 5:30 PM
 Subject: Re: Putting images side by side
 To: ami guru dosto.wa...@gmail.com
 Cc: lyx-users@lists.lyx.org


 Hi Sajjad,

 Did you play around with the settings:  scale graphics, set width, set
 height  .

 You can choose as a % of page height or page column etc...

 Double click on the images and fix its specific features...

 So, if you have two figures side by side, you need to have 50% and 50% of
 the column width.
 If you have two figures one over the others, the same story...

 Erez



 On Tue, May 5, 2009 at 4:19 PM, ami guru dosto.wa...@gmail.com wrote:

  Hello forum,
 
  I have inserted a float figure and then inside the float figute i have
  added
  two graphic objects side by side and it worked fine.
 
  Then i moved to  the second row after putting some vertical space and
 added
  2 images the same way as above, bur this time
 
  part of the images are cropped.
 
 
  Any hint on that one?
 
 
  Regards
  Sajjad
 



 --
 Erez Yerushalmi
 PhD Student
 Warwick University, UK
 homepage:

 http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


epigraph and chapter style (header/footer)

2009-05-06 Thread Leo Gürtler
Dear Lyx-list,

I use memoir class (book) together with 'epigraph' to set epigraphs on
the first page of a chapter. I do not want any header/ footer on
chapter-starting-pages. The standard layout is set in lyx to 'empty
style' and also are added in the preambel:

\aliaspagestyle{part}{empty}
\aliaspagestyle{chapter}{empty}
\aliaspagestyle{title}{empty}

Without 'epigraph' this works ok, but with it does not work for
pagestyle 'chapter'.

Epigraph commandos in the preambel:

\renewcommand{\epigraphflush}{flushright} % epigraph an sich
\renewcommand{\textflush}{flushleft} % text im epigraph
\renewcommand{\sourceflush}{flushright} % Zitatquelle im epigraph
%\renewcommand{\epigraphsize}{\footnotesize}
\setlength{\epigraphwidth}{.5\textwidth} % Breite des Zitats
\setlength{\beforeepigraphskip}{.5\baselineskip} % Abstand vor epigraph
\setlength{\afterepigraphskip}{.5\baselineskip} % Abstand nach epigraph
\setlength{\epigraphrule}{2pt} % keine Linie zw. Zitat und Autor


And in the text:

\epigraphhead[70]{
 \epigraph{enemenemu}
  {\textit{book}\\
   \textsc{author}}
}

In the middle of the footer the page number appears as long as an
epigraph is used on that page.
If an epigraph is not used, the page is completely empty.

-- How can I get rid of this behavior so that the
chapter-starting-page is completely clear AND epigraphs can be used on
the same page?


thanks a lot!
best wishes
leo gürtler


Re: module question - modifying list environment

2009-05-06 Thread Stefano Franchi
On Wednesday 06 May 2009 09:18:59 am James C. Sutherland wrote:
 On May 6, 2009, at 12:40 AM, Guenter Milde wrote:
  On 2009-05-06, James C. Sutherland wrote:
  I am trying to create a modified List environment where is counter is
  not reset each time the environment begins.  I have created a module
  (attached) that does part of this for me - it creates a new
  TaskList
  environment in LyX. However, I cannot seem to get the counter to keep
  incrementing - it resets with each instantiation of the environment.
 
  You might try the enumitem.module. Search at http://wiki.lyx.org for
  enumitem.
 
  (Actually, the Counter is re-set in LyX as well (but blue to make
  sure it is just an internal label), the LaTeX output uses the
  enumitem
  package.)
 
  Günter

 I have used the enumitem module.  However, I wanted to change the
 enumeration name (Task 1 rather than 1).  Also, I wanted to be
 able to have enumeration environments in my document and a special
 TaskItem environment that was globally incremented.  The enumitem
 module will not quite allow this.

 I think that we could benefit from a detailed description of how to
 create modules, and what all of the knobs mean.  For example, I
 struggled with determining how to set a LabelType and LabelString
 in LyX.  I never got quite what I wanted: something like Task 1
 Task 2  etc.  The closest I could get was Task or 1 but not a
 string and a counter together.  The compiled output looks fine, but in
 LyX it isn't quite what I would like...

I just learned (on the developers list) that the behavior of the counter in 
the Enumerate environment is hardcoded and cannot be modified by modules. My 
problem was how to modify the counter strings (from levels 2 on)  from roman 
to arabic.  Presumably, the problem discussed here runs into the the same 
difficulty. 
We non-coders neeed to wait until the developers change the C++ code and make 
Enumerate customizable.

Cheers,

S.

__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



final vector font types

2009-05-06 Thread Péter
Hello!

I'm using book layout from Lyx to create my thesis, and my questions
is that how can I switch the font type of the final pdf, to vector
type.

Currently if I apply 600% zoom in Acrobat Reader, I see that the fonts
became blocky (like if you enlarge raster graphics). I would like to
swith to a font type, with which no matter how much I zoom in it will
be aliased (similar to vector graphics). The difference is visible
with 100% zoom also, but it seems just blurry there, the through only
comes when zooming in.

I've got some thesises written in plain latex and generated through
miktex, and they seem to be perfect scaling.

Thanks for the replys. Please reply to me directly, I'm not on the list.

Thanks,
Peter

PS: I'm using Windows XP SP2 with Lyx 1.6.1.


Re: final vector font types

2009-05-06 Thread Rich Shepard

On Wed, 6 May 2009, P?ter wrote:


I'm using book layout from Lyx to create my thesis, and my questions is
that how can I switch the font type of the final pdf, to vector type.


  What is your default typeface? Knuth's Computer Modern fonts are
bit-mapped at specific sizes, but the standard PostScript typefaces are
vectors and scalable.

  I use Palatino as my default serif typeface. I just enlarged a single
letter to fill the entire acroread window and there are smooth lines
defining the edge of the letter.

  Of course, this is on linux, so YMMV.

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


Superscript for citations

2009-05-06 Thread Sophie (itsme213)
Is it possible to get something like numbered superscripts for citations?

Thanks 





Re: final vector font types

2009-05-06 Thread Steve Litt
On Wednesday 06 May 2009 12:04:31 pm Péter wrote:

 Thanks for the replys. Please reply to me directly, I'm not on the list.

Ahh, my pet peeve. He doesn't have time to subscribe, but expects us to have 
time to teach one person at a time.

http://www.troubleshooters.com/linux/netiquette.htm

http://www.catb.org/~esr/faqs/smart-questions.html#easyreply

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



Re: Superscript for citations

2009-05-06 Thread Richard Heck

Sophie (itsme213) wrote:

Is it possible to get something like numbered superscripts for citations?

  
Yes. You have to use natbib, numerical, to get it. Add the option 
super to Class Options in DocumentSettings.


rh



Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

James C. Sutherland wrote:
I think that we could benefit from a detailed description of how to 
create modules, and what all of the knobs mean.  For example, I 
struggled with determining how to set a LabelType and LabelString 
in LyX.  I never got quite what I wanted: something like Task 1  
Task 2  etc.  The closest I could get was Task or 1 but not a 
string and a counter together.  The compiled output looks fine, but in 
LyX it isn't quite what I would like...


I'll try to have a look at this. I've been puzzled myself about how the 
item counters, etc, work, and frustrated by similar limitations. I'm not 
sure there is any way to get exactly what you want in an item- or 
list-type environment.


One thing I should say is that this is nothing specifically to do with 
modules. Modules are just fragments of layout, so it's an issue about 
layout in general.


Richard




Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

Stefano Franchi wrote:
I just learned (on the developers list) that the behavior of the counter in 
the Enumerate environment is hardcoded and cannot be modified by modules. My 
problem was how to modify the counter strings (from levels 2 on)  from roman 
to arabic.  Presumably, the problem discussed here runs into the the same 
difficulty. 
We non-coders neeed to wait until the developers change the C++ code and make 
Enumerate customizable.


  
Stefano, could you file an enhancement request for this, and cc me (at 
rgh...@comcast.net). I seem to be the layout guy these days, and I'd 
like to do the same thing you want to do. Viz, I want a Roman Enumerate 
environment, which I can easily get LaTeX-wise, but not in LyX.


Richard



Re: module question - modifying list environment

2009-05-06 Thread Jean-Marc Lasgouttes
Richard Heck rgh...@bobjweil.com writes:

 James C. Sutherland wrote:
 I think that we could benefit from a detailed description of how to
 create modules, and what all of the knobs mean.  For example, I
 struggled with determining how to set a LabelType and
 LabelString in LyX.  I never got quite what I wanted: something
 like Task 1  Task 2  etc.  The closest I could get was Task or
 1 but not a string and a counter together.  The compiled output
 looks fine, but in LyX it isn't quite what I would like...

 I'll try to have a look at this. I've been puzzled myself about how
 the item counters, etc, work, and frustrated by similar limitations.
 I'm not sure there is any way to get exactly what you want in an item-
 or list-type environment.

Look at the chapter style:

Style Chapter
MarginStatic
Category  Section
LabelString   Chapter \thechapter
LabelStringAppendix   Appendix \thechapter
LabelType   Counter
LabelCounterchapter

Easy, isn't it?

JMarc


Importing Maple's Latex export files in Lyx

2009-05-06 Thread Murat Yildizoglu
Hello,
I frequently export Latex from Maple but if I import the file in LyX I
have just a bunch of ERT boxes. I would like to know if you have met
this problem and found a solution (a specific Layout?). I have
searched the web but the only possibility I have located is quite a
complex script based system mainly created using Unix tools (I am not
sure if I have understood correctly everything). Any idea about a more
direct solution based on the capaibilities of LyX?

Regards,

Murat

-- 
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: Importing Maple's Latex export files in Lyx

2009-05-06 Thread Vincent van Ravesteijn

Murat Yildizoglu schreef:

Hello,
I frequently export Latex from Maple but if I import the file in LyX I
have just a bunch of ERT boxes. I would like to know if you have met
this problem and found a solution (a specific Layout?). I have
searched the web but the only possibility I have located is quite a
complex script based system mainly created using Unix tools (I am not
sure if I have understood correctly everything). Any idea about a more
direct solution based on the capaibilities of LyX?

Regards,

Murat
  
Can you give a small example file of how a Maple exported latex file 
looks like ?


Vincent


Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

Jean-Marc Lasgouttes wrote:

Richard Heck rgh...@bobjweil.com writes:

  

James C. Sutherland wrote:


I think that we could benefit from a detailed description of how to
create modules, and what all of the knobs mean.  For example, I
struggled with determining how to set a LabelType and
LabelString in LyX.  I never got quite what I wanted: something
like Task 1  Task 2  etc.  The closest I could get was Task or
1 but not a string and a counter together.  The compiled output
looks fine, but in LyX it isn't quite what I would like...

  

I'll try to have a look at this. I've been puzzled myself about how
the item counters, etc, work, and frustrated by similar limitations.
I'm not sure there is any way to get exactly what you want in an item-
or list-type environment.



Look at the chapter style:

Style Chapter
MarginStatic
Category  Section
LabelString   Chapter \thechapter
LabelStringAppendix   Appendix \thechapter
LabelType   Counter
LabelCounterchapter

Easy, isn't it?

  
Sorry, my question was more about list-type environments, and how to 
change to, say, \roman in an enumeration like environment. That's now 
been filed as an enhancement request.


I'm not sure how this applies to the OP's issue.

rh



portable installation

2009-05-06 Thread Sophie (itsme213)
I'm looking at the instructions at 
http://wiki.lyx.org/Windows/PortableInstallation

I have put USBTeX on my memory stick, and copied C:\Program Files\Lyx16 to 
that stick. But the installation instructions say to copy some tl-portable 
files from the TexLive DVD, which I have not used.

If anyone has got this combination working (USBTeX with Lyx16), could you 
please share what you did? I will update the wiki after I get it to work 
myself.

Thanks! 





Fwd: Importing Maple's Latex export files in Lyx

2009-05-06 Thread Murat Yildizoglu
Oups, I have missed the list's address in my previous mail. Sorry
Vincent for the double post.
Murat


-- Forwarded message --
From: Murat Yildizoglu murat.yildizo...@univ-cezanne.fr
Date: 2009/5/6
Subject: Re: Importing Maple's Latex export files in Lyx
To: Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl


Of course! :-)
Here is a small conversion test, with some text, math and a stupid
figure. Maple saves the figure in eps when you export to latex. Before
compiling by hand, I also put in the preamble the following
instructions for handling accented characters and bigger page:

\RequirePackage[latin1]{inputenc}
\RequirePackage{ae,aeguill}
\usepackage[compat2,a4paper]{geometry}

Regards,

Murat


2009/5/6 Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl:
 Murat Yildizoglu schreef:

 Hello,
 I frequently export Latex from Maple but if I import the file in LyX I
 have just a bunch of ERT boxes. I would like to know if you have met
 this problem and found a solution (a specific Layout?). I have
 searched the web but the only possibility I have located is quite a
 complex script based system mainly created using Unix tools (I am not
 sure if I have understood correctly everything). Any idea about a more
 direct solution based on the capaibilities of LyX?

 Regards,

 Murat


 Can you give a small example file of how a Maple exported latex file looks
 like ?

 Vincent




--
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__



-- 
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


test-maple01.eps
Description: PostScript document


test-maple.tex
Description: TeX document


Re LyX::Client.pm and LyX::Polite.pm

2009-05-06 Thread john
A question for the developers

For many years I have been using LyX as the document processor for
Insurance Policy and Claims management standard letters.  It has been a
brilliant application.

I have a perl script which provides a GUI application where the user can
run SQL queries which I then output as a series of perl assignment
statements (e.g. $surname='Smith'; ).
The user chooses a standard letter which is a LyX file with the
placeholders of the form ${surname}.
perl, having read the assignments, then outputs the LyX file with the
${id} vars magically instantiated to the correct values and lo we have a
document which via the LyXServer mechanism gets passed to a running LyX
application. The user can edit the file and save changes. My program
then saves the file back into the database.
This has worked superbly for 10 years.
When I first started this project, we used a LyX perl package LyX which
included LyX::Client.pm and LyX::Polite.pm
I added my own perl script: LyXTable which produced valid source for a
LyX Table.
Sorry for this long preamble.
I have searched the LyX websites for Client.pm and Polite - not there?
Nor have they ever been on the CPAN.

My question: Do you still maintain the LyX perl packages for current
versions of LyX or have you abandoned them in favour of the new religion
Python.
My application is a more natural fit for perl than for Python.

John O'Gorman



Re: Re LyX::Client.pm and LyX::Polite.pm

2009-05-06 Thread john
Woops

After a little reflection, I downloaded the 1.6.2 source files and voila
There they were under development/lyxserver.
Sorry people.

John O'Gorman

john wrote:
 A question for the developers

 For many years I have been using LyX as the document processor for
 Insurance Policy and Claims management standard letters.  It has been a
 brilliant application.

 I have a perl script which provides a GUI application where the user can
 run SQL queries which I then output as a series of perl assignment
 statements (e.g. $surname='Smith'; ).
 The user chooses a standard letter which is a LyX file with the
 placeholders of the form ${surname}.
 perl, having read the assignments, then outputs the LyX file with the
 ${id} vars magically instantiated to the correct values and lo we have a
 document which via the LyXServer mechanism gets passed to a running LyX
 application. The user can edit the file and save changes. My program
 then saves the file back into the database.
 This has worked superbly for 10 years.
 When I first started this project, we used a LyX perl package LyX which
 included LyX::Client.pm and LyX::Polite.pm
 I added my own perl script: LyXTable which produced valid source for a
 LyX Table.
 Sorry for this long preamble.
 I have searched the LyX websites for Client.pm and Polite - not there?
 Nor have they ever been on the CPAN.

 My question: Do you still maintain the LyX perl packages for current
 versions of LyX or have you abandoned them in favour of the new religion
 Python.
 My application is a more natural fit for perl than for Python.

 John O'Gorman



   



Re: portable installation

2009-05-06 Thread Florian Rubach

Sophie (itsme213) schrieb:

If anyone has got this combination working (USBTeX with Lyx16),
  


I just tried it myself and failed. It seems to be an issue with USBTex, 
because even the suggested way to create and compile a simple tex-file 
fails. If I were you, I would try to find out the email-adress of Sam 
Lewis, who wrote the USBTex-part of the wiki-entry.


Good luck,

Florian


Re: module question - modifying list environment

2009-05-06 Thread Guenter Milde
On 2009-05-06, James C. Sutherland wrote:

 I am trying to create a modified List environment where is counter is  
 not reset each time the environment begins.  I have created a module  
 (attached) that does part of this for me - it creates a new TaskList  
 environment in LyX. However, I cannot seem to get the counter to keep  
 incrementing - it resets with each instantiation of the environment.

You might try the enumitem.module. Search at http://wiki.lyx.org for
enumitem.

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the enumitem
package.)

Günter



Re: Embedding documents/text files in PDF

2009-05-06 Thread Xie Chao
Is it because lyx is trying to compile your file in a temp folder, but the
file you want to attach was not copied over to the temp location, so a
relative path (relative to the actual lyx file, not the temp file) doesn't
work?

I am also new to lyx, so lyxers, please correct me if I am wrong.

Regards,
Xie Chao


On Wed, May 6, 2009 at 5:41 AM, Parul Bali parul.sarasw...@gmail.comwrote:

  To be more specific, it doesn’t seem to locate the file when I specify
 relative path in the Lyx file and try converting it to pdflatex. However, if
 the same lyx file is exported to tex format and then converted to pdflatex,
 it works great.



 Any help  will be greatly  appreciated.



 Thanks,

 Parul



 *From:* Parul Bali [mailto:parul.sarasw...@gmail.com]
 *Sent:* 05 May 2009 22:30
 *To:* 'Xie Chao'
 *Cc:* lyx-users@lists.lyx.org
 *Subject:* RE: Embedding documents/text files in PDF



 Many thanks to everyone for their responses.



 Xie,



 The `attachfile’ package you suggested works great if I export  lyx file to
 tex format and then convert the tex file to pdflatex. However, if I try
 converting the lyx file  to pdflatex directly, it  throws me an error –
  “pdftex error: cannot open file for embedding” .

 It doesn’t seem to locate the  file. Any pointers on how to resolve this
 would be very helpful.



 Thank you.



 Parul



 *From:* Xie Chao [mailto:xiech...@gmail.com]
 *Sent:* 05 May 2009 20:09
 *To:* Parul Bali
 *Cc:* lyx-users@lists.lyx.org
 *Subject:* Re: Embedding documents/text files in PDF



 I guess you are looking for this:
 http://www.ctan.org/get/macros/latex/contrib/attachfile/attachfile.pdf

 You can use this LaTeX package to attach files in your PDF.

 Regards,
 Xie Chao

 On Tue, May 5, 2009 at 5:39 AM, Parul Bali parul.sarasw...@gmail.com
 wrote:

 This may  sound strange, but does anybody know if its possible to embed
 text
 file or doc file in a PDF generated from Lyx/Latex?  I have seen facility
 to
 attach documents to PDFs through  Adobe writer.  Is the same possible
 through Lyx/Latex?



 Thanks,

 Parul





pg - pdf

2009-05-06 Thread Wolfgang Engelmann
I noticed that jpg files are not converted to pdf files since I changed to 
1.6.2. 
Am I missing some additional converter prg? 

Wolfgang


Re: Putting images side by side

2009-05-06 Thread Erez Yerushalmi
Hi,

sorry for answering so late. I wasn't near a computer.

have you tried to add in box minipage.



• Insert figure float (either by pressing button or by insert)

• Insert minipage (press 'insert box button' or insertbox)

• Insert  Formatting  Horizontal Fill

• Insert graphics

• Right mouse click and obtain extra settings: example, “prefer figure here”

set box setting: width according to how many pics in a row. If three, then
33%.

set graphics setting: width is 100; column width

Did you try this?

erez



On Tue, May 5, 2009 at 4:35 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Erez,

 Thanks for the feedback,

 For the first row i have set  the width to 100 with TextWidht % and i have
 included subfigure for both the images
 and it worked fine . I inserted horizontal fill before and after each of
 the
 images and Both of them are side by side


 Things get messed up if i try to do the very same thing in the next line


 Regards
 Sajjad






 -- Forwarded message --
 From: Erez Yerushalmi erezyerusha...@gmail.com
 Date: Tue, May 5, 2009 at 5:30 PM
 Subject: Re: Putting images side by side
 To: ami guru dosto.wa...@gmail.com
 Cc: lyx-users@lists.lyx.org


 Hi Sajjad,

 Did you play around with the settings:  scale graphics, set width, set
 height  .

 You can choose as a % of page height or page column etc...

 Double click on the images and fix its specific features...

 So, if you have two figures side by side, you need to have 50% and 50% of
 the column width.
 If you have two figures one over the others, the same story...

 Erez



 On Tue, May 5, 2009 at 4:19 PM, ami guru dosto.wa...@gmail.com wrote:

  Hello forum,
 
  I have inserted a float figure and then inside the float figute i have
  added
  two graphic objects side by side and it worked fine.
 
  Then i moved to  the second row after putting some vertical space and
 added
  2 images the same way as above, bur this time
 
  part of the images are cropped.
 
 
  Any hint on that one?
 
 
  Regards
  Sajjad
 



 --
 Erez Yerushalmi
 PhD Student
 Warwick University, UK
 homepage:

 http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


Re: pg - pdf

2009-05-06 Thread Guenter Milde
On 2009-05-06, Wolfgang Engelmann wrote:
 I noticed that jpg files are not converted to pdf files since I changed to 
 1.6.2. 
 Am I missing some additional converter prg? 

pdflatex can work with jpg files (if exporting to PDF).

Günter



Re: pg - pdf

2009-05-06 Thread Wolfgang Engelmann
Am Wednesday 06 May 2009 14:31:12 schrieb Guenter Milde:
 On 2009-05-06, Wolfgang Engelmann wrote:
  I noticed that jpg files are not converted to pdf files since I changed
  to 1.6.2.
  Am I missing some additional converter prg?

 pdflatex can work with jpg files (if exporting to PDF).

 Günter

yes, I was expecting it. But in my setup it is not doing it. I am using 
pdflatex for export. 

Wolfgang

Re: Another beamer class issue -- RESOLVED!

2009-05-06 Thread Rich Shepard

On Tue, 5 May 2009, Rich Shepard wrote:


 Now that I have the logo displaying properly and the slides for the
presentation finished, I need to get the navigation tools in acroread
working.


  Thanks to Murat, and some magic computer foo, it's working.

  Yesterday I could not get proper output using File-Export-PDF(pdflatex).
So I tried File-Export-LaTeX(pdflatex), but ran pdflatex only twice on the
.tex file.

  This morning I decided to try the direct PDF(pdflatex) build before
running LaTeX 3 times (I forgot yesterday that it needs that many passes to
build TOC and other portions.) Well, the direct build worked today.

  The visuals consists of 215 slides, and the workshop handout is,
interestingly, 215 pages (with cover and TOC). All done with LyX and
PSTricks for the figures. That's for 12+ hours of teaching over two days. In
Australia (Perth and Melbourne).

  As many of us have known for years, this is one of the most civil,
helpful, and productive application-specific mail lists on the 'Net. What a
wonderful group we have here.

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: arrangement issue

2009-05-06 Thread Olivier Ripoll

ami guru wrote:

Hello forum,

I have inserted C++ code snippet inside the float:algorithm block and then i
inserted vertical spaces

And then i inserted float:figure, inserted images.


When i preview the in the pdf format the images show up before the code
snippet. I should be vice versa.

Any idea on that one?


Floats are floating elements. But Lyx let's you choose the default 
behaviour for floats and even each float behaviour.

You may want to try the here definitely or the here if possible
To set this behaviour document-wise, got to
Documents-Settings-Float Placement
To set this only for a given float, right-click onto the Float : 
Algorithm box (resp. Float : Figure) and choose settings. Then 
click the here definitely choice. You can also access this by Float 
Settings... at the bottom of the edit menu when a float is selected.


Best regards,

Olivier

PS: LyX is not a word processor, vertical spaces are most of the time 
not the right way to go.




What am i missing in the process?


Regards
Sajjad





Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 5, 2009, at 10:26 PM, Steve Litt wrote:


On Tuesday 05 May 2009 11:07:13 pm James C. Sutherland wrote:

On May 5, 2009, at 6:06 PM, James C. Sutherland wrote:

LyX Module Gurus:

I am trying to create a modified List environment where is counter
is not reset each time the environment begins.  I have created a
module (attached) that does part of this for me - it creates a new
TaskList environment in LyX. However, I cannot seem to get the
counter to keep incrementing - it resets with each instantiation of
the environment.

This may be a LaTeX question, since I cannot get it working properly
in LaTeX either.  I just hope someone out there can shed some light
on this...


I have managed to find a solution to this (see attached), although I
could really benefit from knowing how modules work in more depth.   
The

user manual (Customization Ch. 5) is very terse on this topic!


I'm almost positive both of you should have used LatexType  
Item_Environment

in the LyX part of your definitions.


Actually it works fine without it.  I tried two things:
LatexType   List_Environment
LatexType   Item_Environment
The List option worked better for me since the Item one just gives  
a bullet in LyX whereas the List option allows you more control over  
what LyX shows for the enumeration.  However, this is all pretty  
cloudy to me - there is a sore lack of documentation on this really  
nice feature in LyX.


Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 6, 2009, at 12:40 AM, Guenter Milde wrote:


On 2009-05-06, James C. Sutherland wrote:


I am trying to create a modified List environment where is counter is
not reset each time the environment begins.  I have created a module
(attached) that does part of this for me - it creates a new  
TaskList

environment in LyX. However, I cannot seem to get the counter to keep
incrementing - it resets with each instantiation of the environment.


You might try the enumitem.module. Search at http://wiki.lyx.org for
enumitem.

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the  
enumitem

package.)

Günter



I have used the enumitem module.  However, I wanted to change the  
enumeration name (Task 1 rather than 1).  Also, I wanted to be  
able to have enumeration environments in my document and a special  
TaskItem environment that was globally incremented.  The enumitem  
module will not quite allow this.


I think that we could benefit from a detailed description of how to  
create modules, and what all of the knobs mean.  For example, I  
struggled with determining how to set a LabelType and LabelString  
in LyX.  I never got quite what I wanted: something like Task 1   
Task 2  etc.  The closest I could get was Task or 1 but not a  
string and a counter together.  The compiled output looks fine, but in  
LyX it isn't quite what I would like...

Fwd: Putting images side by side

2009-05-06 Thread ami guru
Thanks again Erez,


I tried to follow the way that you have suggested.


At one point of your instruction you have mentioned


set box setting: width according to how many pics in a row. If three, then
33%.

Right-clicking on the image i do get  the settings but i did not find
anyhting named box settings

I am using LyX version 1.6.1 and i have the following tabs in the settings
dialog.

*Graphics
*Clipping
*Latex and LyX options

Did you mean  the Clipping one as box?

Please guide me through  the way.

Regards
Sajjad

-- Forwarded message --
From: Erez Yerushalmi erezyerusha...@gmail.com
Date: Wed, May 6, 2009 at 1:57 PM
Subject: Re: Putting images side by side
To: ami guru dosto.wa...@gmail.com
Cc: lyx-users@lists.lyx.org


Hi,

sorry for answering so late. I wasn't near a computer.

have you tried to add in box minipage.



• Insert figure float (either by pressing button or by insert)

• Insert minipage (press 'insert box button' or insertbox)

• Insert  Formatting  Horizontal Fill

• Insert graphics

• Right mouse click and obtain extra settings: example, “prefer figure here”

set box setting: width according to how many pics in a row. If three, then
33%.

set graphics setting: width is 100; column width

Did you try this?

erez




On Tue, May 5, 2009 at 4:35 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Erez,

 Thanks for the feedback,

 For the first row i have set  the width to 100 with TextWidht % and i have
 included subfigure for both the images
 and it worked fine . I inserted horizontal fill before and after each of
 the
 images and Both of them are side by side


 Things get messed up if i try to do the very same thing in the next line


 Regards
 Sajjad






 -- Forwarded message --
 From: Erez Yerushalmi erezyerusha...@gmail.com
 Date: Tue, May 5, 2009 at 5:30 PM
 Subject: Re: Putting images side by side
 To: ami guru dosto.wa...@gmail.com
 Cc: lyx-users@lists.lyx.org


 Hi Sajjad,

 Did you play around with the settings:  scale graphics, set width, set
 height  .

 You can choose as a % of page height or page column etc...

 Double click on the images and fix its specific features...

 So, if you have two figures side by side, you need to have 50% and 50% of
 the column width.
 If you have two figures one over the others, the same story...

 Erez



 On Tue, May 5, 2009 at 4:19 PM, ami guru dosto.wa...@gmail.com wrote:

  Hello forum,
 
  I have inserted a float figure and then inside the float figute i have
  added
  two graphic objects side by side and it worked fine.
 
  Then i moved to  the second row after putting some vertical space and
 added
  2 images the same way as above, bur this time
 
  part of the images are cropped.
 
 
  Any hint on that one?
 
 
  Regards
  Sajjad
 



 --
 Erez Yerushalmi
 PhD Student
 Warwick University, UK
 homepage:

 http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


epigraph and chapter style (header/footer)

2009-05-06 Thread Leo Gürtler
Dear Lyx-list,

I use memoir class (book) together with 'epigraph' to set epigraphs on
the first page of a chapter. I do not want any header/ footer on
chapter-starting-pages. The standard layout is set in lyx to 'empty
style' and also are added in the preambel:

\aliaspagestyle{part}{empty}
\aliaspagestyle{chapter}{empty}
\aliaspagestyle{title}{empty}

Without 'epigraph' this works ok, but with it does not work for
pagestyle 'chapter'.

Epigraph commandos in the preambel:

\renewcommand{\epigraphflush}{flushright} % epigraph an sich
\renewcommand{\textflush}{flushleft} % text im epigraph
\renewcommand{\sourceflush}{flushright} % Zitatquelle im epigraph
%\renewcommand{\epigraphsize}{\footnotesize}
\setlength{\epigraphwidth}{.5\textwidth} % Breite des Zitats
\setlength{\beforeepigraphskip}{.5\baselineskip} % Abstand vor epigraph
\setlength{\afterepigraphskip}{.5\baselineskip} % Abstand nach epigraph
\setlength{\epigraphrule}{2pt} % keine Linie zw. Zitat und Autor


And in the text:

\epigraphhead[70]{
 \epigraph{enemenemu}
  {\textit{book}\\
   \textsc{author}}
}

In the middle of the footer the page number appears as long as an
epigraph is used on that page.
If an epigraph is not used, the page is completely empty.

-- How can I get rid of this behavior so that the
chapter-starting-page is completely clear AND epigraphs can be used on
the same page?


thanks a lot!
best wishes
leo gürtler


Re: module question - modifying list environment

2009-05-06 Thread Stefano Franchi
On Wednesday 06 May 2009 09:18:59 am James C. Sutherland wrote:
 On May 6, 2009, at 12:40 AM, Guenter Milde wrote:
  On 2009-05-06, James C. Sutherland wrote:
  I am trying to create a modified List environment where is counter is
  not reset each time the environment begins.  I have created a module
  (attached) that does part of this for me - it creates a new
  TaskList
  environment in LyX. However, I cannot seem to get the counter to keep
  incrementing - it resets with each instantiation of the environment.
 
  You might try the enumitem.module. Search at http://wiki.lyx.org for
  enumitem.
 
  (Actually, the Counter is re-set in LyX as well (but blue to make
  sure it is just an internal label), the LaTeX output uses the
  enumitem
  package.)
 
  Günter

 I have used the enumitem module.  However, I wanted to change the
 enumeration name (Task 1 rather than 1).  Also, I wanted to be
 able to have enumeration environments in my document and a special
 TaskItem environment that was globally incremented.  The enumitem
 module will not quite allow this.

 I think that we could benefit from a detailed description of how to
 create modules, and what all of the knobs mean.  For example, I
 struggled with determining how to set a LabelType and LabelString
 in LyX.  I never got quite what I wanted: something like Task 1
 Task 2  etc.  The closest I could get was Task or 1 but not a
 string and a counter together.  The compiled output looks fine, but in
 LyX it isn't quite what I would like...

I just learned (on the developers list) that the behavior of the counter in 
the Enumerate environment is hardcoded and cannot be modified by modules. My 
problem was how to modify the counter strings (from levels 2 on)  from roman 
to arabic.  Presumably, the problem discussed here runs into the the same 
difficulty. 
We non-coders neeed to wait until the developers change the C++ code and make 
Enumerate customizable.

Cheers,

S.

__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



final vector font types

2009-05-06 Thread Péter
Hello!

I'm using book layout from Lyx to create my thesis, and my questions
is that how can I switch the font type of the final pdf, to vector
type.

Currently if I apply 600% zoom in Acrobat Reader, I see that the fonts
became blocky (like if you enlarge raster graphics). I would like to
swith to a font type, with which no matter how much I zoom in it will
be aliased (similar to vector graphics). The difference is visible
with 100% zoom also, but it seems just blurry there, the through only
comes when zooming in.

I've got some thesises written in plain latex and generated through
miktex, and they seem to be perfect scaling.

Thanks for the replys. Please reply to me directly, I'm not on the list.

Thanks,
Peter

PS: I'm using Windows XP SP2 with Lyx 1.6.1.


Re: final vector font types

2009-05-06 Thread Rich Shepard

On Wed, 6 May 2009, P?ter wrote:


I'm using book layout from Lyx to create my thesis, and my questions is
that how can I switch the font type of the final pdf, to vector type.


  What is your default typeface? Knuth's Computer Modern fonts are
bit-mapped at specific sizes, but the standard PostScript typefaces are
vectors and scalable.

  I use Palatino as my default serif typeface. I just enlarged a single
letter to fill the entire acroread window and there are smooth lines
defining the edge of the letter.

  Of course, this is on linux, so YMMV.

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


Superscript for citations

2009-05-06 Thread Sophie (itsme213)
Is it possible to get something like numbered superscripts for citations?

Thanks 





Re: final vector font types

2009-05-06 Thread Steve Litt
On Wednesday 06 May 2009 12:04:31 pm Péter wrote:

 Thanks for the replys. Please reply to me directly, I'm not on the list.

Ahh, my pet peeve. He doesn't have time to subscribe, but expects us to have 
time to teach one person at a time.

http://www.troubleshooters.com/linux/netiquette.htm

http://www.catb.org/~esr/faqs/smart-questions.html#easyreply

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



Re: Superscript for citations

2009-05-06 Thread Richard Heck

Sophie (itsme213) wrote:

Is it possible to get something like numbered superscripts for citations?

  
Yes. You have to use natbib, numerical, to get it. Add the option 
super to Class Options in DocumentSettings.


rh



Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

James C. Sutherland wrote:
I think that we could benefit from a detailed description of how to 
create modules, and what all of the knobs mean.  For example, I 
struggled with determining how to set a LabelType and LabelString 
in LyX.  I never got quite what I wanted: something like Task 1  
Task 2  etc.  The closest I could get was Task or 1 but not a 
string and a counter together.  The compiled output looks fine, but in 
LyX it isn't quite what I would like...


I'll try to have a look at this. I've been puzzled myself about how the 
item counters, etc, work, and frustrated by similar limitations. I'm not 
sure there is any way to get exactly what you want in an item- or 
list-type environment.


One thing I should say is that this is nothing specifically to do with 
modules. Modules are just fragments of layout, so it's an issue about 
layout in general.


Richard




Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

Stefano Franchi wrote:
I just learned (on the developers list) that the behavior of the counter in 
the Enumerate environment is hardcoded and cannot be modified by modules. My 
problem was how to modify the counter strings (from levels 2 on)  from roman 
to arabic.  Presumably, the problem discussed here runs into the the same 
difficulty. 
We non-coders neeed to wait until the developers change the C++ code and make 
Enumerate customizable.


  
Stefano, could you file an enhancement request for this, and cc me (at 
rgh...@comcast.net). I seem to be the layout guy these days, and I'd 
like to do the same thing you want to do. Viz, I want a Roman Enumerate 
environment, which I can easily get LaTeX-wise, but not in LyX.


Richard



Re: module question - modifying list environment

2009-05-06 Thread Jean-Marc Lasgouttes
Richard Heck rgh...@bobjweil.com writes:

 James C. Sutherland wrote:
 I think that we could benefit from a detailed description of how to
 create modules, and what all of the knobs mean.  For example, I
 struggled with determining how to set a LabelType and
 LabelString in LyX.  I never got quite what I wanted: something
 like Task 1  Task 2  etc.  The closest I could get was Task or
 1 but not a string and a counter together.  The compiled output
 looks fine, but in LyX it isn't quite what I would like...

 I'll try to have a look at this. I've been puzzled myself about how
 the item counters, etc, work, and frustrated by similar limitations.
 I'm not sure there is any way to get exactly what you want in an item-
 or list-type environment.

Look at the chapter style:

Style Chapter
MarginStatic
Category  Section
LabelString   Chapter \thechapter
LabelStringAppendix   Appendix \thechapter
LabelType   Counter
LabelCounterchapter

Easy, isn't it?

JMarc


Importing Maple's Latex export files in Lyx

2009-05-06 Thread Murat Yildizoglu
Hello,
I frequently export Latex from Maple but if I import the file in LyX I
have just a bunch of ERT boxes. I would like to know if you have met
this problem and found a solution (a specific Layout?). I have
searched the web but the only possibility I have located is quite a
complex script based system mainly created using Unix tools (I am not
sure if I have understood correctly everything). Any idea about a more
direct solution based on the capaibilities of LyX?

Regards,

Murat

-- 
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: Importing Maple's Latex export files in Lyx

2009-05-06 Thread Vincent van Ravesteijn

Murat Yildizoglu schreef:

Hello,
I frequently export Latex from Maple but if I import the file in LyX I
have just a bunch of ERT boxes. I would like to know if you have met
this problem and found a solution (a specific Layout?). I have
searched the web but the only possibility I have located is quite a
complex script based system mainly created using Unix tools (I am not
sure if I have understood correctly everything). Any idea about a more
direct solution based on the capaibilities of LyX?

Regards,

Murat
  
Can you give a small example file of how a Maple exported latex file 
looks like ?


Vincent


Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

Jean-Marc Lasgouttes wrote:

Richard Heck rgh...@bobjweil.com writes:

  

James C. Sutherland wrote:


I think that we could benefit from a detailed description of how to
create modules, and what all of the knobs mean.  For example, I
struggled with determining how to set a LabelType and
LabelString in LyX.  I never got quite what I wanted: something
like Task 1  Task 2  etc.  The closest I could get was Task or
1 but not a string and a counter together.  The compiled output
looks fine, but in LyX it isn't quite what I would like...

  

I'll try to have a look at this. I've been puzzled myself about how
the item counters, etc, work, and frustrated by similar limitations.
I'm not sure there is any way to get exactly what you want in an item-
or list-type environment.



Look at the chapter style:

Style Chapter
MarginStatic
Category  Section
LabelString   Chapter \thechapter
LabelStringAppendix   Appendix \thechapter
LabelType   Counter
LabelCounterchapter

Easy, isn't it?

  
Sorry, my question was more about list-type environments, and how to 
change to, say, \roman in an enumeration like environment. That's now 
been filed as an enhancement request.


I'm not sure how this applies to the OP's issue.

rh



portable installation

2009-05-06 Thread Sophie (itsme213)
I'm looking at the instructions at 
http://wiki.lyx.org/Windows/PortableInstallation

I have put USBTeX on my memory stick, and copied C:\Program Files\Lyx16 to 
that stick. But the installation instructions say to copy some tl-portable 
files from the TexLive DVD, which I have not used.

If anyone has got this combination working (USBTeX with Lyx16), could you 
please share what you did? I will update the wiki after I get it to work 
myself.

Thanks! 





Fwd: Importing Maple's Latex export files in Lyx

2009-05-06 Thread Murat Yildizoglu
Oups, I have missed the list's address in my previous mail. Sorry
Vincent for the double post.
Murat


-- Forwarded message --
From: Murat Yildizoglu murat.yildizo...@univ-cezanne.fr
Date: 2009/5/6
Subject: Re: Importing Maple's Latex export files in Lyx
To: Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl


Of course! :-)
Here is a small conversion test, with some text, math and a stupid
figure. Maple saves the figure in eps when you export to latex. Before
compiling by hand, I also put in the preamble the following
instructions for handling accented characters and bigger page:

\RequirePackage[latin1]{inputenc}
\RequirePackage{ae,aeguill}
\usepackage[compat2,a4paper]{geometry}

Regards,

Murat


2009/5/6 Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl:
 Murat Yildizoglu schreef:

 Hello,
 I frequently export Latex from Maple but if I import the file in LyX I
 have just a bunch of ERT boxes. I would like to know if you have met
 this problem and found a solution (a specific Layout?). I have
 searched the web but the only possibility I have located is quite a
 complex script based system mainly created using Unix tools (I am not
 sure if I have understood correctly everything). Any idea about a more
 direct solution based on the capaibilities of LyX?

 Regards,

 Murat


 Can you give a small example file of how a Maple exported latex file looks
 like ?

 Vincent




--
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__



-- 
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


test-maple01.eps
Description: PostScript document


test-maple.tex
Description: TeX document


Re LyX::Client.pm and LyX::Polite.pm

2009-05-06 Thread john
A question for the developers

For many years I have been using LyX as the document processor for
Insurance Policy and Claims management standard letters.  It has been a
brilliant application.

I have a perl script which provides a GUI application where the user can
run SQL queries which I then output as a series of perl assignment
statements (e.g. $surname='Smith'; ).
The user chooses a standard letter which is a LyX file with the
placeholders of the form ${surname}.
perl, having read the assignments, then outputs the LyX file with the
${id} vars magically instantiated to the correct values and lo we have a
document which via the LyXServer mechanism gets passed to a running LyX
application. The user can edit the file and save changes. My program
then saves the file back into the database.
This has worked superbly for 10 years.
When I first started this project, we used a LyX perl package LyX which
included LyX::Client.pm and LyX::Polite.pm
I added my own perl script: LyXTable which produced valid source for a
LyX Table.
Sorry for this long preamble.
I have searched the LyX websites for Client.pm and Polite - not there?
Nor have they ever been on the CPAN.

My question: Do you still maintain the LyX perl packages for current
versions of LyX or have you abandoned them in favour of the new religion
Python.
My application is a more natural fit for perl than for Python.

John O'Gorman



Re: Re LyX::Client.pm and LyX::Polite.pm

2009-05-06 Thread john
Woops

After a little reflection, I downloaded the 1.6.2 source files and voila
There they were under development/lyxserver.
Sorry people.

John O'Gorman

john wrote:
 A question for the developers

 For many years I have been using LyX as the document processor for
 Insurance Policy and Claims management standard letters.  It has been a
 brilliant application.

 I have a perl script which provides a GUI application where the user can
 run SQL queries which I then output as a series of perl assignment
 statements (e.g. $surname='Smith'; ).
 The user chooses a standard letter which is a LyX file with the
 placeholders of the form ${surname}.
 perl, having read the assignments, then outputs the LyX file with the
 ${id} vars magically instantiated to the correct values and lo we have a
 document which via the LyXServer mechanism gets passed to a running LyX
 application. The user can edit the file and save changes. My program
 then saves the file back into the database.
 This has worked superbly for 10 years.
 When I first started this project, we used a LyX perl package LyX which
 included LyX::Client.pm and LyX::Polite.pm
 I added my own perl script: LyXTable which produced valid source for a
 LyX Table.
 Sorry for this long preamble.
 I have searched the LyX websites for Client.pm and Polite - not there?
 Nor have they ever been on the CPAN.

 My question: Do you still maintain the LyX perl packages for current
 versions of LyX or have you abandoned them in favour of the new religion
 Python.
 My application is a more natural fit for perl than for Python.

 John O'Gorman



   



Re: portable installation

2009-05-06 Thread Florian Rubach

Sophie (itsme213) schrieb:

If anyone has got this combination working (USBTeX with Lyx16),
  


I just tried it myself and failed. It seems to be an issue with USBTex, 
because even the suggested way to create and compile a simple tex-file 
fails. If I were you, I would try to find out the email-adress of Sam 
Lewis, who wrote the USBTex-part of the wiki-entry.


Good luck,

Florian


Re: module question - modifying list environment

2009-05-06 Thread Guenter Milde
On 2009-05-06, James C. Sutherland wrote:

> I am trying to create a modified List environment where is counter is  
> not reset each time the environment begins.  I have created a module  
> (attached) that does part of this for me - it creates a new "TaskList"  
> environment in LyX. However, I cannot seem to get the counter to keep  
> incrementing - it resets with each instantiation of the environment.

You might try the enumitem.module. Search at http://wiki.lyx.org for
"enumitem".

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the "enumitem"
package.)

Günter



Re: Embedding documents/text files in PDF

2009-05-06 Thread Xie Chao
Is it because lyx is trying to compile your file in a temp folder, but the
file you want to attach was not copied over to the temp location, so a
relative path (relative to the actual lyx file, not the temp file) doesn't
work?

I am also new to lyx, so lyxers, please correct me if I am wrong.

Regards,
Xie Chao


On Wed, May 6, 2009 at 5:41 AM, Parul Bali wrote:

>  To be more specific, it doesn’t seem to locate the file when I specify
> relative path in the Lyx file and try converting it to pdflatex. However, if
> the same lyx file is exported to tex format and then converted to pdflatex,
> it works great.
>
>
>
> Any help  will be greatly  appreciated.
>
>
>
> Thanks,
>
> Parul
>
>
>
> *From:* Parul Bali [mailto:parul.sarasw...@gmail.com]
> *Sent:* 05 May 2009 22:30
> *To:* 'Xie Chao'
> *Cc:* lyx-users@lists.lyx.org
> *Subject:* RE: Embedding documents/text files in PDF
>
>
>
> Many thanks to everyone for their responses.
>
>
>
> Xie,
>
>
>
> The `attachfile’ package you suggested works great if I export  lyx file to
> tex format and then convert the tex file to pdflatex. However, if I try
> converting the lyx file  to pdflatex directly, it  throws me an error –
>  “pdftex error: cannot open file for embedding” .
>
> It doesn’t seem to locate the  file. Any pointers on how to resolve this
> would be very helpful.
>
>
>
> Thank you.
>
>
>
> Parul
>
>
>
> *From:* Xie Chao [mailto:xiech...@gmail.com]
> *Sent:* 05 May 2009 20:09
> *To:* Parul Bali
> *Cc:* lyx-users@lists.lyx.org
> *Subject:* Re: Embedding documents/text files in PDF
>
>
>
> I guess you are looking for this:
> http://www.ctan.org/get/macros/latex/contrib/attachfile/attachfile.pdf
>
> You can use this LaTeX package to attach files in your PDF.
>
> Regards,
> Xie Chao
>
> On Tue, May 5, 2009 at 5:39 AM, Parul Bali 
> wrote:
>
> This may  sound strange, but does anybody know if its possible to embed
> text
> file or doc file in a PDF generated from Lyx/Latex?  I have seen facility
> to
> attach documents to PDFs through  Adobe writer.  Is the same possible
> through Lyx/Latex?
>
>
>
> Thanks,
>
> Parul
>
>
>


pg -> pdf

2009-05-06 Thread Wolfgang Engelmann
I noticed that jpg files are not converted to pdf files since I changed to 
1.6.2. 
Am I missing some additional converter prg? 

Wolfgang


Re: Putting images side by side

2009-05-06 Thread Erez Yerushalmi
Hi,

sorry for answering so late. I wasn't near a computer.

have you tried to add in box minipage.



• Insert figure float (either by pressing button or by insert)

• Insert minipage (press 'insert box button' or insert>box)

• Insert > Formatting > Horizontal Fill

• Insert graphics

• Right mouse click and obtain extra settings: example, “prefer figure here”

set box setting: width according to how many pics in a row. If three, then
33%.

set graphics setting: width is 100; column width

Did you try this?

erez



On Tue, May 5, 2009 at 4:35 PM, ami guru  wrote:

> Hello Erez,
>
> Thanks for the feedback,
>
> For the first row i have set  the width to 100 with TextWidht % and i have
> included subfigure for both the images
> and it worked fine . I inserted horizontal fill before and after each of
> the
> images and Both of them are side by side
>
>
> Things get messed up if i try to do the very same thing in the next line
>
>
> Regards
> Sajjad
>
>
>
>
>
>
> -- Forwarded message --
> From: Erez Yerushalmi 
> Date: Tue, May 5, 2009 at 5:30 PM
> Subject: Re: Putting images side by side
> To: ami guru 
> Cc: lyx-users@lists.lyx.org
>
>
> Hi Sajjad,
>
> Did you play around with the settings:  scale graphics, set width, set
> height  .
>
> You can choose as a % of page height or page column etc...
>
> Double click on the images and fix its specific features...
>
> So, if you have two figures side by side, you need to have 50% and 50% of
> the column width.
> If you have two figures one over the others, the same story...
>
> Erez
>
>
>
> On Tue, May 5, 2009 at 4:19 PM, ami guru  wrote:
>
> > Hello forum,
> >
> > I have inserted a float figure and then inside the float figute i have
> > added
> > two graphic objects side by side and it worked fine.
> >
> > Then i moved to  the second row after putting some vertical space and
> added
> > 2 images the same way as above, bur this time
> >
> > part of the images are cropped.
> >
> >
> > Any hint on that one?
> >
> >
> > Regards
> > Sajjad
> >
>
>
>
> --
> Erez Yerushalmi
> PhD Student
> Warwick University, UK
> homepage:
>
> http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi
>



-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


Re: pg -> pdf

2009-05-06 Thread Guenter Milde
On 2009-05-06, Wolfgang Engelmann wrote:
> I noticed that jpg files are not converted to pdf files since I changed to 
> 1.6.2. 
> Am I missing some additional converter prg? 

pdflatex can work with jpg files (if exporting to PDF).

Günter



Re: pg -> pdf

2009-05-06 Thread Wolfgang Engelmann
Am Wednesday 06 May 2009 14:31:12 schrieb Guenter Milde:
> On 2009-05-06, Wolfgang Engelmann wrote:
> > I noticed that jpg files are not converted to pdf files since I changed
> > to 1.6.2.
> > Am I missing some additional converter prg?
>
> pdflatex can work with jpg files (if exporting to PDF).
>
> Günter

yes, I was expecting it. But in my setup it is not doing it. I am using 
pdflatex for export. 

Wolfgang

Re: Another beamer class issue -- RESOLVED!

2009-05-06 Thread Rich Shepard

On Tue, 5 May 2009, Rich Shepard wrote:


 Now that I have the logo displaying properly and the slides for the
presentation finished, I need to get the navigation tools in acroread
working.


  Thanks to Murat, and some magic computer foo, it's working.

  Yesterday I could not get proper output using File->Export->PDF(pdflatex).
So I tried File->Export->LaTeX(pdflatex), but ran pdflatex only twice on the
.tex file.

  This morning I decided to try the direct PDF(pdflatex) build before
running LaTeX 3 times (I forgot yesterday that it needs that many passes to
build TOC and other portions.) Well, the direct build worked today.

  The visuals consists of 215 slides, and the workshop handout is,
interestingly, 215 pages (with cover and TOC). All done with LyX and
PSTricks for the figures. That's for 12+ hours of teaching over two days. In
Australia (Perth and Melbourne).

  As many of us have known for years, this is one of the most civil,
helpful, and productive application-specific mail lists on the 'Net. What a
wonderful group we have here.

Rich

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


Re: arrangement issue

2009-05-06 Thread Olivier Ripoll

ami guru wrote:

Hello forum,

I have inserted C++ code snippet inside the float:algorithm block and then i
inserted vertical spaces

And then i inserted float:figure, inserted images.


When i preview the in the pdf format the images show up before the code
snippet. I should be vice versa.

Any idea on that one?


Floats are "floating" elements. But Lyx let's you choose the default 
behaviour for floats and even each float behaviour.

You may want to try the "here definitely" or the "here if possible"
To set this behaviour document-wise, got to
Documents->Settings->Float Placement
To set this only for a given float, right-click onto the "Float : 
Algorithm" box (resp. "Float : Figure") and choose "settings". Then 
click the "here definitely" choice. You can also access this by "Float 
Settings..." at the bottom of the edit menu when a float is selected.


Best regards,

Olivier

PS: LyX is not a word processor, vertical spaces are most of the time 
not the right way to go.




What am i missing in the process?


Regards
Sajjad





Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 5, 2009, at 10:26 PM, Steve Litt wrote:


On Tuesday 05 May 2009 11:07:13 pm James C. Sutherland wrote:

On May 5, 2009, at 6:06 PM, James C. Sutherland wrote:

LyX Module Gurus:

I am trying to create a modified List environment where is counter
is not reset each time the environment begins.  I have created a
module (attached) that does part of this for me - it creates a new
"TaskList" environment in LyX. However, I cannot seem to get the
counter to keep incrementing - it resets with each instantiation of
the environment.

This may be a LaTeX question, since I cannot get it working properly
in LaTeX either.  I just hope someone out there can shed some light
on this...


I have managed to find a solution to this (see attached), although I
could really benefit from knowing how modules work in more depth.   
The

user manual (Customization Ch. 5) is very terse on this topic!


I'm almost positive both of you should have used "LatexType  
Item_Environment"

in the LyX part of your definitions.


Actually it works fine without it.  I tried two things:
LatexType   List_Environment
LatexType   Item_Environment
The "List" option worked better for me since the "Item" one just gives  
a bullet in LyX whereas the List option allows you more control over  
what LyX shows for the enumeration.  However, this is all pretty  
cloudy to me - there is a sore lack of documentation on this really  
nice feature in LyX.


Re: module question - modifying list environment

2009-05-06 Thread James C. Sutherland


On May 6, 2009, at 12:40 AM, Guenter Milde wrote:


On 2009-05-06, James C. Sutherland wrote:


I am trying to create a modified List environment where is counter is
not reset each time the environment begins.  I have created a module
(attached) that does part of this for me - it creates a new  
"TaskList"

environment in LyX. However, I cannot seem to get the counter to keep
incrementing - it resets with each instantiation of the environment.


You might try the enumitem.module. Search at http://wiki.lyx.org for
"enumitem".

(Actually, the Counter is re-set in LyX as well (but blue to make
sure it is just an internal label), the LaTeX output uses the  
"enumitem"

package.)

Günter



I have used the enumitem module.  However, I wanted to change the  
enumeration name ("Task 1" rather than "1").  Also, I wanted to be  
able to have enumeration environments in my document and a special  
"TaskItem" environment that was globally incremented.  The enumitem  
module will not quite allow this.


I think that we could benefit from a detailed description of how to  
create modules, and what all of the knobs mean.  For example, I  
struggled with determining how to set a "LabelType" and "LabelString"  
in LyX.  I never got quite what I wanted: something like "Task 1"   
"Task 2"  etc.  The closest I could get was "Task" or "1" but not a  
string and a counter together.  The compiled output looks fine, but in  
LyX it isn't quite what I would like...

Fwd: Putting images side by side

2009-05-06 Thread ami guru
Thanks again Erez,


I tried to follow the way that you have suggested.


At one point of your instruction you have mentioned


"set box setting: width according to how many pics in a row. If three, then
33%."

Right-clicking on the image i do get  the settings but i did not find
anyhting named box settings

I am using LyX version 1.6.1 and i have the following tabs in the settings
dialog.

*Graphics
*Clipping
*Latex and LyX options

Did you mean  the Clipping one as box?

Please guide me through  the way.

Regards
Sajjad

-- Forwarded message --
From: Erez Yerushalmi 
Date: Wed, May 6, 2009 at 1:57 PM
Subject: Re: Putting images side by side
To: ami guru 
Cc: lyx-users@lists.lyx.org


Hi,

sorry for answering so late. I wasn't near a computer.

have you tried to add in box minipage.



• Insert figure float (either by pressing button or by insert)

• Insert minipage (press 'insert box button' or insert>box)

• Insert > Formatting > Horizontal Fill

• Insert graphics

• Right mouse click and obtain extra settings: example, “prefer figure here”

set box setting: width according to how many pics in a row. If three, then
33%.

set graphics setting: width is 100; column width

Did you try this?

erez




On Tue, May 5, 2009 at 4:35 PM, ami guru  wrote:

> Hello Erez,
>
> Thanks for the feedback,
>
> For the first row i have set  the width to 100 with TextWidht % and i have
> included subfigure for both the images
> and it worked fine . I inserted horizontal fill before and after each of
> the
> images and Both of them are side by side
>
>
> Things get messed up if i try to do the very same thing in the next line
>
>
> Regards
> Sajjad
>
>
>
>
>
>
> -- Forwarded message --
> From: Erez Yerushalmi 
> Date: Tue, May 5, 2009 at 5:30 PM
> Subject: Re: Putting images side by side
> To: ami guru 
> Cc: lyx-users@lists.lyx.org
>
>
> Hi Sajjad,
>
> Did you play around with the settings:  scale graphics, set width, set
> height  .
>
> You can choose as a % of page height or page column etc...
>
> Double click on the images and fix its specific features...
>
> So, if you have two figures side by side, you need to have 50% and 50% of
> the column width.
> If you have two figures one over the others, the same story...
>
> Erez
>
>
>
> On Tue, May 5, 2009 at 4:19 PM, ami guru  wrote:
>
> > Hello forum,
> >
> > I have inserted a float figure and then inside the float figute i have
> > added
> > two graphic objects side by side and it worked fine.
> >
> > Then i moved to  the second row after putting some vertical space and
> added
> > 2 images the same way as above, bur this time
> >
> > part of the images are cropped.
> >
> >
> > Any hint on that one?
> >
> >
> > Regards
> > Sajjad
> >
>
>
>
> --
> Erez Yerushalmi
> PhD Student
> Warwick University, UK
> homepage:
>
> http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi
>



-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


epigraph and chapter style (header/footer)

2009-05-06 Thread Leo Gürtler
Dear Lyx-list,

I use memoir class (book) together with 'epigraph' to set epigraphs on
the first page of a chapter. I do not want any header/ footer on
chapter-starting-pages. The standard layout is set in lyx to 'empty
style' and also are added in the preambel:

\aliaspagestyle{part}{empty}
\aliaspagestyle{chapter}{empty}
\aliaspagestyle{title}{empty}

Without 'epigraph' this works ok, but with it does not work for
pagestyle 'chapter'.

Epigraph commandos in the preambel:

\renewcommand{\epigraphflush}{flushright} % epigraph an sich
\renewcommand{\textflush}{flushleft} % text im epigraph
\renewcommand{\sourceflush}{flushright} % Zitatquelle im epigraph
%\renewcommand{\epigraphsize}{\footnotesize}
\setlength{\epigraphwidth}{.5\textwidth} % Breite des Zitats
\setlength{\beforeepigraphskip}{.5\baselineskip} % Abstand vor epigraph
\setlength{\afterepigraphskip}{.5\baselineskip} % Abstand nach epigraph
\setlength{\epigraphrule}{2pt} % keine Linie zw. Zitat und Autor


And in the text:

\epigraphhead[70]{
 \epigraph{enemenemu}
  {\textit{book}\\
   \textsc{author}}
}

In the middle of the footer the page number appears as long as an
epigraph is used on that page.
If an epigraph is not used, the page is completely empty.

-->> How can I get rid of this behavior so that the
chapter-starting-page is completely clear AND epigraphs can be used on
the same page?


thanks a lot!
best wishes
leo gürtler


Re: module question - modifying list environment

2009-05-06 Thread Stefano Franchi
On Wednesday 06 May 2009 09:18:59 am James C. Sutherland wrote:
> On May 6, 2009, at 12:40 AM, Guenter Milde wrote:
> > On 2009-05-06, James C. Sutherland wrote:
> >> I am trying to create a modified List environment where is counter is
> >> not reset each time the environment begins.  I have created a module
> >> (attached) that does part of this for me - it creates a new
> >> "TaskList"
> >> environment in LyX. However, I cannot seem to get the counter to keep
> >> incrementing - it resets with each instantiation of the environment.
> >
> > You might try the enumitem.module. Search at http://wiki.lyx.org for
> > "enumitem".
> >
> > (Actually, the Counter is re-set in LyX as well (but blue to make
> > sure it is just an internal label), the LaTeX output uses the
> > "enumitem"
> > package.)
> >
> > Günter
>
> I have used the enumitem module.  However, I wanted to change the
> enumeration name ("Task 1" rather than "1").  Also, I wanted to be
> able to have enumeration environments in my document and a special
> "TaskItem" environment that was globally incremented.  The enumitem
> module will not quite allow this.
>
> I think that we could benefit from a detailed description of how to
> create modules, and what all of the knobs mean.  For example, I
> struggled with determining how to set a "LabelType" and "LabelString"
> in LyX.  I never got quite what I wanted: something like "Task 1"
> "Task 2"  etc.  The closest I could get was "Task" or "1" but not a
> string and a counter together.  The compiled output looks fine, but in
> LyX it isn't quite what I would like...

I just learned (on the developers list) that the behavior of the counter in 
the Enumerate environment is hardcoded and cannot be modified by modules. My 
problem was how to modify the counter strings (from levels 2 on)  from roman 
to arabic.  Presumably, the problem discussed here runs into the the same 
difficulty. 
We non-coders neeed to wait until the developers change the C++ code and make 
Enumerate customizable.

Cheers,

S.

__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



final vector font types

2009-05-06 Thread Péter
Hello!

I'm using book layout from Lyx to create my thesis, and my questions
is that how can I switch the font type of the final pdf, to vector
type.

Currently if I apply 600% zoom in Acrobat Reader, I see that the fonts
became blocky (like if you enlarge raster graphics). I would like to
swith to a font type, with which no matter how much I zoom in it will
be aliased (similar to vector graphics). The difference is visible
with 100% zoom also, but it seems just blurry there, the through only
comes when zooming in.

I've got some thesises written in plain latex and generated through
miktex, and they seem to be perfect scaling.

Thanks for the replys. Please reply to me directly, I'm not on the list.

Thanks,
Peter

PS: I'm using Windows XP SP2 with Lyx 1.6.1.


Re: final vector font types

2009-05-06 Thread Rich Shepard

On Wed, 6 May 2009, P?ter wrote:


I'm using book layout from Lyx to create my thesis, and my questions is
that how can I switch the font type of the final pdf, to vector type.


  What is your default typeface? Knuth's Computer Modern fonts are
bit-mapped at specific sizes, but the standard PostScript typefaces are
vectors and scalable.

  I use Palatino as my default serif typeface. I just enlarged a single
letter to fill the entire acroread window and there are smooth lines
defining the edge of the letter.

  Of course, this is on linux, so YMMV.

Rich

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


Superscript for citations

2009-05-06 Thread Sophie (itsme213)
Is it possible to get something like numbered superscripts for citations?

Thanks 





Re: final vector font types

2009-05-06 Thread Steve Litt
On Wednesday 06 May 2009 12:04:31 pm Péter wrote:

> Thanks for the replys. Please reply to me directly, I'm not on the list.

Ahh, my pet peeve. He doesn't have time to subscribe, but expects us to have 
time to teach one person at a time.

http://www.troubleshooters.com/linux/netiquette.htm

http://www.catb.org/~esr/faqs/smart-questions.html#easyreply

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



Re: Superscript for citations

2009-05-06 Thread Richard Heck

Sophie (itsme213) wrote:

Is it possible to get something like numbered superscripts for citations?

  
Yes. You have to use natbib, numerical, to get it. Add the option 
"super" to Class Options in Document>Settings.


rh



Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

James C. Sutherland wrote:
I think that we could benefit from a detailed description of how to 
create modules, and what all of the knobs mean.  For example, I 
struggled with determining how to set a "LabelType" and "LabelString" 
in LyX.  I never got quite what I wanted: something like "Task 1"  
"Task 2"  etc.  The closest I could get was "Task" or "1" but not a 
string and a counter together.  The compiled output looks fine, but in 
LyX it isn't quite what I would like...


I'll try to have a look at this. I've been puzzled myself about how the 
item counters, etc, work, and frustrated by similar limitations. I'm not 
sure there is any way to get exactly what you want in an item- or 
list-type environment.


One thing I should say is that this is nothing specifically to do with 
modules. Modules are just fragments of layout, so it's an issue about 
layout in general.


Richard




Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

Stefano Franchi wrote:
I just learned (on the developers list) that the behavior of the counter in 
the Enumerate environment is hardcoded and cannot be modified by modules. My 
problem was how to modify the counter strings (from levels 2 on)  from roman 
to arabic.  Presumably, the problem discussed here runs into the the same 
difficulty. 
We non-coders neeed to wait until the developers change the C++ code and make 
Enumerate customizable.


  
Stefano, could you file an enhancement request for this, and cc me (at 
rgh...@comcast.net). I seem to be the layout guy these days, and I'd 
like to do the same thing you want to do. Viz, I want a Roman Enumerate 
environment, which I can easily get LaTeX-wise, but not in LyX.


Richard



Re: module question - modifying list environment

2009-05-06 Thread Jean-Marc Lasgouttes
Richard Heck  writes:

> James C. Sutherland wrote:
>> I think that we could benefit from a detailed description of how to
>> create modules, and what all of the knobs mean.  For example, I
>> struggled with determining how to set a "LabelType" and
>> "LabelString" in LyX.  I never got quite what I wanted: something
>> like "Task 1"  "Task 2"  etc.  The closest I could get was "Task" or
>> "1" but not a string and a counter together.  The compiled output
>> looks fine, but in LyX it isn't quite what I would like...
>>
> I'll try to have a look at this. I've been puzzled myself about how
> the item counters, etc, work, and frustrated by similar limitations.
> I'm not sure there is any way to get exactly what you want in an item-
> or list-type environment.

Look at the chapter style:

Style Chapter
MarginStatic
Category  Section
LabelString   "Chapter \thechapter"
LabelStringAppendix   "Appendix \thechapter"
LabelType   Counter
LabelCounterchapter

Easy, isn't it?

JMarc


Importing Maple's Latex export files in Lyx

2009-05-06 Thread Murat Yildizoglu
Hello,
I frequently export Latex from Maple but if I import the file in LyX I
have just a bunch of ERT boxes. I would like to know if you have met
this problem and found a solution (a specific Layout?). I have
searched the web but the only possibility I have located is quite a
complex script based system mainly created using Unix tools (I am not
sure if I have understood correctly everything). Any idea about a more
direct solution based on the capaibilities of LyX?

Regards,

Murat

-- 
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


Re: Importing Maple's Latex export files in Lyx

2009-05-06 Thread Vincent van Ravesteijn

Murat Yildizoglu schreef:

Hello,
I frequently export Latex from Maple but if I import the file in LyX I
have just a bunch of ERT boxes. I would like to know if you have met
this problem and found a solution (a specific Layout?). I have
searched the web but the only possibility I have located is quite a
complex script based system mainly created using Unix tools (I am not
sure if I have understood correctly everything). Any idea about a more
direct solution based on the capaibilities of LyX?

Regards,

Murat
  
Can you give a small example file of how a Maple exported latex file 
looks like ?


Vincent


Re: module question - modifying list environment

2009-05-06 Thread Richard Heck

Jean-Marc Lasgouttes wrote:

Richard Heck  writes:

  

James C. Sutherland wrote:


I think that we could benefit from a detailed description of how to
create modules, and what all of the knobs mean.  For example, I
struggled with determining how to set a "LabelType" and
"LabelString" in LyX.  I never got quite what I wanted: something
like "Task 1"  "Task 2"  etc.  The closest I could get was "Task" or
"1" but not a string and a counter together.  The compiled output
looks fine, but in LyX it isn't quite what I would like...

  

I'll try to have a look at this. I've been puzzled myself about how
the item counters, etc, work, and frustrated by similar limitations.
I'm not sure there is any way to get exactly what you want in an item-
or list-type environment.



Look at the chapter style:

Style Chapter
MarginStatic
Category  Section
LabelString   "Chapter \thechapter"
LabelStringAppendix   "Appendix \thechapter"
LabelType   Counter
LabelCounterchapter

Easy, isn't it?

  
Sorry, my question was more about list-type environments, and how to 
change to, say, \roman in an enumeration like environment. That's now 
been filed as an enhancement request.


I'm not sure how this applies to the OP's issue.

rh



portable installation

2009-05-06 Thread Sophie (itsme213)
I'm looking at the instructions at 
http://wiki.lyx.org/Windows/PortableInstallation

I have put USBTeX on my memory stick, and copied C:\Program Files\Lyx16 to 
that stick. But the installation instructions say to copy some tl-portable 
files from the TexLive DVD, which I have not used.

If anyone has got this combination working (USBTeX with Lyx16), could you 
please share what you did? I will update the wiki after I get it to work 
myself.

Thanks! 





Fwd: Importing Maple's Latex export files in Lyx

2009-05-06 Thread Murat Yildizoglu
Oups, I have missed the list's address in my previous mail. Sorry
Vincent for the double post.
Murat


-- Forwarded message --
From: Murat Yildizoglu 
Date: 2009/5/6
Subject: Re: Importing Maple's Latex export files in Lyx
To: Vincent van Ravesteijn 


Of course! :-)
Here is a small conversion test, with some text, math and a stupid
figure. Maple saves the figure in eps when you export to latex. Before
compiling by hand, I also put in the preamble the following
instructions for handling accented characters and bigger page:

\RequirePackage[latin1]{inputenc}
\RequirePackage{ae,aeguill}
\usepackage[compat2,a4paper]{geometry}

Regards,

Murat


2009/5/6 Vincent van Ravesteijn :
> Murat Yildizoglu schreef:
>>
>> Hello,
>> I frequently export Latex from Maple but if I import the file in LyX I
>> have just a bunch of ERT boxes. I would like to know if you have met
>> this problem and found a solution (a specific Layout?). I have
>> searched the web but the only possibility I have located is quite a
>> complex script based system mainly created using Unix tools (I am not
>> sure if I have understood correctly everything). Any idea about a more
>> direct solution based on the capaibilities of LyX?
>>
>> Regards,
>>
>> Murat
>>
>
> Can you give a small example file of how a Maple exported latex file looks
> like ?
>
> Vincent
>



--
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__



-- 
*** NEW UNIVERSITY, NEW ADDRESS ! ***

Prof. Murat Yildizoglu
Université Paul Cézanne (Aix-Marseille 3)
GREQAM (UMR CNRS 6579)
Centre de la Vieille Charité
2, rue de la Charité
13236 Marseille cedex 02

Bureau 320
Tel : +33 4 91 14 07 27 (standard)
Tel : +33 4 91 14 07 70 (secrétariat)
Tel : +33 4 91 14 07 47 (bureau)
Fax : +33 4 91 90 02 27

e-mail: murat.yildizo...@univ-cezanne.fr
www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html
http://www.twitter.com/yildizoglu
__


test-maple01.eps
Description: PostScript document


test-maple.tex
Description: TeX document


Re LyX::Client.pm and LyX::Polite.pm

2009-05-06 Thread john
A question for the developers

For many years I have been using LyX as the document processor for
Insurance Policy and Claims management standard letters.  It has been a
brilliant application.

I have a perl script which provides a GUI application where the user can
run SQL queries which I then output as a series of perl assignment
statements (e.g. $surname='Smith'; ).
The user chooses a standard letter which is a LyX file with the
placeholders of the form ${surname}.
perl, having read the assignments, then outputs the LyX file with the
${id} vars magically instantiated to the correct values and lo we have a
document which via the LyXServer mechanism gets passed to a running LyX
application. The user can edit the file and save changes. My program
then saves the file back into the database.
This has worked superbly for 10 years.
When I first started this project, we used a LyX perl package LyX which
included LyX::Client.pm and LyX::Polite.pm
I added my own perl script: LyXTable which produced valid source for a
LyX Table.
Sorry for this long preamble.
I have searched the LyX websites for Client.pm and Polite - not there?
Nor have they ever been on the CPAN.

My question: Do you still maintain the LyX perl packages for current
versions of LyX or have you abandoned them in favour of the new religion
Python.
My application is a more natural fit for perl than for Python.

John O'Gorman



Re: Re LyX::Client.pm and LyX::Polite.pm

2009-05-06 Thread john
Woops

After a little reflection, I downloaded the 1.6.2 source files and voila
There they were under development/lyxserver.
Sorry people.

John O'Gorman

john wrote:
> A question for the developers
>
> For many years I have been using LyX as the document processor for
> Insurance Policy and Claims management standard letters.  It has been a
> brilliant application.
>
> I have a perl script which provides a GUI application where the user can
> run SQL queries which I then output as a series of perl assignment
> statements (e.g. $surname='Smith'; ).
> The user chooses a standard letter which is a LyX file with the
> placeholders of the form ${surname}.
> perl, having read the assignments, then outputs the LyX file with the
> ${id} vars magically instantiated to the correct values and lo we have a
> document which via the LyXServer mechanism gets passed to a running LyX
> application. The user can edit the file and save changes. My program
> then saves the file back into the database.
> This has worked superbly for 10 years.
> When I first started this project, we used a LyX perl package LyX which
> included LyX::Client.pm and LyX::Polite.pm
> I added my own perl script: LyXTable which produced valid source for a
> LyX Table.
> Sorry for this long preamble.
> I have searched the LyX websites for Client.pm and Polite - not there?
> Nor have they ever been on the CPAN.
>
> My question: Do you still maintain the LyX perl packages for current
> versions of LyX or have you abandoned them in favour of the new religion
> Python.
> My application is a more natural fit for perl than for Python.
>
> John O'Gorman
>
>
>
>   



Re: portable installation

2009-05-06 Thread Florian Rubach

Sophie (itsme213) schrieb:

If anyone has got this combination working (USBTeX with Lyx16),
  


I just tried it myself and failed. It seems to be an issue with USBTex, 
because even the suggested way to create and compile a simple tex-file 
fails. If I were you, I would try to find out the email-adress of Sam 
Lewis, who wrote the USBTex-part of the wiki-entry.


Good luck,

Florian