Re: Citations showing up as ?
On Sunday 22 September 2002 12:12 am, Remzi Seker wrote: > if you do view-update dvi it still works --without the need to change the > document. This is needed before exporting the file into pdf too. > Remzi The problem seems to be with the temporary file .tex.dep. Lyx does not seem to be setting the correct version for the .tex file. Modifying the number (there are two numbers associated with each file dependency) and then selecting view-update dvi works.
Re: Citations showing up as ?
On Sunday 22 September 2002 12:12 am, Remzi Seker wrote: > if you do view-update dvi it still works --without the need to change the > document. This is needed before exporting the file into pdf too. Tried it. Interesting. It does rerun latex, but it doesn't solve the problem. The citations in the text still appear as (?), whereas something else must be happening when I change the text. Peter
Re: Citations showing up as ?
if you do view-update dvi it still works --without the need to change the document. This is needed before exporting the file into pdf too. Remzi - Original Message - From: "Peter Hovmand" <[EMAIL PROTECTED]> To: "Dekel Tsur" <[EMAIL PROTECTED]>; "LyX users" <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 11:06 PM Subject: Re: Citations showing up as ? > On Saturday 21 September 2002 03:00 pm, Dekel Tsur wrote: > > On Sat, Sep 21, 2002 at 01:14:20AM -0400, Peter Hovmand wrote: > > > I upgraded to 1.2.1 and noticed that citations in the text are showing up > > > as (?), although they appear correctly in the references. The only way I > > > get around it is to export to TeX and run latex and BibTeX myself. From > > > the archives, it seems like several others have noticed this problem, but > > > has anyone found a solution to this or the cause of the problem? > > > > When you view the DVI in LyX, does it run bibtex ? > > (you can see what LyX does by looking at the shell). > > Yes. > > > Does bibtex report errors ? > > No, I took a look at the .blg file. If I change the text and run it again, > the results are fine. I tried some other bibtex styles and the problem > doesn't appear with the citations. The problem seems limited, as far as I can > tell, to the citations when using apacite. For example, IEEEtr seems to work > fine. > > Simply forcing Lyx to do another Latex pass seems to solve the problem, i.e. > by modifying the text. And running the sequence latex, bibtex, latex, and > latex from the shell also seems to work. > > Peter > >
Re: Citations showing up as ?
On Saturday 21 September 2002 03:00 pm, Dekel Tsur wrote: > On Sat, Sep 21, 2002 at 01:14:20AM -0400, Peter Hovmand wrote: > > I upgraded to 1.2.1 and noticed that citations in the text are showing up > > as (?), although they appear correctly in the references. The only way I > > get around it is to export to TeX and run latex and BibTeX myself. From > > the archives, it seems like several others have noticed this problem, but > > has anyone found a solution to this or the cause of the problem? > > When you view the DVI in LyX, does it run bibtex ? > (you can see what LyX does by looking at the shell). Yes. > Does bibtex report errors ? No, I took a look at the .blg file. If I change the text and run it again, the results are fine. I tried some other bibtex styles and the problem doesn't appear with the citations. The problem seems limited, as far as I can tell, to the citations when using apacite. For example, IEEEtr seems to work fine. Simply forcing Lyx to do another Latex pass seems to solve the problem, i.e. by modifying the text. And running the sequence latex, bibtex, latex, and latex from the shell also seems to work. Peter
Re: LOF, LOT and LOA
I am getting an error with that \addtocontents{lof}{\ Figure\hfill Page} Something like addvspace, any ideas? myriam
Re: LOF, LOT and LOA
See http://www.educat.hu-berlin.de/~voss/lyx/tocloft/tocloft.phtml#header - Original Message - From: "Myriam Abramson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 9:29 PM Subject: LOF, LOT and LOA > > I am trying to add a Page heading to those lists > > Figure Page > > 1.1 figure x ..1 > 1.2 figure y ..2 > > I've been successful adding a Page heading to TOC with > \addtocontents{toc}{\hfill Page\endgraf} in the preamble. > > What needs to be done for the other lists? and where is Herbert Voss? > > TIA > >myriam >
LOF, LOT and LOA
I am trying to add a Page heading to those lists Figure Page 1.1 figure x ..1 1.2 figure y ..2 I've been successful adding a Page heading to TOC with \addtocontents{toc}{\hfill Page\endgraf} in the preamble. What needs to be done for the other lists? and where is Herbert Voss? TIA myriam
\partname
In my preamble, I've put \renewcommand \thepart {Title \@Roman\c@part} to get the parts to print "Title I", etc in the TOC. But then in the body, I always see "Part Title I", etc. It looks like \partname is exactly what I need to set, but adding the following doesn't work even though every doc I can find says it should. Any ideas? \renewcommand{\partname}{Title}
libXpm Problem Solved on Slackware 8.1:
Posted just a wee bit too soon... Although the "imake" version of installing libxpm looked like it finished OK, apparently it does/did not (at least on this slackware 8.1 install-everything install.) Try using the "make -f Makefile.noX", then "make -f Makefile.noX install" method given a little farther down in the README. It worked fine this time. I would also suggest continuing to use the "--with-extra-lib=" and "--with-extra-inc=" options as well, just in case. (Imake is weird...) rl
Re: Algorithm in Lyx 1.2.0
On Sat, Sep 21, 2002 at 01:36:27PM -0700, Peter Harkins wrote: > On Sat, Sep 21, 2002 at 08:00:10PM +0300, Dekel Tsur wrote: > > > the corresponding float menu in LyX, the algorithm numerotation is global > > > (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,). > > > Any ideas? > > > > Add to the preamble: > > > > \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} > > \@addtoreset{algorithm}{chapter} > > I was able to use this as follows to fix a problem I was having, but > is there a way to make it reset to -1 so my sections will be numbered from 0 > up? Assuming you dont use the optional argument to \chapter: \let\mychapter=\chapter \def\chapter{\@ifstar\starchapter\ordchapter} \def\starchapter#1{\mychapter*{#1}} \def\ordchapter#1{\mychapter{#1}\setcounter{section}{-1}}
Trouble Compiling: Sees libXpm, but can't see it. Go figure...
Hi all, I can't seem to get 1.2.1 to compile on a particular Slackware box. The configure script says it has seen libXpm version 4.11, but mentions right afterwards that it can't find the libXpm libraries. I'm using "--with-extra-lib=..." and also "--with-extra-inc=" . The compile finishes, but with this notice: Linker flags:-L/lib -L/usr/lib -L/usr/X11R6/lib Frontend: xforms libXpm version: 4.11 libforms version: 0.89.5 LyX binary dir: /usr/local/bin LyX files dir: /usr/local/share/lyx The following problems have been detected by configure. Please check the messages below before running 'make'. (see the section 'Problems' in the INSTALL file) ** Cannot find libXpm. Please check that the Xpm library is correctly installed on your system. Surprisingly, I've rarely had trouble compiling lyx, but this has me stumped. I've linked the hell out of libXpm, using the full path too. What am I missing? Regards, rl
Re: Algorithm in Lyx 1.2.0
On Sat, Sep 21, 2002 at 08:00:10PM +0300, Dekel Tsur wrote: > > the corresponding float menu in LyX, the algorithm numerotation is global > > (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,). > > Any ideas? > > Add to the preamble: > > \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} > \@addtoreset{algorithm}{chapter} I was able to use this as follows to fix a problem I was having, but is there a way to make it reset to -1 so my sections will be numbered from 0 up? \@addtoreset{section}{part}
Re: Renumbering sections
On Sat, Sep 21, 2002 at 08:02:13PM +0300, Dekel Tsur wrote: > On Fri, Sep 20, 2002 at 10:03:40PM -0700, Peter Harkins wrote: > > I've got a document that I'm renumbering a little - instead of > > "Section 1", etc. I've got "Title I", "Title II". I've put the following in > > the preamble to get it to print right, but it messes up the table of > > contents. I'm guessing I need to change something about the spacing on the > > Table of Contents, but I have no idea what to add to the preamble to do so. > Use the tocloft package. Ah, this put me on the right track. I didn't need to use tocloft, but one of the Tips pages on it pointed me to: \renewcommand{\l@section}{\@dottedtocline{1}{0em}{3.5em}} \renewcommand{\l@subsection}{\@dottedtocline{1}{1.5em}{4em}} After some tinkering with the numbers I got it working.
Re: Problem with danish character
Hi Dekel, Thank you for the solution, it is perfect! Regards, Rasmus Dekel Tsur wrote: > > On Fri, Sep 20, 2002 at 02:41:59PM +0200, Rasmus Ory Nielsen wrote: > > Hi, > > > > This is probably not a LyX problem, but more a problem with latex. > > Anyway, here it comes. > > > > The problem is with the danish character ? (in ERT it's \AA, also known > > as &ARING; in html). > > If I insert the character in a table cell, the character is too high for > > the cell, i.e. it collides with the ceiling of the cell. > > > > Is this a known problem, or am I doing anything wrong? > > You can add \rule{0pt}{1.1em} in order to make space for the \AA. > I think a better solution is to use booktabs (you will need to use ERT as LyX > does not supports it currently. > See attached file. > > > Name: danish.lyx >danish.lyxType: Plain Text (text/plain) > Encoding: 8bit -- Med venlig hilsen Rasmus Ory Nielsen *** [EMAIL PROTECTED] ***
Re: Citations showing up as ?
On Sat, Sep 21, 2002 at 01:14:20AM -0400, Peter Hovmand wrote: > I upgraded to 1.2.1 and noticed that citations in the text are showing up as > (?), although they appear correctly in the references. The only way I get > around it is to export to TeX and run latex and BibTeX myself. From the > archives, it seems like several others have noticed this problem, but has > anyone found a solution to this or the cause of the problem? When you view the DVI in LyX, does it run bibtex ? (you can see what LyX does by looking at the shell). Does bibtex report errors ?
Re: Algorithm in Lyx 1.2.0
On Sat, Sep 21, 2002 at 01:37:21PM -0500, Bo Peng wrote: > I have a question with algorithm environment. When I insert a float > algorithm box and then paste my source code from emacs to lyx, all new > lines disappear and I have to add them manually. I understand that this > has something to do with the way latex deal with newlines but is there a > way to keep the format of pasted text? First, select the LyX-code layout before pasting. Then, do the pasting using Edit->Paste external selection->as lines.
Re: Algorithm in Lyx 1.2.0
On Sat, Sep 21, 2002 at 07:17:09PM +0200, Pascal Francq wrote: > > > the corresponding float menu in LyX, the algorithm numerotation is global > > > (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,). > > > Any ideas? > > > > Add to the preamble: > > > > \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} > > \@addtoreset{algorithm}{chapter} > > It works, but there problems when using with the hyperref package. On the LyX > website, it is explain to add in the preamble something like: > \newcommand{\theHalgorithm}{\thechapter.\arabic{algorithm}} ^^should be \theHchapter > But, when doing this, I have the linear numerotation and if I use your system > it works but I have got an error. I Suppose there must be some 'trick' to > combine both? Just use them both: \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} \@addtoreset{algorithm}{chapter} \newcommand{\theHalgorithm}{\theHchapter.\arabic{algorithm}}
Re: Algorithm in Lyx 1.2.0
I have a question with algorithm environment. When I insert a float algorithm box and then paste my source code from emacs to lyx, all new lines disappear and I have to add them manually. I understand that this has something to do with the way latex deal with newlines but is there a way to keep the format of pasted text? -- Bo Peng
Re: Algorithm in Lyx 1.2.0
On Saturday 21 September 2002 19:00, Dekel Tsur wrote: > On Sat, Sep 21, 2002 at 06:33:37PM +0200, Pascal Francq wrote: > > I am using the algorithm package. In the preamble of my LyX document, I > > have inserted "\usepackage[chapter]{algorithm}". When I insert an > > algorithm trough > > LyX 1.2.x does not use the algorithm package. > > > the corresponding float menu in LyX, the algorithm numerotation is global > > (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,). > > Any ideas? > > Add to the preamble: > > \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} > \@addtoreset{algorithm}{chapter} It works, but there problems when using with the hyperref package. On the LyX website, it is explain to add in the preamble something like: \newcommand{\theHalgorithm}{\thechapter.\arabic{algorithm}} But, when doing this, I have the linear numerotation and if I use your system, it works but I have got an error. I Suppose there must be some 'trick' to combine both? -- Ir Pascal Francq Researcher Université Libre de Bruxelles CAD/CAM Department Avenue F.D. Roosevelt, 50 CP 165/14 B-1050 Brussels BELGIUM Tel. +32-2-650 47 65 Fax +32-2-650 47 24 ICQ: 91206668
Re: Renumbering sections
On Fri, Sep 20, 2002 at 10:03:40PM -0700, Peter Harkins wrote: > I've got a document that I'm renumbering a little - instead of > "Section 1", etc. I've got "Title I", "Title II". I've put the following in > the preamble to get it to print right, but it messes up the table of > contents. I'm guessing I need to change something about the spacing on the > Table of Contents, but I have no idea what to add to the preamble to do so. > > \renewcommand \thesection {TITLE \@Roman\c@section} > \renewcommand\thesubsection {\@Roman\c@section\@arabic\c@subsection} > > I've one other question that's probably pretty easy: how do I get > subsections to start counting from 0 instead of 1? I wouldn't want to do > either of these, but I'm reformatting to an existing document. Use the tocloft package.
Re: Arguments for Macros
On Sat, Sep 21, 2002 at 05:27:41PM +0100, Misha Gavrilovich wrote: > > This is wrong. You must enter a number after math-macro-arg! > > In your case, use math-macro-arg 1 (as the tov macro has only one argument). > > I think it is a bug somewhere; I am confused. > The problem is that when I type math-macro-arg in, it becomes blue and > seems to be considered as ordinary text with the macro. > The same happens if I enter > > math-macro-arg1 You need to type it in the minibuffer (with the space)! Please read the User's guide again.
Re: Algorithm in Lyx 1.2.0
On Sat, Sep 21, 2002 at 06:33:37PM +0200, Pascal Francq wrote: > I am using the algorithm package. In the preamble of my LyX document, I have > inserted "\usepackage[chapter]{algorithm}". When I insert an algorithm trough LyX 1.2.x does not use the algorithm package. > the corresponding float menu in LyX, the algorithm numerotation is global > (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,). > Any ideas? Add to the preamble: \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} \@addtoreset{algorithm}{chapter}
Algorithm in Lyx 1.2.0
Hi, I am using the algorithm package. In the preamble of my LyX document, I have inserted "\usepackage[chapter]{algorithm}". When I insert an algorithm trough the corresponding float menu in LyX, the algorithm numerotation is global (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,). Any ideas? -- Ir Pascal Francq Researcher Université Libre de Bruxelles CAD/CAM Department Avenue F.D. Roosevelt, 50 CP 165/14 B-1050 Brussels BELGIUM Tel. +32-2-650 47 65 Fax +32-2-650 47 24 ICQ: 91206668
Re: macros in multipart documents
On Sat, Sep 21, 2002 at 05:48:40PM +0200, Lucian Muresan wrote: > > I'm trying to write a multipart document and want to use some macros for > math formulae, picture placements and so on. If I define them in the > preamble of the master document, lyx can't find them if I try to use > them in an included document. Of course, I'd like to have them in one > single place. > I've searched in the mailing list archive, and found something I thought > it might help in this thread > http://marc.theaimsgroup.com/?l=lyx-users&m=102747712134799&w=2 but it A simple solution for this is to include (i.e. use insert->include file, and then select the "use input" button) the macro file in each included document. In the master document, add \let\newcommand=\providecommand in the preamble.
Re: Arguments for Macros
On Sat, Sep 21, 2002 at 01:40:52PM +0100, Misha Gavrilovich wrote: > > > math-macro-arg 1 > > > > This is the correct way to add a macro argument (in 1.2.x, it is also possible > > to type #1). > > This way does not work; probably I was not clear enough; maybe it is a bug. > > Let me spell out what I do: > > 1) Go to buffer and type > > math-macro tov 1 > > 2) there apeears an empty macro definition box > > 3) I type in > > math-macro-arg space This is wrong. You must enter a number after math-macro-arg! In your case, use math-macro-arg 1 (as the tov macro has only one argument).
macros in multipart documents
Hi, I'm trying to write a multipart document and want to use some macros for math formulae, picture placements and so on. If I define them in the preamble of the master document, lyx can't find them if I try to use them in an included document. Of course, I'd like to have them in one single place. I've searched in the mailing list archive, and found something I thought it might help in this thread http://marc.theaimsgroup.com/?l=lyx-users&m=102747712134799&w=2 but it didn't actually. I tried to write my macros in such a separate file and include that one with the "\select{}" command mentioned in that thread, but I'm obviously doing something wrong. I'm not sure I used that hint in a correct way, how exactly should such include code look like. Should the macros be in the preamble or in some ERT section of the file mentioned in that thread? Or is there another (better) solution? Colleagues of mine who wrote their thesis in plain LaTeX just wrote their macros in the preamble of the main latex document and could use them in the included ones. I'm new to LyX AND to LaTeX, but I've read the docs and I think I didn't find such a tweaky thing. Can someone knowledgeable help me out, please? Thanks in advance, Lucian
Re: Arguments for Macros
On Sat, Sep 21, 2002 at 01:25:50PM +0300, Dekel Tsur wrote: > On Fri, Sep 20, 2002 at 05:15:10PM +0100, Misha Gavrilovich wrote: > > > > I am not able to understand how to define macros with arguments in LyX; > > like if I want to define \frac myself; > > I do not know how to enter an argument mark; if I follow the Users' Guide > > recommendations and try to enter either > > > > math-macro-arg 1 > > This is the correct way to add a macro argument (in 1.2.x, it is also possible > to type #1). This way does not work; probably I was not clear enough; maybe it is a bug. Let me spell out what I do: 1) Go to buffer and type math-macro tov 1 2) there apeears an empty macro definition box 3) I type in math-macro-arg space and go out of box ! 4) or I type \math-macro-arg space and go out of box (the sequence is red until the first hyphen) Am I doing something wrong ? Or maybe I just should update to 1,2.x. PS: I also get often error messages like Math error: Attempting to clean a void array. Thank you for teh help, Misha > You will see a red #1 on screen. > When you use this macro, you will be able to enter the text you want instead of > the red #1.
Re: different fonts in the same document
Juergen Spitzmueller wrote: >Luiz Eleno wrote: > > >>Question 1: bla bla bla? (using a font, say, times) >> >>Answer: bla bla bla. (using another font, say, arial) >> >>Is it possible to do that? >> >> > >If you really want something like times and arial, then you just have to >toggle between sans serif and serif fonts. >Layout->Character->Font Family (Roman/Sans Serif) > > > Yes - changing between different faces of the same font family is easier and usually more aesthetic. If you want to use different font families, check out www.bilkent.edu.tr/~robin/lyxfonts2.lyx (download and open in LyX). Robin -- "There are only 10 types of people in the world. Those who understand binary and those who don't" - thinkgeek.com Robin Turner IDMYO Bilkent Üniversitesi Ankara 06533 http://www.bilkent.edu.tr/~robin
Re: Arguments for Macros
On Fri, Sep 20, 2002 at 05:15:10PM +0100, Misha Gavrilovich wrote: > > I am not able to understand how to define macros with arguments in LyX; > like if I want to define \frac myself; > I do not know how to enter an argument mark; if I follow the Users' Guide > recommendations and try to enter either > > math-macro-arg 1 This is the correct way to add a macro argument (in 1.2.x, it is also possible to type #1). You will see a red #1 on screen. When you use this macro, you will be able to enter the text you want instead of the red #1.
Re: marginal note
On Fri, Sep 20, 2002 at 08:52:17AM -0400, Wolfgang Engelmann wrote: > I am using marginal notes and have the following problem: > The notes are partly rather long, and on the normal margin they take too much > space. Therefore I incraese the inner margin by > document layout > paper > margins > custom size > outer 8 cm > The margin is now wide enough, however the margin note does not use it, but is > still set in a small scale. > A lyx problem or a latex problem? What to do? \setlength{\marginparwidth}{5cm} in the preamble.
Re: Problem with danish character
On Fri, Sep 20, 2002 at 02:41:59PM +0200, Rasmus Ory Nielsen wrote: > Hi, > > This is probably not a LyX problem, but more a problem with latex. > Anyway, here it comes. > > The problem is with the danish character ? (in ERT it's \AA, also known > as &ARING; in html). > If I insert the character in a table cell, the character is too high for > the cell, i.e. it collides with the ceiling of the cell. > > Is this a known problem, or am I doing anything wrong? You can add \rule{0pt}{1.1em} in order to make space for the \AA. I think a better solution is to use booktabs (you will need to use ERT as LyX does not supports it currently. See attached file. #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \begin_preamble \usepackage{booktabs} \end_preamble \language danish \inputencoding auto \fontscheme default \graphics default \paperfontsize default \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 Tabular \begin_inset Text \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash toprule{} \end_inset Normal \end_inset \begin_inset Text \layout Standard ERT \end_inset \begin_inset Text \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash midrule{} \end_inset Å \end_inset \begin_inset Text \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash AA \end_inset \begin_inset ERT status Collapsed \layout Standard \backslash \backslash \backslash bottomrule% \end_inset \end_inset \end_inset \the_end
Re: labeling images
On Thu, Sep 19, 2002 at 02:42:42PM +0200, Axel Heinrici wrote: > Hi > > Is there a way to put Text over an image. > I have an eps image and I want to do the labeling with something > equivalent to tex:"\put(3,7){this is the mounting}" inside this > image. See http://www.lyx.org/help/psTricks/pstricks.php#over http://www.lyx.org/help/LaTeX/overwrite.php or use the overpic package.
Re: missing fonts in Debian Sid system... ??
On Tue, Sep 17, 2002 at 11:03:36PM -0700, Kenward Vaughan wrote: > I have been with Sid for quite a while now, never with any real problems > until seemingly the last system update. Now Lyx does not create a ps file > with the default font, or any of several others. I get blank pages or ones > with a few certain characters showing up in the middle of the (otherwise > blank) page. > > Others in the standard list still work (psLaTex, Times, Palatino, New > Century, etc.). I'm no pro with that sort of stuff so I don't know if there > is a quick way to check the source of the problem or not. Can someone help > me on my way to figuring out what happened? > > I'm using the Debian 1.1.16fix4 package. Export the file to DVI format. Run dvips -o file.ps file.dvi. What (error) messages do you get ? Also, does XDVI show the file correctly ?
Re: resuming enumerate
On Thu, Sep 19, 2002 at 11:05:55PM -0700, Peter Harkins wrote: > I've got an Enumerate that has some text in the middle, hwo do I get > it to pick up from where I left off? I'd the like output to look like: > > 1. Foo > 2. Bar > > subsection* > standard text > 3. baz > 4. quux See http://marc.theaimsgroup.com/?l=lyx-users&m=103078901804904&w=2
Re: different fonts in the same document
Luiz Eleno wrote: > Question 1: bla bla bla? (using a font, say, times) > > Answer: bla bla bla. (using another font, say, arial) > > Is it possible to do that? If you really want something like times and arial, then you just have to toggle between sans serif and serif fonts. Layout->Character->Font Family (Roman/Sans Serif) Regards, Jürgen.