Re: Step bullet item lists in Beamer
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.
Re: formatting toc
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: cursor positioning at opening a document
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
formatting toc
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
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
Re: Use different author colors in change tracking.
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: Use different author colors in change tracking.
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: cursor positioning at opening a document
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
cursor positioning at opening a document
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: How does LyX render symbols?
>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
How does LyX render symbols?
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: Pilcrows / Paragraph marks / Nonprinting characters
>>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
Re: Creating Feynman diagrams using Feynmf and LyX
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: Biblatex and Lyx: Verbose Style
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: A3 in a book
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
> > http://www.lyx.org/trac/ticket/4065 > Does this mean that direct BibLaTeX support isn't a priority?
newfangle - the new notangle and no more noweave Re: latex macro help...
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: How to have 3 types of quotation marks
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&M 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
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: A3 in a book
> 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
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: How to have 3 types of quotation marks
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&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
bibLatex with Lyx
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: Pilcrows / Paragraph marks / Nonprinting characters
>>> E voila, >>> >>> Vincent > >Wow, you guys are incredible! Mere hours after my feature request! >It looks beautiful, and I look forward to trying it out. > >Vincent--should I wait for a patch from you before I go >through the trouble of recompiling? Why is that a trouble ? 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. >Thanks so much! >-Ben Vincent
Re: Biblatex and Lyx: Verbose Style
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
Re: How to have 3 types of quotation marks
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!
Re: Step bullet item lists in Beamer
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: Step bullet item lists in Beamer
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: How to have 3 types of quotation marks
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