Re: LyX Errors: what can be the problem? & Text Cross-references?

2004-06-30 Thread Angus Leeming
Chavoux Luyt wrote:
> Here is the shortened Lyx file. I'm sorry if it is too long, but I
> didn't know what was  important and whar not.

I take it that you never fired up lyx from the console so that you could
see any warning messages it printed out when it loaded your document?

$ qlyx13x luyt.lyx
unusual contents found: [char Y mathalpha][char   mathalpha][char =
mathalpha][char   mathalpha][char a mathalpha][char   mathalpha][char -
mathalpha][char   mathalpha][char b mathalpha][char x mathalpha]
unusual contents found: [char Y mathalpha][char   mathalpha][char =
mathalpha][char   mathalpha][char a mathalpha][char x mathalpha][char  
mathalpha][char - mathalpha][char b mathalpha][sup [char x mathalpha]
[char 2 mathalpha]]

LyX's math editor doesn't sanity-check your latex. If you input garbage,
then garbage is what you get.

The latex way is to use 'Floats' to contain your figures. The Float inset
will allow you to insert a caption. See attached file which now works
perfectly.

Regards,
-- 
Angus

luyt.lyx
Description: application/lyx


Re: LyX Errors: what can be the problem? & Text Cross-references?

2004-06-30 Thread Chavoux Luyt
Hi
Angus Leeming wrote:
Luyt Du Chavoux, Mnr wrote:
 

Hi
I'm pretty new to Linux (Knoppix3.3 -> Debian testing/unstable) and LyX.
I liked what I saw about LyX and want to write my thesis in it if I can.
   

Hello, Luyt.
Please post a minimal .lyx file demonstrating the problems. You don't need
to post the figure, but please reference it inside the .lyx file.
 

Hi
Here is the shortened Lyx file. I'm sorry if it is too long, but I 
didn't know what was  important and whar not.

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing onehalf
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 1
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language swedish
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Title
The myth of
\begin_inset Quotes sld
\end_inset
carrying capacity
\begin_inset Quotes erd
\end_inset
and the search for sustainable stocking rates
\layout Author
Chavoux Luyt
\layout Abstract
\noindent
(Carrying capacity (K) has been a useful concept to ecologists.
It has been less useful to veld managers.
This literature review looks at some of the theoretical shortcomings of
K).
\layout Abstract
\noindent
\emph on
Keywords
\emph default
: Carrying capacity, population growth models, stocking density, sustainable
stocking rates.
\layout Section*
\noindent
Introduction
\layout Standard
\noindent \align left
\begin_inset Quotes sld
\end_inset
The maximum population size that can be supported indefinitely by a given
environment, at which intra-specific competition has reduced the per capita
net rate of increase to zero.
An idealised concept not to be taken literally in practice
\begin_inset Quotes erd
\end_inset
(
\begin_inset LatexCommand \ref{Begon et al. 1996}
\end_inset
).
The term
\begin_inset Quotes sld
\end_inset
carrying capacity
\begin_inset Quotes srd
\end_inset
has a long history in ecology and all too often, it has been taken 
literally
in veld management.
\layout Standard
\noindent \align left

\begin_inset Graphics
   filename /home/boer/doks/fig2.bmp
\end_inset
\layout Description
\noindent
Fig.2 The relation between animal gain and stocking rate (Jones & Sandland
1974).
Using different stocking densities they determined experimentally that
the gain in mass per animal (Average Daily Gain) drops linearly with an
increase in stocking density having a relationship of the form:
\begin_inset Formula Y = a - bx
\end_inset
(Y is ADG per animal, x is stocking density and a and b are parameters
determined experimentally).
The production per hectare on the other hand, is a relationship of the
form:
\begin_inset Formula Y = ax -bx^{2}
\end_inset
with the same parameters as above.
In this example, up to about 1 animal per hectare there is no change in
productivity per animal, usually ascribed to too much low-quality 
vegetative
material (Morris et al.
1999) or maximum gain physiologically possible (Jones and Sandland 1974).
Then, when the "critical stocking rate" is reached, there is a linear drop
in production per animal.
Assuming no change in the vegetation, the economic carrying capacity (max
production per hectare) is reached at a stocking density of about 2.6 
animals
per hectare and if reproduction equals mortality (K) at the point where
animals only just maintain their own body mass, ecological carrying 
capacity
is reached at a stocking density of about 4.8 animals per hectare.
\layout Section*

