Preview: pdf works, eps doesn't

2009-08-10 Thread Rainer Hoffmann
Hi all,

 

I have an eps file where the preview fails.

 

However, when I convert it to pdf using epstopdf the preview is correct.

 

I noticed that the script for eps uses first epstopdf and then 
lyxpreview2bitmap.py while the script for pdf uses convertDefault.py

 

Is there any way to fix this?

 

Best regards, 

Rainer Hoffmann  |  Senior Researcher, Dr.ing., 

Modelling, Control, Flow Assurance 



 

StatoilHydro ASA 

Research Centre, NO-3936 Porsgrunn 

Telephone: 

+47 9987 4995 

E-mail: 

ra...@statoilhydro.com mailto:ra...@statoilhydro.com  

Visitor address: 

Forskningsparken Herøya Porsgrunn 

www.statoilhydro.com http://www.statoilhydro.com/  

 

 



---
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.


Re: How to have 3 types of quotation marks

2009-08-10 Thread Guenter Milde
On 2009-08-08, Piero wrote:
 Any idea?

With a German keyboard and the standard English or German quotation-mark
setting, you have:

(Shift-2)  double quotation marks
  '  (Shift-#)  single quotation marks
  «  (Alt-Gr x) opening guillemot
  »  (Alt-Gr y) closing guillemot
  
Günter



Re: Step bullet item lists in Beamer

2009-08-10 Thread Guenter Milde
On 2009-08-09, rgheck wrote:
 On 08/08/2009 04:47 PM, Paul A. Rubin wrote:
 Another thing that is included in the lyxframe stuff is automatic 
 closing of the previous frame.  Without that, you would have to insert 
 an EndFrame environment after each frame.  With it, you only have to 
 insert an EndFrame at the end of the document.

 I find this kind of puzzling: Other environments don't have this issue.

