Re: Help message about LyX-XeTeX

2009-06-23 Thread Jürgen Spitzmüller
rgheck wrote:
  I've just downloaded the last LyX release (1.6.3) and my OS is Windovs
  Vista Home Premium. I've used LyX writing all my reports in the last six
  months. I've got only one great problem that I can't solve without your
  help. I 'd like to use some characters not available in LaTeX: for
  exemple Calibri. I've made some researches and I've read about XeTeX. I
  use MikTeX, the last release, and it contains XeTeX. It should be
  possible to use XeTeX whit LyX but I can't do it. I've read something
  about the conversion in the format output PDF (xetex) but it is not
  present in the list that I've found in ToolsPreferencesFile
  HandlingConverters. It seems like LyX doesn't find XeTeX even if it's
  yet installed. What could I do?
 
   

 The expert on XeTeX is Jurgen: 

Not really (I do not use XeTeX myself).

Anyway, for LyX 1.6, you need to set up LyX for the use of XeTeX. A HowTo is 
here:

http://wiki.lyx.org/LyX/XeTeX

Don't hesitae to ask here on the list if things remain unclear.

As Richard wrote, LyX 2.0 will have some more native XeTeX support. There, 
your work reduces to click a use XeTeX checkbox in DocumentSettings. But I 
would not recomment LyX 2.0svn yet for serious work.

HTH,
Jürgen



Re: journal abbreviations

2009-06-23 Thread Wolfgang Engelmann
Am Monday 22 June 2009 17:10:40 schrieb Paul A. Rubin:
Thanks for the help. I will try Paul's proposal  to use the string editor 
(Ctrl-T or BibTeX  Edit Strings) to add one abbreviation for each journal. I 
might later use these for further bib-files.
Wolfgang

 Wolfgang Engelmann wrote:
  I would like to use journal abbreviations in my reference list. I know,
  Jabref is having this option (manage journal abbreviations); I have,
  however, difficulties in getting it to work. Could somebody who used it
  already give me a hint? The explanation in jabref is beyond me (e.g.
  personal Journal list, external files, where and how to insert the
  journal list from JabRef)
 
  There are actually 2 tasks:
  - use abbreviations
  - make sure the various kinds of writing of the same journal end up in
  the same  abbreviation
 
  e.g.:
  citation 1 uses AJP
  citation 2 uses AJP
  citation 3 Am.J.Phys.
  citation 4 Am. J. Phys. (space!)
  citation 5 Am. J. Physiol.
  citation 6 Am. J. Physiology
  citation 7 American Journal of Physiology
 
   should all have finally
 
  Am. J. Physiol.
 
  It would be nice to mark the citations in my Jabref file who use the same
  journal and tell jabref to put the correct abbreviation to all those. I
  have the feeling, this is implemented in Jabref, but can't get it to
  work.

 You could do something like that with the personal journal list, but it
 would involve adding one line to your new personal list for each version
 of each journal's name appearing in your .bib file, e.g.

 AJP - Am. J. Phys.
 Am.J.Phys. - Am. J. Phys.
 American Journal of Physiology - Am. J. Phys.
 etc.

 (assuming Am. J. Phys. was the abbreviation you wanted BibTeX to use).

 Assuming you only have one .bib file, it might be easier to use the
 string editor (Ctrl-T or BibTeX  Edit Strings) to add one abbreviation
 for each journal (e.g., AJP - Am. J. Phys., again assuming the right
 side is how you want it listed).  Then just manually edit each entry,
 replacing whatever is in the journal field with #AJP#.  The biggest
 limitation of this approach is that the strings only apply to the .bib
 file containing them, although I suspect it is not hard to transfer them
 to a new .bib file.

 /Paul



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Extending Existing Layouts

2009-06-23 Thread Jean-Marc Lasgouttes
Tad Marko t...@tadland.net writes:
 I simply find the memoir class unattractive. I like the looks of the classic
 book class.

I thought that the default for memoir was to look like book.cls.

Memoir is highly configurable and provided with a number of predefined
\chapterstyle{} and \headstyle{} entries.

JMarc


Re: Extending Existing Layouts

2009-06-23 Thread Tad Marko
On Tue, Jun 23, 2009 at 3:38 AM, Jean-Marc Lasgouttes lasgout...@lyx.orgwrote:

 Tad Marko t...@tadland.net writes:
  I simply find the memoir class unattractive. I like the looks of the
 classic
  book class.

 I thought that the default for memoir was to look like book.cls.

 Memoir is highly configurable and provided with a number of predefined
 \chapterstyle{} and \headstyle{} entries.


I will look a little closer at it then. I'm still very new to LyX.

Tad


Re: Extending Existing Layouts

2009-06-23 Thread Steve Litt
On Monday 22 June 2009 06:26:33 pm Jean-Marc Lasgouttes wrote:
 Le 22 juin 09 ā 16:06, Tad Marko a écrit :
  I would like to extend the book layout with the Chapterprecis from
  the
  book (memoir) layout. It is probably naive to assume this is as
  simple as
  copying book.layout and copying the Chapterprecis style from memoir
  layout.
  Can anyone tell me a bit about the proper way to do this?

 Is there a reason why you do not use memoir as base class? It is
 better than the legacy book.cls.

 JMarc

The reason that I personally never used Memoir again are:

1) Conflict with hyperref package -- must use \usepackage{memhfixc} and 
\usepackage{mempatch}

2) Because it's not one of the most used document classes, there's more chance 
of a distribution including the wrong memoir document class. See this:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66880.html

3) It's hard to be an expert at several document classes, so I've put all my 
effort toward becoming an expert on the Book document class. When it doesn't 
give me something I need, I can either find a package to yield the desired 
functionality, or I can code it myself using LaTeX.

SteveT

-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Lyx for Posters; Unavailable classes

2009-06-23 Thread Ehud Kaplan

I am trying to use Lyx 1.6.2 to create a poster under Linux.
Lyx shows  sciposter.cls  in the list of document classes 
(Tools/Tex-information),
but when I go to Document/Settings/Document class I cannot find it.  In 
fact, many other classes that

are on my system are also listed as Unavailable.
I re-ran Texhash from the konsole and Reconfigured Lyx, but it did not 
solve the problem.

What am I missing?
Thanks,

--
Ehud Kaplan



Re: Lyx for Posters; Unavailable classes

2009-06-23 Thread Jürgen Spitzmüller
Ehud Kaplan wrote:
 What am I missing?

The corresponding LyX layout file. LyX layout files are only available fpr a 
subset of LaTeX (or DocBook) classes (but it's not difficult to write a layout 
file).

Jürgen


One and half line spacing

2009-06-23 Thread Derek Cordeiro
Hi,

I have a query about line spacing. Why does the line spacing
\onehalfspacing in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

With Thanks,
Derek


Re: One and half line spacing

