Re: 100% CPU usage for LyX 1.3.5 and questions on LyX 1.4
--- Angus Leeming [EMAIL PROTECTED] wrote: Anyway, rather than try and debug the problem in LyX 1.3.5 which isn't anything to do with us, perhaps you'll try out LyX 1.3.7pre5 (http://wiki.lyx.org/Windows/LyX137pre) which is now known to run reasonably well on Win98. A (small) word of warning: the Installer runs a shell script configure and some users have reported that this is failing. If you launch LyX and find a pop up about unable to find texclass.lst or somesuch, then open up an MSYS terminal window, go to the C:\Program Files\LyX\Resources\lyx directory (or whereever you installed LyX) and type sh configure I just wanted to report what I tried so far. It will not install if you dont have some VB libraries I think. I tried to install it in my office where I am running win98se, and it would not install because it was asking for some Visual Basic or Visual C++ libraries. I didn't want to mess things up in the office. So I went back home and got myself some unofficial service packs for win98se which included those libraries and a replacement for some system dll files for win98 (but I wouldnt recommend everyone to do this, as this is risky for those who have no experience in changing the system dll files).. it did install lyx, but then I think this unable to find .. *blah* error you mentioned. I havent tried anymore with the solution you suggested, since I busted my computer afterwards. I will experiment on this again when all my computers are in top condition. Sincerely, Jose Capco __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: LyX 1.3.6 and ispell problem
Jan Willemson wrote: [...] Well, actually I am trying to spell an Estonian text, but the problem with English was the same so I described that one. Anyway, after installing the aspell-en package, I can spell English text, though LyX still shows me that it is using ispell, and installing aspell dictionaries should have changed nothing. Trying to spell sometning in Estonian from LyX with ispell still cives complaints about missing et_EE word list. Which is strange, because en and et_EE are aspell terminology and as far as I know, ispell does not use such naming of languages. So in the end of the day, I suspect that LyX 1.3.6 has a bug of still trying to use aspell, even if ispell is chosen in Preferences - Spellchecker. Or is is the problem between the chair and the computer Looks like your lyx decides to use aspell anyway - maybe ispell support isn't compiled in or something? There is an aspell-et with Estonian spelling, perhaps you should try that. Or is there some other reason for sticking to ispell? Lyx using aspell even when you specify ispell is a bug, consider registering the bug at bugzilla.lyx.org Helge Hafting
Re: Lyx-WIndows-Python
Mohsin Mohd Sies wrote: I have a strange problem. I've just installed Lyx on Windows. What installer did you use, this one: http://wiki.lyx.org/Windows/LyXWinInstaller or this one http://wiki.lyx.org/Windows/LyX136 http://wiki.lyx.org/Windows/LyX137pre I've also installed Python and all other packages as needed during installation. The problem is that when I tried to print, I got an error message cannot convert file, error while executing python c:/Program Files/LyX/Resources/lyx/scripts Could you please start LyX from then Win console with the command lyx -dbg 3 and send what error message appear in the console window. Does it work when you export the LyX-file to PDF or DVI? regards Uwe
Re: Lyx-WIndows-Python
Uwe Stöhr wrote: Could you please start LyX from then Win console with the command lyx -dbg 3 better: lyx -dbg info,init (the result is the same, but using names for the debug flags is better to remember) Georg
Re: Business letter (on letterhead) template for LyX
Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change. If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) Why not use the same wide margin on all pages (no one was ever punished for using too much white space -- well, unless maybe it was for a dissertation)? Or do as my wife does at her Uni -- she uses letterhead that has only the logo pre-printed and prints the right margin letterhead stuff herself (its all in her template). Sorry I couldn't help more. (The other two items I think you can find in the manual.) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: LyX 1.3.6 and ispell problem
So in the end of the day, I suspect that LyX 1.3.6 has a bug of still trying to use aspell, even if ispell is chosen in Preferences - Spellchecker. Or is is the problem between the chair and the computer Looks like your lyx decides to use aspell anyway - maybe ispell support isn't compiled in or something? There is an aspell-et with Estonian spelling, perhaps you should try that. Or is there some other reason for sticking to ispell? Yes, and the reason is that aspell-et used to be a dead branch of an old student project, with ispell having a much better dictionary. But I will take a look, perhaps aspell has improved (actually it might). Lyx using aspell even when you specify ispell is a bug, consider registering the bug at bugzilla.lyx.org Before doing that -- does anyone else have a similar problem? LyX 1.4.0beta seems to handle ispell better (apart from the fact that spelling in 1.4.0beta is broken in general, but that's due to being beta). So unless there will be another maintenance release of 1.3.* branch, this bugreport wiould not change much... Thanx anyway, Jan
Re: LyX 1.3.6 and ispell problem
Jan Willemson wrote: LyX 1.4.0beta seems to handle ispell better (apart from the fact that spelling in 1.4.0beta is broken in general, but that's due to being beta). Is that reported in bugzilla? If not, please do that. BTW, there is no beta. There is 1.4.0pre1, pre2 and pre3. So unless there will be another maintenance release of 1.3.* branch, this bugreport wiould not change much... That is true as long as the particular bug is not present in 1.4.0pre3. No work is done on the 1.3 branch anymore, 1.3.7 with the accumulated fixes since 1.3.6 will be out soon. Georg
Re: New Windows version
David A. Case [EMAIL PROTECTED] writes: Have you also tried to build a cygwin version? Since cygwin already suppies tex/latex/perl/python/sh/sed, etc., and since many people (like me) make extensive use of cygwin, having a cygwin package (that understands its posix-like paths) would be very valuable. Hi Dave. I also extensively make use of cygwin, but the last cygwin version I built was 1.3.5. At that time I also had to compile Qt, but now I see that there is a cygwin package for it. So, apart some minor gotchas, I think that the procedure to build a cygwin version is not more than the usual configure, make, make install route. This would give you a X11 version, so you have to start XWin. It would be interesting to build a cygwin Qt but with win32 gui. I saw that there is a cygwin-g++-win32 target in the Qt sources that gives you exactly that, but when I tried this option I had some problems with include files. If I remember correctly, the problem was that some definitions were available only in the includes brought in by the -mno-cygwin switch. I tried to move the necessary mingw includes from /usr/include/mingw to /usr/local/include/mingw and force their inclusion instead of the cygwin ones, but then I had some clashing and eventually gave up. I still think that with some tampering it could be done, but I don't see it as necessary. After all, the cygwin programs understand both posix and win32 paths. The only problem I had with a native LyX using cygwin tools was that /usr/bin/python.exe is a symlink to the real executable /usr/bin/python2.4.exe, and native programs don't understand cygwin symlinks. See, for example, http://www.cygwin.com/ml/cygwin/2004-09/msg00967.html This problem (and also similar ones) can be easily overcomed by using batch files. If you put the following batch file: $ cat python.bat @echo off python2.4 %* exit in LyX/bin, which is searched before all other dirs in the path, you're done. (Replace %* with %1 %2 %3 %4 %5 %6 %7 %8 %9 if you use something less than win2k). I am quite happy with a native LyX + cygwin. -- Enrico
Creating a .layout file with two command arguments
Group, I'm trying to make a .layout file for sae.cls. I have everything working except the authors. In the sae class, the authors are added using the command: \AddAuthor{Author name}{Affiliation} If I try: Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. My alternative right now is to use \AddAuthor in the document preamble, which seems to work fine. Any help is much appreciated. Jeremy
Re: Lyx-WIndows-Python
On 1/16/06, Uwe Stöhr [EMAIL PROTECTED] wrote: Mohsin Mohd Sies wrote: I have a strange problem. I've just installed Lyx on Windows. What installer did you use, this one: http://wiki.lyx.org/Windows/LyXWinInstaller Sorry about that, I used lyx-1.3.6_win32_setup_v1.exe. I also have cygwin previously installed. To satisfy Lyx, I installed MingW alongside. Could this be the source of the problem? or this one http://wiki.lyx.org/Windows/LyX136 http://wiki.lyx.org/Windows/LyX137pre I've also installed Python and all other packages as needed during installation. The problem is that when I tried to print, I got an error message cannot convert file, error while executing python c:/Program Files/LyX/Resources/lyx/scripts Could you please start LyX from then Win console with the command lyx -dbg 3 and send what error message appear in the console window. Does it work when you export the LyX-file to PDF or DVI? Yes I tried exporting to pdf and ps too, same error. Following Georg's suggestion, I'm running it from lyx -dbg info,init right now. Just a simple text, saved, then trying to export to pdf. It's hanging now.. The console output is; Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Program Files\LyX\binlyx -dbg info,init Setting debug level to info,init Debugging `info' (General information) Debugging `init' (Program initialisation) Checking whether LyX is run in place... no package binary_dir C:/Program Files/LyX/bin/ system_support C:/Program Files/LyX/Resources/lyx/ build_support user_support C:/Documents and Settings/Mohsin/Application Data/LyX/ locale_dir C:/Program Files/LyX/Resources/locale/ document_dir C:/Documents and Settings/Mohsin/My Documents temp_dir C:/Documents and Settings/Mohsin/Local Settings/Temp/ home_dir C:/Documents and Settings/Mohsin /package Setting locale directory to C:/Program Files/LyX/Resources/locale/ Initializing LyX::init... About to read lyxrc.defaults... Found lyxrc.defaults in C:/Documents and Settings/Mohsin/Application Data/LyX/ly xrc.defaults About to read preferences... Found preferences in C:/Documents and Settings/Mohsin/Application Data/LyX/prefe rences About to read encodings... Reading encoding iso8859-2 Reading encoding iso8859-3 Reading encoding iso8859-4 Reading encoding iso8859-5 Reading encoding iso8859-6 Reading encoding iso8859-7 Reading encoding iso8859-9 Reading encoding iso8859-13 Reading encoding iso8859-15 Reading encoding cp1255 Reading encoding cp1251 Reading encoding koi8 Reading encoding koi8-u Reading encoding tis620-0 Reading encoding pt154 About to read languages... Reading language afrikaans Reading language american language stuff Reading language welsh Reading layouts... About to read default... Found default in C:/Program Files/LyX/Resources/lyx/ui/default.ui LyX tmp dir: `C:/Documents and Settings/Mohsin/Local Settings/Temp/lyx_tmpdir395 6a03312' Reading lastfiles `C:/Documents and Settings/Mohsin/Application Data/LyX/lastfil es'... Initializing LyX::init...done Initializing LyXFunc Initializing key mappings... Buffer::Buffer() Assigning to buffer 0 Setting buffer in BufferView (0x1ca1cc8) Buffer addr: 0x1ca1cc8 resizeCurrentBuffer lyx header finished preamble finished, now the body. Finished making LaTeX file. Row count was 92. end console That's all. Lyx bottom bar shows Executing command: python C:/Program Files/LyX/Resources/lyx/scripts/clean_dvi.py newfile3.dvi tmpfile.out I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) Thanks regards Uwe
Re: Lyx-WIndows-Python
Mohsin Mohd Sies [EMAIL PROTECTED] writes: Executing command: python C:/Program Files/LyX/Resources/lyx/scripts/clean_dvi.py newfile3.dvi tmpfile.out I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) Please, see this post: http://article.gmane.org/gmane.editors.lyx.general/27299 Essentially, if you use the cygwin python, you have to put in C:\Program Files\LyX\bin the following script (named python.bat) 8888 @echo off python2.4 %1 %2 %2 %3 %4 %5 %6 %7 %8 %9 exit 8888 If you have a previous version of cygwin, you may instead have python2.3. Check that and replace accordingly line 2 above. -- Enrico
Re: Lyx-WIndows-Python
Mohsin Mohd Sies wrote: I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) It seems so. The console messages don't help. Could you deinstall cygwin (or if this isn't possible cygwin's LaTeX-packages), restart your system and try to install with the Installer from http://wiki.lyx.org/Windows/LyXWinInstaller (download the latest version directly from the project homepage) regards Uwe
Re: Creating a .layout file with two command arguments
in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. This is not possible in a dynamic way (i.e. you only can specify one parameter into LyX window). Perhaps, a workaround could consist in using two layout styles as the folowing (not tested): Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End Style Affiliation MarginStatic LatexTypeCommand InTitle1 LatexNamedonothing Preamble \newcommand{\donothing}[1]{{#1}} EndPreamble End ... which would generate the following LaTeX code: \AddAuthor{Author name}\donothing{Affiliation} Hope that this will help... Mael. -- Mael Hilléreau
Re: Lyx-WIndows-Python
I didn't deinstall cygwin, but I removed cygwin's paths from Windows Environment and I also deleted my local Lyx settings under C:\Document Settings\luser\Application Data and restarted Lyx and let it rebuild that directory. It seems to work fine after that. Afterwards, I put back cygwin's path into Windows paths and it still works. It works, but still a mystery. Thanks On 1/16/06, Uwe Stöhr [EMAIL PROTECTED] wrote: Mohsin Mohd Sies wrote: I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) It seems so. The console messages don't help. Could you deinstall cygwin (or if this isn't possible cygwin's LaTeX-packages), restart your system and try to install with the Installer from http://wiki.lyx.org/Windows/LyXWinInstaller (download the latest version directly from the project homepage) regards Uwe
ERT Latex export
Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
Re: Business letter (on letterhead) template for LyX
Kevin Pfeiffer wrote: Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change. If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) Why not use the same wide margin on all pages (no one was ever punished for using too much white space -- well, unless maybe it was for a dissertation)? Or do as my wife does at her Uni -- she uses letterhead that has only the logo pre-printed and prints the right margin letterhead stuff herself (its all in her template). Sorry I couldn't help more. (The other two items I think you can find in the manual.) -Kevin Kevin, Thanks for all the research on this! I'll see if I can adapt your \ifthenelse hack to the komascript letter class. At least its comforting to know this is not trivial (and I'm not missing something obvious). /Paul
Re: ERT Latex export
Ernesto Posse wrote: Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. This is a known bug: http://bugzilla.lyx.org/show_bug.cgi?id=698 It will be fixed in the upcoming 1.4.0 release, meanwhile use Ctrl+Enter instead of Enter for linebreaks in ERT as a workaround. Georg
Re: ERT Latex export
Ernesto Posse wrote: Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. Ending each line of latex code with C-Enter rather than Enter gets rid of the empty lines (I think). /Paul
fbox with a predefined width
Dear All I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding Exercise 1. I tried \fbox, but with no success. Thanks in advance, Paul
Re: fbox with a predefined width
Paul Smith wrote: I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding Exercise 1. I tried \fbox, but with no success. with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Herbert
Re: fbox with a predefined width
On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding Exercise 1. I tried \fbox, but with no success. with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. Paul
Re: fbox with a predefined width
Paul Smith wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} Herbert
Re: fbox with a predefined width
On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} The contents of the two boxes seem to have different alignments. Please, see the attached example. Paul boxes.lyx Description: application/lyx
LyX 1.4 test
Hola, I use lyx 1.3.5 in suse 9.0 and I would like to test the new lyx 1.4.0pre3. I would like to install this new version in my system without uninstalling/deleting/erasing the old one (lyx 1.3.5), in order to test the new features and to be able to use the old version if the new one doesn't work right for me or to be able to use the new or the old version at my choice. Does anybody know how to do this ? Is it supposed that I need to remove the old version to install the new one ? Thanks in advance. Horacio.
Re: fbox with a predefined width
Paul Smith wrote: On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} The contents of the two boxes seem to have different alignments. Please, see the attached example. LyX isn't made for TeX code, this is the reason why you shouldn't mix ERT and LyX text. Write the \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} _only_ in ERT. At least you need a % \fbox{\makebox[\widthof{Exercise 23}][l]{% Exercise 1 }} but then LyX inserts a newline between % and Exercise, which has the meaning of a space. A ctrl-space may help. However, as I said, make it all in ERT. Herbert
Re: Business letter (on letterhead) template for LyX
On Mon, Jan 16, 2006 at 11:11:39AM +0100, Kevin Pfeiffer wrote: Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change. If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) That's essentially correct. TeX works on a per-paragraph base and decideds from time to time to 'ship' a full page. In this case, part of the last paragraph maybe left over for the next page. But any linebreaks TeX already inserted in this part are 'permanent'. Note that the lines on a page do not have to have the same length, but you have to know _before_ anything happens how many lines you want in a given width. It's sort of a trap door function... So, in theory, there is a way to work around: Run TeX twice, in the first run record the place where the page break is inserted and in the second run ogbble up only so many lines from that paragraph that fit on the first page. Fake a page break there and start over with a different \textwidth on the second page. In practice, I never managed to implement that. Andre'
Re: fbox with a predefined width
On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: LyX isn't made for TeX code, this is the reason why you shouldn't mix ERT and LyX text. Write the \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} _only_ in ERT. At least you need a % \fbox{\makebox[\widthof{Exercise 23}][l]{% Exercise 1 }} but then LyX inserts a newline between % and Exercise, which has the meaning of a space. A ctrl-space may help. However, as I said, make it all in ERT. Thanks, Herbert. It works now with the whole command inside ERT. Paul
optional EOL comma?
Might there be a way that one can write a command for an optional comma? That is a command that would look ahead to see if it is the last character before a linebreak? Something like: \newcommand\optComma{% [EMAIL PROTECTED],}{}} So that in a case like this: New York, New York, Saturday morning, 23_November_2006 If the line gets wrapped, that the comma after morning is not printed: New York, New York, Saturday morning 23_November_2006 Or to achieve this would one have to deal with TeX (and end up writing a miniature package)? -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: LyX 1.4 test
Am Montag, 16. Januar 2006 20:56 schrieb Horacio Emilio Pérez Sánchez: I would like to install this new version in my system without uninstalling/deleting/erasing the old one (lyx 1.3.5), in order to test the new features and to be able to use the old version if the new one doesn't work right for me or to be able to use the new or the old version at my choice. Does anybody know how to do this ? Is it supposed that I need to remove the old version to install the new one ? You don't need to remove the old one. After unpacking the source, call configure with the --version-suffix parameter, e.g. ./configure --with-version-suffix=-1.4 and it will install as lyx-1.4 and not mix up the support files either. Georg
Re: Business letter (on letterhead) template for LyX
I have a similar problem but not with a letter class. I am trying to put a logo at the top left of the page. Alongside the logo, I want my business name in \Huge letters. (This is mainly for the purpose of building web pages.) The problem is that the Name is vertically centred alongside the logo. I want it to be aligned with the top of the Logo. Among other things that I have tried are 1. A table with 2 columns: logo in left column, a nested table in right column with the Name in the top row of the table. No good. 2. 2 minipages with an hfill between them (as suggested in the LyX documentation). In all cases, despite setting top alignment, I get cetre alignment vertically. I have tried putting a vfill beneath the elements. Any ideas? regards John O'Gorman
Re: Business letter (on letterhead) template for LyX
On Tue, 17 Jan 2006, John O'Gorman wrote: I am trying to put a logo at the top left of the page. Alongside the logo, I want my business name in \Huge letters. (This is mainly for the purpose of building web pages.) John, Something like the attached? I did this in OO.o, trimmed the page size as small as possible, then saved it as a .pdf file. Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863 latex-with-logo.pdf Description: Adobe PDF document
Re: Business letter (on letterhead) template for LyX
On Mon, 2006-01-16 at 15:16 -0800, Rich Shepard wrote: On Tue, 17 Jan 2006, John O'Gorman wrote: I am trying to put a logo at the top left of the page. Alongside the logo, I want my business name in \Huge letters. (This is mainly for the purpose of building web pages.) John, Something like the attached? Yes exactly! I did this in OO.o, trimmed the page size as small as possible, then saved it as a .pdf file. Shrug. I had hoped it would be easy in LyX (because that's what I tell everyone!) Thanks Rich John O'Gorman Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: Business letter (on letterhead) template for LyX
On Tue, 17 Jan 2006, john wrote: Shrug. I had hoped it would be easy in LyX (because that's what I tell everyone!) John, It probably _is_ easy when you know exactly how to do it. :-) I found this approach took me less time. Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: Business letter (on letterhead) template for LyX
On Mon, 2006-01-16 at 16:23 -0800, Rich Shepard wrote: It probably _is_ easy when you know exactly how to do it. :-) I found this approach took me less time. Yes. In fact I have a little progress. With a bit of bodging tables within tables I have got it how I like for DVI and PDF output. Unfortunately latex2html now stuffs up the logo (making it too big). But I am getting there. Sheer dogged doctrinaire persistence will, I hope, reap its just reward! regards John O'Gorman Rich
Re: LyX 1.4 test
Be Cautious! IF you edit a document with Lyx-1.4, then you will not be able to edit with Lyx-1.3.X. pj On 1/16/06, Georg Baum [EMAIL PROTECTED] wrote: Am Montag, 16. Januar 2006 20:56 schrieb Horacio Emilio Pérez Sánchez: I would like to install this new version in my system without uninstalling/deleting/erasing the old one (lyx 1.3.5), in order to test the new features and to be able to use the old version if the new one doesn't work right for me or to be able to use the new or the old version at my choice. Does anybody know how to do this ? Is it supposed that I need to remove the old version to install the new one ? You don't need to remove the old one. After unpacking the source, call configure with the --version-suffix parameter, e.g. ./configure --with-version-suffix=-1.4 and it will install as lyx-1.4 and not mix up the support files either. Georg -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
Re: Business letter (on letterhead) template for LyX
john writes: In fact I have a little progress. With a bit of bodging tables within tables I have got it how I like for DVI and PDF output. Unfortunately latex2html now stuffs up the logo (making it too big). Attached is one rough suggestion (just cribbed together with some hard-wired values and not tried in a letter template. -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations logo.pdf Description: Adobe PDF document #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{graphicx} \end_preamble \language ngerman \inputencoding auto \fontscheme default \graphics default \paperfontsize default \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 ERT status Open \layout Standard \backslash newcommand{ \backslash addr}{ \backslash huge{John Manchester} \backslash \backslash \backslash normalsize{123 Broadway Boulevard \backslash \backslash New York, NY 1}} \layout Standard \backslash parbox[t]{0.10 \backslash textwidth}{ \backslash includegraphics[height=50pt,width=40pt]{/home/pfeiffer/Documents/misc/sempe.eps}} \layout Standard \backslash vspace{-48pt} \layout Standard \backslash hspace{45pt} \backslash parbox[t]{0.5 \backslash textwidth}{ \backslash addr} \layout Standard \end_inset \the_end
Re: Creating a .layout file with two command arguments
Mael, Thanks for the suggestion. The logic made sense, but your suggestion did not work. LyX generated an extra line between the commands in the tex file. Another question: How can I get the Date environment to display Copyright: 2006 in LyX? The final output is correct so this display is a nicety rather than a necessity. Here is my attempt: # Copyright Style Date MarginStatic LatexTypeCommand InTitle1 LatexNameSAECopyright ParSkip0.4 ItemSep0 TopSep0 BottomSep1 ParSep1 Alignleft AlignPossible left LabelTypeStatic LabelStringCopyright: # standard font definition Font FamilySans Seriesmedium Sizetiny EndFont End Thanks again, Jeremy Mael Hilléreau wrote: in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. This is not possible in a dynamic way (i.e. you only can specify one parameter into LyX window). Perhaps, a workaround could consist in using two layout styles as the folowing (not tested): Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End Style Affiliation MarginStatic LatexTypeCommand InTitle1 LatexNamedonothing Preamble \newcommand{\donothing}[1]{{#1}} EndPreamble End ... which would generate the following LaTeX code: \AddAuthor{Author name}\donothing{Affiliation} Hope that this will help... Mael.
Re: Business letter (on letterhead) template for LyX
On Tue, 17 Jan 2006, Kevin Pfeiffer wrote: Attached is one rough suggestion (just cribbed together with some hard-wired values and not tried in a letter template. Kevin, Very nicely done! Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: Business letter (on letterhead) template for LyX
On Tue, 2006-01-17 at 04:19 +0100, Kevin Pfeiffer wrote: Attached is one rough suggestion (just cribbed together with some hard-wired values and not tried in a letter template. Thanks for that. A different approach. Unfortunately, latex2html could not render it properly. The -ve vspace command defeated it. So the logo appeared above the name. Sigh! Back to the drawing board. John O'Gorman -Kevin
Re: Business letter (on letterhead) template for LyX
Aha! I've done it! The secret was rather silly. It was in the includegraphics dialogue box. I had been supplying a width and checking the maintain aspect ratio box. Regardless of what size I set, latex2htnl was creating an IMG .. tag with WIDTH=470 HEIGHT=471. Looking at Kevin's code, I noticed that he supplied both height and width. So I did the same and unchecked the aspect ratio box --- and voila! It came good! The winning approach was to 1. Create a table with 1 row, 2 columns. 2. Into the 1st column insert a table with 2 rows, 1 column Why? God knows! I found that I had to effectively lower the graphic by putting it in the 2nd row (leaving the 1st row empty) 3. For the Address, I put a 4 row, 1 column table in the 2nd col of the outermost table. Into this I entered the Name and address stuff. This all now produces essentially the same output for DVI, PDF, and HTML. Many thanks to Kevin and Rich. You input helped. I can now happily continue to tell all my clients how easy LyX is to use! It reminds me of a maths lecture I attended in my student days. The lecturer was detailing a proof on the blackboard. He started to say: From the above it is obvious that Then he stepped back and thought deeply for a while. Then he left the room. We waited. 5 minutes later he returned smiling and said: Yes it is obvious. and contiunued to outline the proof. regards John O'Gorman
Re: 100% CPU usage for LyX 1.3.5 and questions on LyX 1.4
--- Angus Leeming [EMAIL PROTECTED] wrote: Anyway, rather than try and debug the problem in LyX 1.3.5 which isn't anything to do with us, perhaps you'll try out LyX 1.3.7pre5 (http://wiki.lyx.org/Windows/LyX137pre) which is now known to run reasonably well on Win98. A (small) word of warning: the Installer runs a shell script configure and some users have reported that this is failing. If you launch LyX and find a pop up about unable to find texclass.lst or somesuch, then open up an MSYS terminal window, go to the C:\Program Files\LyX\Resources\lyx directory (or whereever you installed LyX) and type sh configure I just wanted to report what I tried so far. It will not install if you dont have some VB libraries I think. I tried to install it in my office where I am running win98se, and it would not install because it was asking for some Visual Basic or Visual C++ libraries. I didn't want to mess things up in the office. So I went back home and got myself some unofficial service packs for win98se which included those libraries and a replacement for some system dll files for win98 (but I wouldnt recommend everyone to do this, as this is risky for those who have no experience in changing the system dll files).. it did install lyx, but then I think this unable to find .. *blah* error you mentioned. I havent tried anymore with the solution you suggested, since I busted my computer afterwards. I will experiment on this again when all my computers are in top condition. Sincerely, Jose Capco __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: LyX 1.3.6 and ispell problem
Jan Willemson wrote: [...] Well, actually I am trying to spell an Estonian text, but the problem with English was the same so I described that one. Anyway, after installing the aspell-en package, I can spell English text, though LyX still shows me that it is using ispell, and installing aspell dictionaries should have changed nothing. Trying to spell sometning in Estonian from LyX with ispell still cives complaints about missing et_EE word list. Which is strange, because en and et_EE are aspell terminology and as far as I know, ispell does not use such naming of languages. So in the end of the day, I suspect that LyX 1.3.6 has a bug of still trying to use aspell, even if ispell is chosen in Preferences - Spellchecker. Or is is the problem between the chair and the computer Looks like your lyx decides to use aspell anyway - maybe ispell support isn't compiled in or something? There is an aspell-et with Estonian spelling, perhaps you should try that. Or is there some other reason for sticking to ispell? Lyx using aspell even when you specify ispell is a bug, consider registering the bug at bugzilla.lyx.org Helge Hafting
Re: Lyx-WIndows-Python
Mohsin Mohd Sies wrote: I have a strange problem. I've just installed Lyx on Windows. What installer did you use, this one: http://wiki.lyx.org/Windows/LyXWinInstaller or this one http://wiki.lyx.org/Windows/LyX136 http://wiki.lyx.org/Windows/LyX137pre I've also installed Python and all other packages as needed during installation. The problem is that when I tried to print, I got an error message cannot convert file, error while executing python c:/Program Files/LyX/Resources/lyx/scripts Could you please start LyX from then Win console with the command lyx -dbg 3 and send what error message appear in the console window. Does it work when you export the LyX-file to PDF or DVI? regards Uwe
Re: Lyx-WIndows-Python
Uwe Stöhr wrote: Could you please start LyX from then Win console with the command lyx -dbg 3 better: lyx -dbg info,init (the result is the same, but using names for the debug flags is better to remember) Georg
Re: Business letter (on letterhead) template for LyX
Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change. If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) Why not use the same wide margin on all pages (no one was ever punished for using too much white space -- well, unless maybe it was for a dissertation)? Or do as my wife does at her Uni -- she uses letterhead that has only the logo pre-printed and prints the right margin letterhead stuff herself (its all in her template). Sorry I couldn't help more. (The other two items I think you can find in the manual.) -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: LyX 1.3.6 and ispell problem
So in the end of the day, I suspect that LyX 1.3.6 has a bug of still trying to use aspell, even if ispell is chosen in Preferences - Spellchecker. Or is is the problem between the chair and the computer Looks like your lyx decides to use aspell anyway - maybe ispell support isn't compiled in or something? There is an aspell-et with Estonian spelling, perhaps you should try that. Or is there some other reason for sticking to ispell? Yes, and the reason is that aspell-et used to be a dead branch of an old student project, with ispell having a much better dictionary. But I will take a look, perhaps aspell has improved (actually it might). Lyx using aspell even when you specify ispell is a bug, consider registering the bug at bugzilla.lyx.org Before doing that -- does anyone else have a similar problem? LyX 1.4.0beta seems to handle ispell better (apart from the fact that spelling in 1.4.0beta is broken in general, but that's due to being beta). So unless there will be another maintenance release of 1.3.* branch, this bugreport wiould not change much... Thanx anyway, Jan
Re: LyX 1.3.6 and ispell problem
Jan Willemson wrote: LyX 1.4.0beta seems to handle ispell better (apart from the fact that spelling in 1.4.0beta is broken in general, but that's due to being beta). Is that reported in bugzilla? If not, please do that. BTW, there is no beta. There is 1.4.0pre1, pre2 and pre3. So unless there will be another maintenance release of 1.3.* branch, this bugreport wiould not change much... That is true as long as the particular bug is not present in 1.4.0pre3. No work is done on the 1.3 branch anymore, 1.3.7 with the accumulated fixes since 1.3.6 will be out soon. Georg
Re: New Windows version
David A. Case [EMAIL PROTECTED] writes: Have you also tried to build a cygwin version? Since cygwin already suppies tex/latex/perl/python/sh/sed, etc., and since many people (like me) make extensive use of cygwin, having a cygwin package (that understands its posix-like paths) would be very valuable. Hi Dave. I also extensively make use of cygwin, but the last cygwin version I built was 1.3.5. At that time I also had to compile Qt, but now I see that there is a cygwin package for it. So, apart some minor gotchas, I think that the procedure to build a cygwin version is not more than the usual configure, make, make install route. This would give you a X11 version, so you have to start XWin. It would be interesting to build a cygwin Qt but with win32 gui. I saw that there is a cygwin-g++-win32 target in the Qt sources that gives you exactly that, but when I tried this option I had some problems with include files. If I remember correctly, the problem was that some definitions were available only in the includes brought in by the -mno-cygwin switch. I tried to move the necessary mingw includes from /usr/include/mingw to /usr/local/include/mingw and force their inclusion instead of the cygwin ones, but then I had some clashing and eventually gave up. I still think that with some tampering it could be done, but I don't see it as necessary. After all, the cygwin programs understand both posix and win32 paths. The only problem I had with a native LyX using cygwin tools was that /usr/bin/python.exe is a symlink to the real executable /usr/bin/python2.4.exe, and native programs don't understand cygwin symlinks. See, for example, http://www.cygwin.com/ml/cygwin/2004-09/msg00967.html This problem (and also similar ones) can be easily overcomed by using batch files. If you put the following batch file: $ cat python.bat @echo off python2.4 %* exit in LyX/bin, which is searched before all other dirs in the path, you're done. (Replace %* with %1 %2 %3 %4 %5 %6 %7 %8 %9 if you use something less than win2k). I am quite happy with a native LyX + cygwin. -- Enrico
Creating a .layout file with two command arguments
Group, I'm trying to make a .layout file for sae.cls. I have everything working except the authors. In the sae class, the authors are added using the command: \AddAuthor{Author name}{Affiliation} If I try: Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. My alternative right now is to use \AddAuthor in the document preamble, which seems to work fine. Any help is much appreciated. Jeremy
Re: Lyx-WIndows-Python
On 1/16/06, Uwe Stöhr [EMAIL PROTECTED] wrote: Mohsin Mohd Sies wrote: I have a strange problem. I've just installed Lyx on Windows. What installer did you use, this one: http://wiki.lyx.org/Windows/LyXWinInstaller Sorry about that, I used lyx-1.3.6_win32_setup_v1.exe. I also have cygwin previously installed. To satisfy Lyx, I installed MingW alongside. Could this be the source of the problem? or this one http://wiki.lyx.org/Windows/LyX136 http://wiki.lyx.org/Windows/LyX137pre I've also installed Python and all other packages as needed during installation. The problem is that when I tried to print, I got an error message cannot convert file, error while executing python c:/Program Files/LyX/Resources/lyx/scripts Could you please start LyX from then Win console with the command lyx -dbg 3 and send what error message appear in the console window. Does it work when you export the LyX-file to PDF or DVI? Yes I tried exporting to pdf and ps too, same error. Following Georg's suggestion, I'm running it from lyx -dbg info,init right now. Just a simple text, saved, then trying to export to pdf. It's hanging now.. The console output is; Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Program Files\LyX\binlyx -dbg info,init Setting debug level to info,init Debugging `info' (General information) Debugging `init' (Program initialisation) Checking whether LyX is run in place... no package binary_dir C:/Program Files/LyX/bin/ system_support C:/Program Files/LyX/Resources/lyx/ build_support user_support C:/Documents and Settings/Mohsin/Application Data/LyX/ locale_dir C:/Program Files/LyX/Resources/locale/ document_dir C:/Documents and Settings/Mohsin/My Documents temp_dir C:/Documents and Settings/Mohsin/Local Settings/Temp/ home_dir C:/Documents and Settings/Mohsin /package Setting locale directory to C:/Program Files/LyX/Resources/locale/ Initializing LyX::init... About to read lyxrc.defaults... Found lyxrc.defaults in C:/Documents and Settings/Mohsin/Application Data/LyX/ly xrc.defaults About to read preferences... Found preferences in C:/Documents and Settings/Mohsin/Application Data/LyX/prefe rences About to read encodings... Reading encoding iso8859-2 Reading encoding iso8859-3 Reading encoding iso8859-4 Reading encoding iso8859-5 Reading encoding iso8859-6 Reading encoding iso8859-7 Reading encoding iso8859-9 Reading encoding iso8859-13 Reading encoding iso8859-15 Reading encoding cp1255 Reading encoding cp1251 Reading encoding koi8 Reading encoding koi8-u Reading encoding tis620-0 Reading encoding pt154 About to read languages... Reading language afrikaans Reading language american language stuff Reading language welsh Reading layouts... About to read default... Found default in C:/Program Files/LyX/Resources/lyx/ui/default.ui LyX tmp dir: `C:/Documents and Settings/Mohsin/Local Settings/Temp/lyx_tmpdir395 6a03312' Reading lastfiles `C:/Documents and Settings/Mohsin/Application Data/LyX/lastfil es'... Initializing LyX::init...done Initializing LyXFunc Initializing key mappings... Buffer::Buffer() Assigning to buffer 0 Setting buffer in BufferView (0x1ca1cc8) Buffer addr: 0x1ca1cc8 resizeCurrentBuffer lyx header finished preamble finished, now the body. Finished making LaTeX file. Row count was 92. end console That's all. Lyx bottom bar shows Executing command: python C:/Program Files/LyX/Resources/lyx/scripts/clean_dvi.py newfile3.dvi tmpfile.out I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) Thanks regards Uwe
Re: Lyx-WIndows-Python
Mohsin Mohd Sies [EMAIL PROTECTED] writes: Executing command: python C:/Program Files/LyX/Resources/lyx/scripts/clean_dvi.py newfile3.dvi tmpfile.out I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) Please, see this post: http://article.gmane.org/gmane.editors.lyx.general/27299 Essentially, if you use the cygwin python, you have to put in C:\Program Files\LyX\bin the following script (named python.bat) 8888 @echo off python2.4 %1 %2 %2 %3 %4 %5 %6 %7 %8 %9 exit 8888 If you have a previous version of cygwin, you may instead have python2.3. Check that and replace accordingly line 2 above. -- Enrico
Re: Lyx-WIndows-Python
Mohsin Mohd Sies wrote: I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) It seems so. The console messages don't help. Could you deinstall cygwin (or if this isn't possible cygwin's LaTeX-packages), restart your system and try to install with the Installer from http://wiki.lyx.org/Windows/LyXWinInstaller (download the latest version directly from the project homepage) regards Uwe
Re: Creating a .layout file with two command arguments
in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. This is not possible in a dynamic way (i.e. you only can specify one parameter into LyX window). Perhaps, a workaround could consist in using two layout styles as the folowing (not tested): Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End Style Affiliation MarginStatic LatexTypeCommand InTitle1 LatexNamedonothing Preamble \newcommand{\donothing}[1]{{#1}} EndPreamble End ... which would generate the following LaTeX code: \AddAuthor{Author name}\donothing{Affiliation} Hope that this will help... Mael. -- Mael Hilléreau
Re: Lyx-WIndows-Python
I didn't deinstall cygwin, but I removed cygwin's paths from Windows Environment and I also deleted my local Lyx settings under C:\Document Settings\luser\Application Data and restarted Lyx and let it rebuild that directory. It seems to work fine after that. Afterwards, I put back cygwin's path into Windows paths and it still works. It works, but still a mystery. Thanks On 1/16/06, Uwe Stöhr [EMAIL PROTECTED] wrote: Mohsin Mohd Sies wrote: I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) It seems so. The console messages don't help. Could you deinstall cygwin (or if this isn't possible cygwin's LaTeX-packages), restart your system and try to install with the Installer from http://wiki.lyx.org/Windows/LyXWinInstaller (download the latest version directly from the project homepage) regards Uwe
ERT Latex export
Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
Re: Business letter (on letterhead) template for LyX
Kevin Pfeiffer wrote: Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change. If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) Why not use the same wide margin on all pages (no one was ever punished for using too much white space -- well, unless maybe it was for a dissertation)? Or do as my wife does at her Uni -- she uses letterhead that has only the logo pre-printed and prints the right margin letterhead stuff herself (its all in her template). Sorry I couldn't help more. (The other two items I think you can find in the manual.) -Kevin Kevin, Thanks for all the research on this! I'll see if I can adapt your \ifthenelse hack to the komascript letter class. At least its comforting to know this is not trivial (and I'm not missing something obvious). /Paul
Re: ERT Latex export
Ernesto Posse wrote: Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. This is a known bug: http://bugzilla.lyx.org/show_bug.cgi?id=698 It will be fixed in the upcoming 1.4.0 release, meanwhile use Ctrl+Enter instead of Enter for linebreaks in ERT as a workaround. Georg
Re: ERT Latex export
Ernesto Posse wrote: Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. Ending each line of latex code with C-Enter rather than Enter gets rid of the empty lines (I think). /Paul
fbox with a predefined width
Dear All I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding Exercise 1. I tried \fbox, but with no success. Thanks in advance, Paul
Re: fbox with a predefined width
Paul Smith wrote: I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding Exercise 1. I tried \fbox, but with no success. with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Herbert
Re: fbox with a predefined width
On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding Exercise 1. I tried \fbox, but with no success. with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. Paul
Re: fbox with a predefined width
Paul Smith wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} Herbert
Re: fbox with a predefined width
On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} The contents of the two boxes seem to have different alignments. Please, see the attached example. Paul boxes.lyx Description: application/lyx
LyX 1.4 test
Hola, I use lyx 1.3.5 in suse 9.0 and I would like to test the new lyx 1.4.0pre3. I would like to install this new version in my system without uninstalling/deleting/erasing the old one (lyx 1.3.5), in order to test the new features and to be able to use the old version if the new one doesn't work right for me or to be able to use the new or the old version at my choice. Does anybody know how to do this ? Is it supposed that I need to remove the old version to install the new one ? Thanks in advance. Horacio.
Re: fbox with a predefined width
Paul Smith wrote: On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} The contents of the two boxes seem to have different alignments. Please, see the attached example. LyX isn't made for TeX code, this is the reason why you shouldn't mix ERT and LyX text. Write the \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} _only_ in ERT. At least you need a % \fbox{\makebox[\widthof{Exercise 23}][l]{% Exercise 1 }} but then LyX inserts a newline between % and Exercise, which has the meaning of a space. A ctrl-space may help. However, as I said, make it all in ERT. Herbert
Re: Business letter (on letterhead) template for LyX
On Mon, Jan 16, 2006 at 11:11:39AM +0100, Kevin Pfeiffer wrote: Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change. If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) That's essentially correct. TeX works on a per-paragraph base and decideds from time to time to 'ship' a full page. In this case, part of the last paragraph maybe left over for the next page. But any linebreaks TeX already inserted in this part are 'permanent'. Note that the lines on a page do not have to have the same length, but you have to know _before_ anything happens how many lines you want in a given width. It's sort of a trap door function... So, in theory, there is a way to work around: Run TeX twice, in the first run record the place where the page break is inserted and in the second run ogbble up only so many lines from that paragraph that fit on the first page. Fake a page break there and start over with a different \textwidth on the second page. In practice, I never managed to implement that. Andre'
Re: fbox with a predefined width
On 1/16/06, Herbert Voss [EMAIL PROTECTED] wrote: LyX isn't made for TeX code, this is the reason why you shouldn't mix ERT and LyX text. Write the \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} _only_ in ERT. At least you need a % \fbox{\makebox[\widthof{Exercise 23}][l]{% Exercise 1 }} but then LyX inserts a newline between % and Exercise, which has the meaning of a space. A ctrl-space may help. However, as I said, make it all in ERT. Thanks, Herbert. It works now with the whole command inside ERT. Paul
optional EOL comma?
Might there be a way that one can write a command for an optional comma? That is a command that would look ahead to see if it is the last character before a linebreak? Something like: \newcommand\optComma{% [EMAIL PROTECTED],}{}} So that in a case like this: New York, New York, Saturday morning, 23_November_2006 If the line gets wrapped, that the comma after morning is not printed: New York, New York, Saturday morning 23_November_2006 Or to achieve this would one have to deal with TeX (and end up writing a miniature package)? -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations
Re: LyX 1.4 test
Am Montag, 16. Januar 2006 20:56 schrieb Horacio Emilio Pérez Sánchez: I would like to install this new version in my system without uninstalling/deleting/erasing the old one (lyx 1.3.5), in order to test the new features and to be able to use the old version if the new one doesn't work right for me or to be able to use the new or the old version at my choice. Does anybody know how to do this ? Is it supposed that I need to remove the old version to install the new one ? You don't need to remove the old one. After unpacking the source, call configure with the --version-suffix parameter, e.g. ./configure --with-version-suffix=-1.4 and it will install as lyx-1.4 and not mix up the support files either. Georg
Re: Business letter (on letterhead) template for LyX
I have a similar problem but not with a letter class. I am trying to put a logo at the top left of the page. Alongside the logo, I want my business name in \Huge letters. (This is mainly for the purpose of building web pages.) The problem is that the Name is vertically centred alongside the logo. I want it to be aligned with the top of the Logo. Among other things that I have tried are 1. A table with 2 columns: logo in left column, a nested table in right column with the Name in the top row of the table. No good. 2. 2 minipages with an hfill between them (as suggested in the LyX documentation). In all cases, despite setting top alignment, I get cetre alignment vertically. I have tried putting a vfill beneath the elements. Any ideas? regards John O'Gorman
Re: Business letter (on letterhead) template for LyX
On Tue, 17 Jan 2006, John O'Gorman wrote: I am trying to put a logo at the top left of the page. Alongside the logo, I want my business name in \Huge letters. (This is mainly for the purpose of building web pages.) John, Something like the attached? I did this in OO.o, trimmed the page size as small as possible, then saved it as a .pdf file. Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863 latex-with-logo.pdf Description: Adobe PDF document
Re: Business letter (on letterhead) template for LyX
On Mon, 2006-01-16 at 15:16 -0800, Rich Shepard wrote: On Tue, 17 Jan 2006, John O'Gorman wrote: I am trying to put a logo at the top left of the page. Alongside the logo, I want my business name in \Huge letters. (This is mainly for the purpose of building web pages.) John, Something like the attached? Yes exactly! I did this in OO.o, trimmed the page size as small as possible, then saved it as a .pdf file. Shrug. I had hoped it would be easy in LyX (because that's what I tell everyone!) Thanks Rich John O'Gorman Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: Business letter (on letterhead) template for LyX
On Tue, 17 Jan 2006, john wrote: Shrug. I had hoped it would be easy in LyX (because that's what I tell everyone!) John, It probably _is_ easy when you know exactly how to do it. :-) I found this approach took me less time. Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: Business letter (on letterhead) template for LyX
On Mon, 2006-01-16 at 16:23 -0800, Rich Shepard wrote: It probably _is_ easy when you know exactly how to do it. :-) I found this approach took me less time. Yes. In fact I have a little progress. With a bit of bodging tables within tables I have got it how I like for DVI and PDF output. Unfortunately latex2html now stuffs up the logo (making it too big). But I am getting there. Sheer dogged doctrinaire persistence will, I hope, reap its just reward! regards John O'Gorman Rich
Re: LyX 1.4 test
Be Cautious! IF you edit a document with Lyx-1.4, then you will not be able to edit with Lyx-1.3.X. pj On 1/16/06, Georg Baum [EMAIL PROTECTED] wrote: Am Montag, 16. Januar 2006 20:56 schrieb Horacio Emilio Pérez Sánchez: I would like to install this new version in my system without uninstalling/deleting/erasing the old one (lyx 1.3.5), in order to test the new features and to be able to use the old version if the new one doesn't work right for me or to be able to use the new or the old version at my choice. Does anybody know how to do this ? Is it supposed that I need to remove the old version to install the new one ? You don't need to remove the old one. After unpacking the source, call configure with the --version-suffix parameter, e.g. ./configure --with-version-suffix=-1.4 and it will install as lyx-1.4 and not mix up the support files either. Georg -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
Re: Business letter (on letterhead) template for LyX
john writes: In fact I have a little progress. With a bit of bodging tables within tables I have got it how I like for DVI and PDF output. Unfortunately latex2html now stuffs up the logo (making it too big). Attached is one rough suggestion (just cribbed together with some hard-wired values and not tried in a letter template. -Kevin -- Kevin Pfeiffer [EMAIL PROTECTED] Tiros-Translations logo.pdf Description: Adobe PDF document #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{graphicx} \end_preamble \language ngerman \inputencoding auto \fontscheme default \graphics default \paperfontsize default \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 ERT status Open \layout Standard \backslash newcommand{ \backslash addr}{ \backslash huge{John Manchester} \backslash \backslash \backslash normalsize{123 Broadway Boulevard \backslash \backslash New York, NY 1}} \layout Standard \backslash parbox[t]{0.10 \backslash textwidth}{ \backslash includegraphics[height=50pt,width=40pt]{/home/pfeiffer/Documents/misc/sempe.eps}} \layout Standard \backslash vspace{-48pt} \layout Standard \backslash hspace{45pt} \backslash parbox[t]{0.5 \backslash textwidth}{ \backslash addr} \layout Standard \end_inset \the_end
Re: Creating a .layout file with two command arguments
Mael, Thanks for the suggestion. The logic made sense, but your suggestion did not work. LyX generated an extra line between the commands in the tex file. Another question: How can I get the Date environment to display Copyright: 2006 in LyX? The final output is correct so this display is a nicety rather than a necessity. Here is my attempt: # Copyright Style Date MarginStatic LatexTypeCommand InTitle1 LatexNameSAECopyright ParSkip0.4 ItemSep0 TopSep0 BottomSep1 ParSep1 Alignleft AlignPossible left LabelTypeStatic LabelStringCopyright: # standard font definition Font FamilySans Seriesmedium Sizetiny EndFont End Thanks again, Jeremy Mael Hilléreau wrote: in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. This is not possible in a dynamic way (i.e. you only can specify one parameter into LyX window). Perhaps, a workaround could consist in using two layout styles as the folowing (not tested): Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End Style Affiliation MarginStatic LatexTypeCommand InTitle1 LatexNamedonothing Preamble \newcommand{\donothing}[1]{{#1}} EndPreamble End ... which would generate the following LaTeX code: \AddAuthor{Author name}\donothing{Affiliation} Hope that this will help... Mael.
Re: Business letter (on letterhead) template for LyX
On Tue, 17 Jan 2006, Kevin Pfeiffer wrote: Attached is one rough suggestion (just cribbed together with some hard-wired values and not tried in a letter template. Kevin, Very nicely done! Rich -- Richard B. Shepard, Ph.D. | Author of Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: Business letter (on letterhead) template for LyX
On Tue, 2006-01-17 at 04:19 +0100, Kevin Pfeiffer wrote: Attached is one rough suggestion (just cribbed together with some hard-wired values and not tried in a letter template. Thanks for that. A different approach. Unfortunately, latex2html could not render it properly. The -ve vspace command defeated it. So the logo appeared above the name. Sigh! Back to the drawing board. John O'Gorman -Kevin
Re: Business letter (on letterhead) template for LyX
Aha! I've done it! The secret was rather silly. It was in the includegraphics dialogue box. I had been supplying a width and checking the maintain aspect ratio box. Regardless of what size I set, latex2htnl was creating an IMG .. tag with WIDTH=470 HEIGHT=471. Looking at Kevin's code, I noticed that he supplied both height and width. So I did the same and unchecked the aspect ratio box --- and voila! It came good! The winning approach was to 1. Create a table with 1 row, 2 columns. 2. Into the 1st column insert a table with 2 rows, 1 column Why? God knows! I found that I had to effectively lower the graphic by putting it in the 2nd row (leaving the 1st row empty) 3. For the Address, I put a 4 row, 1 column table in the 2nd col of the outermost table. Into this I entered the Name and address stuff. This all now produces essentially the same output for DVI, PDF, and HTML. Many thanks to Kevin and Rich. You input helped. I can now happily continue to tell all my clients how easy LyX is to use! It reminds me of a maths lecture I attended in my student days. The lecturer was detailing a proof on the blackboard. He started to say: From the above it is obvious that Then he stepped back and thought deeply for a while. Then he left the room. We waited. 5 minutes later he returned smiling and said: Yes it is obvious. and contiunued to outline the proof. regards John O'Gorman
Re: 100% CPU usage for LyX 1.3.5 and questions on LyX 1.4
--- Angus Leeming <[EMAIL PROTECTED]> wrote: > Anyway, rather than try and debug the problem in LyX > 1.3.5 which isn't > anything to do with us, perhaps you'll try out LyX > 1.3.7pre5 > (http://wiki.lyx.org/Windows/LyX137pre) which is now > known to run > reasonably well on Win98. > > A (small) word of warning: the Installer runs a > shell script "configure" > and some users have reported that this is failing. > If you launch LyX and > find a pop up about "unable to find texclass.lst" or > somesuch, then open > up an MSYS terminal window, go to the C:\Program > Files\LyX\Resources\lyx > directory (or whereever you installed LyX) and type > sh configure > I just wanted to report what I tried so far. It will not install if you dont have some VB libraries I think. I tried to install it in my office where I am running win98se, and it would not install because it was asking for some Visual Basic or Visual C++ libraries. I didn't want to mess things up in the office. So I went back home and got myself some unofficial service packs for win98se which included those libraries and a replacement for some system dll files for win98 (but I wouldnt recommend everyone to do this, as this is risky for those who have no experience in changing the system dll files).. it did install lyx, but then I think this "unable to find .. *blah*" error you mentioned. I havent tried anymore with the solution you suggested, since I busted my computer afterwards. I will experiment on this again when all my computers are in top condition. Sincerely, Jose Capco __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: LyX 1.3.6 and ispell problem
Jan Willemson wrote: [...] Well, actually I am trying to spell an Estonian text, but the problem with English was the same so I described that one. Anyway, after installing the aspell-en package, I can spell English text, though LyX still shows me that it is using ispell, and installing aspell dictionaries should have changed nothing. Trying to spell sometning in Estonian from LyX with ispell still cives complaints about missing et_EE word list. Which is strange, because "en" and "et_EE" are aspell terminology and as far as I know, ispell does not use such naming of languages. So in the end of the day, I suspect that LyX 1.3.6 has a bug of still trying to use aspell, even if ispell is chosen in Preferences -> Spellchecker. Or is is the problem between the chair and the computer Looks like your lyx decides to use aspell anyway - maybe ispell support isn't compiled in or something? There is an "aspell-et" with Estonian spelling, perhaps you should try that. Or is there some other reason for sticking to ispell? Lyx using aspell even when you specify ispell is a bug, consider registering the bug at bugzilla.lyx.org Helge Hafting
Re: Lyx-WIndows-Python
Mohsin Mohd Sies wrote: I have a strange problem. I've just installed Lyx on Windows. What installer did you use, this one: http://wiki.lyx.org/Windows/LyXWinInstaller or this one http://wiki.lyx.org/Windows/LyX136 http://wiki.lyx.org/Windows/LyX137pre I've also installed Python and all other packages as needed during installation. The problem is that when I tried to print, I got an error message "cannot convert file", "error while executing python "c:/Program Files/LyX/Resources/lyx/scripts Could you please start LyX from then Win console with the command lyx -dbg 3 and send what error message appear in the console window. Does it work when you export the LyX-file to PDF or DVI? regards Uwe
Re: Lyx-WIndows-Python
Uwe Stöhr wrote: > Could you please start LyX from then Win console with the command > > lyx -dbg 3 better: lyx -dbg info,init (the result is the same, but using names for the debug flags is better to remember) Georg
Re: Business letter (on letterhead) template for LyX
Paul A. Rubin writes: > 1. (This is the only major issue.) Our letterhead includes logos on > both the left side of the paper and along the top. Dealing with the > top is not a problem, but for the life of me I cannot find a way in > komascript to make the left margin two inches on the first page > (which will be letterhead) and one inch on every other page (plain > bond). The answer that I got is that this is not easily possible, "because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change." If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) Why not use the same wide margin on all pages (no one was ever punished for using too much white space -- well, unless maybe it was for a dissertation)? Or do as my wife does at her Uni -- she uses letterhead that has only the logo pre-printed and prints the "right margin letterhead stuff" herself (its all in her template). Sorry I couldn't help more. (The other two items I think you can find in the manual.) -Kevin -- Kevin Pfeiffer <[EMAIL PROTECTED]> Tiros-Translations
Re: LyX 1.3.6 and ispell problem
> >So in the end of the day, I suspect that LyX 1.3.6 has a bug of still > >trying to use aspell, even if ispell is chosen in Preferences -> > >Spellchecker. Or is is the problem between the chair and the > >computer > > > > > Looks like your lyx decides to use aspell anyway - maybe ispell support > isn't compiled in or something? There is an "aspell-et" with Estonian > spelling, perhaps you should try that. Or is there some other reason for > sticking to ispell? Yes, and the reason is that aspell-et used to be a dead branch of an old student project, with ispell having a much better dictionary. But I will take a look, perhaps aspell has improved (actually it might). > Lyx using aspell even when you specify ispell is a bug, consider registering > the bug at bugzilla.lyx.org Before doing that -- does anyone else have a similar problem? LyX 1.4.0beta seems to handle ispell better (apart from the fact that spelling in 1.4.0beta is broken in general, but that's due to being beta). So unless there will be another maintenance release of 1.3.* branch, this bugreport wiould not change much... Thanx anyway, Jan
Re: LyX 1.3.6 and ispell problem
Jan Willemson wrote: > LyX 1.4.0beta seems to handle ispell better (apart from the fact that > spelling in 1.4.0beta is broken in general, but that's due to being > beta). Is that reported in bugzilla? If not, please do that. BTW, there is no beta. There is 1.4.0pre1, pre2 and pre3. > So unless there will be another maintenance release of 1.3.* > branch, this bugreport wiould not change much... That is true as long as the particular bug is not present in 1.4.0pre3. No work is done on the 1.3 branch anymore, 1.3.7 with the accumulated fixes since 1.3.6 will be out soon. Georg
Re: New Windows version
David A. Case <[EMAIL PROTECTED]> writes: > Have you also tried to build a cygwin version? Since cygwin already suppies > tex/latex/perl/python/sh/sed, etc., and since many people (like me) make > extensive use of cygwin, having a cygwin package (that understands its > posix-like paths) would be very valuable. Hi Dave. I also extensively make use of cygwin, but the last cygwin version I built was 1.3.5. At that time I also had to compile Qt, but now I see that there is a cygwin package for it. So, apart some minor gotchas, I think that the procedure to build a cygwin version is not more than the usual configure, make, make install route. This would give you a X11 version, so you have to start XWin. It would be interesting to build a cygwin Qt but with win32 gui. I saw that there is a cygwin-g++-win32 target in the Qt sources that gives you exactly that, but when I tried this option I had some problems with include files. If I remember correctly, the problem was that some definitions were available only in the includes brought in by the -mno-cygwin switch. I tried to move the necessary mingw includes from /usr/include/mingw to /usr/local/include/mingw and force their inclusion instead of the cygwin ones, but then I had some clashing and eventually gave up. I still think that with some tampering it could be done, but I don't see it as necessary. After all, the cygwin programs understand both posix and win32 paths. The only problem I had with a native LyX using cygwin tools was that /usr/bin/python.exe is a symlink to the real executable /usr/bin/python2.4.exe, and native programs don't understand cygwin symlinks. See, for example, http://www.cygwin.com/ml/cygwin/2004-09/msg00967.html This problem (and also similar ones) can be easily overcomed by using batch files. If you put the following batch file: $ cat python.bat @echo off python2.4 %* exit in LyX/bin, which is searched before all other dirs in the path, you're done. (Replace "%*" with "%1 %2 %3 %4 %5 %6 %7 %8 %9" if you use something less than win2k). I am quite happy with a native LyX + cygwin. -- Enrico
Creating a .layout file with two command arguments
Group, I'm trying to make a .layout file for sae.cls. I have everything working except the authors. In the sae class, the authors are added using the command: \AddAuthor{Author name}{Affiliation} If I try: Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. My alternative right now is to use \AddAuthor in the document preamble, which seems to work fine. Any help is much appreciated. Jeremy
Re: Lyx-WIndows-Python
On 1/16/06, Uwe Stöhr <[EMAIL PROTECTED]> wrote: > > Mohsin Mohd Sies wrote: > > > I have a strange problem. I've just installed Lyx on Windows. > > What installer did you use, this one: > > http://wiki.lyx.org/Windows/LyXWinInstaller Sorry about that, I used lyx-1.3.6_win32_setup_v1.exe. I also have cygwin previously installed. To satisfy Lyx, I installed MingW alongside. Could this be the source of the problem? or this one > > http://wiki.lyx.org/Windows/LyX136 > http://wiki.lyx.org/Windows/LyX137pre > > > I've also > > installed Python and all other packages as needed during installation. > The > > problem is that when I tried to print, I got an error message "cannot > > convert file", "error while executing python "c:/Program > > Files/LyX/Resources/lyx/scripts > > Could you please start LyX from then Win console with the command > > lyx -dbg 3 > > and send what error message appear in the console window. Does it work when you export the LyX-file to PDF or DVI? Yes I tried exporting to pdf and ps too, same error. Following Georg's suggestion, I'm running it from lyx -dbg info,init right now. Just a simple text, saved, then trying to export to pdf. It's hanging now.. The console output is; Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Program Files\LyX\bin>lyx -dbg info,init Setting debug level to info,init Debugging `info' (General information) Debugging `init' (Program initialisation) Checking whether LyX is run in place... no binary_dir C:/Program Files/LyX/bin/ system_support C:/Program Files/LyX/Resources/lyx/ build_support user_support C:/Documents and Settings/Mohsin/Application Data/LyX/ locale_dir C:/Program Files/LyX/Resources/locale/ document_dir C:/Documents and Settings/Mohsin/My Documents temp_dir C:/Documents and Settings/Mohsin/Local Settings/Temp/ home_dir C:/Documents and Settings/Mohsin Setting locale directory to C:/Program Files/LyX/Resources/locale/ Initializing LyX::init... About to read lyxrc.defaults... Found lyxrc.defaults in C:/Documents and Settings/Mohsin/Application Data/LyX/ly xrc.defaults About to read preferences... Found preferences in C:/Documents and Settings/Mohsin/Application Data/LyX/prefe rences About to read encodings... Reading encoding iso8859-2 Reading encoding iso8859-3 Reading encoding iso8859-4 Reading encoding iso8859-5 Reading encoding iso8859-6 Reading encoding iso8859-7 Reading encoding iso8859-9 Reading encoding iso8859-13 Reading encoding iso8859-15 Reading encoding cp1255 Reading encoding cp1251 Reading encoding koi8 Reading encoding koi8-u Reading encoding tis620-0 Reading encoding pt154 About to read languages... Reading language afrikaans Reading language american Reading language welsh Reading layouts... About to read default... Found default in C:/Program Files/LyX/Resources/lyx/ui/default.ui LyX tmp dir: `C:/Documents and Settings/Mohsin/Local Settings/Temp/lyx_tmpdir395 6a03312' Reading lastfiles `C:/Documents and Settings/Mohsin/Application Data/LyX/lastfil es'... Initializing LyX::init...done Initializing LyXFunc Initializing key mappings... Buffer::Buffer() Assigning to buffer 0 Setting buffer in BufferView (0x1ca1cc8) Buffer addr: 0x1ca1cc8 resizeCurrentBuffer lyx header finished preamble finished, now the body. Finished making LaTeX file. Row count was 92. That's all. Lyx bottom bar shows Executing command: python "C:/Program Files/LyX/Resources/lyx/scripts/clean_dvi.py" "newfile3.dvi" "tmpfile.out" I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) Thanks > > regards Uwe >
Re: Lyx-WIndows-Python
Mohsin Mohd Sies <[EMAIL PROTECTED]> writes: > Executing command: python "C:/Program > Files/LyX/Resources/lyx/scripts/clean_dvi.py" "newfile3.dvi" "tmpfile.out" > > I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's > suspicion) Please, see this post: http://article.gmane.org/gmane.editors.lyx.general/27299 Essentially, if you use the cygwin python, you have to put in C:\Program Files\LyX\bin the following script (named python.bat) 8<8<8<8< @echo off python2.4 %1 %2 %2 %3 %4 %5 %6 %7 %8 %9 exit 8<8<8<8< If you have a previous version of cygwin, you may instead have python2.3. Check that and replace accordingly line 2 above. -- Enrico
Re: Lyx-WIndows-Python
Mohsin Mohd Sies wrote: I wonder if cygwin's latex packages is conflicting with Miktex? (Newbie's suspicion) It seems so. The console messages don't help. Could you deinstall cygwin (or if this isn't possible cygwin's LaTeX-packages), restart your system and try to install with the Installer from http://wiki.lyx.org/Windows/LyXWinInstaller (download the latest version directly from the project homepage) regards Uwe
Re: Creating a .layout file with two command arguments
in the LyX .layout file, an error is given. I cannot figure out a way to include two two values for one command in LyX. This is not possible in a dynamic way (i.e. you only can specify one parameter into LyX window). Perhaps, a workaround could consist in using two layout styles as the folowing (not tested): Style Author MarginStatic LatexTypeCommand InTitle1 LatexNameAddAuthor End Style Affiliation MarginStatic LatexTypeCommand InTitle1 LatexNamedonothing Preamble \newcommand{\donothing}[1]{{#1}} EndPreamble End ... which would generate the following LaTeX code: \AddAuthor{Author name}\donothing{Affiliation} Hope that this will help... Mael. -- Mael Hilléreau
Re: Lyx-WIndows-Python
I didn't deinstall cygwin, but I removed cygwin's paths from Windows Environment and I also deleted my local Lyx settings under C:\Document Settings\luser\Application Data and restarted Lyx and let it rebuild that directory. It seems to work fine after that. Afterwards, I put back cygwin's path into Windows paths and it still works. It works, but still a mystery. Thanks On 1/16/06, Uwe Stöhr <[EMAIL PROTECTED]> wrote: > > Mohsin Mohd Sies wrote: > > > I wonder if cygwin's latex packages is conflicting with Miktex? > (Newbie's > > suspicion) > > It seems so. The console messages don't help. Could you deinstall cygwin > (or if this isn't possible cygwin's LaTeX-packages), restart your system > and try to install with the Installer from > > http://wiki.lyx.org/Windows/LyXWinInstaller > (download the latest version directly from the project homepage) > > regards Uwe >
ERT & Latex export
Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse
Re: Business letter (on letterhead) template for LyX
Kevin Pfeiffer wrote: Paul A. Rubin writes: 1. (This is the only major issue.) Our letterhead includes logos on both the left side of the paper and along the top. Dealing with the top is not a problem, but for the life of me I cannot find a way in komascript to make the left margin two inches on the first page (which will be letterhead) and one inch on every other page (plain bond). The answer that I got is that this is not easily possible, "because the size of the print area can only be changed between pages, i.e. when a \newpage command can be used. That is because there is no possibility to recalculate an already split paragraph, and exactly that would be necessary when the print area on the next page is supposed to change." If I understand that correctly, TeX splits a paragraph into lines before it begins to print it. On the next page, these lines may then be too short or too long. (Or so I interpreted this -- corrections welcome.) Why not use the same wide margin on all pages (no one was ever punished for using too much white space -- well, unless maybe it was for a dissertation)? Or do as my wife does at her Uni -- she uses letterhead that has only the logo pre-printed and prints the "right margin letterhead stuff" herself (its all in her template). Sorry I couldn't help more. (The other two items I think you can find in the manual.) -Kevin Kevin, Thanks for all the research on this! I'll see if I can adapt your \ifthenelse hack to the komascript letter class. At least its comforting to know this is not trivial (and I'm not missing something obvious). /Paul
Re: ERT & Latex export
Ernesto Posse wrote: > > Hi. Is there any way to tell lyx not to put empty lines when generating > latex from an ERT box? I'm trying to use a latex package which for some > reason doesn't like empty lines, but it looks like LyX always adds empty > lines between lines written in an ERT box. This is quite inconvenient, > since I have to manually delete those lines from the generated latex file. This is a known bug: http://bugzilla.lyx.org/show_bug.cgi?id=698 It will be fixed in the upcoming 1.4.0 release, meanwhile use Ctrl+Enter instead of Enter for linebreaks in ERT as a workaround. Georg
Re: ERT & Latex export
Ernesto Posse wrote: Hi. Is there any way to tell lyx not to put empty lines when generating latex from an ERT box? I'm trying to use a latex package which for some reason doesn't like empty lines, but it looks like LyX always adds empty lines between lines written in an ERT box. This is quite inconvenient, since I have to manually delete those lines from the generated latex file. Ending each line of latex code with C-Enter rather than Enter gets rid of the empty lines (I think). /Paul
fbox with a predefined width
Dear All I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding "Exercise 1". I tried \fbox, but with no success. Thanks in advance, Paul
Re: fbox with a predefined width
Paul Smith wrote: I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding "Exercise 1". I tried \fbox, but with no success. with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Herbert