All environments have this issue, if you want a new paragraph to start a new
environment of the same type (e.g. two theorems, tow slides (in seminar or
prosper). I filed several bug reports about this years ago but the matter
did not seem urgent enough.

However, LyX evolved the custom inset and now this might be a better way to
handle this cases: 

Instead of a Frame environment (where you nest the content), you could
define a Frame inset.

I've done this (experimentally) for seminar.layout and it seems to work nice.

The only problem that I cannot obsolete a Layout with an InsetLayout, so for
backwards compatibility I have to keep them both


Günter


Style LandscapeSlide
CopyStyle   --Separator-- 
LatexType   Environment
LatexName   slide
NextNoIndent1
Margin  Static
LeftMargin  N
ParIndent   
TopSep  0.4
LabelType   Top_Environment
LabelString Landscape Slide:
End
Style Slide
Obsoletedby LandscapeSlide
End

InsetLayout LandscapeSlide
   LyXType  custom
   LatexTypeEnvironment
   LatexNameslide
   Decoration classic
   LabelFont
 Size   Small
   EndFont
   MultiPar true
   LabelString  Landscape Slide
   #   Requires endnotes
End




Re: Step bullet item lists in Beamer

2009-08-10 Thread Guenter Milde
On 2009-08-09, Paul A. Rubin wrote:
 Self-reply ... never a good sign ...

 Paul A. Rubin wrote:

 I'm not sure, but I suspect that the somewhat convoluted macros in the 
 current layout file trace back to something that could not be done in a 
 straightforward way in some early versions of LyX.  If we could figure 
 out what those were, perhaps we could determine whether more linear 
 solutions would work with the current generation.

The solution is InsetLayout (see my other post.)

 It occurs to me that refactoring beamer.layout would cause 
 backward-compatibility issues.  I suppose, assuming the Good Layout 
 Fairy dropped off a better beamer.layout, we could offer 
 oldbeamer.layout and force everyone to convert their old files (of which 
 I possess zillions).

We would need a conversion script :-(

Günter



Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread Pavel Sanda
Piero wrote:
 Julio Rojas jcredbe...@... writes:
 
  Very nice package by the way. Specially since somebody took the job of
  translating it to spanish. Is LyX 1.7 going to support biblatex out of
  the box?

http://www.lyx.org/trac/ticket/4065


bibLatex with Lyx

2009-08-10 Thread E. Kaplan
I followed the Wiki instructions to install biblatex with Lyx 1.6.3 and 
reconfigured, but when I try to compile a document I get:

LaTeX Error: File `biblatex.sty' not found.
I had copied the biblatex.sty file into a Miktex/tex/latex/biblatex 
folder  and rehashed the latex package database, but I am still getting 
the same error.
In addition, I do not find the biblatex module in  the 
Document/settings/module list.

What am I doing wrong?
Thanks
EK




Re: How to have 3 types of quotation marks

2009-08-10 Thread Stefano Franchi
On Monday 10 August 2009 05:58:26 am Piero wrote:
 Guenter Milde mi...@... writes:
  With a German keyboard and the standard English or German
  quotation-mark setting, you have:
 
  (Shift-2)  double quotation marks
'  (Shift-#)  single quotation marks
«  (Alt-Gr x) opening guillemot
»  (Alt-Gr y) closing guillemot

 Thanks, but ...nope.
 I have Italian keyboard/settings, and I'm not going to change them just for
 guillemot, of course.
 I can't believe that such a simple need can't find a solution!
 Please somebody help me!


Piero,

have you tried creating a couple of shortcuts to the unicode-insert command? 
It works for me.
The left pointing guillemet is 00AB and the right pointing one is 00BB (those 
are unicode codes).
Go to ToolsPreferencesShortcuts
Click on New
- in the function field type: unicode-insert 00AB (resp., 00BB) (those are 
leading zeros, BTW, not uppercase oh)
- Then click on the raised Shortcut button, and press the key combination 
you'd like to associate to the guillemets. I use Alt-Shift- and Alt-Shift-.

Click Ok and you're done.

However, I am on Linux with personalized keyboard settings. On Windows XP you 
may have a way to enter them directly without using a LyX shortcut. Wikipedia 
says: 
Windows users can create the guillemet by typing « by holding Alt + 0171 
and » by holding Alt + 0187.
Not sure it works on the Italian Keyboard, though.

Ciao,

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


Re: How to have 3 types of quotation marks

2009-08-10 Thread Ethan Metsger
On Mon, 10 Aug 2009 09:44:21 -0400, Stefano Franchi  
fran...@philosophy.tamu.edu wrote:



However, I am on Linux with personalized keyboard settings.


On my Linux machine, I set the compose key to the left windows key  
(super_l); super_l +  +  == »; super_l +  +  == «.


So at least for me, there's no extra work to be done to compose extended  
characters.  Not all of them work that way, but it's fairly easy on Linux  
to install different keyboard maps, too.  I occasionally write with  
polytonic Greek, and having the keyboard map for it with XeTeX makes life  
a lot easier.  (I bind different keymaps to r_shift + l_shift.)


The last key to the puzzle for me has been to use the SCIM input methods  
for the rare cases I do any work with CJK fonts.


My solution really only works because I've got XeTeX playing nicely on my  
system (Ubuntu 9.04).  Without knowing the OP's operating system, I'm not  
sure how much help my response gives, but by and large it solves most of  
my problems with extended characters.


-Ethan


Re: A3 in a book

2009-08-10 Thread Piero

 Don't know, but try searching on ctan.org for a package that will do 
 this. I'm sure there must be one.

and then post the solution, if you found one. I could also be interested.





Re: How to have 3 types of quotation marks

2009-08-10 Thread Piero
Stefano Franchi fran...@... writes:

 The left pointing guillemet is 00AB and the right pointing one is 00BB (those 
 are unicode codes).
 Go to ToolsPreferencesShortcuts
 Click on New
 - in the function field type: unicode-insert 00AB (resp., 00BB) (those are 
 leading zeros, BTW, not uppercase oh)
 - Then click on the raised Shortcut button, and press the key combination 
 you'd like to associate to the guillemets. I use Alt-Shift-≤ and Alt-Shift-≥.

IT WOOORSSS! 
Grazie Stefano

 Windows users can create the guillemet by typing « by holding Alt + 0171 
 and » by holding Alt + 0187.
 Not sure it works on the Italian Keyboard, though.

Nope. Nevermind, I don't write papers without LyX.

Grazie ancora e ciao

Piero



Re: How to have 3 types of quotation marks

2009-08-10 Thread Stefano Franchi
On Monday 10 August 2009 10:03:01 am Piero wrote:
 Stefano Franchi fran...@... writes:
  The left pointing guillemet is 00AB and the right pointing one is 00BB
  (those are unicode codes).
  Go to ToolsPreferencesShortcuts
  Click on New
  - in the function field type: unicode-insert 00AB (resp., 00BB) (those
  are leading zeros, BTW, not uppercase oh)
  - Then click on the raised Shortcut button, and press the key combination
  you'd like to associate to the guillemets. I use Alt-Shift-≤ and
  Alt-Shift-≥.

 IT WOOORSSS!
 Grazie Stefano

  Windows users can create the guillemet by typing « by holding Alt +
  0171 and » by holding Alt + 0187.
  Not sure it works on the Italian Keyboard, though.

 Nope. Nevermind, I don't write papers without LyX.

 Grazie ancora e ciao

 Piero

Glad it did. 
By the way, be sure it works on the pdf output, not just in LyX. Some fonts 
may not have the approriate glyphs for the guillemets, in which case all you 
get on paper are black boxes. For instance, the AE font (almost European) does 
not seem to work on my system, while my favorite font, MinionPro, gives me no 
troubles.

Ciao,

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


newfangle - the new notangle and no more noweave Re: latex macro help...

2009-08-10 Thread Sam Liddicott
I've managed to avoid blowing up my brain and created a noweb aspect for
the latex listings package, with accompanying lyx module.

As a result I don't need to use noweave, but I get noweave looking
output with the listings generated by the listings package with all it's
pretty printing.

The lyx module (called newfangle) treats each \lstlisting as a noweb
style chunk, and uses the listing name as the chunk name.

It uses the noweb package macros merely to generate the chunk header and
navigation arrows to the previous and next chunk.

This avoids the need to use noweave for most uses, and removes for me
the need to use the literate lyx file format.

I'm still lacking is noweb markup of includes. I need to get
lstlistings to spot these...

Because Lyx doesn't show the listing name visually while editing it can
be very confusing to remember which listing has which name, so I've
added a Chunk style which sets the listing name. This will be persistent
until the next Chunk or the next explicitly named listing.

I prefix most of my listings with a highly visible chunk header.

The Chunk style pretty much just prefixes name= to it's text, and then
calls \lstset, but it does some magic to preserve the chunk name into
the listing.

I also have a newfangle awk script which works like notangle, but nicely
recognizes the latex that listings uses to pick out the code. The awk
script has less bugs that notangle, can manage -L output without
breaking the indents, and manage to suck C code into multi-line macros
without breaking.

I can now do literate programming with much more simplicity than before.

I hope that Lyx will be able to accept this work, and make literate
programming work more naturally.

I've been are we nearly there yet for the last 6 weeks, and I think my
answer is yes (the 3rd time around).

I'll post the code tomorrow, I need to run, but I didn't want anyone
working on my latex macro question now I solved it.

Sam


Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread Piero

 
 http://www.lyx.org/trac/ticket/4065
 

Does this mean that direct BibLaTeX support isn't a priority?
   






Re: A3 in a book

2009-08-10 Thread rgheck

On 08/10/2009 10:49 AM, Piero wrote:

Don't know, but try searching on ctan.org for a package that will do
this. I'm sure there must be one.
 


and then post the solution, if you found one. I could also be interested.

   
I think the vmargin package could probably be used to do this. Perhaps 
also typearea, which comes with the koma-script bundle. But I'm not sure.


rh




Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread rgheck

On 08/10/2009 12:11 PM, Piero wrote:

http://www.lyx.org/trac/ticket/4065

 


Does this mean that direct BibLaTeX support isn't a priority?

   
It's something that at least two of us have on our radar, but (a) until 
the package stabilizes, we won't directly support it and (b) there is a 
serious need for cleanup of how bibliography formats are handled before 
we can really do this properly. So there's work to be done and, as usual 
with open source projects, not nearly enough people to do it


rh



Re: Creating Feynman diagrams using Feynmf and LyX

2009-08-10 Thread bsmile

Have you found a way out so far? If so, can you share with me?

I did a little research, and find that the reason is possibly caused by lyx
only run latex multiple times, as is set in default in the converter from
latex to dvi. This is incomplete to run feynmf since it requires latex and
then mf and then latex again. The way(not so nice) I found is to change the
converter to feynmf, then when you write the document and want to produce
pdf view, click on compile to dvi first(the button calls feynmf to generate
the necessary .tfm and .tn file), and then click produce pdf(this button
uses the readily generated .tfm and .tn files to help generate the right pdf
file). Most of the time, it will give the right pdf. 

BTW, I use lyx 1.6.***



Real87 wrote:
 
 Hi
 
 I'm trying to produce Feynman diagrams using LyX. I've already tried to
 use the  http://wiki.lyx.org/Tips/FeynmanDiagrams feyn  package but it is
 too restrictive. Therefore I'm trying to use a much more powerful package
 called  http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/
 feynmf . However, there are some compatibility issues with LyX:
 
 - When using the package feynmf (metafont based) there are some problems
 when the latex code is converted into .dvi, .pdf or .ps: one needs to
 compile twice, since in the first time a error message appears.
 Additionally, when the source code is modified the font files are not
 updated.
 
 - When using the package feynmp (metapost based) there is no output at all
 (the document is blank).
 
 Here is a LyX test file:  http://n2.nabble.com/file/n476037/test.lyx
 test.lyx .
 
 BTW, I'm using LyX 1.5.4 with an updated MiKTeX 2.6.
 Contact me for additional clarification.
 
 Thank you for your attention.
 
 EDIT: the problem with metafont could probably be corrected using the
 following script:
 latex test.tex
 mf phi4.mf
 latex test.tex
 pdflatex test.tex
 Is it possible to modify lyx's processing routine inserting this sequence?
 

-- 
View this message in context: 
http://n2.nabble.com/Creating-Feynman-diagrams-using-Feynmf-and-LyX-tp476037p3418411.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Pilcrows / Paragraph marks / Nonprinting characters

2009-08-10 Thread Ben M.
Vincent--should I wait for a patch from you before I go
through the trouble of recompiling?

 Why is that a trouble ?

Just because I've been messing with Qt 4.5.2 while I upgrade from
4.5.1.  My libraries happen to be broken at the moment.  Recompiling
won't be any trouble once I fix all that.

 I'll need to find some spare time to finish the patch -- i.e. to make it
 perfect. So, if you can live with an almost perfect solution, go ahead.

Okay, no hurry there.  If Richard's patch is consistent with your
screenshots, it does indeed look almost perfect.  =)

-Ben


How does LyX render symbols?

2009-08-10 Thread Manoj Rajagopalan
Hi all,

   In math mode, when I select the menu item for the greek alpha character, or 
when I type \alpha within the inline equation box and then press TAB, how 
does lyx render this to the character?

   I've traced the code till LyXFunc()::dispatch() which is called on the 
lyxfunc_ member of the LyX singleton instance. The code logic seems to be 
that the dispatch() function is called on an hierarchy of various structures 
like work-area, buffer, cursor etc. and if the FuncRequest has been serviced, 
the function returns.

IIUC, GuiWorkArea::keyPressEvent is triggered each time a key is pressed 
and the LyX abstraction (server?) is informed of the specific command that 
this key-press forms depending on LyX state. To render this onto the GUI, the 
LyX abstraction must call GUI functions with some font info for rendering 
characters like greek letters, AMS symbols etc. but I keep getting lost 
before getting here. Could someone point me to the relevant code path?

Thanks,
Manoj


RE: How does LyX render symbols?

2009-08-10 Thread Vincent van Ravesteijn - TNW

In math mode, when I select the menu item for the
greek alpha character, or when I type \alpha within
the inline equation box and then press TAB, how does
lyx render this to the character?

You should be somewhat clearer what you mean with 'render'.

The general story is that each keypress will fire a LFUN_SELF_INSERT.
This will be handled by InsetMathNest::dispatch() and dispatch will call
InsetMathNest::interpretChar(). When you have typed '\alpha' and you
press space, interpretChar() will call cur.macroModeClose() which will
'finish' the macro. Cursor::macroModeClose() then creates a new Inset
with the line:

MathAtom atom = createInsetMath(name);

and this is inserted into the formula by 

plainInsert(atom);

Is this what you wanted to know ? Are you implementing something useful
?

P.S. This sounds like it is more appropriate at the developers' list.

Vincent


cursor positioning at opening a document

2009-08-10 Thread Piero
Hello, little little question:
 why does a main doc of mine always open with the cursor in the same exact word 
of a middle Chapter?
Can I have it opened in the last change location or in a given bookmark?
Thanks 

Piero



Re: cursor positioning at opening a document

2009-08-10 Thread rgheck

On 08/10/2009 02:26 PM, Piero wrote:

Hello, little little question:
  why does a main doc of mine always open with the cursor in the same exact word
of a middle Chapter?
Can I have it opened in the last change location or in a given bookmark?

   
It should open in the last place the cursor was when you closed the 
document. Sounds as if something is weird with your sessions file. You 
might try deleting it.


rh



Re: Use different author colors in change tracking.

2009-08-10 Thread Rudi Gaelzer
On Saturday 08 August 2009 21:58:54 Vincent van Ravesteijn wrote:
 I'm not sure I fully understand what you're asking. The idea is that
 each person that has made modifications get its own color. So, if you
 have created a document with change tracking on and you give this
 document to someone else, then your changes will be colored by the color
 assigned to the 2nd author. The changes of this other person are colored
 by the 1st author color. If he gives this document to a third person,
 then the changes will be colored according to the colors for the 2nd and
 3rd author, and this third person's changes will be colored as the 1st
 author.. and so forth..

 Vincent

Thanks for the reply.
Indeed I verified this behavior by changing the Name at Tools - Preferences 
... - 
Identity.  When I did that, any previous modification was depicted with the 
color 
assigned to the 2nd. author (pink), while new modifications had the color of 
the 1st 
author (blue).
When I switched back the Identity to my name, the modifications had their 
colors 
altered accordingly: pink - blue and blue - pink.  I think that now I 
understand 
how it works.

However, is that now confusing?  Wouldn't it be better if each new registered 
author 
has always the same color assigned?  For instance, if I write the first version 
of 
the document, then the header of the LyX file has the following snippet:

\tracking_changes true
\output_changes true
\author Rudi Gaelzer r...@ufpel.edu.br

Then, if my colleague Luiz Fernando modifies the document, the new header now 
includes

\author Luiz Fernando Ziebell e-mail

besides the previous snippet.  If my other colleague Marcelo adds his own 
modifications, than a new line is included:

\author Marcelo Camargo de Juli e-mail

and so on.  Then, each person editing the document will see the modifications 
with a 
certain color order that is different from the other person.  Is that not 
confusing?  
I would think that is better if each author has a single, proper color, which 
is the 
same for everyone.  To that end, the LyX header could have the author 
information 
recorded according to the order in which each person added modifications.  To 
accomplish this, each new author could get a number that identifies himself, 
something like:

\author 0 Rudi Gaelzer r...@ufpel.edu.br
\author 1 Luiz e-mail
\author 2 Marcelo e-mail
\author 3 John Doe e-mail
...

and have a single color for each number, 0 - blue, 1 - pink, etc.

What do you think?

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Use different author colors in change tracking.

2009-08-10 Thread Vincent van Ravesteijn


Then, each person editing the document will see the 
modifications with a certain color order that is

different from the other person.  Is that not confusing?
I'm not sure I understand what is confusing. At least, I assume that 
you're not speaking with your colleagues about the 'blue' changes. I 
think it also makes sense that if you are making changes, they are 
always in blue. Then it's easy to recognize which changes are yours.

\author 0 Rudi Gaelzer r...@ufpel.edu.br
\author 1 Luiz e-mail
\author 2 Marcelo e-mail
\author 3 John Doe e-mail
...

  
I've already done this. The reason for that was that if you use version 
control on your document, you don't want the ordering of the authors to 
change. This lead to large differences between documents that had merely 
changed and merging would be impossible.

and have a single color for each number, 0 - blue, 1 - pink, etc.

What do you think?
  
I still don't see what can be confusing about this. I don't really care 
about how the changes look at someone else's screen.


Vincent



Re: cursor positioning at opening a document

2009-08-10 Thread Piero
rgheck rgh...@... writes:
 
 It should open in the last place the cursor was when you closed the 
 document. Sounds as if something is weird with your sessions file. You 
 might try deleting it.

I deleted the session file in the LyX16 directory in the Application Data dir.
But it didn't work: it continue to come back to THAT exact point, in the middle 
of a word, and recreated the session file.

Then I found that cursor and screen always tried to fly to THAT point a moment 
before closing the doc.

Now, after an half an hour in which I beginned to think there was a ghosts in 
my 
processor, I found out that there was the 4th and 7th bookmarks pointing to 
that 
point (the only one other being the 1st, pointing elsewhere). I managed beating 
the ghost by clearing all bookmarks, but if I create one, the automatism still 
works and it will always point to that new bookmark before closing a doc.
It doesn't annoy me, as I can live without bookmarks, but I think it's quite a 
buggy behaviour

Thanks

Piero




formatting toc

2009-08-10 Thread Ricardo Perrone
Hi everybody,

I added \tableofcontents in my document using default book.cls like document 
class, but now i need to change the distance between lines in the TOC. They are 
very sparsed. How can i change it to a simple space? The same space needs to be 
set to List of Table and Figures. Latex command included via Latex preamble 
appears to be without effect.

Thanks a lot
Ricardo Perrone
Lyx user: 1.6.2 version



  


Re: cursor positioning at opening a document

2009-08-10 Thread rgheck

On 08/10/2009 03:25 PM, Piero wrote:

rgheckrgh...@...  writes:

   

It should open in the last place the cursor was when you closed the
document. Sounds as if something is weird with your sessions file. You
might try deleting it.
 


I deleted the session file in the LyX16 directory in the Application Data dir.
But it didn't work: it continue to come back to THAT exact point, in the middle
of a word, and recreated the session file.

Then I found that cursor and screen always tried to fly to THAT point a moment
before closing the doc.

Now, after an half an hour in which I beginned to think there was a ghosts in my
processor, I found out that there was the 4th and 7th bookmarks pointing to that
point (the only one other being the 1st, pointing elsewhere). I managed beating
the ghost by clearing all bookmarks, but if I create one, the automatism still
works and it will always point to that new bookmark before closing a doc.
It doesn't annoy me, as I can live without bookmarks, but I think it's quite a
buggy behaviour.

   

Hmm. This is kind of odd, yes. Perhaps you should report it on trac.

rh



Re: formatting toc

2009-08-10 Thread rgheck

On 08/10/2009 03:27 PM, Ricardo Perrone wrote:

Hi everybody,

I added \tableofcontents in my document using default book.cls like document 
class, but now i need to change the distance between lines in the TOC. They are 
very sparsed. How can i change it to a simple space? The same space needs to be 
set to List of Table and Figures. Latex command included via Latex preamble 
appears to be without effect.

   

The usual answer to this kind of question is: Use the tocloft package.

rh



Re: Step bullet item lists in Beamer

2009-08-10 Thread Venable
Gentlemen,

Thank you very much for all the time and attention you have paid to my question.

I have tried using Command Sequences to address this problem. My idea
was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. The first reverses the order
of the ERT boxes somehow, i.e. the resulting content is \frametitle{}
first followed by \begin{frame}. This seems a little odd - perhaps I
am doing something wrong - but is not a big deal, I just redefined the
sequence as
command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start. Can anyone point out what I am doing wrong
or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) but I would like to get this basic, sufficient code right
first. Any suggestions are most welcome.


Preview: pdf works, eps doesn't

2009-08-10 Thread Rainer Hoffmann
Hi all,

 

I have an eps file where the preview fails.

 

However, when I convert it to pdf using epstopdf the preview is correct.

 

I noticed that the script for eps uses first epstopdf and then 
lyxpreview2bitmap.py while the script for pdf uses convertDefault.py

 

Is there any way to fix this?

 

Best regards, 

Rainer Hoffmann  |  Senior Researcher, Dr.ing., 

Modelling, Control, Flow Assurance 



 

StatoilHydro ASA 

Research Centre, NO-3936 Porsgrunn 

Telephone: 

+47 9987 4995 

E-mail: 

ra...@statoilhydro.com mailto:ra...@statoilhydro.com  

Visitor address: 

Forskningsparken Herøya Porsgrunn 

www.statoilhydro.com http://www.statoilhydro.com/  

 

 



---
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.


Re: How to have 3 types of quotation marks

2009-08-10 Thread Guenter Milde
On 2009-08-08, Piero wrote:
 Any idea?

With a German keyboard and the standard English or German quotation-mark
setting, you have:

(Shift-2)  double quotation marks
  '  (Shift-#)  single quotation marks
  «  (Alt-Gr x) opening guillemot
  »  (Alt-Gr y) closing guillemot
  
Günter



Re: Step bullet item lists in Beamer

2009-08-10 Thread Guenter Milde
On 2009-08-09, rgheck wrote:
 On 08/08/2009 04:47 PM, Paul A. Rubin wrote:
 Another thing that is included in the lyxframe stuff is automatic 
 closing of the previous frame.  Without that, you would have to insert 
 an EndFrame environment after each frame.  With it, you only have to 
 insert an EndFrame at the end of the document.

 I find this kind of puzzling: Other environments don't have this issue.

All environments have this issue, if you want a new paragraph to start a new
environment of the same type (e.g. two theorems, tow slides (in seminar or
prosper). I filed several bug reports about this years ago but the matter
did not seem urgent enough.

However, LyX evolved the custom inset and now this might be a better way to
handle this cases: 

Instead of a Frame environment (where you nest the content), you could
define a Frame inset.

I've done this (experimentally) for seminar.layout and it seems to work nice.

The only problem that I cannot obsolete a Layout with an InsetLayout, so for
backwards compatibility I have to keep them both


Günter


Style LandscapeSlide
CopyStyle   --Separator-- 
LatexType   Environment
LatexName   slide
NextNoIndent1
Margin  Static
LeftMargin  N
ParIndent   
TopSep  0.4
LabelType   Top_Environment
LabelString Landscape Slide:
End
Style Slide
Obsoletedby LandscapeSlide
End

InsetLayout LandscapeSlide
   LyXType  custom
   LatexTypeEnvironment
   LatexNameslide
   Decoration classic
   LabelFont
 Size   Small
   EndFont
   MultiPar true
   LabelString  Landscape Slide
   #   Requires endnotes
End




Re: Step bullet item lists in Beamer

2009-08-10 Thread Guenter Milde
On 2009-08-09, Paul A. Rubin wrote:
 Self-reply ... never a good sign ...

 Paul A. Rubin wrote:

 I'm not sure, but I suspect that the somewhat convoluted macros in the 
 current layout file trace back to something that could not be done in a 
 straightforward way in some early versions of LyX.  If we could figure 
 out what those were, perhaps we could determine whether more linear 
 solutions would work with the current generation.

The solution is InsetLayout (see my other post.)

 It occurs to me that refactoring beamer.layout would cause 
 backward-compatibility issues.  I suppose, assuming the Good Layout 
 Fairy dropped off a better beamer.layout, we could offer 
 oldbeamer.layout and force everyone to convert their old files (of which 
 I possess zillions).

We would need a conversion script :-(

Günter



Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread Pavel Sanda
Piero wrote:
 Julio Rojas jcredbe...@... writes:
 
  Very nice package by the way. Specially since somebody took the job of
  translating it to spanish. Is LyX 1.7 going to support biblatex out of
  the box?

http://www.lyx.org/trac/ticket/4065


bibLatex with Lyx

2009-08-10 Thread E. Kaplan
I followed the Wiki instructions to install biblatex with Lyx 1.6.3 and 
reconfigured, but when I try to compile a document I get:

LaTeX Error: File `biblatex.sty' not found.
I had copied the biblatex.sty file into a Miktex/tex/latex/biblatex 
folder  and rehashed the latex package database, but I am still getting 
the same error.
In addition, I do not find the biblatex module in  the 
Document/settings/module list.

What am I doing wrong?
Thanks
EK




Re: How to have 3 types of quotation marks

2009-08-10 Thread Stefano Franchi
On Monday 10 August 2009 05:58:26 am Piero wrote:
 Guenter Milde mi...@... writes:
  With a German keyboard and the standard English or German
  quotation-mark setting, you have:
 
  (Shift-2)  double quotation marks
'  (Shift-#)  single quotation marks
«  (Alt-Gr x) opening guillemot
»  (Alt-Gr y) closing guillemot

 Thanks, but ...nope.
 I have Italian keyboard/settings, and I'm not going to change them just for
 guillemot, of course.
 I can't believe that such a simple need can't find a solution!
 Please somebody help me!


Piero,

have you tried creating a couple of shortcuts to the unicode-insert command? 
It works for me.
The left pointing guillemet is 00AB and the right pointing one is 00BB (those 
are unicode codes).
Go to ToolsPreferencesShortcuts
Click on New
- in the function field type: unicode-insert 00AB (resp., 00BB) (those are 
leading zeros, BTW, not uppercase oh)
- Then click on the raised Shortcut button, and press the key combination 
you'd like to associate to the guillemets. I use Alt-Shift- and Alt-Shift-.

Click Ok and you're done.

However, I am on Linux with personalized keyboard settings. On Windows XP you 
may have a way to enter them directly without using a LyX shortcut. Wikipedia 
says: 
Windows users can create the guillemet by typing « by holding Alt + 0171 
and » by holding Alt + 0187.
Not sure it works on the Italian Keyboard, though.

Ciao,

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


Re: How to have 3 types of quotation marks

2009-08-10 Thread Ethan Metsger
On Mon, 10 Aug 2009 09:44:21 -0400, Stefano Franchi  
fran...@philosophy.tamu.edu wrote:



However, I am on Linux with personalized keyboard settings.


On my Linux machine, I set the compose key to the left windows key  
(super_l); super_l +  +  == »; super_l +  +  == «.


So at least for me, there's no extra work to be done to compose extended  
characters.  Not all of them work that way, but it's fairly easy on Linux  
to install different keyboard maps, too.  I occasionally write with  
polytonic Greek, and having the keyboard map for it with XeTeX makes life  
a lot easier.  (I bind different keymaps to r_shift + l_shift.)


The last key to the puzzle for me has been to use the SCIM input methods  
for the rare cases I do any work with CJK fonts.


My solution really only works because I've got XeTeX playing nicely on my  
system (Ubuntu 9.04).  Without knowing the OP's operating system, I'm not  
sure how much help my response gives, but by and large it solves most of  
my problems with extended characters.


-Ethan


Re: A3 in a book

2009-08-10 Thread Piero

 Don't know, but try searching on ctan.org for a package that will do 
 this. I'm sure there must be one.

and then post the solution, if you found one. I could also be interested.





Re: How to have 3 types of quotation marks

2009-08-10 Thread Piero
Stefano Franchi fran...@... writes:

 The left pointing guillemet is 00AB and the right pointing one is 00BB (those 
 are unicode codes).
 Go to ToolsPreferencesShortcuts
 Click on New
 - in the function field type: unicode-insert 00AB (resp., 00BB) (those are 
 leading zeros, BTW, not uppercase oh)
 - Then click on the raised Shortcut button, and press the key combination 
 you'd like to associate to the guillemets. I use Alt-Shift-≤ and Alt-Shift-≥.

IT WOOORSSS! 
Grazie Stefano

 Windows users can create the guillemet by typing « by holding Alt + 0171 
 and » by holding Alt + 0187.
 Not sure it works on the Italian Keyboard, though.

Nope. Nevermind, I don't write papers without LyX.

Grazie ancora e ciao

Piero



Re: How to have 3 types of quotation marks

2009-08-10 Thread Stefano Franchi
On Monday 10 August 2009 10:03:01 am Piero wrote:
 Stefano Franchi fran...@... writes:
  The left pointing guillemet is 00AB and the right pointing one is 00BB
  (those are unicode codes).
  Go to ToolsPreferencesShortcuts
  Click on New
  - in the function field type: unicode-insert 00AB (resp., 00BB) (those
  are leading zeros, BTW, not uppercase oh)
  - Then click on the raised Shortcut button, and press the key combination
  you'd like to associate to the guillemets. I use Alt-Shift-≤ and
  Alt-Shift-≥.

 IT WOOORSSS!
 Grazie Stefano

  Windows users can create the guillemet by typing « by holding Alt +
  0171 and » by holding Alt + 0187.
  Not sure it works on the Italian Keyboard, though.

 Nope. Nevermind, I don't write papers without LyX.

 Grazie ancora e ciao

 Piero

Glad it did. 
By the way, be sure it works on the pdf output, not just in LyX. Some fonts 
may not have the approriate glyphs for the guillemets, in which case all you 
get on paper are black boxes. For instance, the AE font (almost European) does 
not seem to work on my system, while my favorite font, MinionPro, gives me no 
troubles.

Ciao,

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


newfangle - the new notangle and no more noweave Re: latex macro help...

2009-08-10 Thread Sam Liddicott
I've managed to avoid blowing up my brain and created a noweb aspect for
the latex listings package, with accompanying lyx module.

As a result I don't need to use noweave, but I get noweave looking
output with the listings generated by the listings package with all it's
pretty printing.

The lyx module (called newfangle) treats each \lstlisting as a noweb
style chunk, and uses the listing name as the chunk name.

It uses the noweb package macros merely to generate the chunk header and
navigation arrows to the previous and next chunk.

This avoids the need to use noweave for most uses, and removes for me
the need to use the literate lyx file format.

I'm still lacking is noweb markup of includes. I need to get
lstlistings to spot these...

Because Lyx doesn't show the listing name visually while editing it can
be very confusing to remember which listing has which name, so I've
added a Chunk style which sets the listing name. This will be persistent
until the next Chunk or the next explicitly named listing.

I prefix most of my listings with a highly visible chunk header.

The Chunk style pretty much just prefixes name= to it's text, and then
calls \lstset, but it does some magic to preserve the chunk name into
the listing.

I also have a newfangle awk script which works like notangle, but nicely
recognizes the latex that listings uses to pick out the code. The awk
script has less bugs that notangle, can manage -L output without
breaking the indents, and manage to suck C code into multi-line macros
without breaking.

I can now do literate programming with much more simplicity than before.

I hope that Lyx will be able to accept this work, and make literate
programming work more naturally.

I've been are we nearly there yet for the last 6 weeks, and I think my
answer is yes (the 3rd time around).

I'll post the code tomorrow, I need to run, but I didn't want anyone
working on my latex macro question now I solved it.

Sam


Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread Piero

 
 http://www.lyx.org/trac/ticket/4065
 

Does this mean that direct BibLaTeX support isn't a priority?
   






Re: A3 in a book

2009-08-10 Thread rgheck

On 08/10/2009 10:49 AM, Piero wrote:

Don't know, but try searching on ctan.org for a package that will do
this. I'm sure there must be one.
 


and then post the solution, if you found one. I could also be interested.

   
I think the vmargin package could probably be used to do this. Perhaps 
also typearea, which comes with the koma-script bundle. But I'm not sure.


rh




Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread rgheck

On 08/10/2009 12:11 PM, Piero wrote:

http://www.lyx.org/trac/ticket/4065

 


Does this mean that direct BibLaTeX support isn't a priority?

   
It's something that at least two of us have on our radar, but (a) until 
the package stabilizes, we won't directly support it and (b) there is a 
serious need for cleanup of how bibliography formats are handled before 
we can really do this properly. So there's work to be done and, as usual 
with open source projects, not nearly enough people to do it


rh



Re: Creating Feynman diagrams using Feynmf and LyX

2009-08-10 Thread bsmile

Have you found a way out so far? If so, can you share with me?

I did a little research, and find that the reason is possibly caused by lyx
only run latex multiple times, as is set in default in the converter from
latex to dvi. This is incomplete to run feynmf since it requires latex and
then mf and then latex again. The way(not so nice) I found is to change the
converter to feynmf, then when you write the document and want to produce
pdf view, click on compile to dvi first(the button calls feynmf to generate
the necessary .tfm and .tn file), and then click produce pdf(this button
uses the readily generated .tfm and .tn files to help generate the right pdf
file). Most of the time, it will give the right pdf. 

BTW, I use lyx 1.6.***



Real87 wrote:
 
 Hi
 
 I'm trying to produce Feynman diagrams using LyX. I've already tried to
 use the  http://wiki.lyx.org/Tips/FeynmanDiagrams feyn  package but it is
 too restrictive. Therefore I'm trying to use a much more powerful package
 called  http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/
 feynmf . However, there are some compatibility issues with LyX:
 
 - When using the package feynmf (metafont based) there are some problems
 when the latex code is converted into .dvi, .pdf or .ps: one needs to
 compile twice, since in the first time a error message appears.
 Additionally, when the source code is modified the font files are not
 updated.
 
 - When using the package feynmp (metapost based) there is no output at all
 (the document is blank).
 
 Here is a LyX test file:  http://n2.nabble.com/file/n476037/test.lyx
 test.lyx .
 
 BTW, I'm using LyX 1.5.4 with an updated MiKTeX 2.6.
 Contact me for additional clarification.
 
 Thank you for your attention.
 
 EDIT: the problem with metafont could probably be corrected using the
 following script:
 latex test.tex
 mf phi4.mf
 latex test.tex
 pdflatex test.tex
 Is it possible to modify lyx's processing routine inserting this sequence?
 

-- 
View this message in context: 
http://n2.nabble.com/Creating-Feynman-diagrams-using-Feynmf-and-LyX-tp476037p3418411.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Pilcrows / Paragraph marks / Nonprinting characters

2009-08-10 Thread Ben M.
Vincent--should I wait for a patch from you before I go
through the trouble of recompiling?

 Why is that a trouble ?

Just because I've been messing with Qt 4.5.2 while I upgrade from
4.5.1.  My libraries happen to be broken at the moment.  Recompiling
won't be any trouble once I fix all that.

 I'll need to find some spare time to finish the patch -- i.e. to make it
 perfect. So, if you can live with an almost perfect solution, go ahead.

Okay, no hurry there.  If Richard's patch is consistent with your
screenshots, it does indeed look almost perfect.  =)

-Ben


How does LyX render symbols?

2009-08-10 Thread Manoj Rajagopalan
Hi all,

   In math mode, when I select the menu item for the greek alpha character, or 
when I type \alpha within the inline equation box and then press TAB, how 
does lyx render this to the character?

   I've traced the code till LyXFunc()::dispatch() which is called on the 
lyxfunc_ member of the LyX singleton instance. The code logic seems to be 
that the dispatch() function is called on an hierarchy of various structures 
like work-area, buffer, cursor etc. and if the FuncRequest has been serviced, 
the function returns.

IIUC, GuiWorkArea::keyPressEvent is triggered each time a key is pressed 
and the LyX abstraction (server?) is informed of the specific command that 
this key-press forms depending on LyX state. To render this onto the GUI, the 
LyX abstraction must call GUI functions with some font info for rendering 
characters like greek letters, AMS symbols etc. but I keep getting lost 
before getting here. Could someone point me to the relevant code path?

Thanks,
Manoj


RE: How does LyX render symbols?

2009-08-10 Thread Vincent van Ravesteijn - TNW

In math mode, when I select the menu item for the
greek alpha character, or when I type \alpha within
the inline equation box and then press TAB, how does
lyx render this to the character?

You should be somewhat clearer what you mean with 'render'.

The general story is that each keypress will fire a LFUN_SELF_INSERT.
This will be handled by InsetMathNest::dispatch() and dispatch will call
InsetMathNest::interpretChar(). When you have typed '\alpha' and you
press space, interpretChar() will call cur.macroModeClose() which will
'finish' the macro. Cursor::macroModeClose() then creates a new Inset
with the line:

MathAtom atom = createInsetMath(name);

and this is inserted into the formula by 

plainInsert(atom);

Is this what you wanted to know ? Are you implementing something useful
?

P.S. This sounds like it is more appropriate at the developers' list.

Vincent


cursor positioning at opening a document

2009-08-10 Thread Piero
Hello, little little question:
 why does a main doc of mine always open with the cursor in the same exact word 
of a middle Chapter?
Can I have it opened in the last change location or in a given bookmark?
Thanks 

Piero



Re: cursor positioning at opening a document

2009-08-10 Thread rgheck

On 08/10/2009 02:26 PM, Piero wrote:

Hello, little little question:
  why does a main doc of mine always open with the cursor in the same exact word
of a middle Chapter?
Can I have it opened in the last change location or in a given bookmark?

   
It should open in the last place the cursor was when you closed the 
document. Sounds as if something is weird with your sessions file. You 
might try deleting it.


rh



Re: Use different author colors in change tracking.

2009-08-10 Thread Rudi Gaelzer
On Saturday 08 August 2009 21:58:54 Vincent van Ravesteijn wrote:
 I'm not sure I fully understand what you're asking. The idea is that
 each person that has made modifications get its own color. So, if you
 have created a document with change tracking on and you give this
 document to someone else, then your changes will be colored by the color
 assigned to the 2nd author. The changes of this other person are colored
 by the 1st author color. If he gives this document to a third person,
 then the changes will be colored according to the colors for the 2nd and
 3rd author, and this third person's changes will be colored as the 1st
 author.. and so forth..

 Vincent

Thanks for the reply.
Indeed I verified this behavior by changing the Name at Tools - Preferences 
... - 
Identity.  When I did that, any previous modification was depicted with the 
color 
assigned to the 2nd. author (pink), while new modifications had the color of 
the 1st 
author (blue).
When I switched back the Identity to my name, the modifications had their 
colors 
altered accordingly: pink - blue and blue - pink.  I think that now I 
understand 
how it works.

However, is that now confusing?  Wouldn't it be better if each new registered 
author 
has always the same color assigned?  For instance, if I write the first version 
of 
the document, then the header of the LyX file has the following snippet:

\tracking_changes true
\output_changes true
\author Rudi Gaelzer r...@ufpel.edu.br

Then, if my colleague Luiz Fernando modifies the document, the new header now 
includes

\author Luiz Fernando Ziebell e-mail

besides the previous snippet.  If my other colleague Marcelo adds his own 
modifications, than a new line is included:

\author Marcelo Camargo de Juli e-mail

and so on.  Then, each person editing the document will see the modifications 
with a 
certain color order that is different from the other person.  Is that not 
confusing?  
I would think that is better if each author has a single, proper color, which 
is the 
same for everyone.  To that end, the LyX header could have the author 
information 
recorded according to the order in which each person added modifications.  To 
accomplish this, each new author could get a number that identifies himself, 
something like:

\author 0 Rudi Gaelzer r...@ufpel.edu.br
\author 1 Luiz e-mail
\author 2 Marcelo e-mail
\author 3 John Doe e-mail
...

and have a single color for each number, 0 - blue, 1 - pink, etc.

What do you think?

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Use different author colors in change tracking.

2009-08-10 Thread Vincent van Ravesteijn


Then, each person editing the document will see the 
modifications with a certain color order that is

different from the other person.  Is that not confusing?
I'm not sure I understand what is confusing. At least, I assume that 
you're not speaking with your colleagues about the 'blue' changes. I 
think it also makes sense that if you are making changes, they are 
always in blue. Then it's easy to recognize which changes are yours.

\author 0 Rudi Gaelzer r...@ufpel.edu.br
\author 1 Luiz e-mail
\author 2 Marcelo e-mail
\author 3 John Doe e-mail
...

  
I've already done this. The reason for that was that if you use version 
control on your document, you don't want the ordering of the authors to 
change. This lead to large differences between documents that had merely 
changed and merging would be impossible.

and have a single color for each number, 0 - blue, 1 - pink, etc.

What do you think?
  
I still don't see what can be confusing about this. I don't really care 
about how the changes look at someone else's screen.


Vincent



Re: cursor positioning at opening a document

2009-08-10 Thread Piero
rgheck rgh...@... writes:
 
 It should open in the last place the cursor was when you closed the 
 document. Sounds as if something is weird with your sessions file. You 
 might try deleting it.

I deleted the session file in the LyX16 directory in the Application Data dir.
But it didn't work: it continue to come back to THAT exact point, in the middle 
of a word, and recreated the session file.

Then I found that cursor and screen always tried to fly to THAT point a moment 
before closing the doc.

Now, after an half an hour in which I beginned to think there was a ghosts in 
my 
processor, I found out that there was the 4th and 7th bookmarks pointing to 
that 
point (the only one other being the 1st, pointing elsewhere). I managed beating 
the ghost by clearing all bookmarks, but if I create one, the automatism still 
works and it will always point to that new bookmark before closing a doc.
It doesn't annoy me, as I can live without bookmarks, but I think it's quite a 
buggy behaviour

Thanks

Piero




formatting toc

2009-08-10 Thread Ricardo Perrone
Hi everybody,

I added \tableofcontents in my document using default book.cls like document 
class, but now i need to change the distance between lines in the TOC. They are 
very sparsed. How can i change it to a simple space? The same space needs to be 
set to List of Table and Figures. Latex command included via Latex preamble 
appears to be without effect.

Thanks a lot
Ricardo Perrone
Lyx user: 1.6.2 version



  


Re: cursor positioning at opening a document

2009-08-10 Thread rgheck

On 08/10/2009 03:25 PM, Piero wrote:

rgheckrgh...@...  writes:

   

It should open in the last place the cursor was when you closed the
document. Sounds as if something is weird with your sessions file. You
might try deleting it.
 


I deleted the session file in the LyX16 directory in the Application Data dir.
But it didn't work: it continue to come back to THAT exact point, in the middle
of a word, and recreated the session file.

Then I found that cursor and screen always tried to fly to THAT point a moment
before closing the doc.

Now, after an half an hour in which I beginned to think there was a ghosts in my
processor, I found out that there was the 4th and 7th bookmarks pointing to that
point (the only one other being the 1st, pointing elsewhere). I managed beating
the ghost by clearing all bookmarks, but if I create one, the automatism still
works and it will always point to that new bookmark before closing a doc.
It doesn't annoy me, as I can live without bookmarks, but I think it's quite a
buggy behaviour.

   

Hmm. This is kind of odd, yes. Perhaps you should report it on trac.

rh



Re: formatting toc

2009-08-10 Thread rgheck

On 08/10/2009 03:27 PM, Ricardo Perrone wrote:

Hi everybody,

I added \tableofcontents in my document using default book.cls like document 
class, but now i need to change the distance between lines in the TOC. They are 
very sparsed. How can i change it to a simple space? The same space needs to be 
set to List of Table and Figures. Latex command included via Latex preamble 
appears to be without effect.

   

The usual answer to this kind of question is: Use the tocloft package.

rh



Re: Step bullet item lists in Beamer

2009-08-10 Thread Venable
Gentlemen,

Thank you very much for all the time and attention you have paid to my question.

I have tried using Command Sequences to address this problem. My idea
was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. The first reverses the order
of the ERT boxes somehow, i.e. the resulting content is \frametitle{}
first followed by \begin{frame}. This seems a little odd - perhaps I
am doing something wrong - but is not a big deal, I just redefined the
sequence as
command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start. Can anyone point out what I am doing wrong
or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) but I would like to get this basic, sufficient code right
first. Any suggestions are most welcome.