2009-06-23 Thread Jürgen Spitzmüller
Derek Cordeiro wrote:
 I have a query about line spacing. Why does the line spacing
 \onehalfspacing in LyX differ from word processors like Word or
 OpenOffice? Or are they two different things? I have used same font
 size of 12pt but find that a 1.5 line spacing in a word processor
 generates much more space. Is there any way to establish a relation
 between the two?

http://marc.info/?l=lyx-usersm=120963646131610w=2

HTH,
Jürgen



Re: One and half line spacing

2009-06-23 Thread rgheck

Derek Cordeiro wrote:

Hi,

I have a query about line spacing. Why does the line spacing
\onehalfspacing in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

  
Yes, but it is complicated. According to the _LaTeX Companion_: 'Double 
spacing' means that the vertical distance between baselines is about 
twice as large as the font size, which means, visually, that it should 
look as if an additional line would fit perfectly between the printed 
lines. Traditional word processors produce double spacing the way a 
typewriter does, by skipping a line. This means that you insert the 
leading twice, too, and so the distance between lines is much greater. 
Essentially the same goes for 1.5 in a word processor.


You can get this effect, if you want, using the preamble.
   \usepackage{setspace}
   \setstretch{1.5}

rh



Re: One and half line spacing

2009-06-23 Thread rgheck

rgheck wrote:

Derek Cordeiro wrote:

Hi,

I have a query about line spacing. Why does the line spacing
\onehalfspacing in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

  
Yes, but it is complicated. According to the _LaTeX Companion_: 
'Double spacing' means that the vertical distance between baselines 
is about twice as large as the font size, which means, visually, that 
it should look as if an additional line would fit perfectly between 
the printed lines. Traditional word processors produce double spacing 
the way a typewriter does, by skipping a line. This means that you 
insert the leading twice, too, and so the distance between lines is 
much greater. Essentially the same goes for 1.5 in a word processor.


You can get this effect, if you want, using the preamble.
   \usepackage{setspace}
   \setstretch{1.5}


Or better, you can do this in LyX itself by choosing the Custom size 1.5.

rh



Re: Reset Section Numbering by Part

2009-06-23 Thread Andrew Hills

but in my head if you need a toc and to start sections anew for each
part, you do not write an article ;).


You caught me; I'm not writing an article. The article class is just the 
one I'm most familiar manipulating. I'm also not releasing the source 
for my document, so I'm more comfortable with unorthodox hacks.


It turns out there's a simple preamble command that accomplishes what I 
want: \...@addtoreset{section}{part}. It turned up after hours of poring 
over documentation when Google searches failed.


--Andrew Hills


Re: One and half line spacing

2009-06-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
 Derek Cordeiro wrote:
  I have a query about line spacing. Why does the line spacing
  \onehalfspacing in LyX differ from word processors like Word or
  OpenOffice? Or are they two different things? I have used same font
  size of 12pt but find that a 1.5 line spacing in a word processor
  generates much more space. Is there any way to establish a relation
  between the two?

 http://marc.info/?l=lyx-usersm=120963646131610w=2

I took the time to add a FAQ entry:
http://wiki.lyx.org/FAQ/Unsorted1#toc16

Jürgen



footnote - font size

2009-06-23 Thread Markus Büchele
Hi,

I'm using the book class and cannot get the numbers of footnotes in the 
footnote lines (not the text) into the following format:
normal size, not superscript

I am not using KOMA, so this does not work:
\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

How do I get rid of the superscript?

I have configured the footnotes with footmisc so far:

\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{0.7cm}
\renewcommand{\footnoterule}{}

Thanks very much for your help!

Markus

P.S. Sorry for posting this again, it's the last formatting problem I have 
with my PhD thesis  - I suppose my first attempt on Saturday afternoon was 
not the most suitable time for immediate replies ;-) - Thanks!


Re: footnote - font size

2009-06-23 Thread Jürgen Spitzmüller
Markus Büchele wrote:
 I am not using KOMA, so this does not work:
 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

 How do I get rid of the superscript?

 I have configured the footnotes with footmisc so far:

 \usepackage[hang]{footmisc}
 \setlength{\footnotemargin}{0.7cm}
 \renewcommand{\footnoterule}{}

Something like the following should help:

% Redefine footmisc for non-superscripted footnote
  \long\d...@makefntext#1{%
\i...@hangfoot
  \bgroup
  \setb...@tempboxa\hbox{%
\ifdim\footnotemargin0pt
  \...@xt@\footnotemargi...@thefnmark\hss}%
\else
  \...@thefnmark
\fi
  }%
  \leftmargin\...@tempboxa
  \rightmargin\z@
  \linewidth \columnwidth
  \advance \linewidth -\leftmargin
  \parshape \...@ne \leftmargin \linewidth
  \footnotesize
  \parskip\hangfootparskip\relax
  \parindent\hangfootparindent\relax
  \...@setpar{{\@@par}}%
  \leavevmode
  \llap{\b...@tempboxa}%
\else
  \parindent1em
  \noindent
  \ifdim\footnotemargin\z@
\...@xt@ \footnotemargin{\h...@thefnmark}%
  \else
\ifdim\footnotemargin=\z@
  \lla...@thefnmark}%
\else
  \llap{...@xt@ -\footnotemargi...@thefnmark\hss}}%
\fi
  \fi
\fi
\footnotelayout#1%
\i...@hangfoot
  \par\egroup
\fi
  }

This is jsut a slightly modiefied version of footmisc's footnote definition.

HTH,
Jürgen




Re: footnote - font size

2009-06-23 Thread Markus Büchele
Jürgen, thank you very much - your patch has solved my problem! Now I can 
publish it

Markus


Am Tuesday 23 June 2009 18:15:38 schrieb Jürgen Spitzmüller:
 Markus Büchele wrote:
  I am not using KOMA, so this does not work:
  \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
 
  How do I get rid of the superscript?
 
  I have configured the footnotes with footmisc so far:
 
  \usepackage[hang]{footmisc}
  \setlength{\footnotemargin}{0.7cm}
  \renewcommand{\footnoterule}{}

 Something like the following should help:

 % Redefine footmisc for non-superscripted footnote
   \long\d...@makefntext#1{%
 \i...@hangfoot
   \bgroup
   \setb...@tempboxa\hbox{%
 \ifdim\footnotemargin0pt
   \...@xt@\footnotemargi...@thefnmark\hss}%
 \else
   \...@thefnmark
 \fi
   }%
   \leftmargin\...@tempboxa
   \rightmargin\z@
   \linewidth \columnwidth
   \advance \linewidth -\leftmargin
   \parshape \...@ne \leftmargin \linewidth
   \footnotesize
   \parskip\hangfootparskip\relax
   \parindent\hangfootparindent\relax
   \...@setpar{{\@@par}}%
   \leavevmode
   \llap{\b...@tempboxa}%
 \else
   \parindent1em
   \noindent
   \ifdim\footnotemargin\z@
 \...@xt@ \footnotemargin{\h...@thefnmark}%
   \else
 \ifdim\footnotemargin=\z@
   \lla...@thefnmark}%
 \else
   \llap{...@xt@ -\footnotemargi...@thefnmark\hss}}%
 \fi
   \fi
 \fi
 \footnotelayout#1%
 \i...@hangfoot
   \par\egroup
 \fi
   }

 This is jsut a slightly modiefied version of footmisc's footnote
 definition.

 HTH,
 Jürgen




