Re: Installing a layout

2005-10-30 Thread chr
On Sat, 29 Oct 2005, Brighten Godfrey wrote:

> Hi,
> 
> I am trying to use the layout files from the below web page (I've been
> looking for a layout like this for years!):
> 
> http://www.math.uiuc.edu/~hartke/computer/lyx/lyx.php
> 
> I put them in the `layouts' directory in the LyX configuration directory
> (~/.lyx on Unix, ~/Library/Application Support/LyX/ on Mac).  I ran
> `reconfigure' in LyX and restarted the app.  Now in the Document menu, the
> new layout shows up as
> 
> Unavailable: articlethm

The layout is sort of only used by LyX to tell how stuff is displayed on
the screen. What you really need is the document class articlethm.cls/sty
exactly where/how you should install it depends on your LaTeX system.

This link explains some of these concepts
http://wiki.lyx.org/LyX/Concepts

/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Re: Newbie question: newline before \and in author environment

2005-10-30 Thread Michael-E. Voges
Hi  杨朝晖,

Am Sonntag, 30. Oktober 2005 03:57 schrieb 杨朝晖:
> On 2005-10-30 2:20, Michael-E. Voges wrote:
> >Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖:
> >>When writing an article in tex source, in the author block I would
> >>format the code this way:
> >>\author {
> >>Author1\\
> >>Institute1
> >>\and
> >>Author2\\
> >>Institute2
> >>}
> >>But in lyx I can't add linebreak (\\) before or after the \and command.
> >>That leads to latex compile error. Nor can I hit , that will cut
> >>the author environment into segments (multiple author block in tex). So,
> >>It have to be like this in lyx (horizontally centered):
> >>Author\\
> >>Institute1 \and Author2\\
> >>Institute2
> >>This looks ugly. And I think it is against "WYSIWYM".
> >>Generally, is there a way in lyx that I can visually break text into
> >>lines without using linebreak(\\) and without terminating the current
> >>environment (by hit )?
> >Did you try - in Lyx?   It gives you an newline within the
> > current paragraph.
> I guess you are using some non-US keyboard on which  means the
> same as  on mine.
right
> - produce the linebreak I metioned previously (that's the
> way I produce linebreaks, actually). A linebreak in lyx is equivalent to
> a '\\' in tex. So - around that \and command leads to wrong
> output dvi/pdf (not latex error,I made mistakes last time).
>
> You may try out the attachments to see what I mean.
>
> >second way: Did you try to put
> >
> >>\author {
> >>Author1\\
> >>Institute1
> >>\and
> >>Author2\\
> >>Institute2
> >>}
> >
> >in TeX-code inside Lyx by marking the text an hitting -? Doing
> > this LaTeX will read that portion of text as pure LaTeX-code.
>
> Yes, this works. But looks even more ugly.
> Thanks anyway.
>
> yzhh

what about the attached file?

Micha-E.


yzhh.lyx
Description: application/lyx


Re: Newbie question: newline before \and in author environment

2005-10-30 Thread 杨朝晖


>what about the attached file?
>
>Micha-E.
>
Minipage is good if I'm not required to write it in the "standard way"
(using \and).

I end up with code in the attachment, not so good as the minipages.

Best regards,
yzhh
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language german
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\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 german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

Title
\layout Author

author1
\newline 
institute1 
\begin_inset ERT
status Open

\layout Standard

\backslash 
and
\end_inset 

 author2
\newline 
institute2
\the_end


reference

2005-10-30 Thread Søren O'Neill
Hi there,
I'm using Jabref to handle a bibliographic database, which I cite in LyX.
http://jabref.sourceforge.net/

I use the vancouver style to format references.
http://www.tug.org/tex-archive/biblio/bibtex/contrib/vancouver/vancouver.bst

Things are working, but when I insert a reference to a 'book' or 'inbook' I 
get a bibliography entry (in LyX), which looks like:

[1] Lund PJ, Hansen TB. Progress in fibromyalgia and myofascial pain. 
Elsevier, Amsterdam; 1993. p.311-327

..where I would have expected something like:

[1] Lund PJ, Hansen TB. The relationship between pain and muscle strength. In: 
Værøy H, Merskey P. (Eds.) Progress in fibromyalgia and myofascial pain. 
Elsevier, Amsterdam; 1993. p.311-327

I.e the formatting of the reference is wrong. When I check the LyX output I 
find: Warning - can't ue both author and editor fields in Lund1993

Any suggestions?
Kind regards
Soren - Denmark
-- 
Soren O'Neill, kiropraktor, MSc, klinisk lektor
Rygambulatoriet, Sygehus Fyn
Lindevej 5, 5750 Ringe

[EMAIL PROTECTED]
http://www.dskkb.dk
tlf. 6362 1906 (arb.)


Re: Where can I see what lyx is doing in the background when generating a preview?

2005-10-30 Thread Georg Baum
Am Sonntag, 30. Oktober 2005 00:05 schrieb Paul A. Rubin:
> Sanders, Maarten (M.J.L.) wrote:

> > I already found out things work again when I remove the image from the 
child document OR when I adjust the page margins in the preamble instead 
of with the menu options.

Very strange.

> > I am running 1.4.0pre2. Since I don't want to bug the developers with 
this vague error and I have done so many not normal things to my 
documents I rather try to find out myself first where things go wrong. So 
my question is:
> > 
> > Where can I see what lyx is doing in the background when generating a 
preview?
> > 
> > Thanks,
> > 
> > Maarten
> > 
> 
> I would try starting LyX in debug mode (lyx -dbg all) from a command 
> shell and see what messages turn up during the interlude.

This should read

lyx -dbg any

but gives very much info. I guess that in this case

lyx -dbg graphics

would be better. To get a list of all possible debug switches, type

lyx -dbg


Georg



Emacs keybindings on Windows?

2005-10-30 Thread Rex Eastbourne
Are Emacs keybindings included in the Windows version? I looked but couldn't
find them. If not, is there anywhere I could get them?

Thanks for the great program! I knew there had to be a better way than
conventional TeX.

Chris


User-defined macros outside of math mode

2005-10-30 Thread Rex Eastbourne
The math macros are great. I'm wondering if I can similarly define macros
with arguments outside of math mode. When I TeX I often define macros with
or without arguments. Are these possible? Alternatively, can one define
templates of text to insert with a keyboard command?

Thanks,

Rex