Re: LyX is getting... very annoying.
Marc D. wrote: I have created a rather large lyx file (all my course notes). In one section, I can't get it to work. I have reduced the problem to a minimum. There are 3 characters on my screen, in two lines. I get SIX errors with those 3 characters. Answer: it's the \textmf that causes ALL six errors. (and all 35 errors in my original file). All from a a single, obviously misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I don't USE different fonts in my document!) Seems you have found a bug in lyx, then. When I write 2^Q (in math mode), I get something that works. However, if I select the formula and change the font, I do get the same problem as you. This problem exists in lyx 1.4 too. If, however, I write 2^Q as text, then select it and press ctrl+M (to turn it into a formula, then I also get that problem. This time without doing any font change. This problem does not exist in the soon to be lyx 1.4, so it will go away. So I suggest, as a workaround, that you press ctrl+M first, then type your formula in math mode. Then it will work. You may also note that a formula _not_ using the troublesome \textrm will show up as blue in the lyx window, where the wrong formulas are black. I have just manually removed the \textmf from the .lyx file and now it works. Questions: What key sequence would have inserted \textmf when ANY occurence of such text causes so many errors? Why doesn't LyX do the right thing when converting said text to LaTeX? Error in lyx. Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? I had to go into the lyx file and manually delete the bugger. You probably type it the same way every time - I guess you write your formulas as text, then converts it to math? That technique doesn't work in lyx 1.3.4, although it is fixed in lyx 1.4. I recommend that you do it the other way; Activate math mode first (press ctrl+M or use the menus) then type in the formula. Helge Hafting
Re: LyX is getting... very annoying.
Marc D. wrote: I have just manually removed the \textmf from the .lyx file and now it works. I guess you mean \textrm? Questions: What key sequence would have inserted \textmf when ANY occurence of such text causes so many errors? Either \textrm followed by a non-letter character, or M-m, both when already inside the math formula. Why doesn't LyX do the right thing when converting said text to LaTeX? It does do the right thing, the error is that creating mathematical things inside \textrm should not be possible in LyX. This is a known bug (unfortunately not easy to fix): http://bugzilla.lyx.org/show_bug.cgi?id=1527 Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? I had to go into the lyx file and manually delete the bugger. You can always go at the first position inside the \textrm and press backspace. Then it will disappear. Georg
Re: LyX is getting... very annoying.
Marc D. wrote: Answer: it's the \textmf that causes ALL six errors. (and all 35 errors what you mean is \textrm in my original file). All from a a single, obviously misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I don't USE different fonts in my document!) I have just manually removed the \textmf from the .lyx file and now it works. \textrm is not the real problem! \begin_inset Formula $\textrm{2^{Q}}$ \end_inset this is nonsense! How did you insert it? 2^{Q} is a math expression, it cannot be part of \textrm, it should be an argument of\mathrm Herbert
Re: LyX is getting... very annoying.
Georg Baum wrote: It does do the right thing, the error is that creating mathematical things inside \textrm should not be possible in LyX. This is a known bug (unfortunately not easy to fix): http://bugzilla.lyx.org/show_bug.cgi?id=1527 Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? I had to go into the lyx file and manually delete the bugger. You can always go at the first position inside the \textrm and press backspace. Then it will disappear. \textrm inside math is _valid_ LaTeX code, but makes no real sense, because it takes the textfont instead of the roman math font. If a user inserts \textrm then it is on his own risk. If you do not allow this in math mode it is a regression, because it maybe useful for _text_ inside math without using amsmath. Herbert
Re: LyX 1.4 test
Hi, and sorry for my delayed reply. B.J. Muirhead wrote (24.1.2006 07:22): I had a similar problem, except that I had no menu entries at all! The solution, in my case, was to use the command line (M-F2) to run lyx-1.4 to accord with installation using --with-version-suffix=1.4 although I am running ubuntu, I suspect that something like this may be your problem, I hope :-) Well, this did not solve my problem. I have compiled the lyx-1.4 with the suffix, but the menu entries are still not visible. Does anyone have any other ideas how to make menu entries visible? As mentioned earlier: my system is SuSE 9.3+KDE 3.5.0+Qt3.3.5 and I have compiled lyx-1.4test with qt-frontend. Kind regards, Kimmo
Re: Caption horizontally as long as the width of the picture
Paul Smith writes: Dear All How can one have a caption horizontally as long as the width of the picture? One way is to use LyX's subfigure caption that is located under Extra Options of your Graphics object, but this introduces perhaps unwanted side effects (you gain a sub-figure, which is numbered (a), (b), (c), etc. by default). (If this interests you, take a look at the package subfig, which offers numerous options.) Another quick way which should work... 1. Create your figure 2. Add graphic 3. Note/set width of graphic 4. Delete default Figure # 5. Add a LyX minipage below graphic (inside float) 6. Inside minipage using ERT add \caption{Your caption goes here...} 7. Set width of minipage to same as graphic (right-click inside minipage) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Caption horizontally as long as the width of the picture
Paul Smith wrote: How can one have a caption horizontally as long as the width of the picture? http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width http://www.dante.de/CTAN//help/Catalogue/entries/hvfloat.html Herbert
Re: Caption horizontally as long as the width of the picture
Kevin Pfeiffer writes: 6. Inside minipage using ERT add \caption{Your caption goes here...} For the sake of thoroughness... \caption[short caption here for list of figures]{Long caption here} -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Caption horizontally as long as the width of the picture
Herbert Voss writes: http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width Something wrong with the domain name here, I think... -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Caption horizontally as long as the width of the picture
Kevin Pfeiffer wrote: Herbert Voss writes: http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width copy and paste without thinking ... http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width Something wrong with the domain name here, I think... Herbert
Re: LyX is getting... very annoying.
Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. JMarc
Re: LyX is getting... very annoying.
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. as I wrote in the other mail, it is _valid_ LaTeX code. And from my point of view, LyX should not be too clever. \text{} is the same problem, you have to use $...$ inside it for math, same for \mbox. It doesn't really make sense, to have such cases, but it is not unusual and I used it by myself! Marc did something wrong, not LyX! In some cases I want an upright math character, then I use \mathrm{..} and sometime I want the text character. \mathrm takes all from the _math_ font and ignores spaces! \textrm takes all from the current text font and accepts spaces! This is far different. And by the way, the question is, what Marc had in mind? An upright Q inside math, then it should be 2^{\mathrm{Q}}. An upright Q outside math, then it should be \textrm{2\textsuperscript{Q}} There is no general rule, which says, what to do ... Herbert
Re: LyX 1.4 test
Sorry, I t didn't help. On Thu, 2006-02-02 at 10:30 +0200, K. Elo wrote: Hi, and sorry for my delayed reply. B.J. Muirhead wrote (24.1.2006 07:22): I had a similar problem, except that I had no menu entries at all! The solution, in my case, was to use the command line (M-F2) to run lyx-1.4 to accord with installation using --with-version-suffix=1.4 although I am running ubuntu, I suspect that something like this may be your problem, I hope :-) Well, this did not solve my problem. I have compiled the lyx-1.4 with the suffix, but the menu entries are still not visible. Does anyone have any other ideas how to make menu entries visible? As mentioned earlier: my system is SuSE 9.3+KDE 3.5.0+Qt3.3.5 and I have compiled lyx-1.4test with qt-frontend. Kind regards, Kimmo
Re: Caption horizontally as long as the width of the picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width copy and paste without thinking ... http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width Something wrong with the domain name here, I think... I thank Kevin and Herbert for the useful help. Paul
OT: Converter matrix to picture
Dear All This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Thanks in advance, Paul
Re: OT: Converter matrix to picture
Paul Smith writes: Dear All This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? www.processing.org (also for Windows) -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: LyX is getting... very annoying.
Helge Hafting [EMAIL PROTECTED] writes: If, however, I write 2^Q as text, then select it and press ctrl+M (to turn it into a formula, then I also get that problem. This time without doing any font change. This problem does not exist in the soon to be lyx 1.4, so it will go away. So I suggest, as a workaround, that you press ctrl+M first, then type your formula in math mode. Then it will work. Either that, or surround the text with \( and \) for inline math, or \[ and \] for display math. I mean, if you select \(2^Q\) and press ctrl+M everything is ok (even $2^Q$ works). -- Enrico
Re: OT: Converter matrix to picture
Paul Smith wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? Herbert
Re: OT: Converter matrix to picture
On Feb 2, 2006, at 9:00 AM, Herbert Voss wrote: Paul Smith wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? Matlab will do that with the 'spy' command
Re: Mac Install Problems
Ian - Sorry for letting your e-mail slip past me without a response. On Jan 24, 2006, at 7:24 PM, Ian Stevenson wrote: (To be sure, you can go to the Terminal and enter which pdflatex, and it should give you a path to that file's location.) Ian-Stevensons-Computer:~ ianstevenson$ which pdflatex /usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflat Good ... and it's clear that LyX can find the installation. What happens if you run (from the Terminal) /Applications/LyX.app/ Contents/Resources/lyx/configure Ian-Stevensons-Computer:~ ianstevenson$ /Applications/LyX.app/ Contents/Resources/lyx/configure checking for a LaTeX2e program... (latex latex2e) +checking for latex... yes checking for the pdflatex program... (pdflatex) +checking for pdflatex... yes ... checking LaTeX configuration... auto +Inspecting your LaTeX configuration. +checking for LaTeX version... 2003/12/01 +checking for default encoding (this may take a long time) + checking for ec fonts... yes + checking for ec support in LaTeX format... yes +checking for document class IEEEtran [IEEEtran]... no +checking for document class aa [aa]... no +checking for document class aapaper [aa]... no +checking for document class aastex [aastex]... no +checking for document class agums [aguplus,agums.sty]... no +checking for document class amsart-plain [amsart]... yes +checking for document class amsart-seq [amsart]... yes +checking for document class amsart [amsart]... yes +checking for document class amsbook [amsbook]... yes +checking for document class apa [apa,apacite.sty]... no +checking for document class article [article]... yes +checking for document class book [book]... yes ... All this looks normal. My guess is that for some reason the PATH environment variable isn't being set properly from within LyX. Check LyX Preferences Paths PATH prefix: it should be set to /usr/bin:/usr/local/bin:/usr/local/ teTeX/bin/powerpc-apple-darwin-current:/usr/X11R6/bin:/sw/bin:/opt/ local/teTeX/bin (without the quotes). (In theory running the installer script should take care of this, but perhaps something went wrong in your case.) Also make sure that other paths are pointing to the new location of your LyX user's folder, so that LyXServer pipe is set to (in my case) /Users/bennett/Library/Application Support/ LyX/.lyxpipe (again without the quotes). If you've made changes there, run Edit Reconfigure once again, and see if it works. Bennett
Re: OT: Converter matrix to picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. Paul
Re: LyX is getting... very annoying.
On Wed, 01 Feb 2006 23:34:17 -0800 Marc D. [EMAIL PROTECTED] wrote: I have created a rather large lyx file (all my course notes). In one section, I can't get it to work. I have reduced the problem to a minimum. There are 3 characters on my screen, in two lines. I get SIX errors with those 3 characters. Answer: it's the \textmf that causes ALL six errors. You mean \textrm (and all 35 errors in my original file). All from a a single, obviously misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I don't USE different fonts in my document!) Well, the thing is, in order to typeset the 2^Q, you should use math-mode -- which you seemed to have done. However, _within_ math mode, if you go into math-mode _again_, LyX treats it as text-within-a-formula -- an inset of a text box within the formula inset. You may have done that inadvertantly, or you may be trying to get the 2^Q to display without the Q being italicized. At any rate, TeX then thinks you are trying a math layout inside a text region, and will get confused. If you just hit the math-mode menu item a second time, then don't do that. If you want to avoid the italicized Q, then, ... , there is a way. Go into math-mode. Type the 2, then type ^ to get in the superscript. Then toggle math-mode again, inside the superscript box, and type your Q. Questions: What key sequence would have inserted \textmf when ANY occurence of such text causes so many errors? It's the double entry into math-mode, which gets you a text box within a math box, that was the problem. Why doesn't LyX do the right thing when converting said text to LaTeX? Because it thinks it isn't supposed to do that. Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? Because you typed it in the same way. -- David L. Johnson __o | A foolish consistency is the hobgoblin of little minds, adored _`\(,_ | by little statesmen and philosophers and divines. --Ralph Waldo (_)/ (_) | Emerson
Re: LyX is getting... very annoying.
On Thu, 02 Feb 2006 09:09:40 +0100 Helge Hafting [EMAIL PROTECTED] wrote: If, however, I write 2^Q as text, then select it and press ctrl+M (to turn it into a formula, then I also get that problem. You can make that work properly in 1.3.* by entering $2^Q$ as text, then hitting math mode. This allows the insertion of bits of TeX text properly in LyX. -- David L. Johnson __o | Some people used to claim that, if enough monkeys sat in front _`\(,_ | of enough typewriters and typed long enough, eventually one of (_)/ (_) | them would reproduce the collected works of Shakespeare. The internet has proven this not to be the case.
Re: OT: Converter matrix to picture
Paul Smith wrote: On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. I need the exact LaTeX Definition, e.g. \begin{pmatrix} The above make things complicated, because 0.1 and 1 different Herbert
thank you!
Hello! I wanted to thank everybody on this list for their help! I also wanted to thank all developers and all people who otherwise contribute to the development of LyX. I have finished my dissertation and defended my thesis successfully. LyX Beamer made it very easy for me to concentrate only on the things that mattered (like the text of the dissertation ;)) and with the help of this mailing list I have solved every peculiar problem that I created. I must say that I found LyX extremely useful and stable! It is obvious that it's being developed by people who both enjoy it know what they are doing! While I started using LyX because I was lazy writing equations in plain LaTeX, I ended up using LyX for my daily needs. Thank you again!! David
Re: LyX is getting... very annoying.
On Thu, 02 Feb 2006 10:30:16 +0100 Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. I believe the advantage will be for entering more than one word, with spaces and all. At any rate, the simple toggle to insert text this way means that that is what I have been doing for years with it, to no ill effect. -- David L. Johnson __o | Business! cried the Ghost. Mankind was my business. The _`\(,_ | common welfare was my business; charity, mercy, forbearance, (_)/ (_) | and benevolence, were, all, my business. The dealings of my trade were but a drop of water in the comprehensive ocean of my business! --Dickens, A Christmas Carol
Re: LyX is getting... very annoying.
David L. Johnson wrote: On Thu, 02 Feb 2006 10:30:16 +0100 Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. I believe the advantage will be for entering more than one word, with spaces and all. At any rate, the simple toggle to insert text this way means that that is what I have been doing for years with it, to no ill effect. this is what I wanted to say, if you know what you are doing, \textrm is a nice macro inside math ... Herbert
Re: LyX is getting... very annoying.
David L. Johnson wrote: On Thu, 02 Feb 2006 10:30:16 +0100 Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. I believe the advantage will be for entering more than one word, with spaces and all. At any rate, the simple toggle to insert text this way means that that is what I have been doing for years with it, to no ill effect. this is what I wanted to say, if you know what you are doing, \textrm is a nice macro inside math ... I find \textrm inside math mode very useful. I particular I use it when I need to add hyphenated units at the end of an equation, e.g. L=10 kN-m. \mathrm will substitute the longer minus sign while \textrm leaves the short hyphen Steve
Re: Positioning graphics in beamer
Enrico Forestieri wrote: Declan O'Byrne [EMAIL PROTECTED] writes: Thanks. for this. I think your instructions apply to lyx. But I'm attempting to do the same thing in kile. I suppose if I knew how to define the position according to coordinates, I'd be better off. I just want the pictures to grow from the bottom right hand side of the slide. What are the coordinates of a slide? How are they defined? What is, for example, the bottom left? The bottom right? The top left? The top right? The centre? I should be able to work from there. Unless there's an easier way to do it. I see that latex speaks about center, but it won't let me choose right. Here is a trick I use to position a figure. Put the following in the preamble: \newcommand{\putat}[3]{\begin{picture}(0,0)(0,0)\put(#1,#2){#3}\end{picture}} and then in the text: \putat{130}{-100}{\includegraphics{...}} In LyX it would be: \putat{130}{-100}{ - in ERT graphics inset } - in ERT The horizontal (first parameter) and vertical (second parameter) displacements are in terms of \unitlength (default is 1pt) and are relative to the position where the \putat command appears. Note that when \putat is defined as done above, the figure (or whatever) does not take space in LaTeX. Hope this helps. -- Enrico You can also do this with the textpos package. In the preamble of the beamer file, add \usepackage[absolute,overlay]{textpos}. In the slide where the graphic should go: \begin{textblock*}{50mm}[1,1](118mm,86mm) \includegraphics... \end{textblock*} The width 50mm should be changed to the estimated width of the graphic. The option [1,1] says that the position specified is for the bottom right corner of the block. The coordinates (118mm,86mm) are based on the default 1cm margins on a 128mm x 96mm beamer slide. This approach suffers from exactly the same problem as the \putat approach: the image occupies no space, so text on the page will overprint it. An alternative is to create a 2x2 table with no borders, merge the two columns in the first row, and give the merged first row and the left column of the second row fixed widths (so that text in them will wrap, and multiple lines are allowed). Put the graphic in the lower right cell. This introduces some extra vertical space between lines in the first row of the table and lines in the second row, left column, plus it requires you to manually juggle lines to balance the two rows. Not very satisfactory, but at least the graphic will not be overprinted. /Paul
Re: OT: Converter matrix to picture
Paul Smith wrote: On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. hope, this helps Herbert \documentclass[12pt]{article} \usepackage{amsmath,xcolor} \pagestyle{empty} \begingroup \makeatletter \catcode`\0=\active \catcode`\1=\active [EMAIL PROTECTED] \newenvironment{makeActive}{% \catcode`\0=\active \catcode`\1=\active \def0{\colorbox{black}{\phantom{I}}}% \def1{\colorbox{yellow}{\phantom{I}}}% }{}% } \makeatother \def\zero{\string0} \def\one{\string1} \begin{document} \[ \begin{makeActive} \begin{pmatrix} x\backslash y \zero.\one \zero.2 \zero.3 \zero.4 \zero.5 \zero.6\\ \zero.\one1 0 1 1 0 1\\ \zero.2 0 1 1 1 0 1\\ \zero.3 1 1 0 1 1 0\\ \end{pmatrix} \end{makeActive} \] \end{document}
Re: Positioning graphics in beamer
Thanks for these suggestions. I'm looking forward to trying them out, as soon as I can. Oh, and I reverted to Kubuntu on the laptop, so I now have beamer available to lyx. Thanks again, Declan
Re: OT: Converter matrix to picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. hope, this helps Thanks, Herbert. That is a beautiful example, but it does not correspond to what I mean. I admit that it is my fault, as it seems that I was not clear enough. I will try to be clearer now. Imagine that you need to draw a circumference, and that you are given only a set of hundreds and hundreds of points (x,y) belonging to the circumference. Furthermore, suppose that you are unable to determine the circumference equation. My problem is similar to the one just described: I have hundreds of points in the form (x,y) that I want to display in an appropriate rectangle, along the same lines as one draws level curves. Is it now clear? Paul
Lyx 1.3.7 Win32: Some incorrect math glyphs displayed on screen; dvi,pdf is ok
Hi, First of all I would like to say that like LyX a lot. Nice software. There are some small issues, however, I hope someone can help. Some math glyphs are displayed incorrect on screen; however the output dvi,pdf is ok. How to reproduce: 1. New document 2. Menu: Insert / Math / Inline Formula 3. Use math pannel to insert any operator, e.g. if I click the button with the plus-minus (\pm), on screen I get the paragraph glyph. Or \cup results in '['. Note: I did a full install of MikTeX 2.4.1461 with *all* packages. I did not change any configuration setting. Screen fonts are: Times New Roman Verdana Courier New I run Microsoft Windows Server 2003 (also Microsoft Office 2003 is installed so all it's fonts are there). Met vriendelijke groet, Peter
LyX 1.3.7 Win32 + MikTeX 2.4.1461: New LyX document from template fails (for many templates) with error missing TeX class
Hi In LyX 1.3.7 Win32 + MikTeX 2.4.1461: Trying to create a new LyX document from template fails for many templates with error missing TeX class. For example: aa.lyx results in: ``Textclass error The document uses a missing TeX class aa. LyX will not be able to produce output. I did a MikTeX refresh file name database and refresh format files. That didn't help. I did a search in c:\texmf for aa.*; only aa.4ht shows up. I have done a full install of MikTeX (and an update today). Met vriendelijke groet, Peter
Re: Lyx 1.3.7 Win32: Some incorrect math glyphs displayed on screen; dvi,pdf is ok
Peter Hegt wrote: Some math glyphs are displayed incorrect on screen; however the output dvi,pdf is ok. 3. Use math pannel to insert any operator, e.g. if I click the button with the plus-minus (\pm), on screen I get the paragraph glyph. Or \cup results in '['. You didn't install the math fonts. They are automatically installed when you use this installer: http://wiki.lyx.org/Windows/LyXWinInstaller You can also install them manually: ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.0.zip Don't forget to reconfigure LyX after this. regards Uwe
Re: LyX 1.3.7 Win32 + MikTeX 2.4.1461: New LyX document from template fails (for many templates) with error missing TeX class
Peter Hegt wrote: Hi In LyX 1.3.7 Win32 + MikTeX 2.4.1461: Trying to create a new LyX document from template fails for many templates with error missing TeX class. For example: aa.lyx results in: ``Textclass error The document uses a missing TeX class aa. LyX will not be able to produce output. I did a MikTeX refresh file name database and refresh format files. That didn't help. I did a search in c:\texmf for aa.*; only aa.4ht shows up. I have done a full install of MikTeX (and an update today). As far as I know, 'aa' is not available as part of the MiKTeX distribution. If you want to use it, you need to download it, install it manually, then update the MiKTeX file database. In LyX, Help-LaTeX Configuration will display a list of what LyX looks for and what it found, and in many case (including 'aa') a pointer to where you can find it on CTAN. Broadway is another class that is not available within MiKTeX but for which LyX has a layout. Note that, after installing classes in MiKTeX, you need to start LyX, run Edit-Reconfigure, wait for the configuration script to complete, then close and restart LyX to get the benefit of the new classes. /Paul
Re: OT: Converter matrix to picture
On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html but, unfortunately, I do not have Matlab. Paul
Re: Caption horizontally as long as the width of the picture
Herbert Voss [EMAIL PROTECTED] writes: http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width Very cool, Herbert. I have LyXfied a bit your example ;-) -- Enrico #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \newsavebox{\gBox} \renewenvironment{figure} [EMAIL PROTECTED] [EMAIL PROTECTED] \newcommand{\myFigure}[1]{% \sbox{\gBox}{#1} \centering \begin{minipage}{\wd\gBox} \usebox{\gBox} } \end_preamble \language english \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard { \end_inset \begin_inset Graphics filename rose.eps width 4cm \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \layout Caption \begin_inset LatexCommand \label{fig:bild} \end_inset Bildunterschrift, die auch in jedem Fall lang genug ist \end_inset \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard { \end_inset \begin_inset Graphics filename rose.eps rotateAngle 30 \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \layout Caption Bildunterschrift, die auch in jedem Fall lang genug ist \end_inset \the_end
Re: OT: Converter matrix to picture
Paul Smith wrote: On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html tell me the structure of your data file? Are the values also saved as a matrix? Herbert
Re: OT: Converter matrix to picture
On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html but, unfortunately, I do not have Matlab. And unfortunately this command is not in Octave (the open source version of Matlab) I think you are going to have to do some programming.
Re: OT: Converter matrix to picture
Paul Smith writes: Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html Having not looked at Herbert's suggestion, I am now quite confused (as I would have guessed that that is what it does). It seems you simply want to plot points on a grid whose intersections correspond to row and columns in your matrix of ones and zeros. (Isn't that what Herbert's code did? Perhaps you just needed to scale the grid? Or set the background to same color as the zeroes?) Processing (see prev. post) would also do this for you in perhaps 6 to 8 lines of code. -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: OT: Converter matrix to picture
En/na Stephen Buonopane ha escrit: On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html but, unfortunately, I do not have Matlab. And unfortunately this command is not in Octave (the open source version of Matlab) I think you are going to have to do some programming. Gnuplot has some colormap drawing capabilities. You could try that.
Re: OT: Converter matrix to picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html tell me the structure of your data file? Are the values also saved as a matrix? Thanks to all. An example of a data file is attached. It is a text file with a matrix. Each column corresponds to x-coordinate, whereas each row corresponds to y-coordinate. Both x and y have the same range: [0,1]. From column to column, x increases 0.1. From row to row, y increases 0.1. First column corresponds to x=0 and first row to y=0. Paul 0 1 1 0 0 0 0 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 1 1 0 0
Re: OT: Converter matrix to picture
On 2/2/06, Paul Smith [EMAIL PROTECTED] wrote: Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html tell me the structure of your data file? Are the values also saved as a matrix? Thanks to all. An example of a data file is attached. It is a text file with a matrix. Each column corresponds to x-coordinate, whereas each row corresponds to y-coordinate. Both x and y have the same range: [0,1]. From column to column, x increases 0.1. From row to row, y increases 0.1. First column corresponds to x=0 and first row to y=0. Gnuplot seems to be able to plot points and export the result as a LaTeX file. I will give it a try tomorrow. Paul
Re: LyX 1.3.7 Win32 + MikTeX 2.4.1461: New LyX document from template fails (for many templates) with error missing TeX class
Paul A. Rubin wrote: Broadway is another class that is not available within MiKTeX but for which LyX has a layout. Only for information: When you use this installer: http://wiki.lyx.org/Windows/LyXWinInstaller The LyX-specific LaTeX-classes chess, broadway, cv, and hollywod are automatically installed. regards Uwe
Editors for LaTeX-files with syntax highlighting
Hello LyXers, the next version of the windows installer will have support for editors with which LaTeX-files can be viewed with highlighted syntax. Currently I have built in support for jEdit, WinShell, TeXnicCenter, WinEdt, and WinTeX. The first editor that is found on the system will be set as viewer for LaTeX-files within LyX. Do you kow other editors that offer syntax-highlighting for LaTeX and run on Windows? thanks and regards Uwe
Re: Editors for LaTeX-files with syntax highlighting
Uwe Stöhr writes: the next version of the windows installer will have support for editors with which LaTeX-files can be viewed with highlighted syntax. A side question -- does anyone know of further developments of a (vim) syntax file for the LyX file format? Someone had posted the beginnings of one a while ago. -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Can't install lyx 1.3.7 on OS X. Can't see my tetex install
On 02/02/2006, at 12:56 AM, Bennett Helm wrote: On Feb 1, 2006, at 4:22 AM, Daryl Moulder wrote: I can't get lyx-aqua to see my tetex install, I've done the reconfigure thing, no dice. I'm using the standard Os X latex install in the /usr/local/teTeX/share/texmf.tetex/ dir. You need to be a bit more specific and provide more details. Is it that the LyX installer (which changes things in your LyX user's directory and makes sure certain LaTeX classes/styles are installed properly) gives you an error message when you run it saying that it can't find the TeX installation? No see below. The problem is when you try to open or create a new document. I cannot find any of the tex classes or styles. Reconfigure does not seem to find a valid tetex install (see Console.app) output. If there is a way of manually getting Lyx to point to where the standard styles are such as article etc, that would be helpful. (Did you run the installer? Yes I ran the installer, here is the output from the installer. *** LyX 1.3.7 installation script *** Fri Feb 3 13:25:42 EST 2006 Now locating TeX binaries ... Found TeXbin directory: /usr/local/teTeX/bin/powerpc-apple-darwin- current Found installation directory: /usr/local/teTeX/share/texmf.local Please enter administrative password if prompted to install TeX files. (Note: For installation of some files, this installer script must be run from an administrative account.) Now installing srcltx files in TeX installation directory Done. Now installing preview files in TeX installation directory Done. Now installing LyX's special .cls and .sty files in TeX installation directory Done. Now updating TeX installation ... texhash: Updating /usr/local/teTeX/share/texmf.gwtex/ls-R... texhash: Updating /usr/local/teTeX/share/texmf.local/ls-R... texhash: Updating /usr/local/teTeX/share/texmf.tetex/ls-R... texhash: Updating /var/tmp/texfonts/ls-R... texhash: Done. Done. Installation successful! You may now close this window and quit the Terminal. (Note that quitting the Terminal may be necessary to eject this disk image.) logout [Process completed] -- That's necessary to set paths properly so that LyX can find your TeX installation.) Or is it that from within LyX itself you don't find things like View DVI, View PDF (pdflatex), etc.? Assuming it's the latter, what is the output from Console.app when you run reconfigure from within LyX? Here is the Cos checking for a LaTeX2e program... (latex latex2e) +checking for latex... not useable +checking for latex2e... no checking for a LaTeX - LyX converter... (reLyX) +checking for reLyX... yes checking for a Noweb - LyX converter... (noweb2lyx) +checking for noweb2lyx... yes checking for a Noweb - LaTeX converter... (noweave) +checking for noweave... no checking for an HTML - LaTeX converter... (html2latex) +checking for html2latex... no checking for an MS Word - LaTeX converter... (wvCleanLatex word2x) +checking for wvCleanLatex... no +checking for word2x... no checking for a LaTeX - MS Word converter... (htlatex) +checking for htlatex... yes checking for Image converter... (convert) +checking for convert... yes checking for a Postscript previewer... (gsview32 gv ghostview kghostview) +checking for gsview32... no +checking for gv... yes checking for a PDF previewer... (acrobat acrord32 gsview32 acroread gv ghostview xpdf kpdf kghostview) +checking for acrobat... no +checking for acrord32... no +checking for gsview32... no +checking for acroread... no +checking for gv... yes checking for a DVI previewer... (xdvi windvi yap kdvi) +checking for xdvi... yes checking for an HTML previewer... (mozilla file://$$p$$i netscape) +checking for mozilla... no +checking for netscape... no checking for a PS to PDF converter... (ps2pdf13 $$i) +checking for ps2pdf13... yes checking for a DVI to PS converter... (dvips) +checking for dvips... yes checking for a DVI to PDF converter... (dvipdfm) +checking for dvipdfm... yes checking for a *roff formatter... (groff -t -Tlatin1 $$FName nroff) +checking for groff... yes checking for ChkTeX... (chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38) +checking for chktex... no checking for a spellchecker... (ispell) +checking for ispell... no checking for Octave... (octave) +checking for octave... no checking for Maple... (maple) +checking for maple... no checking for a fax program... (kdeprintfax ksendfax) +checking for kdeprintfax... no +checking for ksendfax... no checking for SGML-tools 1.x (LinuxDoc)... (sgml2lyx) +checking for sgml2lyx... no checking for SGML-tools 2.x (DocBook) or db2x scripts... (sgmltools db2dvi) +checking for sgmltools... no +checking for db2dvi... no checking for a spool command... (lp lpr) +checking for lp... yes checking for a LaTeX - HTML converter... (htlatex tth latex2html hevea) +checking for htlatex... yes checking LaTeX configuration... default values +checking list of textclasses... done creating packages.lst creating
RE: Editors for LaTeX-files with syntax highlighting
Uwe Stoehr wrote: Do you know other editors that offer syntax-highlighting for LaTeX and run on Windows? Crimson Editor: http://www.crimsoneditor.com/ Scintilla Text Editor: http://www.scintilla.org LaTeX Editor: http://www.latexeditor.org/ Kile: http://kile.sourceforge.net/ LaTeXEditor: http://www.ntu.edu.sg/home5/pg03053527/latexeditor/ Texmaker: http://www.xm1math.net/texmaker/ Emacs: http://www.math.aau.dk/~dethlef/Tips/introduction.html Nirvana Editor: http://nedit.gmxhome.de/latexmode.html Texmaker: http://www.xm1math.net/texmaker/download.html WinTeX: http://www.tex-tools.de/cms/ LaTexMng: http://www.latexsoft.com/latexmng.htm TeXShell: http://www.projectory.de/texshell/ WinShell: http://www.winshell.de/ There are probably others out there as well. Best wishes, Jack M. Lyon ___ The EDITORIUM Microsoft Word Add-Ins for Publishing Professionals http://www.editorium.com ___ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 4:56 PM To: LyX-Users Subject: Editors for LaTeX-files with syntax highlighting Hello LyXers, the next version of the windows installer will have support for editors with which LaTeX-files can be viewed with highlighted syntax. Currently I have built in support for jEdit, WinShell, TeXnicCenter, WinEdt, and WinTeX. The first editor that is found on the system will be set as viewer for LaTeX-files within LyX. Do you kow other editors that offer syntax-highlighting for LaTeX and run on Windows? thanks and regards Uwe
Re: Can't install lyx 1.3.7 on OS X. Can't see my tetex install
On Feb 2, 2006, at 9:28 PM, Daryl Moulder wrote: On 02/02/2006, at 12:56 AM, Bennett Helm wrote: On Feb 1, 2006, at 4:22 AM, Daryl Moulder wrote: I can't get lyx-aqua to see my tetex install, I've done the reconfigure thing, no dice. I'm using the standard Os X latex install in the /usr/local/teTeX/share/texmf.tetex/ dir. You need to be a bit more specific and provide more details. Is it that the LyX installer (which changes things in your LyX user's directory and makes sure certain LaTeX classes/styles are installed properly) gives you an error message when you run it saying that it can't find the TeX installation? No see below. The problem is when you try to open or create a new document. I cannot find any of the tex classes or styles. Reconfigure does not seem to find a valid tetex install (see Console.app) output. If there is a way of manually getting Lyx to point to where the standard styles are such as article etc, that would be helpful. (Did you run the installer? Yes I ran the installer, here is the output from the installer. The output from the installer indicates only that there is a kpsewhich executable at /usr/local/teTeX/bin/powerpc-apple-darwin- current -- the installer doesn't check to see whether latex is functional. I've never seen LyX's configure script give a not usable report on latex, but it seems that that is your problem, and that is why all latex classes are not recognized. (Can you run latex from the Terminal?) What happens if you reinstall teTeX? Bennett
textclass.lst
Hi. Where can I find textclass.lst ? And When do I install it ? Thanks, -- Carlos Fernando Knauer
Re: Mac Install Problems
Dear Lys Users, I have just upgraded to Mac OS X 10.4. I still have the same issues running Lyx. The application cannot find the Latex classes and the View menu does not contain any viewers. See thread for more details. Any help greatly appreciated. Regards, Ian Ian Stevenson Lecturer in Music Technology School of Communication Arts, University of Western Sydney Room BD1.17, Werrington South Campus Locked Bag 1797, SOUTH PENRITH DC NSW 1797 t: 02 9852 5403, f: 02 9852 5534, e: [EMAIL PROTECTED] edu.au *** This email is confidential correspondence. If you are not the intended recipient of this message as set out in the distribution fields above, please contact the School of Communication Arts on 61 2 9852 5570 to advise. Please remove the message from your system and consciousness, and do not forward the message to any other person or entity. The views expressed herein are not necessarily those of the University of Western Sydney. *** On 25/01/2006, at 11:24 AM, Ian Stevenson wrote: Dear Bennett, Many thanks for the reply. From my reading of the outputs below the install looks OK what do you make of it? Any further suggestions? Thanks for your help! Did you run the LyX installer script from the installer volume? That should tell you if you have a teTeX installation. Yes (To be sure, you can go to the Terminal and enter which pdflatex, and it should give you a path to that file's location.) Ian-Stevensons-Computer:~ ianstevenson$ which pdflatex /usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflatex The LyX User's folder is now located at ~/Library/Application Support/LyX. Running the installer script should move your old folder from ~/.lyx to this new location. This folder is present. What happens if you run (from the Terminal) /Applications/LyX.app/ Contents/Resources/lyx/configure Ian-Stevensons-Computer:~ ianstevenson$ /Applications/LyX.app/ Contents/Resources/lyx/configure checking for a LaTeX2e program... (latex latex2e) +checking for latex... yes checking for the pdflatex program... (pdflatex) +checking for pdflatex... yes checking for a LaTeX - LyX converter... (reLyX) +checking for reLyX... no checking for a Noweb - LyX converter... (noweb2lyx) +checking for noweb2lyx... no checking for a Noweb - LaTeX converter... (noweave) +checking for noweave... no checking for an HTML - LaTeX converter... (html2latex) +checking for html2latex... no checking for an MS Word - LaTeX converter... (wvCleanLatex word2x) +checking for wvCleanLatex... no +checking for word2x... no checking for a LaTeX - MS Word converter... (htlatex) +checking for htlatex... yes checking for Image converter... (convert) +checking for convert... yes checking for a Postscript previewer... (gsview32 gv ghostview kghostview) +checking for gsview32... no +checking for gv... no +checking for ghostview... no +checking for kghostview... no checking for a PDF previewer... (acrobat acrord32 gsview32 acroread gv ghostview xpdf kpdf kghostview) +checking for acrobat... no +checking for acrord32... no +checking for gsview32... no +checking for acroread... no +checking for gv... no +checking for ghostview... no +checking for xpdf... no +checking for kpdf... no +checking for kghostview... no checking for a DVI previewer... (xdvi windvi yap kdvi) +checking for xdvi... yes checking for an HTML previewer... (mozilla file://$$p$$i netscape) +checking for mozilla... no +checking for netscape... no checking for a PS to PDF converter... (ps2pdf13 $$i) +checking for ps2pdf13... yes checking for a DVI to PS converter... (dvips) +checking for dvips... yes checking for a DVI to PDF converter... (dvipdfm) +checking for dvipdfm... yes checking for a *roff formatter... (groff -t -Tlatin1 $$FName nroff) +checking for groff... yes checking for ChkTeX... (chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38) +checking for chktex... no checking for a spellchecker... (ispell) +checking for ispell... no checking for Octave... (octave) +checking for octave... no checking for Maple... (maple) +checking for maple... no checking for a fax program... (kdeprintfax ksendfax) +checking for kdeprintfax... no +checking for ksendfax... no checking for SGML-tools 1.x (LinuxDoc)... (sgml2lyx) +checking for sgml2lyx... no checking for SGML-tools 2.x (DocBook) or db2x scripts... (sgmltools db2dvi) +checking for sgmltools... no +checking for db2dvi... no checking for a spool command... (lp lpr) +checking for lp... yes checking for a LaTeX - HTML converter... (htlatex tth latex2html hevea) +checking for htlatex... yes checking LaTeX configuration... auto +Inspecting your LaTeX configuration. +checking for LaTeX version... 2003/12/01 +checking for default encoding (this may take a long time) + checking for ec fonts... yes + checking for ec support in LaTeX format... yes +checking for document class
Installing Lyx on nfs
HI, I have no idea if this topic has been discussed before or not. If yes then give me pointers to that. We have a linux network and i want the lyx to be centrally available so that each user is virtually using the same lyx. How this can be done ? The epitome of this exercise is that each time a layout/style/class has to be added then we have to update only on central server and each user will be able to access it. We already have a nfs server. Any ideas/help would be appreciated. Thanks Arun __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: thank you!
David, Just like to second your note of thanks; my own trifling query of some months ago was solved with both courtesy and patience and I have read (for one example only, see postings on Lyx is getting very annoying) with great pleasure the Lyx team rallying around a great number of other queries, again, with courtesy, patience and humour. Thanks to the the team too for the education provided me by my reading on this list. Questions I did not even know I had, answered and so clearly that I can implement them without further ado. One of the most informed, tolerant and well-regulated lists I have encountered. On Thu, 2006-02-02 at 10:18 -0500, [EMAIL PROTECTED] wrote: Hello! I wanted to thank everybody on this list for their help! I also wanted to thank all developers and all people who otherwise contribute to the development of LyX. SNIP Thank you again!! David -- Bruce Ernest Weller [EMAIL PROTECTED]
Re: LyX is getting... very annoying.
Marc D. wrote: I have created a rather large lyx file (all my course notes). In one section, I can't get it to work. I have reduced the problem to a minimum. There are 3 characters on my screen, in two lines. I get SIX errors with those 3 characters. Answer: it's the \textmf that causes ALL six errors. (and all 35 errors in my original file). All from a a single, obviously misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I don't USE different fonts in my document!) Seems you have found a bug in lyx, then. When I write 2^Q (in math mode), I get something that works. However, if I select the formula and change the font, I do get the same problem as you. This problem exists in lyx 1.4 too. If, however, I write 2^Q as text, then select it and press ctrl+M (to turn it into a formula, then I also get that problem. This time without doing any font change. This problem does not exist in the soon to be lyx 1.4, so it will go away. So I suggest, as a workaround, that you press ctrl+M first, then type your formula in math mode. Then it will work. You may also note that a formula _not_ using the troublesome \textrm will show up as blue in the lyx window, where the wrong formulas are black. I have just manually removed the \textmf from the .lyx file and now it works. Questions: What key sequence would have inserted \textmf when ANY occurence of such text causes so many errors? Why doesn't LyX do the right thing when converting said text to LaTeX? Error in lyx. Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? I had to go into the lyx file and manually delete the bugger. You probably type it the same way every time - I guess you write your formulas as text, then converts it to math? That technique doesn't work in lyx 1.3.4, although it is fixed in lyx 1.4. I recommend that you do it the other way; Activate math mode first (press ctrl+M or use the menus) then type in the formula. Helge Hafting
Re: LyX is getting... very annoying.
Marc D. wrote: I have just manually removed the \textmf from the .lyx file and now it works. I guess you mean \textrm? Questions: What key sequence would have inserted \textmf when ANY occurence of such text causes so many errors? Either \textrm followed by a non-letter character, or M-m, both when already inside the math formula. Why doesn't LyX do the right thing when converting said text to LaTeX? It does do the right thing, the error is that creating mathematical things inside \textrm should not be possible in LyX. This is a known bug (unfortunately not easy to fix): http://bugzilla.lyx.org/show_bug.cgi?id=1527 Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? I had to go into the lyx file and manually delete the bugger. You can always go at the first position inside the \textrm and press backspace. Then it will disappear. Georg
Re: LyX is getting... very annoying.
Marc D. wrote: Answer: it's the \textmf that causes ALL six errors. (and all 35 errors what you mean is \textrm in my original file). All from a a single, obviously misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I don't USE different fonts in my document!) I have just manually removed the \textmf from the .lyx file and now it works. \textrm is not the real problem! \begin_inset Formula $\textrm{2^{Q}}$ \end_inset this is nonsense! How did you insert it? 2^{Q} is a math expression, it cannot be part of \textrm, it should be an argument of\mathrm Herbert
Re: LyX is getting... very annoying.
Georg Baum wrote: It does do the right thing, the error is that creating mathematical things inside \textrm should not be possible in LyX. This is a known bug (unfortunately not easy to fix): http://bugzilla.lyx.org/show_bug.cgi?id=1527 Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? I had to go into the lyx file and manually delete the bugger. You can always go at the first position inside the \textrm and press backspace. Then it will disappear. \textrm inside math is _valid_ LaTeX code, but makes no real sense, because it takes the textfont instead of the roman math font. If a user inserts \textrm then it is on his own risk. If you do not allow this in math mode it is a regression, because it maybe useful for _text_ inside math without using amsmath. Herbert
Re: LyX 1.4 test
Hi, and sorry for my delayed reply. B.J. Muirhead wrote (24.1.2006 07:22): I had a similar problem, except that I had no menu entries at all! The solution, in my case, was to use the command line (M-F2) to run lyx-1.4 to accord with installation using --with-version-suffix=1.4 although I am running ubuntu, I suspect that something like this may be your problem, I hope :-) Well, this did not solve my problem. I have compiled the lyx-1.4 with the suffix, but the menu entries are still not visible. Does anyone have any other ideas how to make menu entries visible? As mentioned earlier: my system is SuSE 9.3+KDE 3.5.0+Qt3.3.5 and I have compiled lyx-1.4test with qt-frontend. Kind regards, Kimmo
Re: Caption horizontally as long as the width of the picture
Paul Smith writes: Dear All How can one have a caption horizontally as long as the width of the picture? One way is to use LyX's subfigure caption that is located under Extra Options of your Graphics object, but this introduces perhaps unwanted side effects (you gain a sub-figure, which is numbered (a), (b), (c), etc. by default). (If this interests you, take a look at the package subfig, which offers numerous options.) Another quick way which should work... 1. Create your figure 2. Add graphic 3. Note/set width of graphic 4. Delete default Figure # 5. Add a LyX minipage below graphic (inside float) 6. Inside minipage using ERT add \caption{Your caption goes here...} 7. Set width of minipage to same as graphic (right-click inside minipage) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Caption horizontally as long as the width of the picture
Paul Smith wrote: How can one have a caption horizontally as long as the width of the picture? http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width http://www.dante.de/CTAN//help/Catalogue/entries/hvfloat.html Herbert
Re: Caption horizontally as long as the width of the picture
Kevin Pfeiffer writes: 6. Inside minipage using ERT add \caption{Your caption goes here...} For the sake of thoroughness... \caption[short caption here for list of figures]{Long caption here} -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Caption horizontally as long as the width of the picture
Herbert Voss writes: http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width Something wrong with the domain name here, I think... -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: Caption horizontally as long as the width of the picture
Kevin Pfeiffer wrote: Herbert Voss writes: http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width copy and paste without thinking ... http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width Something wrong with the domain name here, I think... Herbert
Re: LyX is getting... very annoying.
Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. JMarc
Re: LyX is getting... very annoying.
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. as I wrote in the other mail, it is _valid_ LaTeX code. And from my point of view, LyX should not be too clever. \text{} is the same problem, you have to use $...$ inside it for math, same for \mbox. It doesn't really make sense, to have such cases, but it is not unusual and I used it by myself! Marc did something wrong, not LyX! In some cases I want an upright math character, then I use \mathrm{..} and sometime I want the text character. \mathrm takes all from the _math_ font and ignores spaces! \textrm takes all from the current text font and accepts spaces! This is far different. And by the way, the question is, what Marc had in mind? An upright Q inside math, then it should be 2^{\mathrm{Q}}. An upright Q outside math, then it should be \textrm{2\textsuperscript{Q}} There is no general rule, which says, what to do ... Herbert
Re: LyX 1.4 test
Sorry, I t didn't help. On Thu, 2006-02-02 at 10:30 +0200, K. Elo wrote: Hi, and sorry for my delayed reply. B.J. Muirhead wrote (24.1.2006 07:22): I had a similar problem, except that I had no menu entries at all! The solution, in my case, was to use the command line (M-F2) to run lyx-1.4 to accord with installation using --with-version-suffix=1.4 although I am running ubuntu, I suspect that something like this may be your problem, I hope :-) Well, this did not solve my problem. I have compiled the lyx-1.4 with the suffix, but the menu entries are still not visible. Does anyone have any other ideas how to make menu entries visible? As mentioned earlier: my system is SuSE 9.3+KDE 3.5.0+Qt3.3.5 and I have compiled lyx-1.4test with qt-frontend. Kind regards, Kimmo
Re: Caption horizontally as long as the width of the picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: http://voss.homedns.org/cgi-bin/mainFAQ.cgi?file=floats/width copy and paste without thinking ... http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width Something wrong with the domain name here, I think... I thank Kevin and Herbert for the useful help. Paul
OT: Converter matrix to picture
Dear All This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Thanks in advance, Paul
Re: OT: Converter matrix to picture
Paul Smith writes: Dear All This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? www.processing.org (also for Windows) -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: LyX is getting... very annoying.
Helge Hafting [EMAIL PROTECTED] writes: If, however, I write 2^Q as text, then select it and press ctrl+M (to turn it into a formula, then I also get that problem. This time without doing any font change. This problem does not exist in the soon to be lyx 1.4, so it will go away. So I suggest, as a workaround, that you press ctrl+M first, then type your formula in math mode. Then it will work. Either that, or surround the text with \( and \) for inline math, or \[ and \] for display math. I mean, if you select \(2^Q\) and press ctrl+M everything is ok (even $2^Q$ works). -- Enrico
Re: OT: Converter matrix to picture
Paul Smith wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? Herbert
Re: OT: Converter matrix to picture
On Feb 2, 2006, at 9:00 AM, Herbert Voss wrote: Paul Smith wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? Matlab will do that with the 'spy' command
Re: Mac Install Problems
Ian - Sorry for letting your e-mail slip past me without a response. On Jan 24, 2006, at 7:24 PM, Ian Stevenson wrote: (To be sure, you can go to the Terminal and enter which pdflatex, and it should give you a path to that file's location.) Ian-Stevensons-Computer:~ ianstevenson$ which pdflatex /usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflat Good ... and it's clear that LyX can find the installation. What happens if you run (from the Terminal) /Applications/LyX.app/ Contents/Resources/lyx/configure Ian-Stevensons-Computer:~ ianstevenson$ /Applications/LyX.app/ Contents/Resources/lyx/configure checking for a LaTeX2e program... (latex latex2e) +checking for latex... yes checking for the pdflatex program... (pdflatex) +checking for pdflatex... yes ... checking LaTeX configuration... auto +Inspecting your LaTeX configuration. +checking for LaTeX version... 2003/12/01 +checking for default encoding (this may take a long time) + checking for ec fonts... yes + checking for ec support in LaTeX format... yes +checking for document class IEEEtran [IEEEtran]... no +checking for document class aa [aa]... no +checking for document class aapaper [aa]... no +checking for document class aastex [aastex]... no +checking for document class agums [aguplus,agums.sty]... no +checking for document class amsart-plain [amsart]... yes +checking for document class amsart-seq [amsart]... yes +checking for document class amsart [amsart]... yes +checking for document class amsbook [amsbook]... yes +checking for document class apa [apa,apacite.sty]... no +checking for document class article [article]... yes +checking for document class book [book]... yes ... All this looks normal. My guess is that for some reason the PATH environment variable isn't being set properly from within LyX. Check LyX Preferences Paths PATH prefix: it should be set to /usr/bin:/usr/local/bin:/usr/local/ teTeX/bin/powerpc-apple-darwin-current:/usr/X11R6/bin:/sw/bin:/opt/ local/teTeX/bin (without the quotes). (In theory running the installer script should take care of this, but perhaps something went wrong in your case.) Also make sure that other paths are pointing to the new location of your LyX user's folder, so that LyXServer pipe is set to (in my case) /Users/bennett/Library/Application Support/ LyX/.lyxpipe (again without the quotes). If you've made changes there, run Edit Reconfigure once again, and see if it works. Bennett
Re: OT: Converter matrix to picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. Paul
Re: LyX is getting... very annoying.
On Wed, 01 Feb 2006 23:34:17 -0800 Marc D. [EMAIL PROTECTED] wrote: I have created a rather large lyx file (all my course notes). In one section, I can't get it to work. I have reduced the problem to a minimum. There are 3 characters on my screen, in two lines. I get SIX errors with those 3 characters. Answer: it's the \textmf that causes ALL six errors. You mean \textrm (and all 35 errors in my original file). All from a a single, obviously misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I don't USE different fonts in my document!) Well, the thing is, in order to typeset the 2^Q, you should use math-mode -- which you seemed to have done. However, _within_ math mode, if you go into math-mode _again_, LyX treats it as text-within-a-formula -- an inset of a text box within the formula inset. You may have done that inadvertantly, or you may be trying to get the 2^Q to display without the Q being italicized. At any rate, TeX then thinks you are trying a math layout inside a text region, and will get confused. If you just hit the math-mode menu item a second time, then don't do that. If you want to avoid the italicized Q, then, ... , there is a way. Go into math-mode. Type the 2, then type ^ to get in the superscript. Then toggle math-mode again, inside the superscript box, and type your Q. Questions: What key sequence would have inserted \textmf when ANY occurence of such text causes so many errors? It's the double entry into math-mode, which gets you a text box within a math box, that was the problem. Why doesn't LyX do the right thing when converting said text to LaTeX? Because it thinks it isn't supposed to do that. Why, when I erased the entire paragraph containing this string and retyped it, did the textmf string REAPPEAR in exactly the same place?? Because you typed it in the same way. -- David L. Johnson __o | A foolish consistency is the hobgoblin of little minds, adored _`\(,_ | by little statesmen and philosophers and divines. --Ralph Waldo (_)/ (_) | Emerson
Re: LyX is getting... very annoying.
On Thu, 02 Feb 2006 09:09:40 +0100 Helge Hafting [EMAIL PROTECTED] wrote: If, however, I write 2^Q as text, then select it and press ctrl+M (to turn it into a formula, then I also get that problem. You can make that work properly in 1.3.* by entering $2^Q$ as text, then hitting math mode. This allows the insertion of bits of TeX text properly in LyX. -- David L. Johnson __o | Some people used to claim that, if enough monkeys sat in front _`\(,_ | of enough typewriters and typed long enough, eventually one of (_)/ (_) | them would reproduce the collected works of Shakespeare. The internet has proven this not to be the case.
Re: OT: Converter matrix to picture
Paul Smith wrote: On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. I need the exact LaTeX Definition, e.g. \begin{pmatrix} The above make things complicated, because 0.1 and 1 different Herbert
thank you!
Hello! I wanted to thank everybody on this list for their help! I also wanted to thank all developers and all people who otherwise contribute to the development of LyX. I have finished my dissertation and defended my thesis successfully. LyX Beamer made it very easy for me to concentrate only on the things that mattered (like the text of the dissertation ;)) and with the help of this mailing list I have solved every peculiar problem that I created. I must say that I found LyX extremely useful and stable! It is obvious that it's being developed by people who both enjoy it know what they are doing! While I started using LyX because I was lazy writing equations in plain LaTeX, I ended up using LyX for my daily needs. Thank you again!! David
Re: LyX is getting... very annoying.
On Thu, 02 Feb 2006 10:30:16 +0100 Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. I believe the advantage will be for entering more than one word, with spaces and all. At any rate, the simple toggle to insert text this way means that that is what I have been doing for years with it, to no ill effect. -- David L. Johnson __o | Business! cried the Ghost. Mankind was my business. The _`\(,_ | common welfare was my business; charity, mercy, forbearance, (_)/ (_) | and benevolence, were, all, my business. The dealings of my trade were but a drop of water in the comprehensive ocean of my business! --Dickens, A Christmas Carol
Re: LyX is getting... very annoying.
David L. Johnson wrote: On Thu, 02 Feb 2006 10:30:16 +0100 Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. I believe the advantage will be for entering more than one word, with spaces and all. At any rate, the simple toggle to insert text this way means that that is what I have been doing for years with it, to no ill effect. this is what I wanted to say, if you know what you are doing, \textrm is a nice macro inside math ... Herbert
Re: LyX is getting... very annoying.
David L. Johnson wrote: On Thu, 02 Feb 2006 10:30:16 +0100 Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert this is nonsense! How did you insert it? 2^{Q} is a math Herbert expression, it cannot be part of \textrm, it should be an Herbert argument of\mathrm Herbert, while we are at it, does it ever make sense to use \textrm in math? I am a bit puzzled about what this really does. I would tend to use \mathrm{} for a variable name in upright shape, and \mbox{} or \text{} for something which is more like a word. I believe the advantage will be for entering more than one word, with spaces and all. At any rate, the simple toggle to insert text this way means that that is what I have been doing for years with it, to no ill effect. this is what I wanted to say, if you know what you are doing, \textrm is a nice macro inside math ... I find \textrm inside math mode very useful. I particular I use it when I need to add hyphenated units at the end of an equation, e.g. L=10 kN-m. \mathrm will substitute the longer minus sign while \textrm leaves the short hyphen Steve
Re: Positioning graphics in beamer
Enrico Forestieri wrote: Declan O'Byrne [EMAIL PROTECTED] writes: Thanks. for this. I think your instructions apply to lyx. But I'm attempting to do the same thing in kile. I suppose if I knew how to define the position according to coordinates, I'd be better off. I just want the pictures to grow from the bottom right hand side of the slide. What are the coordinates of a slide? How are they defined? What is, for example, the bottom left? The bottom right? The top left? The top right? The centre? I should be able to work from there. Unless there's an easier way to do it. I see that latex speaks about center, but it won't let me choose right. Here is a trick I use to position a figure. Put the following in the preamble: \newcommand{\putat}[3]{\begin{picture}(0,0)(0,0)\put(#1,#2){#3}\end{picture}} and then in the text: \putat{130}{-100}{\includegraphics{...}} In LyX it would be: \putat{130}{-100}{ - in ERT graphics inset } - in ERT The horizontal (first parameter) and vertical (second parameter) displacements are in terms of \unitlength (default is 1pt) and are relative to the position where the \putat command appears. Note that when \putat is defined as done above, the figure (or whatever) does not take space in LaTeX. Hope this helps. -- Enrico You can also do this with the textpos package. In the preamble of the beamer file, add \usepackage[absolute,overlay]{textpos}. In the slide where the graphic should go: \begin{textblock*}{50mm}[1,1](118mm,86mm) \includegraphics... \end{textblock*} The width 50mm should be changed to the estimated width of the graphic. The option [1,1] says that the position specified is for the bottom right corner of the block. The coordinates (118mm,86mm) are based on the default 1cm margins on a 128mm x 96mm beamer slide. This approach suffers from exactly the same problem as the \putat approach: the image occupies no space, so text on the page will overprint it. An alternative is to create a 2x2 table with no borders, merge the two columns in the first row, and give the merged first row and the left column of the second row fixed widths (so that text in them will wrap, and multiple lines are allowed). Put the graphic in the lower right cell. This introduces some extra vertical space between lines in the first row of the table and lines in the second row, left column, plus it requires you to manually juggle lines to balance the two rows. Not very satisfactory, but at least the graphic will not be overprinted. /Paul
Re: OT: Converter matrix to picture
Paul Smith wrote: On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. hope, this helps Herbert \documentclass[12pt]{article} \usepackage{amsmath,xcolor} \pagestyle{empty} \begingroup \makeatletter \catcode`\0=\active \catcode`\1=\active [EMAIL PROTECTED] \newenvironment{makeActive}{% \catcode`\0=\active \catcode`\1=\active \def0{\colorbox{black}{\phantom{I}}}% \def1{\colorbox{yellow}{\phantom{I}}}% }{}% } \makeatother \def\zero{\string0} \def\one{\string1} \begin{document} \[ \begin{makeActive} \begin{pmatrix} x\backslash y \zero.\one \zero.2 \zero.3 \zero.4 \zero.5 \zero.6\\ \zero.\one1 0 1 1 0 1\\ \zero.2 0 1 1 1 0 1\\ \zero.3 1 1 0 1 1 0\\ \end{pmatrix} \end{makeActive} \] \end{document}
Re: Positioning graphics in beamer
Thanks for these suggestions. I'm looking forward to trying them out, as soon as I can. Oh, and I reverted to Kubuntu on the laptop, so I now have beamer available to lyx. Thanks again, Declan
Re: OT: Converter matrix to picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? what kind of matrix? An example follows: x\y 0.1 0.2 0.3 0.1 1 0 1 0.2 0 1 1 0.3 1 1 0 but my matrix is much larger, i.e., with many more rows and columns. hope, this helps Thanks, Herbert. That is a beautiful example, but it does not correspond to what I mean. I admit that it is my fault, as it seems that I was not clear enough. I will try to be clearer now. Imagine that you need to draw a circumference, and that you are given only a set of hundreds and hundreds of points (x,y) belonging to the circumference. Furthermore, suppose that you are unable to determine the circumference equation. My problem is similar to the one just described: I have hundreds of points in the form (x,y) that I want to display in an appropriate rectangle, along the same lines as one draws level curves. Is it now clear? Paul
Lyx 1.3.7 Win32: Some incorrect math glyphs displayed on screen; dvi,pdf is ok
Hi, First of all I would like to say that like LyX a lot. Nice software. There are some small issues, however, I hope someone can help. Some math glyphs are displayed incorrect on screen; however the output dvi,pdf is ok. How to reproduce: 1. New document 2. Menu: Insert / Math / Inline Formula 3. Use math pannel to insert any operator, e.g. if I click the button with the plus-minus (\pm), on screen I get the paragraph glyph. Or \cup results in '['. Note: I did a full install of MikTeX 2.4.1461 with *all* packages. I did not change any configuration setting. Screen fonts are: Times New Roman Verdana Courier New I run Microsoft Windows Server 2003 (also Microsoft Office 2003 is installed so all it's fonts are there). Met vriendelijke groet, Peter
LyX 1.3.7 Win32 + MikTeX 2.4.1461: New LyX document from template fails (for many templates) with error missing TeX class
Hi In LyX 1.3.7 Win32 + MikTeX 2.4.1461: Trying to create a new LyX document from template fails for many templates with error missing TeX class. For example: aa.lyx results in: ``Textclass error The document uses a missing TeX class aa. LyX will not be able to produce output. I did a MikTeX refresh file name database and refresh format files. That didn't help. I did a search in c:\texmf for aa.*; only aa.4ht shows up. I have done a full install of MikTeX (and an update today). Met vriendelijke groet, Peter
Re: Lyx 1.3.7 Win32: Some incorrect math glyphs displayed on screen; dvi,pdf is ok
Peter Hegt wrote: Some math glyphs are displayed incorrect on screen; however the output dvi,pdf is ok. 3. Use math pannel to insert any operator, e.g. if I click the button with the plus-minus (\pm), on screen I get the paragraph glyph. Or \cup results in '['. You didn't install the math fonts. They are automatically installed when you use this installer: http://wiki.lyx.org/Windows/LyXWinInstaller You can also install them manually: ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.0.zip Don't forget to reconfigure LyX after this. regards Uwe
Re: LyX 1.3.7 Win32 + MikTeX 2.4.1461: New LyX document from template fails (for many templates) with error missing TeX class
Peter Hegt wrote: Hi In LyX 1.3.7 Win32 + MikTeX 2.4.1461: Trying to create a new LyX document from template fails for many templates with error missing TeX class. For example: aa.lyx results in: ``Textclass error The document uses a missing TeX class aa. LyX will not be able to produce output. I did a MikTeX refresh file name database and refresh format files. That didn't help. I did a search in c:\texmf for aa.*; only aa.4ht shows up. I have done a full install of MikTeX (and an update today). As far as I know, 'aa' is not available as part of the MiKTeX distribution. If you want to use it, you need to download it, install it manually, then update the MiKTeX file database. In LyX, Help-LaTeX Configuration will display a list of what LyX looks for and what it found, and in many case (including 'aa') a pointer to where you can find it on CTAN. Broadway is another class that is not available within MiKTeX but for which LyX has a layout. Note that, after installing classes in MiKTeX, you need to start LyX, run Edit-Reconfigure, wait for the configuration script to complete, then close and restart LyX to get the benefit of the new classes. /Paul
Re: OT: Converter matrix to picture
On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html but, unfortunately, I do not have Matlab. Paul
Re: Caption horizontally as long as the width of the picture
Herbert Voss [EMAIL PROTECTED] writes: http://tug.org/TeXnik/mainFAQ.cgi?file=floats/width Very cool, Herbert. I have LyXfied a bit your example ;-) -- Enrico #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \newsavebox{\gBox} \renewenvironment{figure} [EMAIL PROTECTED] [EMAIL PROTECTED] \newcommand{\myFigure}[1]{% \sbox{\gBox}{#1} \centering \begin{minipage}{\wd\gBox} \usebox{\gBox} } \end_preamble \language english \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard { \end_inset \begin_inset Graphics filename rose.eps width 4cm \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \layout Caption \begin_inset LatexCommand \label{fig:bild} \end_inset Bildunterschrift, die auch in jedem Fall lang genug ist \end_inset \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard { \end_inset \begin_inset Graphics filename rose.eps rotateAngle 30 \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \layout Caption Bildunterschrift, die auch in jedem Fall lang genug ist \end_inset \the_end
Re: OT: Converter matrix to picture
Paul Smith wrote: On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html tell me the structure of your data file? Are the values also saved as a matrix? Herbert
Re: OT: Converter matrix to picture
On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html but, unfortunately, I do not have Matlab. And unfortunately this command is not in Octave (the open source version of Matlab) I think you are going to have to do some programming.
Re: OT: Converter matrix to picture
Paul Smith writes: Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html Having not looked at Herbert's suggestion, I am now quite confused (as I would have guessed that that is what it does). It seems you simply want to plot points on a grid whose intersections correspond to row and columns in your matrix of ones and zeros. (Isn't that what Herbert's code did? Perhaps you just needed to scale the grid? Or set the background to same color as the zeroes?) Processing (see prev. post) would also do this for you in perhaps 6 to 8 lines of code. -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: OT: Converter matrix to picture
En/na Stephen Buonopane ha escrit: On 2/2/06, Stephen Buonopane [EMAIL PROTECTED] wrote: This may be a bit out of topic. I have a matrix of ones and zeros with which I would like to produce a picture in such a way that the ones would be represented in black, say, and the zeros in yellow. Does somebody know of a program (for Linux) to create my picture? Matlab will do that with the 'spy' command Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html but, unfortunately, I do not have Matlab. And unfortunately this command is not in Octave (the open source version of Matlab) I think you are going to have to do some programming. Gnuplot has some colormap drawing capabilities. You could try that.
Re: OT: Converter matrix to picture
On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote: Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html tell me the structure of your data file? Are the values also saved as a matrix? Thanks to all. An example of a data file is attached. It is a text file with a matrix. Each column corresponds to x-coordinate, whereas each row corresponds to y-coordinate. Both x and y have the same range: [0,1]. From column to column, x increases 0.1. From row to row, y increases 0.1. First column corresponds to x=0 and first row to y=0. Paul 0 1 1 0 0 0 0 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 1 1 0 0
Re: OT: Converter matrix to picture
On 2/2/06, Paul Smith [EMAIL PROTECTED] wrote: Yes, that is what I mean. An illustration is at http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html tell me the structure of your data file? Are the values also saved as a matrix? Thanks to all. An example of a data file is attached. It is a text file with a matrix. Each column corresponds to x-coordinate, whereas each row corresponds to y-coordinate. Both x and y have the same range: [0,1]. From column to column, x increases 0.1. From row to row, y increases 0.1. First column corresponds to x=0 and first row to y=0. Gnuplot seems to be able to plot points and export the result as a LaTeX file. I will give it a try tomorrow. Paul
Re: LyX 1.3.7 Win32 + MikTeX 2.4.1461: New LyX document from template fails (for many templates) with error missing TeX class
Paul A. Rubin wrote: Broadway is another class that is not available within MiKTeX but for which LyX has a layout. Only for information: When you use this installer: http://wiki.lyx.org/Windows/LyXWinInstaller The LyX-specific LaTeX-classes chess, broadway, cv, and hollywod are automatically installed. regards Uwe
Editors for LaTeX-files with syntax highlighting
Hello LyXers, the next version of the windows installer will have support for editors with which LaTeX-files can be viewed with highlighted syntax. Currently I have built in support for jEdit, WinShell, TeXnicCenter, WinEdt, and WinTeX. The first editor that is found on the system will be set as viewer for LaTeX-files within LyX. Do you kow other editors that offer syntax-highlighting for LaTeX and run on Windows? thanks and regards Uwe