LyX, Songbird, and Mac OS X

2009-06-23 Thread Liz Cademy

Hello!

I am brand new to LaTeX and Lyx. I downloaded them specifically to  
create a book of song lyrics for my daughter.


Details:  Mac OS X 10.4.11 (Tiger) on a PowerBook G4

I am very familiar with the Mac OS, but not with linux or the  
terminal. If the solution to my problem needs me to work in Terminal,  
please be very, very specific.


I am trying to install Songbird. I am following the instructions on  
this wiki page:

http://wiki.lyx.org/Layouts/Songbook#toc4

I downloaded SongbookRelease 4.0, unpacked it, and put it in my ~/ 
application Support/Lyx  folder.  Though it isn't stated in the wiki,  
this seems like the logical place for the files.


I downloaded Songbook_lyx, unpacked it, and also put it in the same   
folder.


I then opened Lyx and chose the Reconfigure menu item. I got a dialog  
that said Lyx was reconfigured (with no details) and to restart Lyx,  
which I did.


I tried opening the Songbook template in Lyx, I get a The document  
class songbook could not be found ... dialog.


I noticed that I have the conditionals.sty file, but not the  
songbook.sty file. The wiki shows a download for the songbook.sty  
file, but when I downloaded it (again, into my applications support/ 
lyx folder), I got the exact same error in Lyx, even after  
reconfiguring.



Help, please!

--Liz


Repeating a multi-line equation

2009-06-23 Thread Ben M.
Hi, I'm working on a document that looks like this:

Lots of text
   Multi-line equation #1
More text
   Multi-line equation #2
More text
...
Summary of useful equations:
   Multi-line equation #1
   Multi-line equation #2

Ideally, if I change something, I should only have to change it in one
place.  One approach would be to use math macros.  However, it seems
impossible to insert a multi-line AMS environment inside a math macro.

Probably a better solution would be to insert a cross-reference which
somehow reproduces the original equation.  Anyone know of a package
that does this?

Thanks!

-Ben


Re: LyX, Songbird, and Mac OS X

2009-06-23 Thread BH
On Tue, Jun 23, 2009 at 5:12 PM, Liz Cademyzcad...@gmail.com wrote:

 I am trying to install Songbird. I am following the instructions on this
 wiki page:
 http://wiki.lyx.org/Layouts/Songbook#toc4

 I downloaded SongbookRelease 4.0, unpacked it, and put it in my
 ~/application Support/Lyx  folder.  Though it isn't stated in the wiki, this
 seems like the logical place for the files.

Songbook is a LaTeX package, and so it belongs in your LaTeX tree. On
Mac, that would be at:

~/Library/texmf/tex/latex

(You can use the Finder to put it there.)

 I downloaded Songbook_lyx, unpacked it, and also put it in the same  folder.

LyX's layout files need to be in the layout folder of your LyX user's
directory. That would be (on Mac):

~/Library/Application Support/LyX-1.6/layouts

Put it there, then reconfigure and restart LyX. That should solve your problems.

BH


Russian hyphenation doesn't work

2009-06-23 Thread D.Zorig
Hi all,

By default LyX doesn't hyphenate Russian language documents.
I tried to include
\usepackage[russian]{babel} in the preamble but still doesn't hyphenate.

By google search I found following article.
http://www.ibiblio.org/sergei/Software/tex.html
There it says

As of v3.6h, Babel has a broken support of Russian in X2(T2). In order for
it to work, you should get a replacement from the *X2(T2)* support macro
distribution. There is a rusbabel/ subdirectory there. Replace Russian
support in the original Babel distribution with those files. You might want
to recreate Babel styles from the gound up or generate Russian support
separately and copy .fd, .def, .sty and other appropriate files into a
directory with a working babel.

Does anyone have idea how to get it work?
For now I'm including
\usepackage[mongolian]{babel} in the preamble to hyphenate Russian words but
everything else becomes Mongolian and it is a bit troublesome.

Kind regards,
Zorigtkhuu Davaanyam


Re: Help message about LyX-XeTeX

2009-06-23 Thread Jürgen Spitzmüller
rgheck wrote:
  I've just downloaded the last LyX release (1.6.3) and my OS is Windovs
  Vista Home Premium. I've used LyX writing all my reports in the last six
  months. I've got only one great problem that I can't solve without your
  help. I 'd like to use some characters not available in LaTeX: for
  exemple Calibri. I've made some researches and I've read about XeTeX. I
  use MikTeX, the last release, and it contains XeTeX. It should be
  possible to use XeTeX whit LyX but I can't do it. I've read something
  about the conversion in the format output PDF (xetex) but it is not
  present in the list that I've found in ToolsPreferencesFile
  HandlingConverters. It seems like LyX doesn't find XeTeX even if it's
  yet installed. What could I do?
 
   

 The expert on XeTeX is Jurgen: 

Not really (I do not use XeTeX myself).

Anyway, for LyX 1.6, you need to set up LyX for the use of XeTeX. A HowTo is 
here:

http://wiki.lyx.org/LyX/XeTeX

Don't hesitae to ask here on the list if things remain unclear.

As Richard wrote, LyX 2.0 will have some more native XeTeX support. There, 
your work reduces to click a use XeTeX checkbox in DocumentSettings. But I 
would not recomment LyX 2.0svn yet for serious work.

HTH,
Jürgen



Re: journal abbreviations

