Bullet selection not respected in french

2009-10-14 Thread Hellmut Weber

Hi,
I'm working on a document in french where I have to use several levels 
of nested bullet lists.


For every level a different bullet is shown in the settings dialog.

Compiling the french version with pdflatex gives the same '-' at all levels.
Changing the Language of the document to german produces the correct result.

A minimal example is associated.


What can I do?


TIA Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language french
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\end_header

\begin_body

\begin_layout Standard
Ceci est un test.
\end_layout

\begin_layout Itemize
sadf
\end_layout

\begin_deeper
\begin_layout Itemize
wqer
\end_layout

\begin_deeper
\begin_layout Itemize
ycxv
\end_layout

\begin_deeper
\begin_layout Itemize
oiu
\end_layout

\end_deeper
\begin_layout Itemize
lkjh
\end_layout

\end_deeper
\begin_layout Itemize
oiuoiu
\end_layout

\end_deeper
\begin_layout Itemize
zuur
\end_layout

\end_body
\end_document


problem with two languages in a thesis

2009-10-14 Thread Evan Mason
Hi, I have 8 child documents of an English thesis.  Child/chapter 7 is in
Spanish.  The 8th child is the appendix.  The problem is that in the
appendix lyx continues to use Spanish (Cuadro rather than Table and so on).

I started out setting the language in child 7 to Spanish with Documents >
Settings.  I have now changed it English, highlighted the entire chapter and
set Spanish using Edit > Text style.  I then highlighted the entire appendix
and set it to English in the same way.

But this has not worked.  Can anyone tell where I am going wrong?

Thanks, Evan


Re: Documenting python code using LyX

2009-10-14 Thread Nikos Alexandris
On Wed, 2009-10-14 at 15:01 -0700, Rich Shepard wrote:
> On Wed, 14 Oct 2009, Nikos Alexandris wrote:
> 
> > Yes, I already do that. I have more comments than code :-p. And I tried
> > pydoc. It works... but I am not sure this is what I need :-?
> 
> Nikos,
> 
>I don't know what you seek that cannot be accommodated by using the
> built-in comment syntax. Perhaps you should consider using them both and see
> if they help you clarify your needs.
> 
> Rich

I don't know (yet) either :-). Maybe something like... open a new LyX
document, start writing the story of my life, insert a python script in
it and have syntax highlighting (and anything else that python code
needs to be ready for copy-paste-execute) without much work.

Something like that... ?

Anyway, thanks for the replies. I think it's more clear now what the
options are.

Nikos




Re: Documenting python code using LyX

2009-10-14 Thread Nikos Alexandris
On Wed, 2009-10-14 at 21:34 +, Guenter Milde wrote:
> On 2009-10-14, Nikos Alexandris wrote:
> > On Wed, 2009-10-14 at 12:45 -0700, Rich Shepard wrote:
> >> On Wed, 14 Oct 2009, Nikos Alexandris wrote:
> 
> >> > Does anybody use LyX to document python code? Any hints? I've read about
> >> > noweb but it looks a bit more complicated than it should be... (?).
> 
> > thanks for the reply. I have in mind (most of the times) a documentation
> > to describe/ explain step by step what is done. I am a very beginner
> > with Python, not a good programmer at all and I like to spend a lot of
> > time to write down what each piece of code does.
> 
> This sounds like "literate programming":
> 
> The idea is that you do not document programs (after the fact), but
> write documents that contain the programs.
> 
> and if you are looking for a simple solution, I recommend PyLit
> (http://pylit.berlios.de).
> 
> Günter
> 

Thanks, I'll look at it.
Nice work Guenter :-)





Re: Documenting python code using LyX

2009-10-14 Thread Rich Shepard

On Wed, 14 Oct 2009, Nikos Alexandris wrote:


Yes, I already do that. I have more comments than code :-p. And I tried
pydoc. It works... but I am not sure this is what I need :-?


Nikos,

  I don't know what you seek that cannot be accommodated by using the
built-in comment syntax. Perhaps you should consider using them both and see
if they help you clarify your needs.

Rich

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


Re: Documenting python code using LyX