Preview: pdf works, eps doesn't

2009-08-10 Thread Rainer Hoffmann
Hi all,

 

I have an eps file where the preview fails.

 

However, when I convert it to pdf using epstopdf the preview is correct.

 

I noticed that the script for eps uses first epstopdf and then 
lyxpreview2bitmap.py while the script for pdf uses convertDefault.py

 

Is there any way to fix this?

 

Best regards, 

Rainer Hoffmann  |  Senior Researcher, Dr.ing., 

Modelling, Control, Flow Assurance 



 

StatoilHydro ASA 

Research Centre, NO-3936 Porsgrunn 

Telephone: 

+47 9987 4995 

E-mail: 

ra...@statoilhydro.com   

Visitor address: 

Forskningsparken Herøya Porsgrunn 

www.statoilhydro.com   

 

 



---
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.


Re: How to have 3 types of quotation marks

2009-08-10 Thread Guenter Milde
On 2009-08-08, Piero wrote:
> Any idea?

With a German keyboard and the standard "English" or "German" quotation-mark
setting, you have:

  "  (Shift-2)  double quotation marks
  '  (Shift-#)  single quotation marks
  «  (Alt-Gr x) opening guillemot
  »  (Alt-Gr y) closing guillemot
  
Günter



Re: Step bullet item lists in Beamer