2009-06-23 Thread Wolfgang Engelmann
Am Monday 22 June 2009 17:10:40 schrieb Paul A. Rubin:
Thanks for the help. I will try Paul's proposal  to use the string editor 
(Ctrl-T or BibTeX  Edit Strings) to add one abbreviation for each journal. I 
might later use these for further bib-files.
Wolfgang

 Wolfgang Engelmann wrote:
  I would like to use journal abbreviations in my reference list. I know,
  Jabref is having this option (manage journal abbreviations); I have,
  however, difficulties in getting it to work. Could somebody who used it
  already give me a hint? The explanation in jabref is beyond me (e.g.
  personal Journal list, external files, where and how to insert the
  journal list from JabRef)
 
  There are actually 2 tasks:
  - use abbreviations
  - make sure the various kinds of writing of the same journal end up in
  the same  abbreviation
 
  e.g.:
  citation 1 uses AJP
  citation 2 uses AJP
  citation 3 Am.J.Phys.
  citation 4 Am. J. Phys. (space!)
  citation 5 Am. J. Physiol.
  citation 6 Am. J. Physiology
  citation 7 American Journal of Physiology
 
   should all have finally
 
  Am. J. Physiol.
 
  It would be nice to mark the citations in my Jabref file who use the same
  journal and tell jabref to put the correct abbreviation to all those. I
  have the feeling, this is implemented in Jabref, but can't get it to
  work.

 You could do something like that with the personal journal list, but it
 would involve adding one line to your new personal list for each version
 of each journal's name appearing in your .bib file, e.g.

 AJP - Am. J. Phys.
 Am.J.Phys. - Am. J. Phys.
 American Journal of Physiology - Am. J. Phys.
 etc.

 (assuming Am. J. Phys. was the abbreviation you wanted BibTeX to use).

 Assuming you only have one .bib file, it might be easier to use the
 string editor (Ctrl-T or BibTeX  Edit Strings) to add one abbreviation
 for each journal (e.g., AJP - Am. J. Phys., again assuming the right
 side is how you want it listed).  Then just manually edit each entry,
 replacing whatever is in the journal field with #AJP#.  The biggest
 limitation of this approach is that the strings only apply to the .bib
 file containing them, although I suspect it is not hard to transfer them
 to a new .bib file.

 /Paul



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Extending Existing Layouts

2009-06-23 Thread Jean-Marc Lasgouttes
Tad Marko t...@tadland.net writes:
 I simply find the memoir class unattractive. I like the looks of the classic
 book class.

I thought that the default for memoir was to look like book.cls.

Memoir is highly configurable and provided with a number of predefined
\chapterstyle{} and \headstyle{} entries.

JMarc


Re: Extending Existing Layouts

2009-06-23 Thread Tad Marko
On Tue, Jun 23, 2009 at 3:38 AM, Jean-Marc Lasgouttes lasgout...@lyx.orgwrote:

 Tad Marko t...@tadland.net writes:
  I simply find the memoir class unattractive. I like the looks of the
 classic
  book class.

 I thought that the default for memoir was to look like book.cls.

 Memoir is highly configurable and provided with a number of predefined
 \chapterstyle{} and \headstyle{} entries.


I will look a little closer at it then. I'm still very new to LyX.

Tad


Re: Extending Existing Layouts

2009-06-23 Thread Steve Litt
On Monday 22 June 2009 06:26:33 pm Jean-Marc Lasgouttes wrote:
 Le 22 juin 09 ā 16:06, Tad Marko a écrit :
  I would like to extend the book layout with the Chapterprecis from
  the
  book (memoir) layout. It is probably naive to assume this is as
  simple as
  copying book.layout and copying the Chapterprecis style from memoir
  layout.
  Can anyone tell me a bit about the proper way to do this?

 Is there a reason why you do not use memoir as base class? It is
 better than the legacy book.cls.

 JMarc

The reason that I personally never used Memoir again are:

1) Conflict with hyperref package -- must use \usepackage{memhfixc} and 
\usepackage{mempatch}

2) Because it's not one of the most used document classes, there's more chance 
of a distribution including the wrong memoir document class. See this:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66880.html

3) It's hard to be an expert at several document classes, so I've put all my 
effort toward becoming an expert on the Book document class. When it doesn't 
give me something I need, I can either find a package to yield the desired 
functionality, or I can code it myself using LaTeX.

SteveT

-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Lyx for Posters; Unavailable classes

2009-06-23 Thread Ehud Kaplan

I am trying to use Lyx 1.6.2 to create a poster under Linux.
Lyx shows  sciposter.cls  in the list of document classes 
(Tools/Tex-information),
but when I go to Document/Settings/Document class I cannot find it.  In 
fact, many other classes that

are on my system are also listed as Unavailable.
I re-ran Texhash from the konsole and Reconfigured Lyx, but it did not 
solve the problem.

What am I missing?
Thanks,

--
Ehud Kaplan



Re: Lyx for Posters; Unavailable classes

2009-06-23 Thread Jürgen Spitzmüller
Ehud Kaplan wrote:
 What am I missing?

The corresponding LyX layout file. LyX layout files are only available fpr a 
subset of LaTeX (or DocBook) classes (but it's not difficult to write a layout 
file).

Jürgen


One and half line spacing

2009-06-23 Thread Derek Cordeiro
Hi,

I have a query about line spacing. Why does the line spacing
\onehalfspacing in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

With Thanks,
Derek


Re: One and half line spacing

2009-06-23 Thread Jürgen Spitzmüller
Derek Cordeiro wrote:
 I have a query about line spacing. Why does the line spacing
 \onehalfspacing in LyX differ from word processors like Word or
 OpenOffice? Or are they two different things? I have used same font
 size of 12pt but find that a 1.5 line spacing in a word processor
 generates much more space. Is there any way to establish a relation
 between the two?

http://marc.info/?l=lyx-usersm=120963646131610w=2

HTH,
Jürgen



Re: One and half line spacing

2009-06-23 Thread rgheck

Derek Cordeiro wrote:

Hi,

I have a query about line spacing. Why does the line spacing
\onehalfspacing in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

  
Yes, but it is complicated. According to the _LaTeX Companion_: 'Double 
spacing' means that the vertical distance between baselines is about 
twice as large as the font size, which means, visually, that it should 
look as if an additional line would fit perfectly between the printed 
lines. Traditional word processors produce double spacing the way a 
typewriter does, by skipping a line. This means that you insert the 
leading twice, too, and so the distance between lines is much greater. 
Essentially the same goes for 1.5 in a word processor.


You can get this effect, if you want, using the preamble.
   \usepackage{setspace}
   \setstretch{1.5}

rh



Re: One and half line spacing

2009-06-23 Thread rgheck

rgheck wrote:

Derek Cordeiro wrote:

Hi,

I have a query about line spacing. Why does the line spacing
\onehalfspacing in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

  
Yes, but it is complicated. According to the _LaTeX Companion_: 
'Double spacing' means that the vertical distance between baselines 
is about twice as large as the font size, which means, visually, that 
it should look as if an additional line would fit perfectly between 
the printed lines. Traditional word processors produce double spacing 
the way a typewriter does, by skipping a line. This means that you 
insert the leading twice, too, and so the distance between lines is 
much greater. Essentially the same goes for 1.5 in a word processor.


You can get this effect, if you want, using the preamble.
   \usepackage{setspace}
   \setstretch{1.5}


Or better, you can do this in LyX itself by choosing the Custom size 1.5.

rh



Re: Reset Section Numbering by Part

2009-06-23 Thread Andrew Hills

but in my head if you need a toc and to start sections anew for each
part, you do not write an article ;).


You caught me; I'm not writing an article. The article class is just the 
one I'm most familiar manipulating. I'm also not releasing the source 
for my document, so I'm more comfortable with unorthodox hacks.


It turns out there's a simple preamble command that accomplishes what I 
want: \...@addtoreset{section}{part}. It turned up after hours of poring 
over documentation when Google searches failed.