References
\layout Standard
\noindent
\begin_inset LatexCommand \label{Begon et al. 1996}
\end_inset
Begon, M., J.
L.
Harper, C.
R.
Townsend.
1996.
Ecology: individuals, populations and communities 3rd Edition.
Blackwell Science.
Oxford.
\layout Standard
\noindent
\begin_inset LatexCommand \label{Boughey 1968}
\end_inset
Boughey, A.
S.
1968.
Ecology of Populations.
Macmillan.
New York.
\layout Standard
\noindent
\begin_inset LatexCommand \label{Brooks et al. 1977}
\end_inset
Brooks P.
M., J.
Hanks & J.
V.
Ludbrook.
1977.
Bone Marrow as an index of condition in African ungulates.
South African Journal of Wildlife Research 7: 61-66.
\layout Standard
\noindent
\begin_inset LatexCommand \label{Caughley 1976}
\end_inset
Caughley, G.
1976.
Wildlife Management and the Dynamics of Ungulate Populations.
Applied Biology 1: 183-246.
\layout Standard
\noindent
\begin_inset LatexCommand \label{Jones & Sandland 1974}
\end_inset
Jones, R.
J.
& R.
L.
Sandland.
1974.
The relation between animal gain and stocking rate : Derivation of the
relation from the results of grazing trials.
Journal of Agricultural Science, Cambridge 83: 335-342.
\layout Standard
\noindent
\begin_inset LatexCommand \label{Morris et al. 1999}
\end_inset
Morris, C.
D., M.
B.
Hardy & P.
E.
Bartholomew.
1999.
Stocking rate.
Pp.186-193 in: Tainton, N.
M.
(ed).

Re: LyX Errors: what can be the problem? & Text Cross-references?

2004-06-29 Thread Angus Leeming
Luyt Du Chavoux, Mnr wrote:

> Hi
> I'm pretty new to Linux (Knoppix3.3 -> Debian testing/unstable) and LyX.
> I liked what I saw about LyX and want to write my thesis in it if I can.
> However, When I try to export my LyX file to pdf I get 4 latex errors all
> in this one place.

Hello, Luyt.

Please post a minimal .lyx file demonstrating the problems. You don't need
to post the figure, but please reference it inside the .lyx file.

-- 
Angus



LyX Errors: what can be the problem? & Text Cross-references?

2004-06-29 Thread Luyt Du Chavoux, Mnr <[EMAIL PROTECTED]>
Hi
I'm pretty new to Linux (Knoppix3.3 -> Debian testing/unstable) and LyX. I liked what 
I saw about LyX and want to write my thesis in it if I can. However, When I try to 
export my LyX file to pdf I get 4 latex errors all in this one place. What could be 
the problem? This "paragraph" is of type "Description" (It is the closest I could find 
to what I need below a figure). The two formulae is in math mode (with the little blue 
box around them)
Fig.2 The relation between animal gain and stocking rate (Jones & Sandland 1974). 
Using different stocking densities they determined experimentally that the gain in 
mass per animal (Average Daily Gain) drops linearly with an increase in stocking 
density having a relationship of the form:  Y = a - bx (Y is ADG per animal, x is 
stocking density and a and b are parameters determined experimentally). The production 
per hectare on the other hand, is a relationship of the form: Y = ax - bx^{2}   with 
the same parameters as above. In this example, up to about 1 animal per hectare there 
is no change in productivity per animal, usually ascribed to too much low-quality 
vegetative material (Morris et al. 1999) or maximum gain physiologically possible 
(Jones and Sandland 1974). Then, when the "critical stocking rate" is reached, there 
is a linear drop in production per animal. Assuming no change in the vegetation, the 
economic carrying capacity (max production per hectare) is reached at a stocking 
density of about 2.6 animals per hectare and if reproduction equals mortality (K) at 
the point where animals only just maintain their own body mass, ecological carrying 
capacity is reached at a stocking density of about 4.8 animals per hectare.
The four errors (I don't think they are exactly in the right places, but all are in 
this paragraph) are the following:
1.
Missing $ inserted.
 ...s a relationship of the form:Y = ax - bx^
  {2}
I've inserted a begin-math/end-math symbol since I think
 you left one out. Proceed, with fingers crossed.
 
2.
Missing $ inserted.
 \end{description}
 I've inserted something that you may have forgotten.
 (See the  above.)
 With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
 
3.
LaTeX Error: Something's wrong--perhaps a missing \item.
 \end{description}
 Try typingto proceed.
If that doesn't work, type  X   to quit.
 
4.
LaTeX Error: Something's wrong--perhaps a missing \item.
 \end{description}
 Try typingto proceed.
 If that doesn't work, type  X   to quit.
 
Is there a quick way in LyX to turn the view of the document from LyX (just formated 
text) to LaTeX so that I can change the raw LaTeX? Should I do this at all (or is 
there another way to solve this problem)?
 
Another question: Is it possible to use cross-references where the Label (that is 
referenced) uses the first few words of the following text instead of a number and the 
cross-reference then display these words (when I try this, it just displays an empty 
space in the PDF!)? I want to use this for my reference list. I decided not to use 
BibTex (or rather Pybliography) because I already have my references in a Paradox 
database (in a Delphi program) together with keywords and my own notes that can be 
used for searching... it looks as if it will take too much time to get the whole 
database into Pybliographic (and I don't know how much of a searching capability 
Pybliogrphic has). It is easier for me to just copy and paste when I need a new 
reference in my paper.
 
Thanks
Chavoux Luyt