2009-08-10 Thread Guenter Milde
On 2009-08-09, rgheck wrote:
> On 08/08/2009 04:47 PM, Paul A. Rubin wrote:
>> Another thing that is included in the lyxframe stuff is automatic 
>> closing of the previous frame.  Without that, you would have to insert 
>> an EndFrame environment after each frame.  With it, you only have to 
>> insert an EndFrame at the end of the document.

> I find this kind of puzzling: Other environments don't have this issue.

All environments have this issue, if you want a new paragraph to start a new
environment of the same type (e.g. two theorems, tow slides (in seminar or
prosper). I filed several bug reports about this years ago but the matter
did not seem urgent enough.

However, LyX evolved the custom inset and now this might be a better way to
handle this cases: 

Instead of a Frame environment (where you nest the content), you could
define a Frame inset.

I've done this (experimentally) for seminar.layout and it seems to work nice.

The only problem that I cannot obsolete a Layout with an InsetLayout, so for
backwards compatibility I have to keep them both


Günter


Style LandscapeSlide
CopyStyle   --Separator-- 
LatexType   Environment
LatexName   slide
NextNoIndent1
Margin  Static
LeftMargin  N
ParIndent   ""
TopSep  0.4
LabelType   Top_Environment
LabelString "Landscape Slide:"
End
Style Slide
Obsoletedby LandscapeSlide
End

InsetLayout LandscapeSlide
   LyXType  custom
   LatexTypeEnvironment
   LatexNameslide
   Decoration classic
   LabelFont
 Size   Small
   EndFont
   MultiPar true
   LabelString  "Landscape Slide"
   #   Requires endnotes
End




Re: Step bullet item lists in Beamer

2009-08-10 Thread Guenter Milde
On 2009-08-09, Paul A. Rubin wrote:
> Self-reply ... never a good sign ...

> Paul A. Rubin wrote:

>> I'm not sure, but I suspect that the somewhat convoluted macros in the 
>> current layout file trace back to something that could not be done in a 
>> straightforward way in some early versions of LyX.  If we could figure 
>> out what those were, perhaps we could determine whether more linear 
>> solutions would work with the current generation.

The solution is InsetLayout (see my other post.)

> It occurs to me that refactoring beamer.layout would cause 
> backward-compatibility issues.  I suppose, assuming the Good Layout 
> Fairy dropped off a better beamer.layout, we could offer 
> oldbeamer.layout and force everyone to convert their old files (of which 
> I possess zillions).

We would need a conversion script :-(

Günter



Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread Pavel Sanda
Piero wrote:
> Julio Rojas  writes:
> 
> > Very nice package by the way. Specially since somebody took the job of
> > translating it to spanish. Is LyX 1.7 going to support biblatex out of
> > the box?

http://www.lyx.org/trac/ticket/4065


bibLatex with Lyx

2009-08-10 Thread E. Kaplan
I followed the Wiki instructions to install biblatex with Lyx 1.6.3 and 
reconfigured, but when I try to compile a document I get:

LaTeX Error: File `biblatex.sty' not found.
I had copied the biblatex.sty file into a Miktex/tex/latex/biblatex 
folder  and rehashed the latex package database, but I am still getting 
the same error.
In addition, I do not find the biblatex module in  the 
Document/settings/module list.

What am I doing wrong?
Thanks
EK




Re: How to have 3 types of quotation marks

2009-08-10 Thread Stefano Franchi
On Monday 10 August 2009 05:58:26 am Piero wrote:
> Guenter Milde  writes:
> > With a German keyboard and the standard "English" or "German"
> > quotation-mark setting, you have:
> >
> >   "  (Shift-2)  double quotation marks
> >   '  (Shift-#)  single quotation marks
> >   «  (Alt-Gr x) opening guillemot
> >   »  (Alt-Gr y) closing guillemot
>
> Thanks, but ...nope.
> I have Italian keyboard/settings, and I'm not going to change them just for
> guillemot, of course.
> I can't believe that such a simple need can't find a solution!
> Please somebody help me!


Piero,

have you tried creating a couple of shortcuts to the unicode-insert command? 
It works for me.
The left pointing guillemet is 00AB and the right pointing one is 00BB (those 
are unicode codes).
Go to Tools>Preferences>Shortcuts
Click on New
- in the function field type: unicode-insert 00AB (resp., 00BB) (those are 
leading zeros, BTW, not uppercase oh)
- Then click on the raised Shortcut button, and press the key combination 
you'd like to associate to the guillemets. I use Alt-Shift-< and Alt-Shift->.

Click Ok and you're done.

However, I am on Linux with personalized keyboard settings. On Windows XP you 
may have a way to enter them directly without using a LyX shortcut. Wikipedia 
says: 
"Windows users can create the guillemet by typing "«" by holding Alt + 0171 
and "»" by holding Alt + 0187."
Not sure it works on the Italian Keyboard, though.

Ciao,

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


Re: How to have 3 types of quotation marks

2009-08-10 Thread Ethan Metsger
On Mon, 10 Aug 2009 09:44:21 -0400, Stefano Franchi  
 wrote:



However, I am on Linux with personalized keyboard settings.


On my Linux machine, I set the compose key to the left windows key  
(super_l); super_l + > + > == »; super_l + < + < == «.


So at least for me, there's no extra work to be done to compose extended  
characters.  Not all of them work that way, but it's fairly easy on Linux  
to install different keyboard maps, too.  I occasionally write with  
polytonic Greek, and having the keyboard map for it with XeTeX makes life  
a lot easier.  (I bind different keymaps to r_shift + l_shift.)


The last key to the puzzle for me has been to use the SCIM input methods  
for the rare cases I do any work with CJK fonts.


My solution really only works because I've got XeTeX playing nicely on my  
system (Ubuntu 9.04).  Without knowing the OP's operating system, I'm not  
sure how much help my response gives, but by and large it solves most of  
my problems with extended characters.


-Ethan


Re: A3 in a book

2009-08-10 Thread Piero

> Don't know, but try searching on ctan.org for a package that will do 
> this. I'm sure there must be one.

and then post the solution, if you found one. I could also be interested.





Re: How to have 3 types of quotation marks

2009-08-10 Thread Piero
Stefano Franchi  writes:

> The left pointing guillemet is 00AB and the right pointing one is 00BB (those 
> are unicode codes).
> Go to Tools>Preferences>Shortcuts
> Click on New
> - in the function field type: unicode-insert 00AB (resp., 00BB) (those are 
> leading zeros, BTW, not uppercase oh)
> - Then click on the raised Shortcut button, and press the key combination 
> you'd like to associate to the guillemets. I use Alt-Shift-≤ and Alt-Shift-≥.

IT WOOORSSS! 
Grazie Stefano

> "Windows users can create the guillemet by typing "«" by holding Alt + 0171 
> and "»" by holding Alt + 0187."
> Not sure it works on the Italian Keyboard, though.

Nope. Nevermind, I don't write papers without LyX.

Grazie ancora e ciao

Piero



Re: How to have 3 types of quotation marks

2009-08-10 Thread Stefano Franchi
On Monday 10 August 2009 10:03:01 am Piero wrote:
> Stefano Franchi  writes:
> > The left pointing guillemet is 00AB and the right pointing one is 00BB
> > (those are unicode codes).
> > Go to Tools>Preferences>Shortcuts
> > Click on New
> > - in the function field type: unicode-insert 00AB (resp., 00BB) (those
> > are leading zeros, BTW, not uppercase oh)
> > - Then click on the raised Shortcut button, and press the key combination
> > you'd like to associate to the guillemets. I use Alt-Shift-≤ and
> > Alt-Shift-≥.
>
> IT WOOORSSS!
> Grazie Stefano
>
> > "Windows users can create the guillemet by typing "«" by holding Alt +
> > 0171 and "»" by holding Alt + 0187."
> > Not sure it works on the Italian Keyboard, though.
>
> Nope. Nevermind, I don't write papers without LyX.
>
> Grazie ancora e ciao
>
> Piero

Glad it did. 
By the way, be sure it works on the pdf output, not just in LyX. Some fonts 
may not have the approriate glyphs for the guillemets, in which case all you 
get on paper are black boxes. For instance, the AE font (almost European) does 
not seem to work on my system, while my favorite font, MinionPro, gives me no 
troubles.

Ciao,

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


newfangle - the new notangle and no more noweave Re: latex macro help...

2009-08-10 Thread Sam Liddicott
I've managed to avoid blowing up my brain and created a noweb aspect for
the latex listings package, with accompanying lyx module.

As a result I don't need to use noweave, but I get noweave looking
output with the listings generated by the listings package with all it's
pretty printing.

The lyx module (called "newfangle") treats each \lstlisting as a noweb
style chunk, and uses the listing name as the chunk name.

It uses the noweb package macros merely to generate the chunk header and
navigation arrows to the previous and next chunk.

This avoids the need to use noweave for most uses, and removes for me
the need to use the literate lyx file format.

I'm still lacking is noweb markup of <>. I need to get
lstlistings to spot these...

Because Lyx doesn't show the listing name visually while editing it can
be very confusing to remember which listing has which name, so I've
added a Chunk style which sets the listing name. This will be persistent
until the next Chunk or the next explicitly named listing.

I prefix most of my listings with a highly visible chunk header.

The Chunk style pretty much just prefixes "name=" to it's text, and then
calls \lstset, but it does some magic to preserve the chunk name into
the listing.

I also have a newfangle awk script which works like notangle, but nicely
recognizes the latex that listings uses to pick out the code. The awk
script has less bugs that notangle, can manage -L output without
breaking the indents, and manage to suck C code into multi-line macros
without breaking.

I can now do literate programming with much more simplicity than before.

I hope that Lyx will be able to accept this work, and make literate
programming work more naturally.

I've been "are we nearly there yet" for the last 6 weeks, and I think my
answer is "yes" (the 3rd time around).

I'll post the code tomorrow, I need to run, but I didn't want anyone
working on my latex macro question now I solved it.

Sam


Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread Piero

> 
> http://www.lyx.org/trac/ticket/4065
> 

Does this mean that direct BibLaTeX support isn't a priority?
   






Re: A3 in a book

2009-08-10 Thread rgheck

On 08/10/2009 10:49 AM, Piero wrote:

Don't know, but try searching on ctan.org for a package that will do
this. I'm sure there must be one.
 


and then post the solution, if you found one. I could also be interested.

   
I think the vmargin package could probably be used to do this. Perhaps 
also typearea, which comes with the koma-script bundle. But I'm not sure.


rh




Re: Biblatex and Lyx: Verbose Style

2009-08-10 Thread rgheck

On 08/10/2009 12:11 PM, Piero wrote:

http://www.lyx.org/trac/ticket/4065

 


Does this mean that direct BibLaTeX support isn't a priority?

   
It's something that at least two of us have on our radar, but (a) until 
the package stabilizes, we won't directly support it and (b) there is a 
serious need for cleanup of how bibliography formats are handled before 
we can really do this properly. So there's work to be done and, as usual 
with open source projects, not nearly enough people to do it


rh



Re: Creating Feynman diagrams using Feynmf and LyX

2009-08-10 Thread bsmile

Have you found a way out so far? If so, can you share with me?

I did a little research, and find that the reason is possibly caused by lyx
only run latex multiple times, as is set in default in the converter from
latex to dvi. This is incomplete to run feynmf since it requires latex and
then mf and then latex again. The way(not so nice) I found is to change the
converter to feynmf, then when you write the document and want to produce
pdf view, click on compile to dvi first(the button calls feynmf to generate
the necessary .tfm and .tn file), and then click produce pdf(this button
uses the readily generated .tfm and .tn files to help generate the right pdf
file). Most of the time, it will give the right pdf. 

BTW, I use lyx 1.6.***



Real87 wrote:
> 
> Hi
> 
> I'm trying to produce Feynman diagrams using LyX. I've already tried to
> use the  http://wiki.lyx.org/Tips/FeynmanDiagrams feyn  package but it is
> too restrictive. Therefore I'm trying to use a much more powerful package
> called  http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/
> feynmf . However, there are some compatibility issues with LyX:
> 
> - When using the package feynmf (metafont based) there are some problems
> when the latex code is converted into .dvi, .pdf or .ps: one needs to
> compile twice, since in the first time a error message appears.
> Additionally, when the source code is modified the font files are not
> updated.
> 
> - When using the package feynmp (metapost based) there is no output at all
> (the document is blank).
> 
> Here is a LyX test file:  http://n2.nabble.com/file/n476037/test.lyx
> test.lyx .
> 
> BTW, I'm using LyX 1.5.4 with an updated MiKTeX 2.6.
> Contact me for additional clarification.
> 
> Thank you for your attention.
> 
> EDIT: the problem with metafont could probably be corrected using the
> following script:
> latex test.tex
> mf phi4.mf
> latex test.tex
> pdflatex test.tex
> Is it possible to modify lyx's processing routine inserting this sequence?
> 

-- 
View this message in context: 
http://n2.nabble.com/Creating-Feynman-diagrams-using-Feynmf-and-LyX-tp476037p3418411.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Pilcrows / Paragraph marks / Nonprinting characters

2009-08-10 Thread Ben M.
>>Vincent--should I wait for a patch from you before I go
>>through the trouble of recompiling?
>
> Why is that a trouble ?

Just because I've been messing with Qt 4.5.2 while I upgrade from
4.5.1.  My libraries happen to be broken at the moment.  Recompiling
won't be any trouble once I fix all that.

> I'll need to find some spare time to finish the patch -- i.e. to make it
> perfect. So, if you can live with an almost perfect solution, go ahead.

Okay, no hurry there.  If Richard's patch is consistent with your
screenshots, it does indeed look almost perfect.  =)

-Ben


How does LyX render symbols?

2009-08-10 Thread Manoj Rajagopalan
Hi all,

   In math mode, when I select the menu item for the greek alpha character, or 
when I type \alpha within the inline equation box and then press TAB, how 
does lyx render this to the character?

   I've traced the code till LyXFunc()::dispatch() which is called on the 
lyxfunc_ member of the LyX singleton instance. The code logic seems to be 
that the dispatch() function is called on an hierarchy of various structures 
like work-area, buffer, cursor etc. and if the FuncRequest has been serviced, 
the function returns.

IIUC, GuiWorkArea::keyPressEvent is triggered each time a key is pressed 
and the LyX abstraction (server?) is informed of the specific command that 
this key-press forms depending on LyX state. To render this onto the GUI, the 
LyX abstraction must call GUI functions with some font info for rendering 
characters like greek letters, AMS symbols etc. but I keep getting lost 
before getting here. Could someone point me to the relevant code path?

Thanks,
Manoj


RE: How does LyX render symbols?

2009-08-10 Thread Vincent van Ravesteijn - TNW

>In math mode, when I select the menu item for the
>greek alpha character, or when I type \alpha within
>the inline equation box and then press TAB, how does
>lyx render this to the character?

You should be somewhat clearer what you mean with 'render'.

The general story is that each keypress will fire a LFUN_SELF_INSERT.
This will be handled by InsetMathNest::dispatch() and dispatch will call
InsetMathNest::interpretChar(). When you have typed '\alpha' and you
press space, interpretChar() will call cur.macroModeClose() which will
'finish' the macro. Cursor::macroModeClose() then creates a new Inset
with the line:

MathAtom atom = createInsetMath(name);

and this is inserted into the formula by 

plainInsert(atom);

Is this what you wanted to know ? Are you implementing something useful
?

P.S. This sounds like it is more appropriate at the developers' list.

Vincent


cursor positioning at opening a document

2009-08-10 Thread Piero
Hello, little little question:
 why does a main doc of mine always open with the cursor in the same exact word 
of a middle Chapter?
Can I have it opened in the last change location or in a given bookmark?
Thanks 

Piero



Re: cursor positioning at opening a document

2009-08-10 Thread rgheck

On 08/10/2009 02:26 PM, Piero wrote:

Hello, little little question:
  why does a main doc of mine always open with the cursor in the same exact word
of a middle Chapter?
Can I have it opened in the last change location or in a given bookmark?

   
It should open in the last place the cursor was when you closed the 
document. Sounds as if something is weird with your sessions file. You 
might try deleting it.


rh



Re: Use different author colors in change tracking.

2009-08-10 Thread Rudi Gaelzer
On Saturday 08 August 2009 21:58:54 Vincent van Ravesteijn wrote:
> I'm not sure I fully understand what you're asking. The idea is that
> each person that has made modifications get its own color. So, if you
> have created a document with change tracking on and you give this
> document to someone else, then your changes will be colored by the color
> assigned to the 2nd author. The changes of this other person are colored
> by the 1st author color. If he gives this document to a third person,
> then the changes will be colored according to the colors for the 2nd and
> 3rd author, and this third person's changes will be colored as the 1st
> author.. and so forth..
>
> Vincent

Thanks for the reply.
Indeed I verified this behavior by changing the Name at Tools -> Preferences 
... -> 
Identity.  When I did that, any previous modification was depicted with the 
color 
assigned to the 2nd. author (pink), while new modifications had the color of 
the 1st 
author (blue).
When I switched back the Identity to my name, the modifications had their 
colors 
altered accordingly: pink -> blue and blue -> pink.  I think that now I 
understand 
how it works.

However, is that now confusing?  Wouldn't it be better if each new registered 
author 
has always the same color assigned?  For instance, if I write the first version 
of 
the document, then the header of the LyX file has the following snippet:

\tracking_changes true
\output_changes true
\author "Rudi Gaelzer" r...@ufpel.edu.br

Then, if my colleague Luiz Fernando modifies the document, the new header now 
includes

\author "Luiz Fernando Ziebell" 

besides the previous snippet.  If my other colleague Marcelo adds his own 
modifications, than a new line is included:

\author "Marcelo Camargo de Juli" 

and so on.  Then, each person editing the document will see the modifications 
with a 
certain color order that is different from the other person.  Is that not 
confusing?  
I would think that is better if each author has a single, proper color, which 
is the 
same for everyone.  To that end, the LyX header could have the author 
information 
recorded according to the order in which each person added modifications.  To 
accomplish this, each new author could get a number that identifies himself, 
something like:

\author 0 "Rudi Gaelzer" r...@ufpel.edu.br
\author 1 "Luiz" 
\author 2 "Marcelo" 
\author 3 "John Doe" 
...

and have a single color for each number, 0 -> blue, 1 -> pink, etc.

What do you think?

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Use different author colors in change tracking.

2009-08-10 Thread Vincent van Ravesteijn


Then, each person editing the document will see the 
modifications with a certain color order that is

different from the other person.  Is that not confusing?
I'm not sure I understand what is confusing. At least, I assume that 
you're not speaking with your colleagues about the 'blue' changes. I 
think it also makes sense that if you are making changes, they are 
always in blue. Then it's easy to recognize which changes are yours.

\author 0 "Rudi Gaelzer" r...@ufpel.edu.br
\author 1 "Luiz" 
\author 2 "Marcelo" 
\author 3 "John Doe" 
...

  
I've already done this. The reason for that was that if you use version 
control on your document, you don't want the ordering of the authors to 
change. This lead to large differences between documents that had merely 
changed and merging would be impossible.

and have a single color for each number, 0 -> blue, 1 -> pink, etc.

What do you think?
  
I still don't see what can be confusing about this. I don't really care 
about how the changes look at someone else's screen.


Vincent



Re: cursor positioning at opening a document

2009-08-10 Thread Piero
rgheck  writes:
 
> It should open in the last place the cursor was when you closed the 
> document. Sounds as if something is weird with your sessions file. You 
> might try deleting it.

I deleted the "session" file in the LyX16 directory in the Application Data dir.
But it didn't work: it continue to come back to THAT exact point, in the middle 
of a word, and recreated the session file.

Then I found that cursor and screen always tried to fly to THAT point a moment 
before closing the doc.

Now, after an half an hour in which I beginned to think there was a ghosts in 
my 
processor, I found out that there was the 4th and 7th bookmarks pointing to 
that 
point (the only one other being the 1st, pointing elsewhere). I managed beating 
the ghost by clearing all bookmarks, but if I create one, the automatism still 
works and it will always point to that new bookmark before closing a doc.
It doesn't annoy me, as I can live without bookmarks, but I think it's quite a 
buggy behaviour

Thanks

Piero




formatting toc

2009-08-10 Thread Ricardo Perrone
Hi everybody,

I added \tableofcontents in my document using default book.cls like document 
class, but now i need to change the distance between lines in the TOC. They are 
very sparsed. How can i change it to a simple space? The same space needs to be 
set to List of Table and Figures. Latex command included via Latex preamble 
appears to be without effect.

Thanks a lot
Ricardo Perrone
Lyx user: 1.6.2 version



  


Re: cursor positioning at opening a document

2009-08-10 Thread rgheck

On 08/10/2009 03:25 PM, Piero wrote:

rgheck  writes:

   

It should open in the last place the cursor was when you closed the
document. Sounds as if something is weird with your sessions file. You
might try deleting it.
 


I deleted the "session" file in the LyX16 directory in the Application Data dir.
But it didn't work: it continue to come back to THAT exact point, in the middle
of a word, and recreated the session file.

Then I found that cursor and screen always tried to fly to THAT point a moment
before closing the doc.

Now, after an half an hour in which I beginned to think there was a ghosts in my
processor, I found out that there was the 4th and 7th bookmarks pointing to that
point (the only one other being the 1st, pointing elsewhere). I managed beating
the ghost by clearing all bookmarks, but if I create one, the automatism still
works and it will always point to that new bookmark before closing a doc.
It doesn't annoy me, as I can live without bookmarks, but I think it's quite a
buggy behaviour.

   

Hmm. This is kind of odd, yes. Perhaps you should report it on trac.

rh



Re: formatting toc

2009-08-10 Thread rgheck

On 08/10/2009 03:27 PM, Ricardo Perrone wrote:

Hi everybody,

I added \tableofcontents in my document using default book.cls like document 
class, but now i need to change the distance between lines in the TOC. They are 
very sparsed. How can i change it to a simple space? The same space needs to be 
set to List of Table and Figures. Latex command included via Latex preamble 
appears to be without effect.

   

The usual answer to this kind of question is: Use the tocloft package.

rh



Re: Step bullet item lists in Beamer

2009-08-10 Thread Venable
Gentlemen,

Thank you very much for all the time and attention you have paid to my question.

I have tried using Command Sequences to address this problem. My idea
was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. The first reverses the order
of the ERT boxes somehow, i.e. the resulting content is \frametitle{}
first followed by \begin{frame}. This seems a little odd - perhaps I
am doing something wrong - but is not a big deal, I just redefined the
sequence as
command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start. Can anyone point out what I am doing wrong
or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) but I would like to get this basic, sufficient code right
first. Any suggestions are most welcome.