--Andrew Hills


Re: One and half line spacing

2009-06-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
 Derek Cordeiro wrote:
  I have a query about line spacing. Why does the line spacing
  \onehalfspacing in LyX differ from word processors like Word or
  OpenOffice? Or are they two different things? I have used same font
  size of 12pt but find that a 1.5 line spacing in a word processor
  generates much more space. Is there any way to establish a relation
  between the two?

 http://marc.info/?l=lyx-usersm=120963646131610w=2

I took the time to add a FAQ entry:
http://wiki.lyx.org/FAQ/Unsorted1#toc16

Jürgen



footnote - font size

2009-06-23 Thread Markus Büchele
Hi,

I'm using the book class and cannot get the numbers of footnotes in the 
footnote lines (not the text) into the following format:
normal size, not superscript

I am not using KOMA, so this does not work:
\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

How do I get rid of the superscript?

I have configured the footnotes with footmisc so far:

\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{0.7cm}
\renewcommand{\footnoterule}{}

Thanks very much for your help!

Markus

P.S. Sorry for posting this again, it's the last formatting problem I have 
with my PhD thesis  - I suppose my first attempt on Saturday afternoon was 
not the most suitable time for immediate replies ;-) - Thanks!


Re: footnote - font size

2009-06-23 Thread Jürgen Spitzmüller
Markus Büchele wrote:
 I am not using KOMA, so this does not work:
 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

 How do I get rid of the superscript?

 I have configured the footnotes with footmisc so far:

 \usepackage[hang]{footmisc}
 \setlength{\footnotemargin}{0.7cm}
 \renewcommand{\footnoterule}{}

Something like the following should help:

% Redefine footmisc for non-superscripted footnote
  \long\d...@makefntext#1{%
\i...@hangfoot
  \bgroup
  \setb...@tempboxa\hbox{%
\ifdim\footnotemargin0pt
  \...@xt@\footnotemargi...@thefnmark\hss}%
\else
  \...@thefnmark
\fi
  }%
  \leftmargin\...@tempboxa
  \rightmargin\z@
  \linewidth \columnwidth
  \advance \linewidth -\leftmargin
  \parshape \...@ne \leftmargin \linewidth
  \footnotesize
  \parskip\hangfootparskip\relax
  \parindent\hangfootparindent\relax
  \...@setpar{{\@@par}}%
  \leavevmode
  \llap{\b...@tempboxa}%
\else
  \parindent1em
  \noindent
  \ifdim\footnotemargin\z@
\...@xt@ \footnotemargin{\h...@thefnmark}%
  \else
\ifdim\footnotemargin=\z@
  \lla...@thefnmark}%
\else
  \llap{...@xt@ -\footnotemargi...@thefnmark\hss}}%
\fi
  \fi
\fi
\footnotelayout#1%
\i...@hangfoot
  \par\egroup
\fi
  }

This is jsut a slightly modiefied version of footmisc's footnote definition.

HTH,
Jürgen




Re: footnote - font size

2009-06-23 Thread Markus Büchele
Jürgen, thank you very much - your patch has solved my problem! Now I can 
publish it

Markus


Am Tuesday 23 June 2009 18:15:38 schrieb Jürgen Spitzmüller:
 Markus Büchele wrote:
  I am not using KOMA, so this does not work:
  \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
 
  How do I get rid of the superscript?
 
  I have configured the footnotes with footmisc so far:
 
  \usepackage[hang]{footmisc}
  \setlength{\footnotemargin}{0.7cm}
  \renewcommand{\footnoterule}{}

 Something like the following should help:

 % Redefine footmisc for non-superscripted footnote
   \long\d...@makefntext#1{%
 \i...@hangfoot
   \bgroup
   \setb...@tempboxa\hbox{%
 \ifdim\footnotemargin0pt
   \...@xt@\footnotemargi...@thefnmark\hss}%
 \else
   \...@thefnmark
 \fi
   }%
   \leftmargin\...@tempboxa
   \rightmargin\z@
   \linewidth \columnwidth
   \advance \linewidth -\leftmargin
   \parshape \...@ne \leftmargin \linewidth
   \footnotesize
   \parskip\hangfootparskip\relax
   \parindent\hangfootparindent\relax
   \...@setpar{{\@@par}}%
   \leavevmode
   \llap{\b...@tempboxa}%
 \else
   \parindent1em
   \noindent
   \ifdim\footnotemargin\z@
 \...@xt@ \footnotemargin{\h...@thefnmark}%
   \else
 \ifdim\footnotemargin=\z@
   \lla...@thefnmark}%
 \else
   \llap{...@xt@ -\footnotemargi...@thefnmark\hss}}%
 \fi
   \fi
 \fi
 \footnotelayout#1%
 \i...@hangfoot
   \par\egroup
 \fi
   }

 This is jsut a slightly modiefied version of footmisc's footnote
 definition.

 HTH,
 Jürgen




LyX, Songbird, and Mac OS X

2009-06-23 Thread Liz Cademy

Hello!

I am brand new to LaTeX and Lyx. I downloaded them specifically to  
create a book of song lyrics for my daughter.


Details:  Mac OS X 10.4.11 (Tiger) on a PowerBook G4

I am very familiar with the Mac OS, but not with linux or the  
terminal. If the solution to my problem needs me to work in Terminal,  
please be very, very specific.


I am trying to install Songbird. I am following the instructions on  
this wiki page:

http://wiki.lyx.org/Layouts/Songbook#toc4

I downloaded SongbookRelease 4.0, unpacked it, and put it in my ~/ 
application Support/Lyx  folder.  Though it isn't stated in the wiki,  
this seems like the logical place for the files.


I downloaded Songbook_lyx, unpacked it, and also put it in the same   
folder.


I then opened Lyx and chose the Reconfigure menu item. I got a dialog  
that said Lyx was reconfigured (with no details) and to restart Lyx,  
which I did.


I tried opening the Songbook template in Lyx, I get a The document  
class songbook could not be found ... dialog.


I noticed that I have the conditionals.sty file, but not the  
songbook.sty file. The wiki shows a download for the songbook.sty  
file, but when I downloaded it (again, into my applications support/ 
lyx folder), I got the exact same error in Lyx, even after  
reconfiguring.



Help, please!

--Liz


Repeating a multi-line equation

2009-06-23 Thread Ben M.
Hi, I'm working on a document that looks like this:

Lots of text
   Multi-line equation #1
More text
   Multi-line equation #2
More text
...
Summary of useful equations:
   Multi-line equation #1
   Multi-line equation #2

Ideally, if I change something, I should only have to change it in one
place.  One approach would be to use math macros.  However, it seems
impossible to insert a multi-line AMS environment inside a math macro.

Probably a better solution would be to insert a cross-reference which
somehow reproduces the original equation.  Anyone know of a package
that does this?

Thanks!

-Ben