2009-10-14 Thread Nikos Alexandris
On Wed, 2009-10-14 at 14:25 -0700, Rich Shepard wrote:
> On Wed, 14 Oct 2009, Nikos Alexandris wrote:
> 
> > thanks for the reply. I have in mind (most of the times) a documentation
> > to describe/ explain step by step what is done. I am a very beginner with
> > Python, not a good programmer at all and I like to spend a lot of time to
> > write down what each piece of code does.
> 
> Nikos,
> 
>Let me explain more than I did in the last message. You cannot use LaTeX
> to document code directly within the source, regardless of language. Each
> language has conventions for embedded comments.
> 
>Python is supposed to be quite self-documenting, but I always use
> extensive comments to describe that is being done in each function, and why
> I'm doing it that way. It's as much for me as for anyone else. I would not
> be surprised to find that 30% of my code is comments.
> 
>Make extensive use of the single- and multi-line comments as I wrote in
> the previous message and you'll understand your code months or years from
> now.
> 
> Rich
> 

Right. Thanks for confirming my habit to spend time on comments. I'll
try out pylit. If it works sort of out-of-the-box, maybe it's it.



Re: Documenting python code using LyX

2009-10-14 Thread Nikos Alexandris
On Wed, 2009-10-14 at 14:21 -0700, Rich Shepard wrote:
> On Wed, 14 Oct 2009, Nikos Alexandris wrote:
> 
> > I don't know if doxygen or pydoc is what I am looking for. Or is it
> > exactly what I need?
> 
> Nikos,
> 
>Pydocs, in specific circumstances.
> 
>To provide multiline comments use the triple quotation mark method; for
> example, """This class takes the foo as input and returns the bar.
>  except when the situation calls for a different result."""
> 
>For single line comments use the # sign; e.g.,
>   # Status Bar
>   self.statusbar = self.CreateStatusBar(1, 0)
>   self.statusbar.SetStatusWidths([-1])
> 
> Rich

Yes, I already do that. I have more comments than code :-p. And I tried
pydoc. It works... but I am not sure this is what I need :-?




Re: Documenting python code using LyX

2009-10-14 Thread Guenter Milde
On 2009-10-14, Nikos Alexandris wrote:
> On Wed, 2009-10-14 at 12:45 -0700, Rich Shepard wrote:
>> On Wed, 14 Oct 2009, Nikos Alexandris wrote:

>> > Does anybody use LyX to document python code? Any hints? I've read about
>> > noweb but it looks a bit more complicated than it should be... (?).

> thanks for the reply. I have in mind (most of the times) a documentation
> to describe/ explain step by step what is done. I am a very beginner
> with Python, not a good programmer at all and I like to spend a lot of
> time to write down what each piece of code does.

This sounds like "literate programming":

The idea is that you do not document programs (after the fact), but
write documents that contain the programs.

