Re: finishing up 1.2.0
Lars Gullik Bjønnes wrote: Dekel Tsur [EMAIL PROTECTED] writes: | On Mon, Aug 06, 2001 at 01:29:04AM +0200, Lars Gullik Bjønnes wrote: | | - feature freeze as of _now_. | - this mean that stuff like userdefinable floats will |not be done for 1.2.0 | | What about floatingfigure ? We need this for compatibility with 1.1.6 At least the roumours say so... but do we really? One solution (at least one I would prefere,) is to convert floatingfigure into a regulare figure. sounds like a joke ... ;-) convert it into ert-insets and everything will be okay. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: math - latest cvs
Andre Poenitz wrote: Seems that your sources are foobar, I do not see that here. I think he has a version with the commented-out 'math_charinset.[Ch]' in Makefile.am I went back to the old makefile.am, but get always the same error, also with a new cvs update??? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: math - latest cvs
Herbert Voss wrote: Andre Poenitz wrote: Seems that your sources are foobar, I do not see that here. I think he has a version with the commented-out 'math_charinset.[Ch]' in Makefile.am I went back to the old makefile.am, but get always the same error, also with a new cvs update??? okay, killed the whole math-dir - new cvs and now it's okay. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: finishing up 1.2.0
Lars Gullik Bjønnes wrote: Herbert Voss [EMAIL PROTECTED] writes: | Lars Gullik Bjønnes wrote: | | Dekel Tsur [EMAIL PROTECTED] writes: | | | On Mon, Aug 06, 2001 at 01:29:04AM +0200, Lars Gullik Bjønnes wrote: | | | | - feature freeze as of _now_. | | - this mean that stuff like userdefinable floats will | |not be done for 1.2.0 | | | | What about floatingfigure ? We need this for compatibility with 1.1.6 | | At least the roumours say so... | but do we really? | | One solution (at least one I would prefere,) is to convert | floatingfigure into a regulare figure. | | sounds like a joke ... ;-) | | convert it into ert-insets and everything will be okay. that is probably harder... maybe, but it's only a small ert in the gebinning and one (\end{floatingfigure} or table) at the end of the paragraph Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Labels citations
Michael Schmitt wrote: two remarks from a user's perspective: - Concerning your discussion this morning, I think it is a very nice feature that references are updated if the corresponding label is changed! I wonder if it makes sense to update references even globally within all open documents. This would be very useful for multipart documents. from my point of view it may be a feature but not an important one. you know, that I write a lot of stuff with lyx and I understand that global label controlling might be useful. but what are the real problems with labels? renaming - no deleting - might be, even though it makes no sense, because you can have so many labels as you like doublicat labels - yes, especially in big docs the last one can be controlled by latex, also by lyx when you went into the reference menu. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: CVS compilation
Michael Schmitt wrote: you need to patch lyx_main.C in order to be able to compile LyX. I patched and this is what happens??? g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I../boost-isystem /usr/X11R6/include -g -O -fno-exceptions -W -Wall -DLYX_DIR=\/usr/share/lyx\ \ -DTOP_SRCDIR=\..\ -c ../src/lyx_main.C ../src/lyx_main.C: In method `void LyX::readUIFile(const string )': ../src/lyx_main.C:635: no matching function for call to `LyXLex::IsOK ()' ../src/lyx_main.C:643: no matching function for call to `LyXLex::IsOK ()' ../src/lyx_main.C:654: no matching function for call to `LyXLex::GetString ()' make[3]: *** [lyx_main.o] Error 1 make[3]: Leaving directory `/var/tmp/lyx/lyx-devel/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/lyx/lyx-devel/src' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/lyx/lyx-devel/src' make: *** [all-recursive] Error 1 Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: CVS compilation
Andre Poenitz wrote: ../src/lyx_main.C:635: no matching function for call to `LyXLex::IsOK ()' ../src/lyx_main.C:643: no matching function for call to `LyXLex::IsOK ()' ../src/lyx_main.C:654: no matching function for call to `LyXLex::GetString ()' Change this to '::isOk' and '::getString' and it should be ok. isOKis it ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
ERT - PopUp-menu
open the popup menu of an ert with right mouse button and close it. on screen you get a new empty line! this only happens when you do nothing in the popup menu! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx file format changes
Lars Gullik Bjønnes wrote: Dekel Tsur [EMAIL PROTECTED] writes: | On Wed, Aug 08, 2001 at 02:30:12PM +0200, Lars Gullik Bjønnes wrote: | | The main problem we currently have is that reLyX is almost not | | maintained. | | Then obviously the conversion from latex to lyx is not that | important... at least not important for someone to step up and do the | work. | | The conversion is important. to whom? it's obviously that la(tex)-lyx is a nice thing, but tell me the users who really(!) need this way of conversion. | | Since we are continuously adding new features to LyX, reLyX stays behind, | | so a lyx-latex-lyx cycle can loose information. as I said: from a users sight lyx-latex is only important to find critical errors or to convert some stuff to whatelse ever. why should I do a lyx-latex-lyx cycle? | And it probably always will. | LyX _is_ more than a latex editor. some more information please?? | I disagree. This cycle should give you identical .lyx files (when you are | using a latex document class). no! for a user it's not important to get the same lyx file. users are interested in the same output, which is not the same. | Feel free to provide patches. | | See above... no patches there... :-) there is no known converter from ???-(La)TeX which works well, means: it does all! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx file format changes
Dekel Tsur wrote: On Wed, Aug 08, 2001 at 03:46:07PM +0200, Herbert Voss wrote: | | Since we are continuously adding new features to LyX, reLyX stays behind, | | so a lyx-latex-lyx cycle can loose information. as I said: from a users sight lyx-latex is only important to find critical errors or to convert some stuff to whatelse ever. why should I do a lyx-latex-lyx cycle? You need it if you work on a document with a coauthor which doesn't have LyX. this is the only reason?? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx file format changes
Eran Tromer wrote: Herbert Voss wrote: Dekel Tsur wrote: On Wed, Aug 08, 2001 at 03:46:07PM +0200, Herbert Voss wrote: | | Since we are continuously adding new features to LyX, reLyX stays behind, | | so a lyx-latex-lyx cycle can loose information. as I said: from a users sight lyx-latex is only important to find critical errors or to convert some stuff to whatelse ever. why should I do a lyx-latex-lyx cycle? You need it if you work on a document with a coauthor which doesn't have LyX. this is the only reason?? Last week I had to write a largish document in raw LaTeX for precisely this reason. Anyway, there's also this related scenario: you need to make some changes to your document on somebody else's computer. You don't have LyX 1.2.x installed, so you edit the exported LaTeX. Later back home, you struggle to spot all the changes and retype them into LyX. in this case it's absolutely no problem to do it in latex, for both. again: since 1985 a lot of people tried to write converters from and to tex. all failed, especially for TeX-???, because tex is a kind of programming language, which can be enhanced just as you like it. so you don't have a fixed standard. I agree with Lars: if somebody updates reLyX, it will be great ... but a soon released 1.2.0 without any bugs is much more greater ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
latest CVS crash with ert's
can somebody test, please. - open the lyx-doc - click on float:figure button to open - click on both ert's to get the abbreviated ert-inset - put the cursor left of the second ert - hit backspace to get the ert's side by side - click on one of the two ert's - lyx crashes Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \leftmargin 1.7cm \topmargin 1.4cm \rightmargin 1.2cm \bottommargin 1.4cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset Float figure placement htbp wide false collapsed true \layout Standard \added_space_bottom 0.3cm \begin_inset ERT status Open \layout Standard \family typewriter \color latex \backslash fbox{I'm a minipage} \end_inset \layout Standard \added_space_bottom 0.3cm \begin_inset ERT status Open \layout Standard \family typewriter \color latex \backslash fbox{me too} \end_inset \layout Caption a test \end_inset \the_end
Re: BUG-cvs
Garst R. Reese wrote: Try to delete the last row(s) of a table. LyX hangs. no problem here, cvs from today insert a 3x3 table and deleted one and more lines linux 2.2.4 suse 7.2 Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
windows and other nonunix systems
I wrote a short script which lists all in the local tex-system installed latex packages (style-files) with all options. this is easy for all unix(like)-systems when there is a root for the tex-dir-tree, what's the default. I have no idea how this works on windows or mac. maybe that there is somebody out there, who has installed tex on one of these non-unix-system, and can tell how tex finds all its files. Is there also a stored tex-dir, like the file ls-R for unix? or anything else? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: LyX specific LaTeX commands in preamble (1.1.6fix3)
Lars Gullik Bjønnes wrote: Herbert Voss [EMAIL PROTECTED] writes: | Dekel Tsur wrote: | | On Fri, Aug 10, 2001 at 05:01:16PM +0200, Herbert Voss wrote: | this is the better way, because it's controlled by the users. | on the other hand a lot of user uses footmisc with the | option [bottom] in any case and footmisc is a supported | package from ctan. | | This is a (small) problem: if the user had \usepackage[bottom]{footmisc} in | the preamble, then adding \usepackage[stable]{footmisc} to the preamble will | generate an error. | | that's what I wanted to say ... ;-) That is because the proper sulution is to make real support for footmisc, not some hidden magical support that happens to be included if you do something special. my idea is to support ALL locally installed style packages. this may be important for the user, because he never knows what packages are on his local tex-system (647 on my own!) my problem is, that I'm not familiar with c++. so I tried to write at first a small shell-script to create a file with - stylefile with full path -- all availabe options for example (extract from the file): /usr/share/texmf/tex/latex/misc/footmisc.sty 1 \DeclareOption{symbol} 2 \DeclareOption{symbol*} 3 \DeclareOption{para} 4 \DeclareOption{perpage} 5 \DeclareOption{bottom} 6 \DeclareOption{marginal} 7 \DeclareOption{flushmargin} 8 \DeclareOption{norule} 9 \DeclareOption{splitrule} 10 \DeclareOption{stable} 11 \DeclareOption{multiple} with this file I'm able to make a gui for user-controlled style-files for general use and optional buttons, so the gui -- maybe lyx ;-) -- can insert the \usepackage[options]{stylefile} in the preamble. I can do this with java but not with c++ ... so it will be only for my personal use if someone is interested in the script for further developping, let me know. at this point there are some minor problems with the script. maybe that this idea is the whole nonsense because it's only three days old, than let it be ... :-) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: LyX specific LaTeX commands in preamble (1.1.6fix3)
Juergen Vigna wrote: How do you know if options are additive or mutual exclusive? at this time I'll get only options which are independent from each other. They all look like \DeclareOption{name}{% --- what to do --- } Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: LyX specific LaTeX commands in preamble (1.1.6fix3)
Juergen Vigna wrote: On 13-Aug-2001 Herbert Voss wrote: Juergen Vigna wrote: How do you know if options are additive or mutual exclusive? at this time I'll get only options which are independent from each other. They all look like You mean they are mutual exclusive (you can specify one and only one of them) no, they are independent, therefore you can choose all together. if this makes sense is another (pure latex) question ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
math bug in cvs
1.1.6fix3: in an equnarray you can delete the lower right cell. the formula than looks like \begin_inset Formula \begin{eqnarray*} 11 21 31\\ 21 22 23\\ 31 32 - missing cell! \end{eqnarray*} \end_inset in 1.1.6 this doesn't matter, the lyxfile is always read well. reading this formula with 1.2.0 gives always the message that the file may be corrupted (truncated). so far so good, but lyx ignores all the text behind this formula. I suppose, that \end_inset is not a real delimiter for parsing formulas. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: math bug in cvs
Andre Poenitz wrote: 1.1.6fix3: in an equnarray you can delete the lower right cell. the formula than looks like \begin_inset Formula \begin{eqnarray*} 11 21 31\\ 21 22 23\\ 31 32 - missing cell! \end{eqnarray*} \end_inset But that's no well formed LaTeX, even if 1.1.6 allows you to create such beasts. sure! but it was lyx which allowed the user to do that! and btw: it's no problem to run this with latex! means it's allowed latex stuff ... It would be pretty difficult to parse bad input, given that it's already a pain to parse correct input... this is another question. why do you have environments \begin_inset TYPE \end_inset when you never stop parsing TYPE with reaching \end_inset??? I suppose, that \end_inset is not a real delimiter for parsing formulas. It is not. Actually, it does not even fit well into the scheme, since it contains an underscore which is usually not allowed in latex macro names... I don't know if I understand well: you mean, that all lyx1.1.6 and older files can't be read with 1.2.0 when they have this little unimportant bug in a formula Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: 1.2.0 bugs
John Levon wrote: Not included are the numerous Mathed things (dekel/eran's lists), bugs against Baruch's code, and Michael's purify reports. What else is there that needs to be entered ? this bug is always present: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg26025.html Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: tiny nit
John Levon wrote: On Wed, Aug 15, 2001 at 09:27:07PM -0300, Garst R. Reese wrote: but it looks like it would be simpler to do: Table List Figure List but remember: lot, lof, loa therefore I prefer the list of xxx Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
bibliographystyle
when i leave the field in the bib-gui for the bibliographystyle empty, lyx insert \bibliographystyle{} this is a not so bad behaviour when the documentclass has a predefined style, than latex produces error. it's better, when lyx inserts nothing! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: bibliographystyle
Herbert Voss wrote: when i leave the field in the bib-gui for the bibliographystyle empty, lyx insert \bibliographystyle{} this is a not so bad behaviour when the documentclass ^^ i meant: not so good Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
bibliography
Lars, can you apply this patch to get rid of the command \bibliographystyle{} if no bibstyle is selected by existing bibfile. this causes problems with class-files which have their own style definition: than we get two commands in the aux-file. Logfile: missing bibstyle was \bibliographystyle{}. now changed to no latexcommand Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ --- insetbib.C.old Mon Aug 6 21:15:08 2001 +++ insetbib.C Thu Aug 16 14:01:40 2001 @@ -161,9 +161,9 @@ style = MakeAbsPath(getOptions(), buffer-filepath); else style = getOptions(); - - os \\bibliographystyle{ style }\n - \\bibliography{ db_out }\n; +if (style != ) + os \\bibliographystyle{ style }\n; + os\\bibliography{ db_out }\n; return 2; }
more BibTeX support
can somebody test the attached patch for better bib support: 1. option Bibliography into TOC, a very frequently user-question 2. a browser-button for choosing the bibdata-file to get rid of the problem with the path 3. empty bib-style - no command in the latex-output the insert-liststoc-bibliography gui changed. if this patch may be useful, I'll insert a second browser button for the bib-styles. some users never know which styles are in their local tex systems. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ bibtotoc.diff.gz
Re: CVS build fails
cvs from 10 minutes ago lyxfunc.C:1198: warning: #warning Find another implementation here (or another lyxfunc)! lyxfunc.C: In method `void LyXFunc::initMiniBuffer()': lyxfunc.C:2057: no matching function for call to `LyXVC::versionString ()' make[3]: *** [lyxfunc.o] Error 1 make[3]: Leaving directory `/var/tmp/lyx/lyx-devel/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/lyx/lyx-devel/src' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/lyx/lyx-devel/src' make: *** [all-recursive] Error 1 make distclean ./autogen.sh ./configure make HErbert -- http://www.educat.hu-berlin.de/~voss/lyx/
wrong ert 1.1.6-1.2
\latex latex \backslash mbox{Abb. \begin_inset LatexCommand \ref{fig1} \end_inset } \latex default the ref-inset is outside the ert and therefore the last closing } too. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: CVS build fails
Lars Gullik Bjønnes wrote: Herbert Voss [EMAIL PROTECTED] writes: | cvs from 10 minutes ago | | lyxfunc.C:1198: warning: #warning Find another implementation here (or | another lyxfunc)! | lyxfunc.C: In method `void LyXFunc::initMiniBuffer()': | lyxfunc.C:2057: no matching function for call to `LyXVC::versionString | ()' bullocks! I do not belive you. Nope, absolutely not. than it comes from the holy ghost or what?? - i killed the whole cvs-tree, made it new, compiled it - everything ok - i edited three files (the bibtex-stuff) and done make and it comes again! lyxvc.C: In method `const class string LyXVC::versionString() const': lyxvc.C:210: no matching function for call to `VCS::versionString ()' lyxvc.C:211: warning: control reaches end of non-void function `LyXVC::versionString() const' make[3]: *** [lyxvc.o] Error 1 Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: more BibTeX support
Angus Leeming wrote: The patch looks pretty good to me; you've obviously read the source pretty closely before diving in. Some small points/questions: -string const InsetBibtex::getScreenLabel(Buffer const *) const -{ - return _(BibTeX Generated References); +string const InsetBibtex::getScreenLabel(Buffer const *) const { +return BibTeX Generated References; } Why this change? Why shouldn't the string be internationalised? (And if it should but isn't, then the correct fix is probably return N_(BibTeX Generated References); uups, I dont know, why this happens, changed it back. was not intended. +/// Cut the extension of the file +string const CutFileExtension(string const name); + Not needed. Use this (from the same file!) /** Change extension of oldname to extension. If oldname does not have an extension, it is appended. If the extension is empty, any extension is removed from the name. */ string const ChangeExtension(string const oldname, string const extension); ok Finally, please adhere to LyX style! That means tabs for spaces. This applies only to the insetbib files. five tabs and your are right out of your screen ... I'll shove it in my tree, as is, and test it for you, but won't submit it just yet. i tested it in any combination with or without bibtotoc and article/book-classes and so on. here is the patch again with the corrections and the file from fdesign. Something goes wrong with the LaTeX typesetting when including the references in the TOC. See attached screenshot. is fixed now. you had article class and therefore I had to change from chapter to section. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ Index: src/frontends/controllers/ControlBibtex.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlBibtex.C,v retrieving revision 1.7 diff -u -p -r1.7 ControlBibtex.C --- src/frontends/controllers/ControlBibtex.C 2001/08/02 14:55:05 1.7 +++ src/frontends/controllers/ControlBibtex.C 2001/08/20 11:10:52 @@ -10,6 +10,7 @@ * \file ControlBibtex.C * \author John Levon, [EMAIL PROTECTED] * \author Angus Leeming [EMAIL PROTECTED] + * \author Herbert Voss [EMAIL PROTECTED] */ #include algorithm @@ -26,7 +27,12 @@ #include LyXView.h #include buffer.h #include BufferView.h +#include lyxrc.h +#include helper_funcs.h +#include gettext.h +using std::pair; +using std::make_pair; using SigC::slot; ControlBibtex::ControlBibtex(LyXView lv, Dialogs d) @@ -53,3 +59,11 @@ void ControlBibtex::applyParamsToInset() void ControlBibtex::applyParamsNoInset() {} + +string const ControlBibtex::Browse(string const in_name, + string const title, + string const pattern) { + pairstring, string dir1(N_(Documents), string(lyxrc.document_path)); + return browseFile(lv_, in_name, title, pattern, +dir1,make_pair(string(), string())); +} Index: src/frontends/controllers/ControlBibtex.h === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlBibtex.h,v retrieving revision 1.6 diff -u -p -r1.6 ControlBibtex.h --- src/frontends/controllers/ControlBibtex.h 2001/03/28 12:59:28 1.6 +++ src/frontends/controllers/ControlBibtex.h 2001/08/20 11:10:52 @@ -29,6 +29,8 @@ class ControlBibtex : public ControlComm public: /// ControlBibtex(LyXView , Dialogs ); + /// Browse for a file + string const Browse(string const , string const , string const ); private: /// Dispatch the changed parameters to the kernel. Index: src/frontends/xforms/FormBibtex.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormBibtex.C,v retrieving revision 1.12 diff -u -p -r1.12 FormBibtex.C --- src/frontends/xforms/FormBibtex.C 2001/07/29 17:39:00 1.12 +++ src/frontends/xforms/FormBibtex.C 2001/08/20 11:10:52 @@ -5,6 +5,7 @@ * * \author Angus Leeming * \author John Levon + * \author Herbert Voss [EMAIL PROTECTED] */ #ifdef __GNUG__ @@ -19,7 +20,9 @@ #include gettext.h #include debug.h #include support/lstrings.h +#include support/filetools.h + typedef FormCBControlBibtex, FormDBFD_form_bibtex base_class; FormBibtex::FormBibtex(ControlBibtex c) @@ -37,33 +40,77 @@ void FormBibtex::build() // Manage the ok, apply, restore and cancel/close buttons bc().setOK(dialog_-button_ok); bc().setCancel(dialog_-button_cancel); - + + bc().addReadOnly(dialog_-database_browse); bc().addReadOnly(dialog_-database); + bc().addReadOnly(dialog_-style_browse); bc().addReadOnly(dialog_-style); + bc().addReadOnly(dialog_-radio_bibtotoc); } - -ButtonPolicy::SMInput FormBibtex::input
Re: center vs centering
Dekel Tsur wrote: On Mon, Aug 20, 2001 at 10:46:08PM +0200, Lars Gullik Bjønnes wrote: | In LyX 1.1.6, we used |{\centering Centered text.\par} (1) | In order to have a centered paragraph. | In 1.2.0, we use |\begin{center} | Centered text. (2) |\end{center} | | However, (1) and (2) are not equivalent!! | The latter generate additional space between the paragraph and the | paragraphs below and above it. This is particularly bad if you have a fixed | width tabular cell that contains only one centered paragraph. Hmm... can you raise this question in the tex news group? (comp.text.tex) I don't think that there is something that can be asked there. It is clear that these two commands have different effect. However, since we need to maintain compatibility with 1.1.6, we need to use \centering (or to redefine the center environment, but this is not a good idea as the user might have used it in ERT). in figures/tables a.s.o always centering is the best choice! than the caption is nearer to the figure/table ... for centered paragraphs the environment is often used! because the additional vertical space makes sense. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx 1.1.6 with AMS: bug in save routine
Andre Poenitz wrote: You are using \mathcal in a 'wrong' way. The correct way is to write \mathcal{A} . No. \mathcal A is perfectly acceptable LaTeX and is equivalent to \mathcal{A}. the last one is the better one. there are several things in latex which are possible but not absolutely secure. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Lyx on MacOS X (Darwin + X)?
Cyrille Artho wrote: Hi, I am trying to make Lyx work on Mac OS X (on a PowerBook G4) with Darwin and X windows installed. I have all the libraries Lyx needs, but the xforms library is only available as a static library for Mac OS X. ./configure tries to find a shared library and fails. Is there any way to tell ./configure to link the libforms.a library statically? Btw, please CC me when replying, as I'm not on the mailing list. http://www.educat.hu-berlin.de/~voss/lyx/misc/mac.html Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: LyXLength
Andre Poenitz wrote: What is the proper way to get a scrren distance from things like '-1.2ex'? you have the screen-fontsize (or not??) than you have -1.2fontsize in pt. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: web page changes
Zvezdan Petkovic wrote: On Tue, Aug 21, 2001 at 09:25:39AM +0200, Lars Gullik Bjønnes wrote: Juergen Vigna [EMAIL PROTECTED] writes: | However I don't care how this is output on the web-page (we could maybe | have a look at the prefered language set in the browser and have a list | of date-formats and output it in the local (prefered language) mode ;) No, we should use the language of the web page. -- Lgb And that is _ENGLISH_ -- not American. And in England people write 3rd August 2001. i learned in school august, 3rd ... :-) but it's some years ago Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bibtex bug
Angus Leeming wrote: On Tuesday 21 August 2001 16:51, Michael Schmitt wrote: Hi, I think the following bibtex entry is not read correctly (the year is 50BC in the citation dialog) @STRING{ ProcOfThe = Proceedings of the } @ARTICLE{FrinckeTomp96, AUTHOR = {D. A. Frincke and A. Tompkins}, JOURNAL = {Journal of Computing and Information}, NOTE = {Special Issue: } # ProcOfThe # {Eighth International Conference of Computing and Information (ICCI'96)}, NUMBER = {1}, PAGES ={986--999}, TITLE ={Using Symbolic Execution to Detect Undesirable Program States}, VOLUME = {2}, YEAR = 1996 } Yes, the bibtex parser is really simple. It'll be confused here by your NOTE I think. I've been experimenting with running BibTeX on the .bib file and parsing the (far simpler and always correct) .bbl file instead. Works a treat. Moreover, I can use the same .bst BibTeX style file as the document so we really end up with WYSIWYM. This is a bug, therefore, that won't be fixed. Don't bother to put it into your buglist. I think no bug! from my point of view not a correct citation form: should be NOTE = {{Special Issue: } ProcOfThe {Eighth International Conference of Computing and Information (ICCI'96)}}, I had not too much experience with bibtex, so I can't really say why it should not be. anyway, this works. it's another question why the parser struggles in fact of the #-characters. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Issue with 2up
Stephan D. Picard wrote: I'm trying to use 2up in order to save paper for the multiple revision of a rather large document. Now, I have a problem. I'm following Herbert's advice on printing 2 page on 1 landscape which suggest to add \AtBeginDocument{\input{2up}} in the latex preamble and set the paper layout to landscape. deactivate landscape and activate button usepackage geometry and put in the fields for the margins top 1cm bottom 5cm left 5cm right 3cm play around with the values, these are ones for a4-paper it also works with activated button landscape, but than you need other margins. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - update
Michael Schmitt wrote: I have updated my bug list. Please find a couple of new bug reports (concerning findreplace, mathed, ...). - File browsing in the BibTeX Database dialog does not work well if you need to fixed! you can now insert db-infinity databases separated by ',' include several bibtex files (which should happen quite often); IMHO browse should be replaced by add and delete buttons and the bibtex files should be listed in separate lines let the users speak. I for myself never worked with different databases. I prefer a big one. Is it a problem to delete a database with backspace or add a new one with browse? if you have an add_button, you do the same: insert it by hand or browse ... so you have one more button for the same thing. Angus, can you apply, please? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ Index: src/frontends/xforms/ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v retrieving revision 1.133 diff -u -p -r1.133 ChangeLog --- src/frontends/xforms/ChangeLog 2001/08/21 13:33:25 1.133 +++ src/frontends/xforms/ChangeLog 2001/08/22 13:43:09 @@ -1,3 +1,7 @@ +2001-08-22 Herbert Voss [EMAIL PROTECTED] + + * FormBibtex.C (input): fix for multiple databases + 2001-08-21 Herbert Voss [EMAIL PROTECTED] * FormBibtex.C (input): extension handling for .bst Index: src/frontends/xforms/FormBibtex.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormBibtex.C,v retrieving revision 1.16 diff -u -p -r1.16 FormBibtex.C --- src/frontends/xforms/FormBibtex.C 2001/08/21 14:52:50 1.16 +++ src/frontends/xforms/FormBibtex.C 2001/08/22 13:43:09 @@ -29,7 +29,6 @@ FormBibtex::FormBibtex(ControlBibtex c : base_class(c, _(BibTeX Database)) {} - void FormBibtex::build() { dialog_.reset(build_bibtex()); @@ -48,13 +47,12 @@ void FormBibtex::build() bc().addReadOnly(dialog_-radio_bibtotoc); } - ButtonPolicy::SMInput FormBibtex::input(FL_OBJECT * ob, long) { if (ob == dialog_-database_browse) { - string const in_name = fl_get_input(dialog_-database); + string const in_name = fl_get_input(dialog_-database);// save string out_name = - controller().Browse(in_name, + controller().Browse(, // start empty Select Database, *.bib| BibTeX Databases (*.bib)); if (!out_name.empty()) { @@ -63,13 +61,13 @@ ButtonPolicy::SMInput FormBibtex::input( // (because latex needs it without suffix) out_name = ChangeExtension(out_name,); } - + if (!in_name.empty()) + out_name = in_name+, +out_name; // add database fl_freeze_form(form()); fl_set_input(dialog_-database, out_name.c_str()); fl_unfreeze_form(form()); } } - if (ob == dialog_-style_browse) { string const in_name = fl_get_input(dialog_-style); string out_name = @@ -77,31 +75,27 @@ ButtonPolicy::SMInput FormBibtex::input( Select BibTeX-Style, *.bst| BibTeX Styles (*.bst)); if (!out_name.empty()) { - out_name = OnlyFilename(out_name); - if (suffixIs(out_name,.bst)) { - // to prevent names like xxxbst.bst - // (because bibtex needs it without the suffix) - out_name = ChangeExtension(out_name,); - } - + out_name = OnlyFilename(out_name); + if (suffixIs(out_name,.bst)) // to prevent names like +xxxbst.bst + out_name = ChangeExtension(out_name,);// no .bst fl_freeze_form(form()); fl_set_input(dialog_-style, out_name.c_str()); fl_unfreeze_form(form()); } } - - if (!compare(fl_get_input(dialog_-database),)) { + if (!compare(fl_get_input(dialog_-database),)) { return ButtonPolicy::SMI_NOOP; } - return ButtonPolicy::SMI_VALID; } - void FormBibtex::update() { - fl_set_input(dialog_-database, -controller().params().getContents().c_str()); +// nothing to do here, because the structure of +// getContents() should be ok, it's always gone +// through apply(). So multiple databases may be +// no problem. + fl_set_input
Re: Bug list - update
Angus Leeming wrote: I tweaked this quite a lot. Could you test it out please. * I removed the stripping of the extensions from the names in input(). Instead, it's how done in apply() for both the .bib and .bst files. * The .bib browser would complain if it were passed multiple files. No more. Angus, there is a small problem: when the first bib is in the local doc-dir, let's say myBIB. we than browse with this bib as input, closing browser without doing nothing, gives now a NEW bib file with the actual full path. for example /home/voss/myBIB. I think this is a not so good behaviour. I'll look tomorrow for the code. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: New Fonts in mathed
Andre Poenitz wrote: On Thu, Aug 23, 2001 at 12:08:55PM +0300, Dekel Tsur wrote: For users Users should use the lyx math-macro mechanism Users use third-party .sty files all the time. It's not uncommon to co-operate with people who do not use LyX. , and packages, which define new macros which LyX hasn't heard of. It's just a more flexible approach.. Can you give an example of such a package ? And how this approach should work on macros with arguments ? 1. It should not. We are talking about symbols (whatever that is...) symbols: - so-called latex-symbols: - we have symbols without any package - with package latexsym - amsmath symbols - lots of other packages with special symbols, like wasysym, marvosym a.s.o. it makes sense to support the latex and amsmath one, but the other ones ??? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: New Fonts in mathed
Ronny Buchmann wrote: If that support comes for free? Why should we not? i would like it outside mathed, there are much \text* macros out there what packages define macros for symbols in math mode and have free postscript fonts? do a search for type1 in http://www.act.cmis.csiro.au/gjw/tex/full.html Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
a patch for local-help
can somebody try the attached patch, please. I tried to implement a local help-information on the different gui's. at first, I created a help-button for the bibtex-gui. a file browser shows the content of the file Bibtex.hlp, which must be in system_lyxdir/help, maybe /usr/share/lyx/help or .../lib/help. at this time create the dir and place it it by hand, because I don't patched the config-part of lyx. the tarzip contains the diff, the helpfile and a screenshot. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ help.gz
Re: a patch for local-help
Herbert Voss wrote: the tarzip contains the diff, the helpfile and a screenshot. sorry, I forgot the new files ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ helpFiles.tgz
mathbug in latest cvs
alt-m-m for inline formula and than f(x)=-f(-x) behind the - sign the characters are upright. in latex output everything is ok, all in italic. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: New bug in Reference dialog
Angus Leeming wrote: On Tuesday 28 August 2001 16:50, Michael Schmitt wrote: - Add some labels to your document, then open the Reference dialog. As soon as you move the cursor down in the list of references, all references (i.e. their names) are shifted to the right I don't see this. this only happens when you resize the gui. the position of the left character of the initial gui-size seems to be absolut, so that the lines are shiftet to the old position, when you have a greater window. a smaller one makes no problem. they are shifted imidiately behind any key-activity. with the mouse all works well. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
mathed latest cvs
all commands are no more shown as symbol, for example: \int space is in the mathbox int in red. dvi-output works well. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: epsilon
Garst R. Reese wrote: Still comes out as red text. Is this my font installation or known? take the last cvs, should be fixed Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: epsilon
Garst R. Reese wrote: Herbert Voss wrote: Garst R. Reese wrote: Still comes out as red text. Is this my font installation or known? take the last cvs, should be fixed All greek except epsilon works. Ok in ps. yes you're right, I thought of \varepsilon Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: mathed latest cvs
On Mon, 3 Sep 2001, Andre Poenitz wrote: On Sun, Sep 02, 2001 at 04:55:39AM -0300, Garst R. Reese wrote: Seems like nobody has quite figured out how to get the new symbol fonts properly set up. \int should be shown using the old fonts if the new can't be dfound. at least that was the therory and I saw it working once. after Dekels fix, all works well Herbert
Re: Bug list - Update No. 73251
Michael Schmitt wrote: On Sat, 1 Sep 2001, Yves Bastide wrote: - Create a new document that contains the word Sophisticated 6 times. View the dvi output (-last word is broken into two lines); add a margin note right in front of the last word and view dvi output again (- the word is not broken any more but collides with the margin note); LyX or Latex bug??? I'd say Latex feature (a margin note should go after a word, not before) What does Dr. LaTeX (aka Herbert) say about this? If it is indeed a LaTeX problem rather than a LyX bug, I will drop this item. this is your problem, not a latex one ... when you add your margin note _direct_ before the last word, than the parbox of the margin and the word are a unit(!) and hyphenation is not possible! a margin should always appear as a word, means space before _and_ space behind, than all works well. a margin note appears with the top in the line of the \margin command. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - Update No. 73251
Yves Bastide wrote: On Mon, Sep 03, 2001 at 01:24:13PM +0200, Herbert Voss wrote: Michael Schmitt wrote: On Mon, 3 Sep 2001, Herbert Voss wrote: this is your problem, not a latex one ... when you add your margin note _direct_ before the last word, than the parbox of the margin and the word are a unit(!) and hyphenation is not possible! a margin should always appear as a word, means space before _and_ space behind, than all works well. Aha! May I draw the conclusion that LyX should add a space before and after each margin note automatically when exporting to LaTeX? I was too quick with my answer. It may be a problem of hyphenation, because \tolerance=200 \setlength{\emergencystretch}{2em} solve the problem ... I'll have a closer look at it. Is such fiddling appropriate, when all we have is a user bug ? :-) A marginpar, like a footnote or an index entry, is meant to refer to the preceding word. No? no, as far as i know to the line of the \marginpar command. but it always works when it is near to the preceeding word, because there are no problems with hyphenation. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Major update of bug list
Garst R. Reese wrote: - Herbert: Open two different docs, open one latex preamble, write anything in the preamble, close the doc of this preamble (but not the preamble!), close the preamble with ok - the preamble of the current doc is overwritten! This could be considered a feature. e.g., a simple way to copy a preamble. maybe, but when you ever had destroyed a large preamble, you don't think so ... ;-) copy and paste is much more better. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: split
Andre Poenitz wrote: What's the difference between \begin{array}{rl} ... \end{array} and \begin{split} ... \end{split} cells in the array-environment are handled as inline-math, the symbols (int, sum) have textheight. this looks ugly. PS: Herbert, there are a few ^ missing in the LaTeX source on your page about 'split'. thanks. have a look at the example: 1. I can't insert any delimiters with the math-panel (latest cvs) 2. I choosed rl-alignment for the matrix, it's still cc (last formula) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \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 begin{equation} \newline \backslash begin{split} \newline A_{1} = \backslash left| \backslash int _{0}^{1}(f(x)dx \backslash right| \backslash \backslash \newline = 12 \newline \backslash end{split} \newline \backslash end{equation} \end_inset \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash begin{equation} \newline \backslash begin{array}{rl} \newline A_{1} = \backslash left| \backslash int _{0}^{1}(f(x)dx \backslash right| \backslash \backslash \newline = 12 \newline \backslash end{array} \newline \backslash end{equation} \end_inset \layout Standard \begin_inset Formula \begin{equation} \begin{array}{cc} A_{1} =\int ^{2}_{1} f(x)dx\\ =12\end{array} \end{equation} \end_inset \the_end
Re: LyX specific LaTeX commands in preamble (1.1.6fix3)
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Maybe we didn't know about that. Or maybe footmisc is not a required package so it's better to make this by hand. I don't know! Herbert it's nearly the same code in footmisc. the texcode is always Herbert from Robin Fairbains, but footmisc is the newer one and with Herbert option stable you have footnotes in tables, too. It is indeed code extracted from footmisc. However, we cannot assume the footmisc is always installed and it is nice to have a fallback for such a common situation (footnote in section heading). However, if a better solution exists, we should definitely use it. this could not be a reason for such a hack! maybe, that we should think about a latex-directory in ftp.lyx.org, where all these lyx-supported style-files are linked to ftp.dante.de. so all users have an easy opportunity dowloading missing style-files. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: center vs centering
Jean-Marc Lasgouttes wrote: Dekel == Dekel Tsur [EMAIL PROTECTED] writes: Dekel I don't think that there is something that can be asked there. Dekel It is clear that these two commands have different effect. Dekel However, since we need to maintain compatibility with 1.1.6, we Dekel need to use \centering (or to redefine the center environment, Dekel but this is not a good idea as the user might have used it in Dekel ERT). Note that that also the center environment is proper markup, while \centering is not really. We could maybe make it different for tables, but I do not really like that. \def\center{\trivlist \centering\item\relax} \def\endcenter{\endtrivlist} \def\centering{% \let\\\@centercr \rightskip\@flushglue\leftskip\@flushglue \parindent\z@\parfillskip\z@skip} the center-environment uses itself the \centering-command! it's common sense to use \centering instead of the center-env. the additional vertical space in fact of the trivlist is irritating for users who are not very familiar with this stuff. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Garst R. Reese wrote: Can someone tell my why this does not work in hollywood.cls? ViewPs tells me that that a number is expected and that a dimension is missing when I ERT \linesperinch{6} I've tried numerous variations on this theme. Thanks, Garst \usepackage{calc} . . . \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% { and the closing }, where is it?? renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize }% a missinf backslash before renewcommand ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Garst R. Reese wrote: \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls' there is a problem with the use of \ratio. both parameters must be a length. what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Extraneous ':' characters in postscript generated from lyx
Ralph Boland wrote: I am using lyx 1.1.6 fix1 I used tables for the first time in a document. I get extraneous ':' characters in my postscript output. Attached is the lyx file and the postscript file in a directory tarred and gzipped. Sorry if this bug is fixed in more recent versions of lyx. you can't use the paragraph layout description for tables. in your document class ams the first word in description is bold and gets a : choose standard as paragraph layout for the table! if you want the table printed in bold characters write in ert: \textbf{ .. your table here ... } Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: mathed example doc
Angus Leeming wrote: I'lve added a document mathed.lyx to lib/examples. However, I have two problems: 1. I get errors when running LaTeX on it: Environment lyxcode undefined. your article layout has a missing \input lyxcode.inc 2. I've had to enclose the last several table floats in a note inset to get things to print. See the note for what I think is wrong. Is this a general LaTeX problem, or is it specific to LyX? what is the \leftarrowall ?? from which package? The document itself is certainly not polished. If anyone would like to polish it or add anything to it, then feel free. delete the symbol-tables and do a link to ftp://ftp.dante.de/tex-archive/info/symbols/comprehensive/symbols-a4.pdf there you have _all_ symbols! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Garst R. Reese wrote: Herbert Voss wrote: Garst R. Reese wrote: \newlength{\oneinch} \setlength{\oneinch}{72bp} \providecommand{\linesperinch}[1]% {\renewcommand{\baselinestretch}{\ratio{\oneinch}{\baselineskip} /(#1)}% \normalsize}% \endinput %% %% End of file `hollywood.cls' there is a problem with the use of \ratio. both parameters must be a length. \oneinch and \baselineskip are lengths. It will not even take \renewcommand{\baselinestretch}{\baselineskip *#1} what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. this is a better one, but you need package fp \LinesPerInch{3} is now a valid command. instead of package setspace you can use the commands from the package for setstretch. \usepackage{fp}% floating point arithmetic \usepackage{setspace} \def\NormLPI{6}% like singlespace \def\myLPI{} \def\setLPI{} \newcommand{\LinesPerInch}[1]{% \renewcommand\setLPI{#1} \FPdiv\myLPI\NormLPI\setLPI \setstretch{\myLPI}% \normalsize% } Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: latex help
Dekel Tsur wrote: On Wed, Sep 05, 2001 at 01:39:39PM -0300, Garst R. Reese wrote: what about \usepackage{setspace} and than in ert \setstretch{1.5} for 4 lines per inch (as an example) Not very intuitive for the user, but it works well. I have made that change to hollywood.cls and documented it in a note in script_form.lyx You don't need to use ERT. Just use the document dialog, select Spacing=Other, and enter 1.5 in the field to the right. sure, but this is before 1.2.0 a document wide option Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Problem with \mathcal within a table...
Ben Stanley wrote: Hi, I had problems with using a \mathcal in a table (see attached file). I'm using LyX 1.1.6fix3. When I export the file to LaTeX and then run latex on it, I get the following LaTeX error: ! Misplaced \noalign. \hline -\noalign {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.18 \hline The relevant contents of the LaTeX file are 13 \makeatother 14 \begin{document} 15 \begin{tabular}{|p{4cm}|} 16 \hline 17 \centering Frequency domain \( \mathcal{F}\left\{ f\left( x\right) \right\} =F\left( s\right) \)\\ the centering is the problem. mark the text and do a layout-paragraph-block and try a dvi-view again. HErbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: letter layout
Jose Abilio Oliveira Matos wrote: On Thu, Sep 06, 2001 at 05:25:22PM -0300, Garst R. Reese wrote: I knew about that, but now in letter, the only things that show up on the drop down list are My Address and Send To Address. cc etc went missing. It makes sense now. Please blame Jean-Marc. Since he will only see this on friday, please, don't be gentle. :-) It makes sense that this is a by-product of his changes to the style code. I might be wrong note. this is a part of the style opening from stdletter.inc which makes the problems. opening follows send to address: # label font definition LabelFont Series Bold Shape Italic Latex Latex EndFont as I reported some time ago the Latex font definition is no more valid. lyx stops reading the layout when such fontdefinition appears in the layoutfile. this is a very bad behaviour! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Juergen Spitzmueller wrote: I'm not able to change the document class anymore with latest CVS! - Create a new document - Chose another class in Layout Document and confirm - The class is still article! Same problem if you try to change the class of an existing file. Can anyone confirm this? - layout-document-choose other class - confirm the change - now pay attention! the layout document popup window is still openend, but behind the main-window of lyx. if you do not close this layout gui, the class change is not valid. open this layout gui again before closing the first one restores the old class! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Problem with \mathcal within a table...
Ben Stanley wrote: the centering is the problem. mark the text and do a layout-paragraph-block and try a dvi-view again. Yes, that fixes it. However the resulting output looks ugly in this case... Will this be fixed, so that I can center a column of fixed width, or is this impossible for LaTeX? this is a problem for Jürgen, the table man ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Juergen Spitzmueller wrote: Am Donnerstag, 6. September 2001 23:01 schrieb Herbert Voss: - layout-document-choose other class - confirm the change - now pay attention! the layout document popup window is still openend, but behind the main-window of lyx. if you do not close this layout gui, the class change is not valid. open this layout gui again before closing the first one restores the old class! You're right! I knew there was someting missing... Very odd. Should be fixed IMHO. yes! this is not a real bug, but very annoying ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
mathed-bug latest cvs
in a displayed formula a fraction should be in displaystyle, but it's in scriptstyle in dvi output. on screen the charactersize is correct. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
bub in latest cvs - index entry
given is a textline in description layout and any dok-class: put the cursor behind the first word and do a insert-index entry of preceeding word you always get the word with the prefix MM, like MM while the MM is the LabelString from the description layout! same happens for all other layouts with a LabelString, but only for the first word. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - Countdown [Float options]
Juergen Spitzmueller wrote: 3. If I understand http://www.cs.uu.nl/~piet/floats/ correct (the LaTeX-gurus might correct me), LyX should add the following line to the preamble, if you chose Here, definitely: \restylefloat{figure} %% or whatever float it is This is currently not the case. it's important to prevent a pagebreak in fact of a misplaced H-float. the H-option is absolutely tricky! and from my point of view it should never appear! it gives more trouble than andvantages. and a float is no more a float! it's no problem to place a nonfloat-object with or without a caption in any place of the doc without this H-option. nice sunday, hope it's better than here in Berlin - cold and rainy Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - Countdown [Float options]
Herbert Voss wrote: Juergen Spitzmueller wrote: 3. If I understand http://www.cs.uu.nl/~piet/floats/ correct (the LaTeX-gurus might correct me), LyX should add the following line to the preamble, if you chose Here, definitely: \restylefloat{figure} %% or whatever float it is This is currently not the case. it's important to prevent a pagebreak in fact of a misplaced H-float. forget this statement, Lars is right! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - Countdown [Float options]
Garst R. Reese wrote: Herbert Voss wrote: the H-option is absolutely tricky! and from my point of view it should never appear! it gives more trouble than andvantages. and a float is no more a float! it's no problem to place a nonfloat-object with or without a caption in any place of the doc without this H-option. How do you get a non float figure or table to show up in the List of Figures/Tables? If I select caption after a non float table, I set Senseless. here is an example for table, it's nearly the same for figure: http://www.educat.hu-berlin.de/~voss/lyx/floats/nonFloat.html I'll have a look, if a lyx-layout nonfloat-figure nonfloat-table is possible Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - Countdown [Float options]
Garst R. Reese wrote: But wouldn't that be the same as using the Here option? Yeah, it no longer floats, but maybe the solution is to move Graphics and Tabular material inside Floats. About half the time (used to be 100%) I create the graphics, then the float and then cut and paste the grapic inside the float. it's always the same: a nonfloat inside floats. if you have one or two floats with H option it doesn't matter.problems occur, if you have a lot of floats and some of them with H. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Bug list - Countdown [Float options]
Lars Gullik Bjønnes wrote: [EMAIL PROTECTED] (Juergen Spitzmueller) writes: | Garst R. Reese wrote: | How do you get a non float figure or table to show up in the List of | Figures/Tables? | If I select caption after a non float table, I set Senseless. | | There's the nonfloat-package (on CTAN), which defines new \tabcaption | and \figcaption environments. But you have to play with ERT here and I | don't know if it is compatible to caption(2).sty. And for tabulars, the | captions are always placed above the tabular (typographically correct, | but not everyones taste). Unless you can tell _why_ this is better than the 'H'-placement we stick with float.sty... the code is much more easier than in float. but anyway: it's more a question of latex philosophy. there are a lot of people (like me) who say a float is a float) and option H is a massive restriction in typsetting a document! in most cases you'll get with option !h what you want. that's all ... at this time it may be much more important to eliminate the bugs, than to discuss floats. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
World Trade Towers
have you heard about the destroying world trade tower and the attack against the pentagon in washingon. here it's live on ntv HErbert
super/subscript in mathed, latest cvs
insert-special character-super/subscript works well. but when you click anywhere in the text and than between the two parenthesis in the mathbox of the super/subscript the text of the super/sub will be deleted _and_ undo doesn't work! Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: bub in latest cvs - index entry
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert given is a textline in description layout and any dok-class: Herbert put the cursor behind the first word and do a insert- index entry of preceeding word Herbert you always get the word with the prefix MM, like Herbert MM while Herbert the MM is the LabelString from the description layout! I think I just fixed it. confirmed, Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Juergen Spitzmueller wrote: This solves only the half of the problem. The document dialog is still hidden behind the main dialog on my box (KDE 2.2). IMHO this should be solved, too, because new users probably don't know that they have to confirm the change again in the document dialog, which seems to be closed. But it's far less confusing now. Thanks. there is now another problem for me on suse 7.2. the menu of the classes is still in front of the confirm-gui - document-gui. so the okay-button of the confirm gui is hidden. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
muthbug in cvs
I have some mathstuff like \mathds{R}, for doublestroke characters for sets (package dsfont) before 1.2 this was done with \mathds{, because lyx does the closing parenthesis by itself. so far so good: 1.20 converts this to \mathds{ in tex(red) and the rest in blue. therefore I get a lot of errors. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Footnote inside Tabulars (Reminder;-)
Juergen Spitzmueller wrote: Just to remind you that this issue is still unsolved ;-) If a footnote is used inside a tabular which is - outside floats - not in a minipage - no long-tabular the following two lines have to be inserted to the preamble (according to Dekel): \usepackage{footnote} is no more supported. the package footmisc replaces this one. \makesavenoteenv{tabular} and has no more this command. there are 2 ways: 1: insert-footnote does not workk inside tabular 2: all works as usual and lyx inserts a \footnotemark and a \footnotetext{blah} behind \end{tabular}, inclusive a refstepcounter{footnote} Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Float Problems
Juergen Spitzmueller wrote: Michael Schmidt wrote: - It seems like Wide figures do not work with option Here, definitely (at least in the article class without additional flags/options). If that is generally true, the option should not be allowed for them. (At least) figure* and table* only work if the line \restylefloat{figure*} or \restylefloat{table*} is inserted in the preamble. After all, perhaps this line should be inserted generally if the H-Option is chosen. again: remove this option, it gives more trouble than fun and a lot of misunderstandings to new users. insert an inputfield userdefined, if you can't miss this option. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Footnote inside Tabulars (Reminder;-)
Dekel Tsur wrote: On Mon, Sep 17, 2001 at 04:13:52PM +0200, Herbert Voss wrote: If a footnote is used inside a tabular which is - outside floats - not in a minipage - no long-tabular the following two lines have to be inserted to the preamble (according to Dekel): \usepackage{footnote} is no more supported. the package footmisc replaces this one. The footnote footmisc packages are unrelated, namely they do different things. there were two footnote packages, the one of robin fairbanks is now footmisc, the otherone is afaik no more part of the tools package. anyway, with package tabularx footnotes are no more a problem without any preamble stuff. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Footnote inside Tabulars (Reminder;-)
Juergen Spitzmueller wrote: Am Montag, 17. September 2001 22:56 schrieb Dekel Tsur: On Mon, Sep 17, 2001 at 06:59:50PM +0200, Herbert Voss wrote: there were two footnote packages, the one of robin fairbanks is now footmisc, the otherone is afaik no more part of the tools package. Mark Wooding's footnote.sty is still a part of mdwtools. Yes, we are talking about mdwtools. The question is (again): is this (mdwtools) supposed to be installed everywhere? It's part of teTeX, but I don't know if that is true for other distros. If it is supposed to be installed, we should really add this two lines IMHO. Footnotes inside tabulars (of this kind) is something which should be possible (if possible ;-). for all of those who need a lot of packages for their docs, it's still the same: you have interdependencies between the different packages like this one has to be load before another one. or this package doesn't work with that one and so on ... this is the reason why I always say: do not load too much packages by default. especially for those stuff, which is possible with a few latex commands. I'll change my mind, if lyx gets it's own package administration. So I have the decision to say if a package should be load or not. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert not all problems. but it's better than the old one as far as Herbert I can see. because the layout-doc-gui is still a bit left of Herbert the main window. so one can see that there's an open gui. Herbert this doesn't work, when you have the main-window maximized. I do not see how my change could have the effect of having the layout-doc-gui (is that the layoutdocument dialog?) more on the left... I guess I do not understand what happens actually. 1. there was the problem with the totally hidden layoutdocument dialog, when changing class. 2. after your first patch (I hope, I remember well), there was the problem with the class list, which doesn't went into the background. which is now solved. but the layoutdocument dialog may be hidden again So: do you feel that this patch should be applied? from my point of view: yes. because 2. is solved This popup asks you whether you want to change some settings according to the class. For example, you you switch from article to a class which uses two-columns by default (IEEEtran), answering yes to the question will set columns to 2. Is that clear? sure, but this could be possible with the layoutdocument dialog too, because you can switch the radio button(s) after changing the class. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Jean-Marc Lasgouttes wrote: So: do you feel that this patch should be applied? Herbert from my point of view: yes. because 2. is solved But is it better that without both patches? I ask because I prefer to let the combox code alone if possible. I'm a bit confused, because I can't really remember, what the first patch does ... Herbert sure, but this could be possible with the layoutdocument Herbert dialog too, because you can switch the radio button(s) after Herbert changing the class. Yes, I planned to write that at some point and forgot about it. We should have a 'reset to class defaults' (please suggest a better name!) button in the document dialog which does that. Then we could get rid of the annoying question, probably (what do you think?). good idea and probably easy to realize. I know that the stuff which seems to be easy to realize, takes more time than presumed ... As far as the combox+dialog bug is concerned, note that the problem would still exist in the case where there a textclass cannot be read. at this point I don't understand when this could really happened?? maybe a more theoretical problem??? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: trivial latex-y question (printing print time) doc. question
Richard E. Hawkins wrote: Okay, softball time :) I'd like a footer or header to print the print time date on each page. I assume this is a quick line in the preamble? Hack level is fine; i need to keep printing my math as I work on it. in preamble: \usepackage{time} \newcommand\myTime{\now} \lhead{\today - \myTime} with layout-document-pagestyle-fancy Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: trivial latex-y question (printing print time) doc. question
On Mon, 24 Sep 2001 [EMAIL PROTECTED] wrote: herbert harumphed, Richard E. Hawkins wrote: Okay, softball time :) I'd like a footer or header to print the print time date on each page. I assume this is a quick line in the preamble? Hack level is fine; i need to keep printing my math as I work on it. in preamble: \usepackage{time} \newcommand\myTime{\now} \lhead{\today - \myTime} with layout-document-pagestyle-fancy Thanks, but this gives the error, File `time.sty' not found. package time available at CTAN ftp://ftp.dante.de/tex-archive/macros/generic/time.sty Herbert
Re: Cursor movement
Andre Poenitz wrote: I changed a few things, try again. What exactly should happen if we have 1_{2}^{3}4_{5}^{6} and the '4' is deleted? from my point of view only the '4'. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert Juergen Spitzmueller wrote: This solves only the half of the problem. The document dialog is still hidden behind the main dialog on my box (KDE 2.2). IMHO this should be solved, too, because new users probably don't know that they have to confirm the change again in the document dialog, which seems to be closed. But it's far less confusing now. Thanks. Herbert there is now another problem for me on suse 7.2. the menu of Herbert the classes is still in front of the confirm-gui - Herbert document-gui. so the okay-button of the confirm gui is Herbert hidden. Does the following patch help? yess :-) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Jean-Marc Lasgouttes wrote: Herbert there is now another problem for me on suse 7.2. the menu of Herbert the classes is still in front of the confirm-gui - Herbert document-gui. so the okay-button of the confirm gui is Herbert hidden. Does the following patch help? Herbert yess :-) Do you mean all problems are gone?? I knew it was reasonable, but had little hope of finding a real solution. not all problems. but it's better than the old one as far as I can see. because the layout-doc-gui is still a bit left of the main window. so one can see that there's an open gui. this doesn't work, when you have the main-window maximized. I don't understand the double confirmation. It should be ok, when the ok or apply button from the layout-doc-gui confirm the class-change. than all problems are gone. where is the sense for this double yes/no?? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: BUG(?): Class change impossible
Jean-Marc Lasgouttes wrote: Herbert == Herbert Voss [EMAIL PROTECTED] writes: Does the following patch help? Herbert yess :-) But I guess it still does not work when you select a class which cannot be loaded (you can get that by butvhering a bit your textclasses.lst). In this case, the old class is re-selected in the list, and this probably causes big annoyance... Could you test that? you're right, lyx doesn't recognize this only when the lyx-file is reopened. again: I don't understand this double confirmation. it must be possible to apply it from the layout-doc-gui with an eventually error message. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Cursor movement
On Tue, 25 Sep 2001, Andre Poenitz wrote: On Mon, Sep 24, 2001 at 10:11:20PM +0200, Herbert Voss wrote: Andre Poenitz wrote: I changed a few things, try again. What exactly should happen if we have 1_{2}^{3}4_{5}^{6} and the '4' is deleted? from my point of view only the '4'. And what should happen to the sub/superscript? They can't hang around on why not?? their own. I could, however, use a dummy base. Question is, whether this should be unvisible or visible as {} eg. the best way seems to be {} Herbert
hfills and latex commands
attached the diff against latest cvs for the hfills and the latex command insets, together with the new files. the latex command inset is a first step. we should discuss the sense of this feature. I changed the insert menu a bit, because there was a double shortcut. also new is a minitable of used shortcuts in default.ui for the different menues. as I wrote, official developing makes no more sense for me, too much stuff which hangs around ... - new feature or not ... - new 1.3 branch or not ... Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ LtxCommand.tgz
ERT
to get rid of the problems with the ERT inset I wrote a new LaTeX GUI, it's just the same than the preamble one and supports also cut and paste from and to the lyx-main window. The idea was, that ERT has nothing to do with the paragraph parameters from lyx, because it should be plain ascii text. It's now the same than the other insets, for example: snip \begin_inset LatexCommand \ERT{\begin{center} \begin{pspicture}(-4,0)(4,8) %\psset{xunit=0.25cm,yunit=0.25cm} \psgrid[subgriddiv=1,griddots=10,gridlabels=7pt](-4,-0.5)(4,8) \psline[linewidth=1pt]{-}(-4,0)(+4,0) \psline[linewidth=1pt]{-}(0,-0.5)(0,8) \psplot[plotstyle=curve,linewidth=1.5pt]{-4}{0.9}{10 x exp}% postscript function \rput[l](1,7.5){$10^x$} \psplot[plotstyle=curve,linewidth=1.5pt]{-4}{3}{2 x exp}% postscript function \rput[l](2.2,7.5){$e^x$} \psplot[plotstyle=curve,linewidth=1.5pt]{-4}{2.05}{2.7183 x exp}% postscript function \rput[l](3.2,7.5){$2^x$} \end{pspicture} \end{center} } \end_inset -snip In the lyx text you have a button like the one from ert. maybe that's interesting, so that ert-bug-hunting may be have an end ... the new ert is under insetcommand control and has the structure \ERT{ --- text ---}. Herbert -- http://www.lyx.org/help/
Re: ERT, the 2.
seems to be that it's not interesting, maybe that there are no problems with it ... anyway, a small preview: http://www.educat.hu-berlin.de/~voss/lyx/ERT.html HErbert
Re: ERT, the 2.
Jose Abilio Oliveira Matos wrote: On Wed, Oct 24, 2001 at 09:08:18AM +0200, Juergen Vigna wrote: [...] It REALLY looks good. IMO we should change the ERT inset to this type. Please I would like to hear opinions from others too! We would have a nicer editor. On the other hand people who complained that they would like to see the small pieces as inline view (just in red) for which I made the inlined view inset this would be not enough, but for editing purposes this is definitely enough!!! I agree with Jürgen. It looks prety, but I am one of the people who would like to see a inline version, if possible, as we have now. I suppose, you mean with inline that it's part of the main workarea. If you mean a button in the line like a formula, there is no difference. Would it be possible to merge this two behaviours? sure, but where is the sense? Jürgens idea of a wysiwyg ERT is much nore better than my GUI solution!!! But there are still (not easy to solve - am I right??) problems with it, so I thought, it's better to choose a solution with a clear background: - ERT should be ascii with no formatting and also saved in the lyx source - ERT shouldn't be spellchecked?? - ERT should give some latex support (more or less) it may be a good idea (or not) that a 1.2.0-pre has no more the ERT problems ... Herbert -- http://www.lyx.org/help/
Re: ERT, the 2.
Jose Abilio Oliveira Matos wrote: On Wed, Oct 24, 2001 at 09:08:18AM +0200, Juergen Vigna wrote: [...] It REALLY looks good. IMO we should change the ERT inset to this type. Please I would like to hear opinions from others too! We would have a nicer editor. On the other hand people who complained that they would like to see the small pieces as inline view (just in red) for which I made the inlined view inset this would be not enough, but for editing purposes this is definitely enough!!! I agree with Jürgen. It looks prety, but I am one of the people who would like to see a inline version, if possible, as we have now. have a look at attached gif for some more explanation, how it might look. Herbert
Re: ERT, the 2.
Lars Gullik Bjønnes wrote: Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | This seems a bit complicated to me... Editing both in a popup or in | inline view. | | One very good thing about Herbert proposal is that we would just avoid | using insettext for ert (which avoids a lot of problems with fonts, | etc. If you want to keep inline view, you will need to use intettext | anyway! | | Of course the right solution is Lars' proposal of a ascii-only | intettext. InsetEditor !!! Implement it NOW! ehat is an InsetEditor??? Herbert
Re: ERT, the 2.
Lars Gullik Bjønnes wrote: | I do have the following idea on improving the current ERT inset: | (recall that the ERT inset has 3 states: open, collapsed, and inline) | When you press ctrl+l, an inline inset is generated. If the user presses | enter or C-enter, than the inset automatically changes it state to open. Where is InsetEditor when we need it? again: the only reason for my ERT were the problems with the actual one. with all my proposals you do the same: discussing what should really be ... a bit annoying I have also ideas about lyx, what should be... and what isn't. Herbert
Re: ERT, the 2.
Juergen Vigna wrote: On 24-Oct-2001 Herbert Voss wrote: again: the only reason for my ERT were the problems with the actual one. with all my proposals you do the same: discussing what should really be ... a bit annoying Sure but as you said they are proposals and IMO proposals should be discussed. It would be no problem to insert and change stuff if at the end we wouldn't have file format changes. That is what I'm most concerned with the problem of having to support old hacks in the file-format for a I'm a bit astonished that you talk about these facts ... because there are some tables with some formats on the other hand, I don't change the fileformat. long time. We really should think about things before implementing them. If the change is only visually and/or internally that is no problem for me the problem starts where we start changing the .lyx file-format. I have also ideas about lyx, what should be... and what isn't. We all have :) sure, but you implement them - tables in 1.1.6 ... I'll give it up, it's senseless from my point of view. Herbert
newfloat feature ...
sorry, it's me again with a feature, what else ... I have the newfloat feature run, which was started by Lars. I can create new floats with lists of them locally for documents and/or globally for all. anyway, there is one major problem which I solved through a hack. the menus for insert-floats and insert-lists are build in MenuBackend.C, which uses the floatlist from FloatList.C. so far so good, but when this is done, lyx knows nothing about dirs and preferences, because lyxrc is build later. A hardcoded floatlist is ugly. so what can I do, when I want to read the newfloats from preferences or a single file??? Herbert
Re: newfloat feature ...
Lars Gullik Bjønnes wrote: Hmm... I thought I almost completed it also... except the gui part needed to create new floats. (and the issue of where to store the new floats). maybe, that I missed something, but you don't add them to the menu ... | the menus for insert-floats and insert-lists are | build in MenuBackend.C, which uses the floatlist | from FloatList.C. | so far so good, but when this is done, lyx knows | nothing about dirs and preferences, because lyxrc | is build later. A hardcoded floatlist is ugly. The menubackend builds the floatlist dynamically. (at least it did once...) can it do this again ...? | so what can I do, when I want to read the newfloats | from preferences or a single file??? We never really finished the discussion about where the floats should be stored: In the document, in a global file, preferences ... this is not important for the code, therefore not my problem ... Herbert