Re: LyX, Songbird, and Mac OS X

2009-06-23 Thread BH
On Tue, Jun 23, 2009 at 5:12 PM, Liz Cademyzcad...@gmail.com wrote:

 I am trying to install Songbird. I am following the instructions on this
 wiki page:
 http://wiki.lyx.org/Layouts/Songbook#toc4

 I downloaded SongbookRelease 4.0, unpacked it, and put it in my
 ~/application Support/Lyx  folder.  Though it isn't stated in the wiki, this
 seems like the logical place for the files.

Songbook is a LaTeX package, and so it belongs in your LaTeX tree. On
Mac, that would be at:

~/Library/texmf/tex/latex

(You can use the Finder to put it there.)

 I downloaded Songbook_lyx, unpacked it, and also put it in the same  folder.

LyX's layout files need to be in the layout folder of your LyX user's
directory. That would be (on Mac):

~/Library/Application Support/LyX-1.6/layouts

Put it there, then reconfigure and restart LyX. That should solve your problems.

BH


Russian hyphenation doesn't work

2009-06-23 Thread D.Zorig
Hi all,

By default LyX doesn't hyphenate Russian language documents.
I tried to include
\usepackage[russian]{babel} in the preamble but still doesn't hyphenate.

By google search I found following article.
http://www.ibiblio.org/sergei/Software/tex.html
There it says

As of v3.6h, Babel has a broken support of Russian in X2(T2). In order for
it to work, you should get a replacement from the *X2(T2)* support macro
distribution. There is a rusbabel/ subdirectory there. Replace Russian
support in the original Babel distribution with those files. You might want
to recreate Babel styles from the gound up or generate Russian support
separately and copy .fd, .def, .sty and other appropriate files into a
directory with a working babel.

Does anyone have idea how to get it work?
For now I'm including
\usepackage[mongolian]{babel} in the preamble to hyphenate Russian words but
everything else becomes Mongolian and it is a bit troublesome.

Kind regards,
Zorigtkhuu Davaanyam


Re: Help message about LyX-XeTeX

2009-06-23 Thread Jürgen Spitzmüller
rgheck wrote:
> > I've just downloaded the last LyX release (1.6.3) and my OS is Windovs
> > Vista Home Premium. I've used LyX writing all my reports in the last six
> > months. I've got only one great problem that I can't solve without your
> > help. I 'd like to use some characters not available in LaTeX: for
> > exemple Calibri. I've made some researches and I've read about XeTeX. I
> > use MikTeX, the last release, and it contains XeTeX. It should be
> > possible to use XeTeX whit LyX but I can't do it. I've read something
> > about the conversion in the format output PDF (xetex) but it is not
> > present in the list that I've found in Tools>Preferences>File
> > Handling>Converters. It seems like LyX doesn't find XeTeX even if it's
> > yet installed. What could I do?
> >
> >  
>
> The expert on XeTeX is J"urgen: 

Not really (I do not use XeTeX myself).

Anyway, for LyX 1.6, you need to set up LyX for the use of XeTeX. A HowTo is 
here:

http://wiki.lyx.org/LyX/XeTeX

Don't hesitae to ask here on the list if things remain unclear.

As Richard wrote, LyX 2.0 will have some more native XeTeX support. There, 
your work reduces to click a "use XeTeX" checkbox in Document>Settings. But I 
would not recomment LyX 2.0svn yet for serious work.

HTH,
Jürgen



Re: journal abbreviations

2009-06-23 Thread Wolfgang Engelmann
Am Monday 22 June 2009 17:10:40 schrieb Paul A. Rubin:
Thanks for the help. I will try Paul's proposal  to use the string editor 
(Ctrl-T or BibTeX > Edit Strings) to add one abbreviation for each journal. I 
might later use these for further bib-files.
Wolfgang
>
> Wolfgang Engelmann wrote:
> > I would like to use journal abbreviations in my reference list. I know,
> > Jabref is having this option (manage journal abbreviations); I have,
> > however, difficulties in getting it to work. Could somebody who used it
> > already give me a hint? The explanation in jabref is beyond me (e.g.
> > personal Journal list, external files, where and how to insert the
> > journal list from JabRef)
> >
> > There are actually 2 tasks:
> > - use abbreviations
> > - make sure the various kinds of writing of the same journal end up in
> > the same  abbreviation
> >
> > e.g.:
> > citation 1 uses AJP
> > citation 2 uses AJP
> > citation 3 Am.J.Phys.
> > citation 4 Am. J. Phys. (space!)
> > citation 5 Am. J. Physiol.
> > citation 6 Am. J. Physiology
> > citation 7 American Journal of Physiology
> >
> >  should all have finally
> >
> > Am. J. Physiol.
> >
> > It would be nice to mark the citations in my Jabref file who use the same
> > journal and tell jabref to put the correct abbreviation to all those. I
> > have the feeling, this is implemented in Jabref, but can't get it to
> > work.
>
> You could do something like that with the personal journal list, but it
> would involve adding one line to your new personal list for each version
> of each journal's name appearing in your .bib file, e.g.
>
> AJP -> Am. J. Phys.
> Am.J.Phys. -> Am. J. Phys.
> American Journal of Physiology -> Am. J. Phys.
> etc.
>
> (assuming Am. J. Phys. was the abbreviation you wanted BibTeX to use).
>
> Assuming you only have one .bib file, it might be easier to use the
> string editor (Ctrl-T or BibTeX > Edit Strings) to add one abbreviation
> for each journal (e.g., AJP -> Am. J. Phys., again assuming the right
> side is how you want it listed).  Then just manually edit each entry,
> replacing whatever is in the journal field with #AJP#.  The biggest
> limitation of this approach is that the strings only apply to the .bib
> file containing them, although I suspect it is not hard to transfer them
> to a new .bib file.
>
> /Paul



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Extending Existing Layouts

2009-06-23 Thread Jean-Marc Lasgouttes
Tad Marko  writes:
> I simply find the memoir class unattractive. I like the looks of the classic
> book class.

I thought that the default for memoir was to look like book.cls.

Memoir is highly configurable and provided with a number of predefined
\chapterstyle{} and \headstyle{} entries.

JMarc


Re: Extending Existing Layouts

2009-06-23 Thread Tad Marko
On Tue, Jun 23, 2009 at 3:38 AM, Jean-Marc Lasgouttes wrote:

> Tad Marko  writes:
> > I simply find the memoir class unattractive. I like the looks of the
> classic
> > book class.
>
> I thought that the default for memoir was to look like book.cls.
>
> Memoir is highly configurable and provided with a number of predefined
> \chapterstyle{} and \headstyle{} entries.
>

I will look a little closer at it then. I'm still very new to LyX.

Tad


Re: Extending Existing Layouts