and if you are looking for a simple solution, I recommend PyLit
(http://pylit.berlios.de).

Günter



Re: Documenting python code using LyX

2009-10-14 Thread Rich Shepard

On Wed, 14 Oct 2009, Nikos Alexandris wrote:


thanks for the reply. I have in mind (most of the times) a documentation
to describe/ explain step by step what is done. I am a very beginner with
Python, not a good programmer at all and I like to spend a lot of time to
write down what each piece of code does.


Nikos,

  Let me explain more than I did in the last message. You cannot use LaTeX
to document code directly within the source, regardless of language. Each
language has conventions for embedded comments.

  Python is supposed to be quite self-documenting, but I always use
extensive comments to describe that is being done in each function, and why
I'm doing it that way. It's as much for me as for anyone else. I would not
be surprised to find that 30% of my code is comments.

  Make extensive use of the single- and multi-line comments as I wrote in
the previous message and you'll understand your code months or years from
now.

Rich

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


Re: Documenting python code using LyX

2009-10-14 Thread Rich Shepard

On Wed, 14 Oct 2009, Nikos Alexandris wrote:


I don't know if doxygen or pydoc is what I am looking for. Or is it
exactly what I need?


Nikos,

  Pydocs, in specific circumstances.

  To provide multiline comments use the triple quotation mark method; for
example, """This class takes the foo as input and returns the bar.
except when the situation calls for a different result."""

  For single line comments use the # sign; e.g.,
# Status Bar
self.statusbar = self.CreateStatusBar(1, 0)
self.statusbar.SetStatusWidths([-1])

Rich

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


Re: Documenting python code using LyX

2009-10-14 Thread Nikos Alexandris
On Wed, 2009-10-14 at 12:45 -0700, Rich Shepard wrote:
> On Wed, 14 Oct 2009, Nikos Alexandris wrote:
> 
> > Does anybody use LyX to document python code? Any hints? I've read about
> > noweb but it looks a bit more complicated than it should be... (?).
> 
>Why not use pydocs? That's what it's for.
> 
> Rich

Manveru, Rich,

thanks for the reply. I have in mind (most of the times) a documentation
to describe/ explain step by step what is done. I am a very beginner
with Python, not a good programmer at all and I like to spend a lot of
time to write down what each piece of code does.

I don't know if doxygen or pydoc is what I am looking for. Or is it
exactly what I need?

Thanks again, Nikos



Re: References in program listings

2009-10-14 Thread Sam Liddicott

Luca Carlon wrote:

Sam Liddicott  writes:
  

Do you want to reference other parts of the document or other listings?

If you use newfangle:
http://repo.or.cz/w/newfangle.git

then you can create references between code blocks, or references within 
the document to a code block from the document, using the \chunkref{} 
command.


However you may want to consider using the lstset escapeinside option.

Newfangle uses:
   \lstset{escapeinside={=<}{>}}
You could put this in the document preamble directly:

You can then insert LaTeX like this:

=<\ref{myref}>

in the listing - sort of like an ERT for listings.

I used =< and > for the latex delimiters because =< is not valid in any 
language I know.


Sam



mmh... no, I don't think this is what I'm trying to do. I would like to insert
inside a listing a reference to other parts of the document, a Chapter for
instance, or an equation. For examples, in a C listing I could have:

// According to Equation() I can compute...

So that I have a reference to an equation inside the listing.
Is this possible?
Thanks!
  

Yes, I just told you how:
Put this in your document pre-amble

\lstset{escapeinside={=<}{>}}

Then in your listing put:

=<\ref{myref}>

where myref is your reference.

The =<...> behaves like ERT but for listings.

Sam


Luca

  




Re: Documenting python code using LyX

2009-10-14 Thread Manveru
2009/10/14 Nikos Alexandris :
> H LyXians!
>
> Does anybody use LyX to document python code? Any hints? I've read about
> noweb but it looks a bit more complicated than it should be... (?).
>
> Thanks in advance, Nikos

I am using Doxygen with doxypy extension with success. It is not ideal
at many places, but acceptable.


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


Re: Documenting python code using LyX

2009-10-14 Thread Rich Shepard

On Wed, 14 Oct 2009, Nikos Alexandris wrote:


Does anybody use LyX to document python code? Any hints? I've read about
noweb but it looks a bit more complicated than it should be... (?).


  Why not use pydocs? That's what it's for.

Rich


Documenting python code using LyX

2009-10-14 Thread Nikos Alexandris
H LyXians!

Does anybody use LyX to document python code? Any hints? I've read about
noweb but it looks a bit more complicated than it should be... (?).

Thanks in advance, Nikos



Customizing toolbar

2009-10-14 Thread Lizardo H . C . M . Nunes
Hi,

1. I'm creating a toolbar. How can I assign an icon for a command-sequence item
in a toolbar? 

2. How can I create a PopMenu in a toolbar? Is it possible to set an icon for a
PopMenu? How can I assign an icon for a PopMenu? 

Using LyX 1.6.4.1 in Mac OS 10.5

Thank you.



Customizing toolbar

2009-10-14 Thread Lizardo H. C. M. Nunes

Hi,

I'm trying to customize LyX, but I'm having a hard time with it.


1. First of all, I'm creating a toolbar with the following item:

Item "Insert figure" "command-sequence float-insert figure; up; dialog- 
show-new-inset graphics; "


Is it possible to set an icon for this item? How can I assign an icon  
for a command-sequence item in a toolbar?




2. By default,  I wish the Graphics dialog displaying:

Set width: 90% of the text width
 "Clip to bounding box"

How can I do that? How to find out the syntax of the parameters in a  
given command?




3. By default, I wish the float to be set as:

 Top of page
 Here if possible

How can I set that by default?



4. How can I create a PopMenu in a toolbar?

The toolbar should have three items as follows:

Item "Insert inline formula" "math-mode on"
Item "Insert numbered equation" "command-sequence math-display; math- 
number-toggle;"
Item "Insert multline equation" "command-sequence math-mode on; math- 
mutate eqnarray;"


Is it possible to set an icon for this PopMenu? How can I assign an  
icon for a PopMenu?




Using LyX 1.6.4.1 in Mac OS 10.5

Thank you.




Lizardo H. C. M. Nunes
Professor Adjunto
DCNAT-Departamento de Ciências Naturais
UFSJ-Universidade Federal de São João del Rei
Phone/fax: +55 32 3379-2483
E-mail: lizardonu...@ufsj.edu.br
Website: www.lizardonunes.PRO.br



Re: References in program listings

2009-10-14 Thread Luca Carlon
Sam Liddicott  writes:
> Do you want to reference other parts of the document or other listings?
> 
> If you use newfangle:
> http://repo.or.cz/w/newfangle.git
> 
> then you can create references between code blocks, or references within 
> the document to a code block from the document, using the \chunkref{} 
> command.
> 
> However you may want to consider using the lstset escapeinside option.
> 
> Newfangle uses:
>\lstset{escapeinside={=<}{>}}
> You could put this in the document preamble directly:
> 
> You can then insert LaTeX like this:
> 
> =<\ref{myref}>
> 
> in the listing - sort of like an ERT for listings.
> 
> I used =< and > for the latex delimiters because =< is not valid in any 
> language I know.
> 
> Sam

mmh... no, I don't think this is what I'm trying to do. I would like to insert
inside a listing a reference to other parts of the document, a Chapter for
instance, or an equation. For examples, in a C listing I could have:

// According to Equation() I can compute...

So that I have a reference to an equation inside the listing.
Is this possible?
Thanks!

Luca



Re: References in program listings

2009-10-14 Thread Sam Liddicott

* Luca Carlon wrote, On 14/10/09 11:47:

Hi! Is it possible to insert references in program listings? I tried to do that
but the button apply is disabled. I tried even to copy and paste a reference but
the reference doesn't appear in the PDF. Is there any reason why this is not
possible?


Do you want to reference other parts of the document or other listings?

If you use newfangle:
http://repo.or.cz/w/newfangle.git

then you can create references between code blocks, or references within 
the document to a code block from the document, using the \chunkref{} 
command.


However you may want to consider using the lstset escapeinside option.

Newfangle uses:
  \lstset{escapeinside={=<}{>}}
You could put this in the document preamble directly:

You can then insert LaTeX like this:

=<\ref{myref}>

in the listing - sort of like an ERT for listings.

I used =< and > for the latex delimiters because =< is not valid in any 
language I know.


Sam


Re: Converting paragraph breaks to newlines in a .layout file

2009-10-14 Thread Joachim Osnabryg
Am 05.10.2009, 22:03 Uhr, schrieb Jack M. Lyon  
:

Jack M. Lyon wrote:
--I need a command that will convert paragraph breaks to newlines in the  
LaTeX text inside the paragraph environment verse1. So the text in LyX  
will look like this (styled as Poem):

My name is Ozymandias, king of kings.
Look on my works, ye Mighty, and despair!


I know that problem, but fear I don't have the solution you want. I have  
for this case the following make-shift/workaround:


Within the same strophe/stanza of a poem, after each line, I type  
Command+Return instead of only Return and get my wanted result.


In case of copying and pasting the poem text from another source, this is  
bothering a little because, after each line, you have to substitute the  
paragraph break by the newline break. I put the curser on the end of the  
line, type Command+Return and immediate erase the paragraph break.


Sorry, if this is an old hat for you, just in case.

And in more elegant and less time-consuming ways I am interested, too.

joachim
--
MacTeXLive 2008 - TeXShop 2.18-svn - LyX 1.6.4.1
MacBook Pro OSX 10.4.11 Tiger (intel)



References in program listings

2009-10-14 Thread Luca Carlon
Hi! Is it possible to insert references in program listings? I tried to do that
but the button apply is disabled. I tried even to copy and paste a reference but
the reference doesn't appear in the PDF. Is there any reason why this is not
possible?
Thanks!

Luca



Re: Urgent: Latex error with version 1.6.4.1

2009-10-14 Thread Helge Hafting

Nicola Molinari wrote:
In order to explain better, I have a main file with links to the other chapters. 
If I compile the singles chapters the DVI files work. 
The problem is when I try to compile the main file. 
Maybe it's more clear now.


**Input:Bibliografia.lyx
**
** \pagestyle{plain}
**
** \cleardoublepage
**
**Input:Ringraziamenti.lyx
**

This is the last code of the main file. Can help this? 
The error message is referred to the last row. 


Put the cursor next to the "Input" box.
Check that the paragraph type is "Standard".

This sort of error often happens when a document is
included in the middle of an enumeration or other
special paragraph type.

Ideally, LyX could avoid this by closing the
current paragraph before outputting the "Input"
command, but currently it doesn't.

Helge Hafting


Re: Double language layout

2009-10-14 Thread Helge Hafting

vinc...@alice.it wrote:

Hi everybody,
I'm writing my thesis and I was wondering whether it is possible to use Lyx for 
a double language document. What I'd like to do is having a double column 
layout with the text written in one language on the left and another one on the 
right side. The text should be aligned: chapters, sections, etc. should start 
at the same point in the page, and the only things to be shared between the two 
languages would be tables, figures and equations.
Does anyone of you know how to do this?
Thank you very much,
Vince



Make sure you have the parallel.sty package installed. It is part of a 
complete texlive install.


In the preamble:
\usepackage{parallel}

In your document:

ERT \begin{Parallel}{5cm}{5cm}\ParallelLText{

Section heading in first language

paragraphs of text in first language

ERT }\ParallelRText{

Section heading in second language

paragraphs of text in second language

ERT }\end{Parallel}

Shared figures/tables outside the Parallel stuff

ERT \begin{Parallel} ...  (your next section)



Obviously, use something that fits your page size
instead of "5cm". If one language generally needs more
room to say the same, then it can have a wider
column.

I only gave this a quick test, but at least it worked
with page breaking. (multicol.sty with manual column breaks
doesn't do this well at all.)

Helge Hafting


Re: UML in Lyx.

2009-10-14 Thread Lorenz Schori
Hi Nikunj

Am Wed, 14 Oct 2009 14:06:01 +0530
schrieb "nikunj ." :

> I have lyx 1.6.4 installed and want to draw few UML diagrams, like
> class diagram, activity diagram and sequence diagrams in Lyx.

I use MetaUML together with a custom converter. See my recent post for
more information:
http://comments.gmane.org/gmane.editors.lyx.general/59735

MetaUML however does not have support for sequence diagrams yet.
According to the homepage it is in the works though.
http://metauml.sourceforge.net/old/index.html

Cheers
Lorenz




Re: UML in Lyx.

2009-10-14 Thread Sam Liddicott

* nikunj . wrote, On 14/10/09 09:36:
> Hi,
>
> I have lyx 1.6.4 installed and want to draw few UML diagrams, like
> class diagram, activity diagram and sequence diagrams in Lyx.
>
> What should I do ?
> Any cue would be helpful.
>
> Thanks,
> Nikunj.

If you search in http://www.ctan.org/ you can find some latex extensions 
to do such things, so you could produce separate .latex files which you 
can then insert into your Lyx document.


Or you can use dia to produce the diagram - Lyx can allow you to insert 
a dia diagram, and will convert it for you.


Or (and someone else will have to explain how, or point to the right Lyx 
help page) use another favourite drawing tool and define a convertor for 
lyx; or you can have it export an eps which Lyx can import.


Sam


UML in Lyx.

2009-10-14 Thread nikunj .
Hi,

I have lyx 1.6.4 installed and want to draw few UML diagrams, like
class diagram, activity diagram and sequence diagrams in Lyx.

What should I do ?
Any cue would be helpful.

Thanks,
Nikunj.