Re: syntax highlighted code
On 15.11.07, Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines I recommend pygments: http://pygments.org/ Its a highly configurable, clean, documented Python package producing html or latex. I do not know about 4) Can wrap long lines however. Guenter
Re: using keyboard for mouse scrolling
sebastian guttenberg wrote: Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? You could try to bind screen-up and screen-down to some key combination (other than the PageDown and PageUp keys). Abdel.
Re: syntax highlighted code
Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines 4) Can wrap long lines I strongly recommend to use the listings package, it can do all of it. You can keep the listings in separate files, that are included in your lyx file. Furthermore, listings provides an escape to LaTeX mechanism, which lets you define labels for e.g. identifers or line numbers, so you can hyperref them from your LyX/LaTeX document as any other element. I don't know about groks, but listings already supports a huge bunch of languages and it is very easy to specify a new one. Daniel -- Dipl.-Inf. Daniel Lohmann (Wissenschaftlicher Mitarbeiter) Friedrich-Alexander-Universität Erlangen-Nürnberg Informatik 4 Martensstr. 1 91058 Erlangen Tel: +49-9131-8527904 Fax: +49-9131-8528732 WWW: www4.informatik.uni-erlangen.de/~lohmann eMail : [EMAIL PROTECTED]
A0 posters in LyX
I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Thanks. Mateo.
Re: syntax highlighted code
G. Milde wrote: On 15.11.07, Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines I recommend pygments: http://pygments.org/ Its a highly configurable, clean, documented Python package producing html or latex. I do not know about 4) Can wrap long lines however. Pygments was my first choice. In the end, I don't think I will use it. It can generate pdf via latex, but it uses fancyvrb. AFAICT, this doesn't allow line wrap, and the code for fancyvrb.sty is (to my eye) some of the scariest latex code I've seen.
Re: Fwd: Re: Fixed?
On Friday 16 November 2007 03:34, Wolfgang Engelmann wrote: Am Donnerstag, 15. November 2007 07:45 schrieben Sie: So you still cannot post?? Máté This is another trial to post a mail to the Lyx User group. Wolfgang I see this Wolfgang. Congratulations! SteveT
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
G. Milde [EMAIL PROTECTED] writes: Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using word-delete-forward, as this accidentially kills punctuation and the like. We can have a look at changing this behaviour. - emacs' forward-word jumps to the end of the current word (and likewise backaward-word jumps to the beginning of prev. word) - everybody else (openoffice, msword, Qt textedit...) jumps over space but not punctuation. What do you want? JMarc
word-forward skips trailing non-word characters (LyX 1.5.2)
Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using word-delete-forward, as this accidentially kills punctuation and the like. How do you deal with this situation? Are there workarounds? (Maybe binding a command sequence to C-Delete?) Guenter
Re: Command disable
Nicolás [EMAIL PROTECTED] writes: I get a command disabled message when I press Crtl-TAB, which is bound to buffer-next in the cua.bind file. However, If I press Ctrl-PgUp or execute the command directly from the mini-buffer, I obtain the desired result. Thie means that it is not the buffer-next command taht is disbaled, but its invocation via Ctrl-TAB. Any clue about this? Actually, C-Tab is not really bound to buffer-next, because in math.bind there is \bind C-Tab cell-split So it is the cell-split function that is disabled, not buffer-next. I do not know whether this cell-split function is useful though. Andre'? JMarc
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
On Nov 16, 2007, at 5:10 AM, Jean-Marc Lasgouttes wrote: G. Milde [EMAIL PROTECTED] writes: Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using word-delete-forward, as this accidentially kills punctuation and the like. We can have a look at changing this behaviour. - emacs' forward-word jumps to the end of the current word (and likewise backaward-word jumps to the beginning of prev. word) - everybody else (openoffice, msword, Qt textedit...) jumps over space but not punctuation. What do you want? The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in I don't, LyX will go from after the I to after the n to after the t, whereas Mac standard is to go straight from after the I to after the t. Bennett
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
Bennett Helm [EMAIL PROTECTED] writes: The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. This is what emacs does. In the meantime, I have implemented the other possibility, the one that works like PC programs. I would be interested to see people test it and tell me whether it is better than the current one. Implementing the mac behaviour via either a hidden pref or a parameter to the lfun (to use different bindings) would be possible. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in I don't, LyX will go from after the I to after the n to after the t, whereas Mac standard is to go straight from after the I to after the t. What does the mac do when a word is enclosed by apostrophes? JMarc svndiff src/Text.cpp Index: src/Text.cpp === --- src/Text.cpp (révision 21639) +++ src/Text.cpp (copie de travail) @@ -815,19 +815,25 @@ bool Text::cursorRightOneWord(Cursor c BOOST_ASSERT(this == cur.text()); Cursor old = cur; - - if (old.pos() == old.lastpos() old.pit() != old.lastpit()) { - ++old.pit(); - old.pos() = 0; + pos_type const lastpos = old.lastpos(); + pit_type pit = old.pit(); + pos_type pos = old.pos(); + + if (pos == lastpos pit != old.lastpit()) { + ++pit; + pos = 0; } else { + Paragraph par = old.paragraph(); + // at least one step + ++pos; // Advance through word. - while (old.pos() != old.lastpos() old.paragraph().isLetter(old.pos())) - ++old.pos(); - // Skip through trailing nonword stuff. - while (old.pos() != old.lastpos() !old.paragraph().isLetter(old.pos())) - ++old.pos(); + while (pos != lastpos par.isLetter(pos)) + ++pos; + // Skip through trailing spaces. + while (pos != lastpos par.isSeparator(pos)) + ++pos; } - return setCursor(cur, old.pit(), old.pos()); + return setCursor(cur, pit, pos); } @@ -836,19 +842,23 @@ bool Text::cursorLeftOneWord(Cursor cu BOOST_ASSERT(this == cur.text()); Cursor old = cur; + pos_type pos = old.pos(); - if (old.pos() == 0 old.pit() != 0) { + if (pos == 0 old.pit() != 0) { --old.pit(); - old.pos() = old.lastpos(); + pos = old.lastpos(); } else { - // Skip through initial nonword stuff. - while (old.pos() != 0 !old.paragraph().isLetter(old.pos() - 1)) - --old.pos(); + Paragraph par = old.paragraph(); + // at least one step + --pos; + // Skip through spaces. + while (pos != 0 par.isSeparator(pos - 1)) + --pos; // Advance through word. - while (old.pos() != 0 old.paragraph().isLetter(old.pos() - 1)) - --old.pos(); + while (pos != 0 par.isLetter(pos - 1)) + --pos; } - return setCursor(cur, old.pit(), old.pos()); + return setCursor(cur, old.pit(), pos); }
Change PDF viewer (windows)
Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools -- Preferences -- File formats, but * absolut path did not work * adding the path to the viewer exe to Tools -- Preferences -- Paths -- PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby
Re: errors during the latex run
e-letter wrote: Readers, I am trying to create a custom bibtex style file, using the merlin.mbs function. When I try to preview the lyx document in the di viewer I get an error about the latex run, furthermore stating I should try to fix them. How do I find out what were the errors in the first instance? Document - LaTeX Log should show them. /Paul
Re: A0 posters in LyX
On Friday 16 November 2007, [EMAIL PROTECTED] wrote: I wanted to have the facility of generating a clean design -- like what the beamer/LyX combination gives you-- together with my references properly formatted with bibtex. Could I get a beamer presentation onto one A4 landscape page? The trouble I see is with the font sizes, as beamer makes everything quite large for a screen layout. I haven't used beamer, but I do use powerdot -- a similar class -- on a regular basis, and I can see the problem with fonts. If you have a relatively large amount of text, and relatively few figures (even if they are fairly large) you might get good results with a very straightforward approach using article class and the multicol package to put perhaps three columns onto a single landscape page. With this method I'd put the figures and tables in floats and let LaTeX figure out where to put them -- but I'd also expect to waste a lot of time juggling margins, font sizes and spacing to fill the page without overflowing it. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
Re: Tibetan Unicode
Sam Sabra wrote: Hello everybody, I was wondering if anybody knows how to get Tibetan Unicode working with LyX. I would like to be able to write documents in multiple languages (Tibetan, Sanskrit, English) and was wondering if this is possible with LyX 1.5 given that Unicode is now supported. I've installed the Windows version of LyX and haven't had any luck myself, though I've had some success getting Tibetan Unicode to work with Xetex with Tibetan fonts from the windows system fonts directory. Any help would be much appreciated. Thank you for all your hard work and kindness, There are two ways to do this: 1. Latex already supports english. If you can get packages that support tibetan and sanskrit, load them from the preamble. You should then be able to write trilingual. I do not know if such packages exists though. 2. Write unicode in LyX (tibetan, sanskrit english entered directly without language support), export a latex file from LyX and process that file with xetex. (Change fonts the same way as you did with xetex before, put the commands in ERT insets in LyX). In document-settings-language, set the encoding to utf-8 plain Helge Hafting
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
On Nov 16, 2007, at 12:00 PM, Jean-Marc Lasgouttes wrote: Bennett Helm [EMAIL PROTECTED] writes: The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. This is what emacs does. In the meantime, I have implemented the other possibility, the one that works like PC programs. I would be interested to see people test it and tell me whether it is better than the current one. Implementing the mac behaviour via either a hidden pref or a parameter to the lfun (to use different bindings) would be possible. Clearly you won't satisfy everyone with a single choice, and I think having too many choices is bad for most users. So this seems like a good compromise. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in I don't, LyX will go from after the I to after the n to after the t, whereas Mac standard is to go straight from after the I to after the t. What does the mac do when a word is enclosed by apostrophes? I think this is an accurate general description on Mac: 1. Most punctuation (except for apostrophes) signal word boundaries. Thus, lyx.app gets treated as two words, but don't is treated as one. Similarly, 'hello' and 'hello' are treated as one word. 2. Punctuation is not considered a part of a word, and word jumping is always to the beginning or end of a word. Thus, forward-word jumps starting from the first character would leave the cursor in these positions: lyx|.app, don't|, 'hello|', 'hello|', etc. 3. When jumping by paragraphs, every return is treated as a paragraph boundary, and moving forward by paragraphs puts the cursor at the end of the paragraph (after *all* characters -- including punctuation and spaces), whereas moving backward by paragraphs puts the cursor at the beginning of the paragraph (before *all* characters). (Note that this is different from current LyX behavior.) Bennett
using keyboard for mouse scrolling
Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? (I am using gnome, by the way) - Sebastian -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: A0 posters in LyX
On Friday 16 November 2007, [EMAIL PROTECTED] wrote: I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Mateo, Last time I had a poster paper to present I spent quite a while researching the possibilities using LyX, and ended up using Scribus. But the best solution depends on exactly what you want to put on the poster. The more complicated it gets, and the more graphics you want to use, the harder it becomes to use LyX (or LaTeX). No matter what software you use, there is a lot to be said for generating the poster at a manageable size such as A4, then enlarging it at the plotting stage. That way you don't put things in that are too small to be viewed properly on the poster when it is displayed. My posters are plotted using SDI plotting software which allows any desired scaling as the poster is sent to the plotter, so no specific tool is needed to enlarge it. Many other printer and plotter drivers can do the same. If I did use LyX, I would most likely use minipages to control layout -- but even with them, it's hard to get things looking right. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
letter layout
I'm trying to use the standard letter layout but when I compile I get a message saying that \opening is an undefined control sequence, yet, letter.cls is installed and latex and lyx are both able to find it. Is this a bug? PS: I'm running LyX 1.5.2 on Vista, with MiKTeX 2.6. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
Re: using keyboard for mouse scrolling
Abdelrazak Younes wrote: sebastian guttenberg wrote: Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? You could try to bind screen-up and screen-down to some key combination (other than the PageDown and PageUp keys). Hum, no I just try that with the minibuffer: the cursor moves with it. Add a enhancement request to bugzilla ;-) Abdel.
Re: A0 posters in LyX
On Friday 16 November 2007 14:10, Les Denham wrote: On Friday 16 November 2007, [EMAIL PROTECTED] wrote: I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Mateo, Last time I had a poster paper to present I spent quite a while researching the possibilities using LyX, and ended up using Scribus. But the best solution depends on exactly what you want to put on the poster. The more complicated it gets, and the more graphics you want to use, the harder it becomes to use LyX (or LaTeX). I have created my graphics with Inkscape. By what I see, it might make sense to continue using Inkscape for the full poster. I wanted to have the facility of generating a clean design -- like what the beamer/LyX combination gives you-- together with my references properly formatted with bibtex. Could I get a beamer presentation onto one A4 landscape page? The trouble I see is with the font sizes, as beamer makes everything quite large for a screen layout. No matter what software you use, there is a lot to be said for generating the poster at a manageable size such as A4, then enlarging it at the plotting stage. That way you don't put things in that are too small to be viewed properly on the poster when it is displayed. My posters are plotted using SDI plotting software which allows any desired scaling as the poster is sent to the plotter, so no specific tool is needed to enlarge it. Many other printer and plotter drivers can do the same. If I did use LyX, I would most likely use minipages to control layout -- but even with them, it's hard to get things looking right.
Re: letter layout
On 11/16/07, Ernesto Posse [EMAIL PROTECTED] wrote: I'm trying to use the standard letter layout but when I compile I get a message saying that \opening is an undefined control sequence, This may be irrelevant, but are you using the letter template shipped with LyX? One thing I know is that Signature is a mandatory field, and that it need be before opening, or smth similar. Try with the template to be sure you do not mess up with these limitations. Regards, Liviu
Re: letter layout
Yes, I'm using the one shipped with LyX. I was using the signature but after opening. Nevertheless, after moving the signature to the top I also get the same undefined control sequence error. But apparently the SendTo address is also mandatory and should go before the opening as well. That seems to fix the problem. It would be nice if the documentation described these dependencies. I did't find anything about it. On Nov 16, 2007 3:51 PM, Liviu Andronic [EMAIL PROTECTED] wrote: On 11/16/07, Ernesto Posse [EMAIL PROTECTED] wrote: I'm trying to use the standard letter layout but when I compile I get a message saying that \opening is an undefined control sequence, This may be irrelevant, but are you using the letter template shipped with LyX? One thing I know is that Signature is a mandatory field, and that it need be before opening, or smth similar. Try with the template to be sure you do not mess up with these limitations. Regards, Liviu -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
re; errors during latex run
Below is the log file for the attempt to create a new bibtex file. Yours, This is TeX, Version 3.14159 (Web2C 7.4.5) (format=latex 2003.9.11) 15 NOV 2007 23:15 **./authordateelectronic.dbj (./authordateelectronic.dbj LaTeX2e 2001/06/01 Babel v3.7h and hyphenation patterns for american, french, german, ngerman, b asque, italian, portuges, russian, spanish, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/docstrip.tex \blockLevel=\count79 \emptyLines=\count80 \processedLines=\count81 \commentsRemoved=\count82 \commentsPassed=\count83 \codeLinesPassed=\count84 \TotalprocessedLines=\count85 \TotalcommentsRemoved=\count86 \TotalcommentsPassed=\count87 \TotalcodeLinesPassed=\count88 \NumberOfFiles=\count89 \inFile=\read1 \inputcheck=\read2 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Utility: `docstrip' 2.5b 1998/04/28 English documentation1999/03/31 ** * This program converts documented macro-files into fast * * loadable files by stripping off (nearly) all comments! * ** * No Configuration file found, using default settings. * ) Generating file(s) ./authordateelectronic.bst \openout0 = `./authordateelectronic.bst'. Processing file merlin.mbs (ay,har,harnm,nm-rev,ed-rev,nmlm,x2,m2,dt-jnl,note-y r,tit-it,atit-u,jttl-rm,pgsep-s,num-xser,bkpg-par,pre-edn,isbn,issn,fin-bare,xe dn,and-xcom,etal-it,url,url-nl) - authordateelectronic.bst Lines processed: 8772 Comments removed: 3617 Comments passed: 1 Codelines passed: 3509 ) Here is how much of TeX's memory you used: 602 strings out of 95796 5298 string characters out of 1191756 58175 words of memory out of 101 3631 multiletter control sequences out of 1+5 3640 words of font info for 14 fonts, out of 50 for 1000 26 hyphenation exceptions out of 1000 13i,0n,15p,343b,407s stack positions out of 3000i,1500n,5000p,20b,15000s No pages of output.
Re: syntax highlighted code
On 15.11.07, Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines I recommend pygments: http://pygments.org/ Its a highly configurable, clean, documented Python package producing html or latex. I do not know about 4) Can wrap long lines however. Guenter
Re: using keyboard for mouse scrolling
sebastian guttenberg wrote: Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? You could try to bind screen-up and screen-down to some key combination (other than the PageDown and PageUp keys). Abdel.
Re: syntax highlighted code
Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines 4) Can wrap long lines I strongly recommend to use the listings package, it can do all of it. You can keep the listings in separate files, that are included in your lyx file. Furthermore, listings provides an escape to LaTeX mechanism, which lets you define labels for e.g. identifers or line numbers, so you can hyperref them from your LyX/LaTeX document as any other element. I don't know about groks, but listings already supports a huge bunch of languages and it is very easy to specify a new one. Daniel -- Dipl.-Inf. Daniel Lohmann (Wissenschaftlicher Mitarbeiter) Friedrich-Alexander-Universität Erlangen-Nürnberg Informatik 4 Martensstr. 1 91058 Erlangen Tel: +49-9131-8527904 Fax: +49-9131-8528732 WWW: www4.informatik.uni-erlangen.de/~lohmann eMail : [EMAIL PROTECTED]
A0 posters in LyX
I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Thanks. Mateo.
Re: syntax highlighted code
G. Milde wrote: On 15.11.07, Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines I recommend pygments: http://pygments.org/ Its a highly configurable, clean, documented Python package producing html or latex. I do not know about 4) Can wrap long lines however. Pygments was my first choice. In the end, I don't think I will use it. It can generate pdf via latex, but it uses fancyvrb. AFAICT, this doesn't allow line wrap, and the code for fancyvrb.sty is (to my eye) some of the scariest latex code I've seen.
Re: Fwd: Re: Fixed?
On Friday 16 November 2007 03:34, Wolfgang Engelmann wrote: Am Donnerstag, 15. November 2007 07:45 schrieben Sie: So you still cannot post?? Máté This is another trial to post a mail to the Lyx User group. Wolfgang I see this Wolfgang. Congratulations! SteveT
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
G. Milde [EMAIL PROTECTED] writes: Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using word-delete-forward, as this accidentially kills punctuation and the like. We can have a look at changing this behaviour. - emacs' forward-word jumps to the end of the current word (and likewise backaward-word jumps to the beginning of prev. word) - everybody else (openoffice, msword, Qt textedit...) jumps over space but not punctuation. What do you want? JMarc
word-forward skips trailing non-word characters (LyX 1.5.2)
Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using word-delete-forward, as this accidentially kills punctuation and the like. How do you deal with this situation? Are there workarounds? (Maybe binding a command sequence to C-Delete?) Guenter
Re: Command disable
Nicolás [EMAIL PROTECTED] writes: I get a command disabled message when I press Crtl-TAB, which is bound to buffer-next in the cua.bind file. However, If I press Ctrl-PgUp or execute the command directly from the mini-buffer, I obtain the desired result. Thie means that it is not the buffer-next command taht is disbaled, but its invocation via Ctrl-TAB. Any clue about this? Actually, C-Tab is not really bound to buffer-next, because in math.bind there is \bind C-Tab cell-split So it is the cell-split function that is disabled, not buffer-next. I do not know whether this cell-split function is useful though. Andre'? JMarc
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
On Nov 16, 2007, at 5:10 AM, Jean-Marc Lasgouttes wrote: G. Milde [EMAIL PROTECTED] writes: Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using word-delete-forward, as this accidentially kills punctuation and the like. We can have a look at changing this behaviour. - emacs' forward-word jumps to the end of the current word (and likewise backaward-word jumps to the beginning of prev. word) - everybody else (openoffice, msword, Qt textedit...) jumps over space but not punctuation. What do you want? The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in I don't, LyX will go from after the I to after the n to after the t, whereas Mac standard is to go straight from after the I to after the t. Bennett
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
Bennett Helm [EMAIL PROTECTED] writes: The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. This is what emacs does. In the meantime, I have implemented the other possibility, the one that works like PC programs. I would be interested to see people test it and tell me whether it is better than the current one. Implementing the mac behaviour via either a hidden pref or a parameter to the lfun (to use different bindings) would be possible. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in I don't, LyX will go from after the I to after the n to after the t, whereas Mac standard is to go straight from after the I to after the t. What does the mac do when a word is enclosed by apostrophes? JMarc svndiff src/Text.cpp Index: src/Text.cpp === --- src/Text.cpp (révision 21639) +++ src/Text.cpp (copie de travail) @@ -815,19 +815,25 @@ bool Text::cursorRightOneWord(Cursor c BOOST_ASSERT(this == cur.text()); Cursor old = cur; - - if (old.pos() == old.lastpos() old.pit() != old.lastpit()) { - ++old.pit(); - old.pos() = 0; + pos_type const lastpos = old.lastpos(); + pit_type pit = old.pit(); + pos_type pos = old.pos(); + + if (pos == lastpos pit != old.lastpit()) { + ++pit; + pos = 0; } else { + Paragraph par = old.paragraph(); + // at least one step + ++pos; // Advance through word. - while (old.pos() != old.lastpos() old.paragraph().isLetter(old.pos())) - ++old.pos(); - // Skip through trailing nonword stuff. - while (old.pos() != old.lastpos() !old.paragraph().isLetter(old.pos())) - ++old.pos(); + while (pos != lastpos par.isLetter(pos)) + ++pos; + // Skip through trailing spaces. + while (pos != lastpos par.isSeparator(pos)) + ++pos; } - return setCursor(cur, old.pit(), old.pos()); + return setCursor(cur, pit, pos); } @@ -836,19 +842,23 @@ bool Text::cursorLeftOneWord(Cursor cu BOOST_ASSERT(this == cur.text()); Cursor old = cur; + pos_type pos = old.pos(); - if (old.pos() == 0 old.pit() != 0) { + if (pos == 0 old.pit() != 0) { --old.pit(); - old.pos() = old.lastpos(); + pos = old.lastpos(); } else { - // Skip through initial nonword stuff. - while (old.pos() != 0 !old.paragraph().isLetter(old.pos() - 1)) - --old.pos(); + Paragraph par = old.paragraph(); + // at least one step + --pos; + // Skip through spaces. + while (pos != 0 par.isSeparator(pos - 1)) + --pos; // Advance through word. - while (old.pos() != 0 old.paragraph().isLetter(old.pos() - 1)) - --old.pos(); + while (pos != 0 par.isLetter(pos - 1)) + --pos; } - return setCursor(cur, old.pit(), old.pos()); + return setCursor(cur, old.pit(), pos); }
Change PDF viewer (windows)
Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools -- Preferences -- File formats, but * absolut path did not work * adding the path to the viewer exe to Tools -- Preferences -- Paths -- PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby
Re: errors during the latex run
e-letter wrote: Readers, I am trying to create a custom bibtex style file, using the merlin.mbs function. When I try to preview the lyx document in the di viewer I get an error about the latex run, furthermore stating I should try to fix them. How do I find out what were the errors in the first instance? Document - LaTeX Log should show them. /Paul
Re: A0 posters in LyX
On Friday 16 November 2007, [EMAIL PROTECTED] wrote: I wanted to have the facility of generating a clean design -- like what the beamer/LyX combination gives you-- together with my references properly formatted with bibtex. Could I get a beamer presentation onto one A4 landscape page? The trouble I see is with the font sizes, as beamer makes everything quite large for a screen layout. I haven't used beamer, but I do use powerdot -- a similar class -- on a regular basis, and I can see the problem with fonts. If you have a relatively large amount of text, and relatively few figures (even if they are fairly large) you might get good results with a very straightforward approach using article class and the multicol package to put perhaps three columns onto a single landscape page. With this method I'd put the figures and tables in floats and let LaTeX figure out where to put them -- but I'd also expect to waste a lot of time juggling margins, font sizes and spacing to fill the page without overflowing it. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
Re: Tibetan Unicode
Sam Sabra wrote: Hello everybody, I was wondering if anybody knows how to get Tibetan Unicode working with LyX. I would like to be able to write documents in multiple languages (Tibetan, Sanskrit, English) and was wondering if this is possible with LyX 1.5 given that Unicode is now supported. I've installed the Windows version of LyX and haven't had any luck myself, though I've had some success getting Tibetan Unicode to work with Xetex with Tibetan fonts from the windows system fonts directory. Any help would be much appreciated. Thank you for all your hard work and kindness, There are two ways to do this: 1. Latex already supports english. If you can get packages that support tibetan and sanskrit, load them from the preamble. You should then be able to write trilingual. I do not know if such packages exists though. 2. Write unicode in LyX (tibetan, sanskrit english entered directly without language support), export a latex file from LyX and process that file with xetex. (Change fonts the same way as you did with xetex before, put the commands in ERT insets in LyX). In document-settings-language, set the encoding to utf-8 plain Helge Hafting
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
On Nov 16, 2007, at 12:00 PM, Jean-Marc Lasgouttes wrote: Bennett Helm [EMAIL PROTECTED] writes: The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. This is what emacs does. In the meantime, I have implemented the other possibility, the one that works like PC programs. I would be interested to see people test it and tell me whether it is better than the current one. Implementing the mac behaviour via either a hidden pref or a parameter to the lfun (to use different bindings) would be possible. Clearly you won't satisfy everyone with a single choice, and I think having too many choices is bad for most users. So this seems like a good compromise. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in I don't, LyX will go from after the I to after the n to after the t, whereas Mac standard is to go straight from after the I to after the t. What does the mac do when a word is enclosed by apostrophes? I think this is an accurate general description on Mac: 1. Most punctuation (except for apostrophes) signal word boundaries. Thus, lyx.app gets treated as two words, but don't is treated as one. Similarly, 'hello' and 'hello' are treated as one word. 2. Punctuation is not considered a part of a word, and word jumping is always to the beginning or end of a word. Thus, forward-word jumps starting from the first character would leave the cursor in these positions: lyx|.app, don't|, 'hello|', 'hello|', etc. 3. When jumping by paragraphs, every return is treated as a paragraph boundary, and moving forward by paragraphs puts the cursor at the end of the paragraph (after *all* characters -- including punctuation and spaces), whereas moving backward by paragraphs puts the cursor at the beginning of the paragraph (before *all* characters). (Note that this is different from current LyX behavior.) Bennett
using keyboard for mouse scrolling
Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? (I am using gnome, by the way) - Sebastian -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: A0 posters in LyX
On Friday 16 November 2007, [EMAIL PROTECTED] wrote: I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Mateo, Last time I had a poster paper to present I spent quite a while researching the possibilities using LyX, and ended up using Scribus. But the best solution depends on exactly what you want to put on the poster. The more complicated it gets, and the more graphics you want to use, the harder it becomes to use LyX (or LaTeX). No matter what software you use, there is a lot to be said for generating the poster at a manageable size such as A4, then enlarging it at the plotting stage. That way you don't put things in that are too small to be viewed properly on the poster when it is displayed. My posters are plotted using SDI plotting software which allows any desired scaling as the poster is sent to the plotter, so no specific tool is needed to enlarge it. Many other printer and plotter drivers can do the same. If I did use LyX, I would most likely use minipages to control layout -- but even with them, it's hard to get things looking right. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
letter layout
I'm trying to use the standard letter layout but when I compile I get a message saying that \opening is an undefined control sequence, yet, letter.cls is installed and latex and lyx are both able to find it. Is this a bug? PS: I'm running LyX 1.5.2 on Vista, with MiKTeX 2.6. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
Re: using keyboard for mouse scrolling
Abdelrazak Younes wrote: sebastian guttenberg wrote: Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? You could try to bind screen-up and screen-down to some key combination (other than the PageDown and PageUp keys). Hum, no I just try that with the minibuffer: the cursor moves with it. Add a enhancement request to bugzilla ;-) Abdel.
Re: A0 posters in LyX
On Friday 16 November 2007 14:10, Les Denham wrote: On Friday 16 November 2007, [EMAIL PROTECTED] wrote: I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Mateo, Last time I had a poster paper to present I spent quite a while researching the possibilities using LyX, and ended up using Scribus. But the best solution depends on exactly what you want to put on the poster. The more complicated it gets, and the more graphics you want to use, the harder it becomes to use LyX (or LaTeX). I have created my graphics with Inkscape. By what I see, it might make sense to continue using Inkscape for the full poster. I wanted to have the facility of generating a clean design -- like what the beamer/LyX combination gives you-- together with my references properly formatted with bibtex. Could I get a beamer presentation onto one A4 landscape page? The trouble I see is with the font sizes, as beamer makes everything quite large for a screen layout. No matter what software you use, there is a lot to be said for generating the poster at a manageable size such as A4, then enlarging it at the plotting stage. That way you don't put things in that are too small to be viewed properly on the poster when it is displayed. My posters are plotted using SDI plotting software which allows any desired scaling as the poster is sent to the plotter, so no specific tool is needed to enlarge it. Many other printer and plotter drivers can do the same. If I did use LyX, I would most likely use minipages to control layout -- but even with them, it's hard to get things looking right.
Re: letter layout
On 11/16/07, Ernesto Posse [EMAIL PROTECTED] wrote: I'm trying to use the standard letter layout but when I compile I get a message saying that \opening is an undefined control sequence, This may be irrelevant, but are you using the letter template shipped with LyX? One thing I know is that Signature is a mandatory field, and that it need be before opening, or smth similar. Try with the template to be sure you do not mess up with these limitations. Regards, Liviu
Re: letter layout
Yes, I'm using the one shipped with LyX. I was using the signature but after opening. Nevertheless, after moving the signature to the top I also get the same undefined control sequence error. But apparently the SendTo address is also mandatory and should go before the opening as well. That seems to fix the problem. It would be nice if the documentation described these dependencies. I did't find anything about it. On Nov 16, 2007 3:51 PM, Liviu Andronic [EMAIL PROTECTED] wrote: On 11/16/07, Ernesto Posse [EMAIL PROTECTED] wrote: I'm trying to use the standard letter layout but when I compile I get a message saying that \opening is an undefined control sequence, This may be irrelevant, but are you using the letter template shipped with LyX? One thing I know is that Signature is a mandatory field, and that it need be before opening, or smth similar. Try with the template to be sure you do not mess up with these limitations. Regards, Liviu -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
re; errors during latex run
Below is the log file for the attempt to create a new bibtex file. Yours, This is TeX, Version 3.14159 (Web2C 7.4.5) (format=latex 2003.9.11) 15 NOV 2007 23:15 **./authordateelectronic.dbj (./authordateelectronic.dbj LaTeX2e 2001/06/01 Babel v3.7h and hyphenation patterns for american, french, german, ngerman, b asque, italian, portuges, russian, spanish, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/docstrip.tex \blockLevel=\count79 \emptyLines=\count80 \processedLines=\count81 \commentsRemoved=\count82 \commentsPassed=\count83 \codeLinesPassed=\count84 \TotalprocessedLines=\count85 \TotalcommentsRemoved=\count86 \TotalcommentsPassed=\count87 \TotalcodeLinesPassed=\count88 \NumberOfFiles=\count89 \inFile=\read1 \inputcheck=\read2 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Utility: `docstrip' 2.5b 1998/04/28 English documentation1999/03/31 ** * This program converts documented macro-files into fast * * loadable files by stripping off (nearly) all comments! * ** * No Configuration file found, using default settings. * ) Generating file(s) ./authordateelectronic.bst \openout0 = `./authordateelectronic.bst'. Processing file merlin.mbs (ay,har,harnm,nm-rev,ed-rev,nmlm,x2,m2,dt-jnl,note-y r,tit-it,atit-u,jttl-rm,pgsep-s,num-xser,bkpg-par,pre-edn,isbn,issn,fin-bare,xe dn,and-xcom,etal-it,url,url-nl) - authordateelectronic.bst Lines processed: 8772 Comments removed: 3617 Comments passed: 1 Codelines passed: 3509 ) Here is how much of TeX's memory you used: 602 strings out of 95796 5298 string characters out of 1191756 58175 words of memory out of 101 3631 multiletter control sequences out of 1+5 3640 words of font info for 14 fonts, out of 50 for 1000 26 hyphenation exceptions out of 1000 13i,0n,15p,343b,407s stack positions out of 3000i,1500n,5000p,20b,15000s No pages of output.
Re: syntax highlighted code
On 15.11.07, Neal Becker wrote: > I want to put hyperlinks in my pdf output to syntax highlighted code > listings. I wonder if anyone can recommend a syntax highlighter that: > 1) groks c++ and python (at least) > 2) outputs pdf > 3) Can number lines I recommend pygments: http://pygments.org/ Its a highly configurable, clean, documented Python package producing html or latex. I do not know about > 4) Can wrap long lines however. Guenter
Re: using keyboard for mouse scrolling
sebastian guttenberg wrote: Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? You could try to bind "screen-up" and "screen-down" to some key combination (other than the PageDown and PageUp keys). Abdel.
Re: syntax highlighted code
Neal Becker wrote: I want to put hyperlinks in my pdf output to syntax highlighted code listings. I wonder if anyone can recommend a syntax highlighter that: 1) groks c++ and python (at least) 2) outputs pdf 3) Can number lines 4) Can wrap long lines I strongly recommend to use the listings package, it can do all of it. You can keep the listings in separate files, that are included in your lyx file. Furthermore, listings provides an "escape to LaTeX" mechanism, which lets you define labels for e.g. identifers or line numbers, so you can hyperref them from your LyX/LaTeX document as any other element. I don't know about groks, but listings already supports a huge bunch of languages and it is very easy to specify a new one. Daniel -- Dipl.-Inf. Daniel Lohmann (Wissenschaftlicher Mitarbeiter) Friedrich-Alexander-Universität Erlangen-Nürnberg Informatik 4 Martensstr. 1 91058 Erlangen Tel: +49-9131-8527904 Fax: +49-9131-8528732 WWW: www4.informatik.uni-erlangen.de/~lohmann eMail : [EMAIL PROTECTED]
A0 posters in LyX
I've found several references through Google search on how to create an a0poster.layout, but I haven't found any tips on what LyX tools to use to create a poster. Should I use minipages and fixed floats for graphics and tables, or, should I use columns? Any special handling of fonts? What about background decorations or watermarks? Or, should I design a one-page (A4) landscape APA article layout and use a tool like psa4toa0.sh to enlarge it? Anyone have an example a0poster that they produced with LyX that they could share? Thanks. Mateo.
Re: syntax highlighted code
G. Milde wrote: > On 15.11.07, Neal Becker wrote: >> I want to put hyperlinks in my pdf output to syntax highlighted code >> listings. I wonder if anyone can recommend a syntax highlighter that: > >> 1) groks c++ and python (at least) >> 2) outputs pdf >> 3) Can number lines > > I recommend pygments: http://pygments.org/ > Its a highly configurable, clean, documented Python package producing html > or latex. > > I do not know about >> 4) Can wrap long lines > however. > Pygments was my first choice. In the end, I don't think I will use it. It can generate pdf via latex, but it uses fancyvrb. AFAICT, this doesn't allow line wrap, and the code for fancyvrb.sty is (to my eye) some of the scariest latex code I've seen.
Re: Fwd: Re: Fixed?
On Friday 16 November 2007 03:34, Wolfgang Engelmann wrote: > Am Donnerstag, 15. November 2007 07:45 schrieben Sie: > > So you still cannot post?? > > > > Máté > > This is another trial to post a mail to the Lyx User group. > > Wolfgang I see this Wolfgang. Congratulations! SteveT
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
"G. Milde" <[EMAIL PROTECTED]> writes: > Dear LyXers, > > since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no > longer skip to the end of a word but also skips trailing non-word space, be > it whitespace, punctuation, citation or float insets, etc. > > This means that jumping to the end of a word is no longer possible. Both, > word-forward and word-backward jump to the begin of a word. > > This is especially annoying when using "word-delete-forward", as this > accidentially kills punctuation and the like. We can have a look at changing this behaviour. - emacs' forward-word jumps to the end of the current word (and likewise backaward-word jumps to the beginning of prev. word) - everybody else (openoffice, msword, Qt textedit...) jumps over space but not punctuation. What do you want? JMarc
word-forward skips trailing non-word characters (LyX 1.5.2)
Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using "word-delete-forward", as this accidentially kills punctuation and the like. How do you deal with this situation? Are there workarounds? (Maybe binding a command sequence to "C-Delete"?) Guenter
Re: Command disable
Nicolás <[EMAIL PROTECTED]> writes: > I get a "command disabled" message when I press Crtl-TAB, which is > bound to buffer-next in the cua.bind file. However, If I press > Ctrl-PgUp or execute the command directly from the mini-buffer, I > obtain the desired result. Thie means that it is not the buffer-next > command taht is disbaled, but its invocation via Ctrl-TAB. Any clue > about this? Actually, C-Tab is not really bound to buffer-next, because in math.bind there is \bind "C-Tab" "cell-split" So it is the cell-split function that is disabled, not buffer-next. I do not know whether this cell-split function is useful though. Andre'? JMarc
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
On Nov 16, 2007, at 5:10 AM, Jean-Marc Lasgouttes wrote: "G. Milde" <[EMAIL PROTECTED]> writes: Dear LyXers, since upgrading to 1.5.2 (or maybe even earlier?), word-forward does no longer skip to the end of a word but also skips trailing non-word space, be it whitespace, punctuation, citation or float insets, etc. This means that jumping to the end of a word is no longer possible. Both, word-forward and word-backward jump to the begin of a word. This is especially annoying when using "word-delete-forward", as this accidentially kills punctuation and the like. We can have a look at changing this behaviour. - emacs' forward-word jumps to the end of the current word (and likewise backaward-word jumps to the beginning of prev. word) - everybody else (openoffice, msword, Qt textedit...) jumps over space but not punctuation. What do you want? The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in "I don't", LyX will go from after the "I" to after the "n" to after the "t", whereas Mac standard is to go straight from after the "I" to after the "t". Bennett
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
Bennett Helm <[EMAIL PROTECTED]> writes: > The standard behavior on Mac is to have forward-word jumps to the end > of the current word, and backward-word jumps to the beginning of the > previous word. That's what I'd want. This is what emacs does. In the meantime, I have implemented the other possibility, the one that works like PC programs. I would be interested to see people test it and tell me whether it is better than the current one. Implementing the mac behaviour via either a hidden pref or a parameter to the lfun (to use different bindings) would be possible. > Another difference from Mac standard: in jumping forward/backward by > words, LyX treats an apostrophe as a word break. Thus, in jumping > forward by words in "I don't", LyX will go from after the "I" to > after the "n" to after the "t", whereas Mac standard is to go > straight from after the "I" to after the "t". What does the mac do when a word is enclosed by apostrophes? JMarc svndiff src/Text.cpp Index: src/Text.cpp === --- src/Text.cpp (révision 21639) +++ src/Text.cpp (copie de travail) @@ -815,19 +815,25 @@ bool Text::cursorRightOneWord(Cursor & c BOOST_ASSERT(this == cur.text()); Cursor old = cur; - - if (old.pos() == old.lastpos() && old.pit() != old.lastpit()) { - ++old.pit(); - old.pos() = 0; + pos_type const lastpos = old.lastpos(); + pit_type pit = old.pit(); + pos_type pos = old.pos(); + + if (pos == lastpos && pit != old.lastpit()) { + ++pit; + pos = 0; } else { + Paragraph & par = old.paragraph(); + // at least one step + ++pos; // Advance through word. - while (old.pos() != old.lastpos() && old.paragraph().isLetter(old.pos())) - ++old.pos(); - // Skip through trailing nonword stuff. - while (old.pos() != old.lastpos() && !old.paragraph().isLetter(old.pos())) - ++old.pos(); + while (pos != lastpos && par.isLetter(pos)) + ++pos; + // Skip through trailing spaces. + while (pos != lastpos && par.isSeparator(pos)) + ++pos; } - return setCursor(cur, old.pit(), old.pos()); + return setCursor(cur, pit, pos); } @@ -836,19 +842,23 @@ bool Text::cursorLeftOneWord(Cursor & cu BOOST_ASSERT(this == cur.text()); Cursor old = cur; + pos_type pos = old.pos(); - if (old.pos() == 0 && old.pit() != 0) { + if (pos == 0 && old.pit() != 0) { --old.pit(); - old.pos() = old.lastpos(); + pos = old.lastpos(); } else { - // Skip through initial nonword stuff. - while (old.pos() != 0 && !old.paragraph().isLetter(old.pos() - 1)) - --old.pos(); + Paragraph & par = old.paragraph(); + // at least one step + --pos; + // Skip through spaces. + while (pos != 0 && par.isSeparator(pos - 1)) + --pos; // Advance through word. - while (old.pos() != 0 && old.paragraph().isLetter(old.pos() - 1)) - --old.pos(); + while (pos != 0 && par.isLetter(pos - 1)) + --pos; } - return setCursor(cur, old.pit(), old.pos()); + return setCursor(cur, old.pit(), pos); }
Change PDF viewer (windows)
Hi, how can I change the PDF viewer - without changing the windows default PDF viewer? I tried changing Viewer in Tools --> Preferences --> File formats, but * absolut path did not work * adding the path to the viewer exe to Tools --> Preferences --> Paths --> PATH prefix did not help * now I put the pdf viewer exe in the LyX bin folder - this works, but isn't there another way? Regards, Toby
Re: errors during the latex run
e-letter wrote: Readers, I am trying to create a custom bibtex style file, using the merlin.mbs function. When I try to preview the lyx document in the di viewer I get an error about the latex run, furthermore stating I should try to fix them. How do I find out what were the errors in the first instance? Document -> LaTeX Log should show them. /Paul
Re: A0 posters in LyX
On Friday 16 November 2007, [EMAIL PROTECTED] wrote: > I wanted to have the facility of generating a clean design -- like what the > beamer/LyX combination gives you-- together with my references properly > formatted with bibtex. > > Could I get a beamer presentation onto one A4 landscape page? The trouble I > see is with the font sizes, as beamer makes everything quite large for a > screen layout. I haven't used beamer, but I do use powerdot -- a similar class -- on a regular basis, and I can see the problem with fonts. If you have a relatively large amount of text, and relatively few figures (even if they are fairly large) you might get good results with a very straightforward approach using article class and the multicol package to put perhaps three columns onto a single landscape page. With this method I'd put the figures and tables in floats and let LaTeX figure out where to put them -- but I'd also expect to waste a lot of time juggling margins, font sizes and spacing to fill the page without overflowing it. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
Re: Tibetan Unicode
Sam Sabra wrote: Hello everybody, I was wondering if anybody knows how to get Tibetan Unicode working with LyX. I would like to be able to write documents in multiple languages (Tibetan, Sanskrit, English) and was wondering if this is possible with LyX 1.5 given that Unicode is now supported. I've installed the Windows version of LyX and haven't had any luck myself, though I've had some success getting Tibetan Unicode to work with Xetex with Tibetan fonts from the windows system fonts directory. Any help would be much appreciated. Thank you for all your hard work and kindness, There are two ways to do this: 1. Latex already supports english. If you can get packages that support tibetan and sanskrit, load them from the preamble. You should then be able to write trilingual. I do not know if such packages exists though. 2. Write unicode in LyX (tibetan, sanskrit & english entered directly without language support), export a latex file from LyX and process that file with xetex. (Change fonts the same way as you did with xetex before, put the commands in ERT insets in LyX). In document->settings->language, set the encoding to utf-8 plain Helge Hafting
Re: word-forward skips trailing non-word characters (LyX 1.5.2)
On Nov 16, 2007, at 12:00 PM, Jean-Marc Lasgouttes wrote: Bennett Helm <[EMAIL PROTECTED]> writes: The standard behavior on Mac is to have forward-word jumps to the end of the current word, and backward-word jumps to the beginning of the previous word. That's what I'd want. This is what emacs does. In the meantime, I have implemented the other possibility, the one that works like PC programs. I would be interested to see people test it and tell me whether it is better than the current one. Implementing the mac behaviour via either a hidden pref or a parameter to the lfun (to use different bindings) would be possible. Clearly you won't satisfy everyone with a single choice, and I think having too many choices is bad for most users. So this seems like a good compromise. Another difference from Mac standard: in jumping forward/backward by words, LyX treats an apostrophe as a word break. Thus, in jumping forward by words in "I don't", LyX will go from after the "I" to after the "n" to after the "t", whereas Mac standard is to go straight from after the "I" to after the "t". What does the mac do when a word is enclosed by apostrophes? I think this is an accurate general description on Mac: 1. Most punctuation (except for apostrophes) signal word boundaries. Thus, "lyx.app" gets treated as two words, but "don't" is treated as one. Similarly, "'hello'" and "'"hello"'" are treated as one word. 2. Punctuation is not considered a part of a word, and word jumping is always to the beginning or end of a word. Thus, forward-word jumps starting from the first character would leave the cursor in these positions: "lyx|.app", "don't|", "'hello|'", "'"hello|"'", etc. 3. When jumping by paragraphs, every is treated as a paragraph boundary, and moving forward by paragraphs puts the cursor at the end of the paragraph (after *all* characters -- including punctuation and spaces), whereas moving backward by paragraphs puts the cursor at the beginning of the paragraph (before *all* characters). (Note that this is different from current LyX behavior.) Bennett
using keyboard for mouse scrolling
Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? (I am using gnome, by the way) - Sebastian -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: A0 posters in LyX
On Friday 16 November 2007, [EMAIL PROTECTED] wrote: > I've found several references through Google search on how to create an > a0poster.layout, but I haven't found any tips on what LyX tools to use to > create a poster. > > Should I use minipages and fixed floats for graphics and tables, or, should > I use columns? Any special handling of fonts? What about background > decorations or watermarks? > > Or, should I design a one-page (A4) landscape APA article layout and use a > tool like psa4toa0.sh to enlarge it? > > Anyone have an example a0poster that they produced with LyX that they could > share? Mateo, Last time I had a poster paper to present I spent quite a while researching the possibilities using LyX, and ended up using Scribus. But the best solution depends on exactly what you want to put on the poster. The more complicated it gets, and the more graphics you want to use, the harder it becomes to use LyX (or LaTeX). No matter what software you use, there is a lot to be said for generating the poster at a manageable size such as A4, then enlarging it at the plotting stage. That way you don't put things in that are too small to be viewed properly on the poster when it is displayed. My posters are plotted using SDI plotting software which allows any desired scaling as the poster is sent to the plotter, so no specific tool is needed to enlarge it. Many other printer and plotter drivers can do the same. If I did use LyX, I would most likely use minipages to control layout -- but even with them, it's hard to get things looking right. -- Les ~~ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
letter layout
I'm trying to use the standard letter layout but when I compile I get a message saying that "\opening" is an undefined control sequence, yet, letter.cls is installed and latex and lyx are both able to find it. Is this a bug? PS: I'm running LyX 1.5.2 on Vista, with MiKTeX 2.6. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
Re: using keyboard for mouse scrolling
Abdelrazak Younes wrote: sebastian guttenberg wrote: Hello all! This question is probably not only related to lyx: I am looking for a possibility to use the keyboard for scrolling. I mean the type of scrolling, where the cursor remains, where it is. While typing in lyx, I would like to deaktivate my touchpad, but still be able to scroll. In old days, scroll-lock had this useful feature: whenever scroll-lock was activated, the cursur did not follow the scrolling, when using PgUp, PgDown. Is there a way to get this feature in linux/lyx? You could try to bind "screen-up" and "screen-down" to some key combination (other than the PageDown and PageUp keys). Hum, no I just try that with the minibuffer: the cursor moves with it. Add a enhancement request to bugzilla ;-) Abdel.
Re: A0 posters in LyX
On Friday 16 November 2007 14:10, Les Denham wrote: > On Friday 16 November 2007, [EMAIL PROTECTED] wrote: > > I've found several references through Google search on how to create an > > a0poster.layout, but I haven't found any tips on what LyX tools to use to > > create a poster. > > > > Should I use minipages and fixed floats for graphics and tables, or, > > should I use columns? Any special handling of fonts? What about > > background decorations or watermarks? > > > > Or, should I design a one-page (A4) landscape APA article layout and use > > a tool like psa4toa0.sh to enlarge it? > > > > Anyone have an example a0poster that they produced with LyX that they > > could share? > > Mateo, > > Last time I had a poster paper to present I spent quite a while researching > the possibilities using LyX, and ended up using Scribus. But the best > solution depends on exactly what you want to put on the poster. The more > complicated it gets, and the more graphics you want to use, the harder it > becomes to use LyX (or LaTeX). I have created my graphics with Inkscape. By what I see, it might make sense to continue using Inkscape for the full poster. I wanted to have the facility of generating a clean design -- like what the beamer/LyX combination gives you-- together with my references properly formatted with bibtex. Could I get a beamer presentation onto one A4 landscape page? The trouble I see is with the font sizes, as beamer makes everything quite large for a screen layout. > > No matter what software you use, there is a lot to be said for generating > the poster at a manageable size such as A4, then enlarging it at the > plotting stage. That way you don't put things in that are too small to be > viewed properly on the poster when it is displayed. My posters are plotted > using SDI plotting software which allows any desired scaling as the poster > is sent to the plotter, so no specific tool is needed to enlarge it. Many > other printer and plotter drivers can do the same. > > If I did use LyX, I would most likely use minipages to control layout -- > but even with them, it's hard to get things looking right.
Re: letter layout
On 11/16/07, Ernesto Posse <[EMAIL PROTECTED]> wrote: > I'm trying to use the standard letter layout but when I compile I get > a message saying that "\opening" is an undefined control sequence, This may be irrelevant, but are you using the letter template shipped with LyX? One thing I know is that "Signature" is a mandatory field, and that it need be before "opening", or smth similar. Try with the template to be sure you do not mess up with these limitations. Regards, Liviu
Re: letter layout
Yes, I'm using the one shipped with LyX. I was using the signature but after opening. Nevertheless, after moving the signature to the top I also get the same undefined control sequence error. But apparently the SendTo address is also mandatory and should go before the opening as well. That seems to fix the problem. It would be nice if the documentation described these dependencies. I did't find anything about it. On Nov 16, 2007 3:51 PM, Liviu Andronic <[EMAIL PROTECTED]> wrote: > On 11/16/07, Ernesto Posse <[EMAIL PROTECTED]> wrote: > > I'm trying to use the standard letter layout but when I compile I get > > a message saying that "\opening" is an undefined control sequence, > > This may be irrelevant, but are you using the letter template shipped > with LyX? One thing I know is that "Signature" is a mandatory field, > and that it need be before "opening", or smth similar. Try with the > template to be sure you do not mess up with these limitations. > > > Regards, > Liviu > -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
re; errors during latex run
Below is the log file for the attempt to create a new bibtex file. Yours, This is TeX, Version 3.14159 (Web2C 7.4.5) (format=latex 2003.9.11) 15 NOV 2007 23:15 **./authordateelectronic.dbj (./authordateelectronic.dbj LaTeX2e <2001/06/01> Babel and hyphenation patterns for american, french, german, ngerman, b asque, italian, portuges, russian, spanish, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/docstrip.tex \blockLevel=\count79 \emptyLines=\count80 \processedLines=\count81 \commentsRemoved=\count82 \commentsPassed=\count83 \codeLinesPassed=\count84 \TotalprocessedLines=\count85 \TotalcommentsRemoved=\count86 \TotalcommentsPassed=\count87 \TotalcodeLinesPassed=\count88 \NumberOfFiles=\count89 \inFile=\read1 \inputcheck=\read2 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Utility: `docstrip' 2.5b <1998/04/28> English documentation<1999/03/31> ** * This program converts documented macro-files into fast * * loadable files by stripping off (nearly) all comments! * ** * No Configuration file found, using default settings. * ) Generating file(s) ./authordateelectronic.bst \openout0 = `./authordateelectronic.bst'. Processing file merlin.mbs (ay,har,harnm,nm-rev,ed-rev,nmlm,x2,m2,dt-jnl,note-y r,tit-it,atit-u,jttl-rm,pgsep-s,num-xser,bkpg-par,pre-edn,isbn,issn,fin-bare,xe dn,and-xcom,etal-it,url,url-nl) -> authordateelectronic.bst Lines processed: 8772 Comments removed: 3617 Comments passed: 1 Codelines passed: 3509 ) Here is how much of TeX's memory you used: 602 strings out of 95796 5298 string characters out of 1191756 58175 words of memory out of 101 3631 multiletter control sequences out of 1+5 3640 words of font info for 14 fonts, out of 50 for 1000 26 hyphenation exceptions out of 1000 13i,0n,15p,343b,407s stack positions out of 3000i,1500n,5000p,20b,15000s No pages of output.