2009-06-23 Thread Steve Litt
On Monday 22 June 2009 06:26:33 pm Jean-Marc Lasgouttes wrote:
> Le 22 juin 09 ā 16:06, Tad Marko a écrit :
> > I would like to extend the book layout with the "Chapterprecis" from
> > the
> > book (memoir)" layout. It is probably naive to assume this is as
> > simple as
> > copying book.layout and copying the Chapterprecis style from memoir
> > layout.
> > Can anyone tell me a bit about the proper way to do this?
>
> Is there a reason why you do not use memoir as base class? It is
> better than the legacy book.cls.
>
> JMarc

The reason that I personally never used Memoir again are:

1) Conflict with hyperref package -- must use \usepackage{memhfixc} and 
\usepackage{mempatch}

2) Because it's not one of the most used document classes, there's more chance 
of a distribution including the wrong memoir document class. See this:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66880.html

3) It's hard to be an expert at several document classes, so I've put all my 
effort toward becoming an expert on the Book document class. When it doesn't 
give me something I need, I can either find a package to yield the desired 
functionality, or I can code it myself using LaTeX.

SteveT

-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Lyx for Posters; Unavailable classes

2009-06-23 Thread Ehud Kaplan

I am trying to use Lyx 1.6.2 to create a poster under Linux.
Lyx shows  sciposter.cls  in the list of document classes 
(Tools/Tex-information),
but when I go to Document/Settings/Document class I cannot find it.  In 
fact, many other classes that

are on my system are also listed as Unavailable.
I re-ran Texhash from the konsole and Reconfigured Lyx, but it did not 
solve the problem.

What am I missing?
Thanks,

--
Ehud Kaplan



Re: Lyx for Posters; Unavailable classes

2009-06-23 Thread Jürgen Spitzmüller
Ehud Kaplan wrote:
> What am I missing?

The corresponding LyX layout file. LyX layout files are only available fpr a 
subset of LaTeX (or DocBook) classes (but it's not difficult to write a layout 
file).

Jürgen


One and half line spacing

2009-06-23 Thread Derek Cordeiro
Hi,

I have a query about line spacing. Why does the line spacing
"\onehalfspacing" in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

With Thanks,
Derek


Re: One and half line spacing

2009-06-23 Thread Jürgen Spitzmüller
Derek Cordeiro wrote:
> I have a query about line spacing. Why does the line spacing
> "\onehalfspacing" in LyX differ from word processors like Word or
> OpenOffice? Or are they two different things? I have used same font
> size of 12pt but find that a 1.5 line spacing in a word processor
> generates much more space. Is there any way to establish a relation
> between the two?

http://marc.info/?l=lyx-users=120963646131610=2

HTH,
Jürgen



Re: One and half line spacing

2009-06-23 Thread rgheck

Derek Cordeiro wrote:

Hi,

I have a query about line spacing. Why does the line spacing
"\onehalfspacing" in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

  
Yes, but it is complicated. According to the _LaTeX Companion_: "'Double 
spacing' means that the vertical distance between baselines is about 
twice as large as the font size", which means, visually, that it should 
look as if an additional line would fit perfectly between the printed 
lines. Traditional word processors produce double spacing the way a 
typewriter does, by skipping a line. This means that you insert the 
leading twice, too, and so the distance between lines is much greater. 
Essentially the same goes for 1.5 in a word processor.


You can get this effect, if you want, using the preamble.
   \usepackage{setspace}
   \setstretch{1.5}

rh



Re: One and half line spacing

2009-06-23 Thread rgheck

rgheck wrote:

Derek Cordeiro wrote:

Hi,

I have a query about line spacing. Why does the line spacing
"\onehalfspacing" in LyX differ from word processors like Word or
OpenOffice? Or are they two different things? I have used same font
size of 12pt but find that a 1.5 line spacing in a word processor
generates much more space. Is there any way to establish a relation
between the two?

  
Yes, but it is complicated. According to the _LaTeX Companion_: 
"'Double spacing' means that the vertical distance between baselines 
is about twice as large as the font size", which means, visually, that 
it should look as if an additional line would fit perfectly between 
the printed lines. Traditional word processors produce double spacing 
the way a typewriter does, by skipping a line. This means that you 
insert the leading twice, too, and so the distance between lines is 
much greater. Essentially the same goes for 1.5 in a word processor.


You can get this effect, if you want, using the preamble.
   \usepackage{setspace}
   \setstretch{1.5}


Or better, you can do this in LyX itself by choosing the "Custom" size 1.5.

rh



Re: Reset Section Numbering by Part

2009-06-23 Thread Andrew Hills

but in my head if you need a toc and to start sections anew for each
part, you do not write an article ;).


You caught me; I'm not writing an article. The article class is just the 
one I'm most familiar manipulating. I'm also not releasing the source 
for my document, so I'm more comfortable with unorthodox hacks.


It turns out there's a simple preamble command that accomplishes what I 
want: \...@addtoreset{section}{part}. It turned up after hours of poring 
over documentation when Google searches failed.


--Andrew Hills


Re: One and half line spacing

2009-06-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
> Derek Cordeiro wrote:
> > I have a query about line spacing. Why does the line spacing
> > "\onehalfspacing" in LyX differ from word processors like Word or
> > OpenOffice? Or are they two different things? I have used same font
> > size of 12pt but find that a 1.5 line spacing in a word processor
> > generates much more space. Is there any way to establish a relation
> > between the two?
>
> http://marc.info/?l=lyx-users=120963646131610=2

I took the time to add a FAQ entry:
http://wiki.lyx.org/FAQ/Unsorted1#toc16

Jürgen



footnote - font size

2009-06-23 Thread Markus Büchele
Hi,

I'm using the book class and cannot get the numbers of footnotes in the 
footnote lines (not the text) into the following format:
normal size, not superscript

I am not using KOMA, so this does not work:
\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

How do I get rid of the superscript?

I have configured the footnotes with footmisc so far:

\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{0.7cm}
\renewcommand{\footnoterule}{}

Thanks very much for your help!

Markus

P.S. Sorry for posting this again, it's the last formatting problem I have 
with my PhD thesis  - I suppose my first attempt on Saturday afternoon was 
not the most suitable time for immediate replies ;-) - Thanks!


Re: footnote - font size

2009-06-23 Thread Jürgen Spitzmüller
Markus Büchele wrote:
> I am not using KOMA, so this does not work:
> \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
>
> How do I get rid of the superscript?
>
> I have configured the footnotes with footmisc so far:
>
> \usepackage[hang]{footmisc}
> \setlength{\footnotemargin}{0.7cm}
> \renewcommand{\footnoterule}{}

Something like the following should help:

% Redefine footmisc for non-superscripted footnote
  \long\d...@makefntext#1{%
\i...@hangfoot
  \bgroup
  \setb...@tempboxa\hbox{%
\ifdim\footnotemargin>0pt
  \...@xt@\footnotemargi...@thefnmark\hss}%
\else
  \...@thefnmark
