Re: LyX Stopped Responding
1.6.2. I'll upgrade. Thanks! Dave
Re: Emphasis with passthrough
Sam Liddicott wrote: Jean-Marc Lasgouttes wrote: "Sam Liddicott" writes: If I use a layout with "Passthrough 1" then the Lyx "E" emphasis toolbar button will still insert \emph{} but other "CharStyle:" insets won't work. Is this a bug, or is there some way I can specify an inset so that it also inserts Latex macros into an environment defined with Passthrough 1 It is a bug. Note that the semantics of passthru paragraphs is not well defined right now. I hope that I will be able to improve this in 1.7/2.0 Please keep me involved in the discussions. I'm mostly re-written notangle in awk (to fix a few bugs) and so that it recognizes Latex macros I'm using the attached .layout file, which generates Latex like this; \begin{CodeScrap} \item [{new_chunk() }] function new_chunk(chunk_name) { active_chunk = chunk_name; chunks[chunk_name, "part", ++chunk[chunk_name, "part"] ] = chunk_name SUBSEP "chunklet" SUBSEP ++chunks[chunk_name, "chunklet"]; } \end{CodeScrap} Where the \item declares a chunk name. I also want a \usechunk{chunk-name} which will be shown in Lyx with a static label "use chunk", but I don't know if that can be done as an inset... I also want to be able to pass additional optional arguments to the \item. So although it is "passthrough" it has the same problems as verbatim does which is that it still looks for some Latex, in this case \item and \end{CodeScrap}, however I'm not too worried. I'll invent a \literal{} if I have to (which would have to be expressed in a CodeScrap as \literal{{\literal}} no doubt). (I'm also open to other notations if you have any suggestions). Sam #\DeclareLyXModule{Noweb Literate Lyx} #DescriptionBegin #Adds \usepackage{noweb} to your document, along with the Scrap style. #Also fixes the CharStyle:Code to work with noweb, redefining nowebs #\code command to \nwcode (if you need it). #DescriptionEnd Format 11 OutputType literate AddToPreamble \usepackage{noweb} % noweb breaks code command for logical markup \newcommand{\nwcode}{\code} \renewcommand{\code}[1]{\texttt{#1}} EndPreamble Style Scrap Category List MarginFirst_Dynamic LatexType Item_environment LatexName CodeScrap #NextNoIndent 1 NewLine 0 LeftMarginMMM LabelSep MMM ParSep0.4 TopSep0.4 BottomSep 0.4 ItemSep 0.4 Align Block AlignPossible Block,Left FreeSpacing 1 PassThru 1 LabelType Manual LabelFont Color magenta EndFont TextFont Color latex Family Typewriter EndFont End InsetLayout CharStyle:Chunkref LyxType charstyle LabelString chunkref LabelType static LatexType command LatexName chunkref Font Series bold Color black EndFont Preamble \newcommand{\chunkref}[1]{\texttt{#1}} EndPreamble End
Re: How to have 3 types of quotation marks
Ignacio García writes: > > > > On Ubuntu 9.04 and Gnome, I use the following key sequence: >: "«" guillemotleft >: "»" guillemotright > I use - ehm - Win XP SP3 Thanks anyway
Re: Emphasis with passthrough
Jean-Marc Lasgouttes wrote: "Sam Liddicott" writes: If I use a layout with "Passthrough 1" then the Lyx "E" emphasis toolbar button will still insert \emph{} but other "CharStyle:" insets won't work. Is this a bug, or is there some way I can specify an inset so that it also inserts Latex macros into an environment defined with Passthrough 1 It is a bug. Note that the semantics of passthru paragraphs is not well defined right now. I hope that I will be able to improve this in 1.7/2.0 Please keep me involved in the discussions. I'm mostly re-written notangle in awk (to fix a few bugs) and so that it recognizes Latex macros like \begin{CodeScrap} instead of <<...>>= and \end{CodeScrap} instead of @ And I want to use an inset instead of <<...>> for including chunks. I'm also intending to re-write noweave entirely as latex macros if I can manage it, based on the listings package. Sam
Re: Problems with indentation and linguistics module (covington)
Johannes Knaus wrote: > I added these lines to the preamble and now the numbers are correctly > indented but on the beginning/the left side they stand out a little > bit, seen from the left textborder. > That isn't the case without the lines above. You need to play with other list values such as \leftmargin. Adjusting lists can be a tricky business. Jürgen
Re: How to have 3 types of quotation marks
Piero writes: > I need 3 kinds of quotation marks: > > single quotation mark ('), double quotation mark ("), and caporal quotation mark > (« »). > > As I need both single and double quotation marks, I don't want to change > Document > settings > Language > quotestyle which now is set as "this" (and > allows me to use 'this' pressing the Alt key). > But as I use an italian keyboard, I would like to have a direct key binding also > to the "«" and "»" characters. The best would be to bind some combination, e. g. > > Alt + < = "«" > > and > > Alt + > = "»" (or Alt + Shift + < = "»") > > Another (smarter?) way would be a shortkey to change the auto "quote style" > setting to «quote style» (and back) > > but I have no clue on how to use the kmap file or similar. Any (starting) help? > On Ubuntu 9.04 and Gnome, I use the following key sequence: : "«" guillemotleft : "»" guillemotright (from /usr/share/X11/locale/en_US.UTF-8/Compose, I think is the one used for it_IT.UTF-8, the same as used for es_ES.UTF-8) These key combination works in LyX and many other applications. You must press Right Win (or your ComposeKey) and release it, then twice < (or >) In my system is associated to Right Win, this can be set in System > Preferences > Keyboard > Dists. > Options button Regards Ignacio
Re: Emphasis with passthrough
"Sam Liddicott" writes: > If I use a layout with "Passthrough 1" then the Lyx "E" emphasis toolbar > button will still insert \emph{} but other "CharStyle:" insets won't work. > > Is this a bug, or is there some way I can specify an inset so that it > also inserts Latex macros into an environment defined with Passthrough 1 It is a bug. Note that the semantics of passthru paragraphs is not well defined right now. I hope that I will be able to improve this in 1.7/2.0 JMarc
Emphasis with passthrough
If I use a layout with "Passthrough 1" then the Lyx "E" emphasis toolbar button will still insert \emph{} but other "CharStyle:" insets won't work. Is this a bug, or is there some way I can specify an inset so that it also inserts Latex macros into an environment defined with Passthrough 1 Sam
How to have 3 types of quotation marks
Hello, I wonder if there's a simple manner to solve this. I need 3 kinds of quotation marks: single quotation mark ('), double quotation mark ("), and caporal quotation mark (« »). As I need both single and double quotation marks, I don't want to change Document > settings > Language > quotestyle which now is set as "this" (and allows me to use 'this' pressing the Alt key). But as I use an italian keyboard, I would like to have a direct key binding also to the "«" and "»" characters. The best would be to bind some combination, e. g. Alt + < = "«" and Alt + > = "»" (or Alt + Shift + < = "»") Another (smarter?) way would be a shortkey to change the auto "quote style" setting to «quote style» (and back) but I have no clue on how to use the kmap file or similar. Any (starting) help? Thanks. Piero
Re: Problems with indentation and linguistics module (covington)
Can I correct this? How? \renewenvironment{example}{% \begin{examples}\settowidth{\labelwidth}{(0.00)}\item} {\end{examples}} Jürgen I added these lines to the preamble and now the numbers are correctly indented but on the beginning/the left side they stand out a little bit, seen from the left textborder. That isn't the case without the lines above. Roughly, it looks like this: text text text text text text text text text text text text text text text text text text text text text (3.10) Example Example text text text text text text text text text text text text text text text text text text text text text text text text text text text text Grüße, Johannes
Re: about word counter
Steve Litt wrote: > > Yes, LyX 1.6.4 introduces this feature. Look here (query for "bug 2566"): > > http://wiki.lyx.org/LyX/NewInBranch > > > > Jürgen > > Curious -- if you did "lyx -e text mydoc.lyx | wc -w" wouldn't that give > you a wordcount a fairly accurate without comments? Maybe, maybe not. LyX's word count is always only an approximation. If you need precise statistics, you'll have to count the words in the output (DVI, PDF), including bibliography, references, etc. Tools > Statistics is neat, fuzzy helper function, nothing more. Jürgen
Re: about word counter
On Thursday 06 August 2009 03:27:47 Jürgen Spitzmüller wrote: > Marcelo Acuña wrote: > > It seemed to me to have read that lyx 1.6.4 would have the feature that > > word in notes would not be counted, but I read the roadmap of this > > version and future 2.0 version and I can't see it > > Yes, LyX 1.6.4 introduces this feature. Look here (query for "bug 2566"): > http://wiki.lyx.org/LyX/NewInBranch > > Jürgen Curious -- if you did "lyx -e text mydoc.lyx | wc -w" wouldn't that give you a wordcount a fairly accurate without comments? SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: Eq numbering in ams article
Paul A. Rubin wrote: > Neal Becker wrote: >> Paul A. Rubin wrote: >> >>> Neal Becker wrote: In ams article, if I don't put a \section, equations are numbered as 0.1, 0.2, etc. What can I do about that? >>> The layout file is adding that (as well as the same convention for >>> numbering figures) to the preamble. There's a somewhat unhelpful >>> comment in the layout file to comment those lines out if you don't want >>> them -- the catch being that you cannot comment them out in the LyX doc; >>> you would have to export to LaTeX and comment them out (or delete them) >>> there. >>> >>> For the nonce, about the best suggestion I have is to hack the >>> amsart.layout file, remove either or both lines, and save it -- assuming >>> you *never* want to number within sections when using AMS article. >>> >>> Personally, I think the correct approach would be to omit those line >>> from the layout file and make an optional module for those who do want >>> numbering within sections. You might want to file a bug report on this. >>> >>> /Paul >> http://www.lyx.org/trac/ticket/6123 >> > > I've attached a hacked layout file and a couple of modules to the > ticket. If you have not already fixed this yourself, you can download > them to your local layouts directory, then reconfigure/restart LyX. > > /Paul Thanks!
Re: Eq numbering in ams article
Neal Becker wrote: Paul A. Rubin wrote: Neal Becker wrote: In ams article, if I don't put a \section, equations are numbered as 0.1, 0.2, etc. What can I do about that? The layout file is adding that (as well as the same convention for numbering figures) to the preamble. There's a somewhat unhelpful comment in the layout file to comment those lines out if you don't want them -- the catch being that you cannot comment them out in the LyX doc; you would have to export to LaTeX and comment them out (or delete them) there. For the nonce, about the best suggestion I have is to hack the amsart.layout file, remove either or both lines, and save it -- assuming you *never* want to number within sections when using AMS article. Personally, I think the correct approach would be to omit those line from the layout file and make an optional module for those who do want numbering within sections. You might want to file a bug report on this. /Paul http://www.lyx.org/trac/ticket/6123 I've attached a hacked layout file and a couple of modules to the ticket. If you have not already fixed this yourself, you can download them to your local layouts directory, then reconfigure/restart LyX. /Paul
Re: Drag and Drop
Well, the thing with the shortcuts: Ubuntu: Ctrl+X == Mac: Cmd+X (=the Command-Key, old Mac users still call it "Apple-Key" although there is no Apple on it any more but a kind of knot) and so on. Ah: I just tried it in Lyx on MacOSX: Alt+arrow and Ctrl+arrow do the same thing in Lyx. In Openoffice on MacOSX they behave differently (right arrow here): Alt+arrow == jump to the end of the next word Ctrl+arrow == no function, just as arrows alone Command+arrow == jump to end of the line Anyway, when I work with the GIMP on a Mac I have to use Ctrl+X instead of Cmd+X, as GIMP runs in a seperate X.org on a Mac. My Mac-only Editor uses Ctrl/Cmd or Alt+X to jump to the line endings. I have to learn shortcuts for each App. And when I switch Apps or even more when I switch OSes (what I frequently do: I work on a Mac, in the Lab we've got a WindowsXP-PC and my Netbook is running Ubuntu) I mix it up frequently. So maybe that's why I prefer to use a mouse: Every program uses different shortcuts but the mouse (nearly) always does what I intend. Greets, Johannes
Re: Drag and Drop
Am 06.08.2009 um 13:32 schrieb Nikos Alexandris: JFYI, gedit (GNOME's default text editor) has the Alt+Arrow(s) option to move selected line_s_ of text. I find it very convenient. Nikos This could be a nice alternative IMHO. Surely, another shortcut is needed, as Alt+Arrow is "jump to the end of the next word" on the Mac. So Ctrl+arrow and Alt+arrow do the same right now on a Mac. Johannes
Re: Drag and Drop
>> "Drag and drop" text is one the most annoying >> things I have found with word processors. It is too easy to do it by accident, not notice, and output garbage for people to read. > > I can't imagine how one could mark some text with the mouse hold-and-click it > and drag it around by accident. It is easy. By accident! It happens constantly of many forms. Regards Marcelo Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/
RE: Change display equation to ams align
Vincent van Ravesteijn - TNW wrote: >>If I typed in an equation as display, and the >>decide I'd like to turn it to ams align (multiline), >>how can I do this without loosing everything I already typed? >> >>Selecting the equation, then insert/math/ams align is >>exactly the way to destroy your work. > > Don't select the equation then :). > > If your cursor is in the equation, then Insert->Math->AMS Align converts > your equation type. Better is to use Edit->Math->Change Formula > Type->etc. > > Vincent Thanks. Missed that.
RE: Change display equation to ams align
>If I typed in an equation as display, and the >decide I'd like to turn it to ams align (multiline), >how can I do this without loosing everything I already typed? > >Selecting the equation, then insert/math/ams align is >exactly the way to destroy your work. Don't select the equation then :). If your cursor is in the equation, then Insert->Math->AMS Align converts your equation type. Better is to use Edit->Math->Change Formula Type->etc. Vincent
Change display equation to ams align
If I typed in an equation as display, and then decide I'd like to turn it to ams align (multiline), how can I do this without loosing everything I already typed? Selecting the equation, then insert/math/ams align is exactly the way to destroy your work.
Re: Eq numbering in ams article
Paul A. Rubin wrote: > Neal Becker wrote: >> In ams article, if I don't put a \section, equations are numbered as 0.1, >> 0.2, etc. What can I do about that? >> > > The layout file is adding that (as well as the same convention for > numbering figures) to the preamble. There's a somewhat unhelpful > comment in the layout file to comment those lines out if you don't want > them -- the catch being that you cannot comment them out in the LyX doc; > you would have to export to LaTeX and comment them out (or delete them) > there. > > For the nonce, about the best suggestion I have is to hack the > amsart.layout file, remove either or both lines, and save it -- assuming > you *never* want to number within sections when using AMS article. > > Personally, I think the correct approach would be to omit those line > from the layout file and make an optional module for those who do want > numbering within sections. You might want to file a bug report on this. > > /Paul http://www.lyx.org/trac/ticket/6123
Re: Problems with indentation and linguistics module (covington)
Johannes Knaus wrote: > So the indentation of the second line is to small. It seems that it is > aligned in the same depth as if the counter consisted of only one > number. > > Can I correct this? How? \renewenvironment{example}{% \begin{examples}\settowidth{\labelwidth}{(0.00)}\item} {\end{examples}} Jürgen
Re: Lyx 1.6.3 Can I ditch the pointNclick list of open files below the toolbars???
Joe(theWordy)Philbrook wrote: I'm using lyx 1.6.3 on Sabayon Linux 4.2. Which is fairly impressive BTW. I like most of the user interface. Well that is except that As a keyboard-centric user with very poor mouse coordination I always resent screen space taken up by point n' click specific tools such as most toolbars. For example if "+[space]" worked without that scrollbox attached to the "standard" toolbar the .ui file would say => Toolbars => "standard" "off,top" => "extra" "off,top" => "table" "off,bottom" => "math" "off,bottom" => "minibuffer" "off,bottom" => End As it is the only one I leave on is "standard". And that to keep the viability of the "3-key,2-stroke" keybinding "+[space]". Thus I put up with wasting a whole line of screen space on mostly useless stuff I would never ever "click" on. [...] BUT I would never ever wrestle with my mouse to get that (expletive deleted) pointer on the name of the document displayed with an [x] just under the toolbars... And that would be so, even if I wasn't just as likely to accidentally click on one of the [x]s... Is there any way to get them off my screen??? You can turn off all the toolbars if you like. I did not know that you could loose keybindings that way, but define the keybindings in a custom key binding file instead. That way, you can have the same keybindings without any toolbars. (And you can define other keybindings you find useful also.) To get rid of the document tabs too, open all your files in separate windows. (ALT+f w, or "File->New Window") Then, use your window manager to switch between them. This is usually performed by alt+tab, although some keyboard centric window managers might do it differently. Helge Hafting
Re: Drag and Drop
JFYI, gedit (GNOME's default text editor) has the Alt+Arrow(s) option to move selected line_s_ of text. I find it very convenient. Nikos
Re: Drag and Drop
Johannes Knaus wrote: First of all, I simply didn't realize that mouse drag'n'drop did not work in Lyx and thought this could maybe a platform specific issue, not a general one. On Fri, 2009-07-31 at 11:43 -0400, Michael Joyner: "Drag and drop" text is one the most annoying things I have found with word processors. It is too easy to do it by accident, not notice, and output garbage for people to read. I can't imagine how one could mark some text with the mouse hold-and-click it and drag it around by accident. Openoffice do this now and then. Firefox is very prone to this problem, but there it doesn't matter as you aren't actually editing the website. This is what happens: 1. User selects something with the mouse (click+drag+release) 2. User notices that the selection is slightly wrong. Maybe there is a letter too much or too little selected. 3. User tries to re-do the selection. (click+drag). The selection is supposed to start in the _same_ position, so it is very easy to accidentally grab the wrongly selected text. 4. Seeing things go wrong, the user release the mouse button and the text lands somewhere. :-( 5. The smart user does an angry undo, the not so smart try editing the document into shape again, the ignorant don't notice what happened, and merely select the text to be copied and goes on with that. I think the discussion on going on here is somewhat dogmatic. Many people use Ctrl+X and then Ctrl+V to shift textparts around. That's o.k. and that's what I do as I have no other chance in Lyx to do this. My point is: Drag and drop is something many Mac Users (I am one) and Windows users may be very used to in everyday work. So implementing this feature would make Lyx a little easier to work with when you are new to Lyx. If it can be done so that it isn't so accident prone - fine. Those who don't like drag and drop are not forced to use it, it would be just another editing option (maybe to be activated or deactivated via GUI). Still, I don't see the problem in having this feature – if you want to use it, use it, if not, don't. I don't think this can create any trouble by accident. See above. I do use the mouse for selections now and then, even if I use ctrl+c and ctrl+v to do the copying. Of course, LyX normally uses a nice large font, so it is somewhat less vulnerable to mis-selection. It certainly would be a problem, if implementing this feature really costs a lot of time. I simply don't know this as I'm not a programmer. Mouse marking is already implemented. So is copy and cut. So all it takes is to recognise that the user tries to drag the selection, and drop it somewhere. LyX could then: 1. Change the mouse cursor to a "drag text" cursor, when the drag starts. 2. Use the existing "copy" code that gets called upon ctrl+c. 3. Move the cursor as if the user had clicked the drop location 4. Use the existing "paste" code as if the user typed ctrl+v A "copy drag" might be easy. A "move drag" may be trickier, as the window changes upon "cut". The drop location then moves from where the pointer is. Perhaps the cut should be done at the beginning of the drag, so that the drop location will be valid. On the other hand, that makes aborting the drag harder instead. Helge Hafting
Problems with indentation and linguistics module (covington)
Hello, I've got a problem with the "example"-numbering in the linguistics module: I use the example-style to refer to OT-constraint definition (linguists may know what I'm talking about). Basically it always looks like this: (3.1) Constraint Name Constraint Definition This works fine and the two words "Constraint" are perfectly aligned under each other, i.e. have the same indentation (obviously better than in this email ;-). The problem occurs in a chapter (maybe I should note that I use KOMA- script book) where the counter grows above 9. This looks roughly like this: (3.10) Constraint Name Constraint Definition So the indentation of the second line is to small. It seems that it is aligned in the same depth as if the counter consisted of only one number. Can I correct this? How? Thanks for replying. Johannes
Re: about word counter
Marcelo Acuña wrote: > It seemed to me to have read that lyx 1.6.4 would have the feature that > word in notes would not be counted, but I read the roadmap of this version > and future 2.0 version and I can't see it Yes, LyX 1.6.4 introduces this feature. Look here (query for "bug 2566"): http://wiki.lyx.org/LyX/NewInBranch Jürgen
Re: 1D or linear input mode for math
On 2009-08-05, d.grel...@stud.uni-saarland.de wrote: > Hello everyone, > I'd like to disable LyX' automatic typesetting mechanism that makes my > \frac into two blue boxes with a fraction bar between them, that is, I > want to write 'pure' LaTeX code in math mode. You can type your formula as text, mark it and convert to math with e.g. Ctrl-m. For editing an existing formula, you might have success with copy and paste (with the mouse) to re-convert to TeX code as text and then again to math with Ctrl-m. This works also with copy from the source-view. > I find the 2d math mode slightly annoying, especially when writing > fractions and exponents since one has to use the arrow keys rather > often. The spacebar helps to get out of the exponent, indices and the denominator. What I find really annoying is that I cannot change the type of fraction (nicefrac, frac, simple /, ...) but have to copy the content to a new fraction. > I *could* use ERT, but I like the preview mechanism for > formulas in LyX, and I don't have that for ERT. Günter