\fi
  }%
  \leftmargin\...@tempboxa
  \rightmargin\z@
  \linewidth \columnwidth
  \advance \linewidth -\leftmargin
  \parshape \...@ne \leftmargin \linewidth
  \footnotesize
  \parskip\hangfootparskip\relax
  \parindent\hangfootparindent\relax
  \...@setpar{{\@@par}}%
  \leavevmode
  \llap{\b...@tempboxa}%
\else
  \parindent1em
  \noindent
  \ifdim\footnotemargin>\z@
\...@xt@ \footnotemargin{\h...@thefnmark}%
  \else
\ifdim\footnotemargin=\z@
  \lla...@thefnmark}%
\else
  \llap{...@xt@ -\footnotemargi...@thefnmark\hss}}%
\fi
  \fi
\fi
\footnotelayout#1%
\i...@hangfoot
  \par\egroup
\fi
  }

This is jsut a slightly modiefied version of footmisc's footnote definition.

HTH,
Jürgen




Re: footnote - font size

2009-06-23 Thread Markus Büchele
Jürgen, thank you very much - your patch has solved my problem! Now I can 
publish it

Markus


Am Tuesday 23 June 2009 18:15:38 schrieb Jürgen Spitzmüller:
> Markus Büchele wrote:
> > I am not using KOMA, so this does not work:
> > \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
> >
> > How do I get rid of the superscript?
> >
> > I have configured the footnotes with footmisc so far:
> >
> > \usepackage[hang]{footmisc}
> > \setlength{\footnotemargin}{0.7cm}
> > \renewcommand{\footnoterule}{}
>
> Something like the following should help:
>
> % Redefine footmisc for non-superscripted footnote
>   \long\d...@makefntext#1{%
> \i...@hangfoot
>   \bgroup
>   \setb...@tempboxa\hbox{%
> \ifdim\footnotemargin>0pt
>   \...@xt@\footnotemargi...@thefnmark\hss}%
> \else
>   \...@thefnmark
> \fi
>   }%
>   \leftmargin\...@tempboxa
>   \rightmargin\z@
>   \linewidth \columnwidth
>   \advance \linewidth -\leftmargin
>   \parshape \...@ne \leftmargin \linewidth
>   \footnotesize
>   \parskip\hangfootparskip\relax
>   \parindent\hangfootparindent\relax
>   \...@setpar{{\@@par}}%
>   \leavevmode
>   \llap{\b...@tempboxa}%
> \else
>   \parindent1em
>   \noindent
>   \ifdim\footnotemargin>\z@
> \...@xt@ \footnotemargin{\h...@thefnmark}%
>   \else
> \ifdim\footnotemargin=\z@
>   \lla...@thefnmark}%
> \else
>   \llap{...@xt@ -\footnotemargi...@thefnmark\hss}}%
> \fi
>   \fi
> \fi
> \footnotelayout#1%
> \i...@hangfoot
>   \par\egroup
> \fi
>   }
>
> This is jsut a slightly modiefied version of footmisc's footnote
> definition.
>
> HTH,
> Jürgen




LyX, Songbird, and Mac OS X

2009-06-23 Thread Liz Cademy

Hello!

I am brand new to LaTeX and Lyx. I downloaded them specifically to  
create a book of song lyrics for my daughter.


Details:  Mac OS X 10.4.11 (Tiger) on a PowerBook G4

I am very familiar with the Mac OS, but not with linux or the  
terminal. If the solution to my problem needs me to work in Terminal,  
please be very, very specific.


I am trying to install Songbird. I am following the instructions on  
this wiki page:

http://wiki.lyx.org/Layouts/Songbook#toc4

I downloaded SongbookRelease 4.0, unpacked it, and put it in my ~/ 
application Support/Lyx  folder.  Though it isn't stated in the wiki,  
this seems like the logical place for the files.


I downloaded Songbook_lyx, unpacked it, and also put it in the same   
folder.


I then opened Lyx and chose the Reconfigure menu item. I got a dialog  
that said Lyx was reconfigured (with no details) and to restart Lyx,  
which I did.


I tried opening the Songbook template in Lyx, I get a "The document  
class songbook could not be found ..." dialog.


I noticed that I have the conditionals.sty file, but not the  
songbook.sty file. The wiki shows a download for the songbook.sty  
file, but when I downloaded it (again, into my applications support/ 
lyx folder), I got the exact same error in Lyx, even after  
reconfiguring.



Help, please!

--Liz


Repeating a multi-line equation

2009-06-23 Thread Ben M.
Hi, I'm working on a document that looks like this:

Lots of text
   Multi-line equation #1
More text
   Multi-line equation #2
More text
...
Summary of useful equations:
   Multi-line equation #1
   Multi-line equation #2

Ideally, if I change something, I should only have to change it in one
place.  One approach would be to use math macros.  However, it seems
impossible to insert a multi-line AMS environment inside a math macro.

Probably a better solution would be to insert a cross-reference which
somehow reproduces the original equation.  Anyone know of a package
that does this?

Thanks!

-Ben


Re: LyX, Songbird, and Mac OS X

2009-06-23 Thread BH
On Tue, Jun 23, 2009 at 5:12 PM, Liz Cademy wrote:

> I am trying to install Songbird. I am following the instructions on this
> wiki page:
> http://wiki.lyx.org/Layouts/Songbook#toc4
>
> I downloaded SongbookRelease 4.0, unpacked it, and put it in my
> ~/application Support/Lyx  folder.  Though it isn't stated in the wiki, this
> seems like the logical place for the files.

Songbook is a LaTeX package, and so it belongs in your LaTeX tree. On
Mac, that would be at:

~/Library/texmf/tex/latex

(You can use the Finder to put it there.)

> I downloaded Songbook_lyx, unpacked it, and also put it in the same  folder.

LyX's layout files need to be in the layout folder of your LyX user's
directory. That would be (on Mac):

~/Library/Application Support/LyX-1.6/layouts

Put it there, then reconfigure and restart LyX. That should solve your problems.

BH


Russian hyphenation doesn't work

2009-06-23 Thread D.Zorig
Hi all,

By default LyX doesn't hyphenate Russian language documents.
I tried to include
\usepackage[russian]{babel} in the preamble but still doesn't hyphenate.

By google search I found following article.
http://www.ibiblio.org/sergei/Software/tex.html
There it says

As of v3.6h, Babel has a broken support of Russian in X2(T2). In order for
it to work, you should get a replacement from the *X2(T2)* support macro
distribution. There is a rusbabel/ subdirectory there. Replace Russian
support in the original Babel distribution with those files. You might want
to recreate Babel styles from the gound up or generate Russian support
separately and copy .fd, .def, .sty and other appropriate files into a
directory with a working babel.

Does anyone have idea how to get it work?
For now I'm including
\usepackage[mongolian]{babel} in the preamble to hyphenate Russian words but
everything else becomes Mongolian and it is a bit troublesome.

Kind regards,
Zorigtkhuu Davaanyam