Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Abe Lau
Hi all,
I am wondering what's the difference between Times Roman and Latin Modern
Roman font.

I have read from the mailing list that the Latin Modern Roman (lmodern)
package is preferred over the default Computer Modern Roman.  However, I
can't find any information about Times Roman.

The Times Roman font looks much better on screen and this is the only
difference I could tell from a brief look.  Is there any disadvantage when
compared to Latin Modern Roman?  or is it just a matter of preference?
Thanks,
Abe


Re: Position of chapter heading - left or right page?

2008-08-27 Thread Anthony Campbell
On 26 Aug 2008, Jeremy C. Reed wrote:
 On Mon, 25 Aug 2008, Anthony Campbell wrote:
 
  On 25 Aug 2008, Jeremy C. Reed wrote:
   On Mon, 25 Aug 2008, Anthony Campbell wrote:
   
I'm using the default book category.

The chapter headings come out on the left-hand (even number) page. This
doesn't seem to be usual in any of the books I look at. Is there a way
to make it appear on every page, or alternatively on the right-hand
(odd number) page?
   
   I use fancy headers and I have:
   
   % I want chapter on right odd pages to right side
   % and book title on left even pages to left side
   \fancyhead{}% delete the default header
   \fancyhead[LE]{I put title here}
   \fancyhead[RO]{\leftmark}
  
  This doesn't seem to work for me - perhaps I'm misssing something. Do
  you put it at the beginning of Chapter 1?
  
  This does work:
  
  \pagestyle{myheadings} 
  \markboth{Book title}{chapter title}  
  
  But the code has to be inserted for each chapter and and the correct
  chapter title inserted, so it's only semi-automated.
 
 
 I have it only once -- in my preamble. I am using scrbook and fancy 
 paperpagestyle.


Thanks very much  - yes, it's working for me now! Not sure what was
happening before.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Manveru
2008/8/25 Eran Kaplinsky [EMAIL PROTECTED]:



 Steve Litt
 Sat, 23 Aug 2008 18:43:52 -0700

 Hi all,

 I need your help. It turns out to be a known problem that you can't use
 hyperref with Memoir. However, there's supposedly a fix, known as
 memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
 \usepackage{hyperref}, they can coexist. See this:


 http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
 http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us

 However, when I make a trivial latex file based on the preceding document,
 it fails. Here's the file:

 \documentclass{memoir}
 \usepackage{hyperref}
 \usepackage{memhfixc}
 \usepackage{mempatch}
 \begin{document}
 hello world.
 \end{document}




 Most of my documents are with memoir and hyperref, with no problem. I
 usually have:

 \usepackage{hyperref}

 \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
 urlcolor=black}

 \usepackage{memhfixc}


 But, I tries your document and it works, too ...

Explanation above leads me to suggestion about checking memoir and
hyperref packages versions. Steve, can you compare them with Eran?

-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl


Re: Memoir/hyperref conflict is a known issue PARTIALLY SOLVED

2008-08-27 Thread José Matos
On Tuesday 26 August 2008 09:39:00 José Matos wrote:
 all the packages have the right license (allow us to redistribute and
 modify) with the non-commercial clause (as an example).

Just for correctness sake I should mention that I meant *without* any non-
commercial clause, for example. Any non-commercial clause makes the license 
not free-software and thus non eligible for Fedora.

I think that this was obvious in the original message but I just want to make 
this explicit.

-- 
José Abílio


Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Steve Litt
On Wednesday 27 August 2008 06:20:51 am Manveru wrote:
 2008/8/25 Eran Kaplinsky [EMAIL PROTECTED]:
  Steve Litt
  Sat, 23 Aug 2008 18:43:52 -0700
 
  Hi all,
 
  I need your help. It turns out to be a known problem that you can't use
  hyperref with Memoir. However, there's supposedly a fix, known as
  memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
  \usepackage{hyperref}, they can coexist. See this:
 
 
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/
 2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn
 /2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
 
  However, when I make a trivial latex file based on the preceding
  document, it fails. Here's the file:
 
  \documentclass{memoir}
  \usepackage{hyperref}
  \usepackage{memhfixc}
  \usepackage{mempatch}
  \begin{document}
  hello world.
  \end{document}
 
  Most of my documents are with memoir and hyperref, with no problem. I
  usually have:
 
  \usepackage{hyperref}
 
  \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
  urlcolor=black}
 
  \usepackage{memhfixc}
 
 
  But, I tries your document and it works, too ...

 Explanation above leads me to suggestion about checking memoir and
 hyperref packages versions. Steve, can you compare them with Eran?

Hi Manveru,

Great minds think alike. A few days ago when several people were unable to 
reproduce my bug, I also suspected my Memoir package. The suspicion 
heightened with the discovery that my Memoir package was from 2004. So I 
replaced my Memoir package, compiled memoir.ins, and my symptom went away. 
I'm now able to compile my Memoir-derived Ebook.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Les Denham
On Wednesday 27 August 2008, Abe Lau wrote:
 Hi all,
 I am wondering what's the difference between Times Roman and Latin Modern
 Roman font.

 I have read from the mailing list that the Latin Modern Roman (lmodern)
 package is preferred over the default Computer Modern Roman.  However, I
 can't find any information about Times Roman.

 The Times Roman font looks much better on screen and this is the only
 difference I could tell from a brief look.  Is there any disadvantage when
 compared to Latin Modern Roman?  or is it just a matter of preference?
 Thanks,
 Abe

As Times Roman was originally a newspaper font designed for narrow columns, I 
suspect it is on average slightly narrower than other fonts of the same 
nominal size, to make justification simpler in narrow columns.  This would be 
a disadvantage for a page with a single column, where the larger number of 
characters in the line makes reading more difficult. LaTeX will automatically 
compensate for this by making the default margins wider.  However, most 
people are very much used to Times Roman (and its clones, such as Times New 
Roman) because it is the most common serif font today, so you won't go far 
wrong if you use it.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Bruce Pourciau


On Aug 27, 2008, at 8:44 AM, Les Denham wrote:


On Wednesday 27 August 2008, Abe Lau wrote:

Hi all,
I am wondering what's the difference between Times Roman and Latin  
Modern

Roman font.

I have read from the mailing list that the Latin Modern Roman  
(lmodern)
package is preferred over the default Computer Modern Roman.   
However, I

can't find any information about Times Roman.

The Times Roman font looks much better on screen and this is the only
difference I could tell from a brief look.  Is there any  
disadvantage when
compared to Latin Modern Roman?  or is it just a matter of  
preference?

Thanks,
Abe


As Times Roman was originally a newspaper font designed for narrow  
columns, I
suspect it is on average slightly narrower than other fonts of the  
same
nominal size, to make justification simpler in narrow columns.   
This would be
a disadvantage for a page with a single column, where the larger  
number of
characters in the line makes reading more difficult. LaTeX will  
automatically
compensate for this by making the default margins wider.  However,  
most
people are very much used to Times Roman (and its clones, such as  
Times New
Roman) because it is the most common serif font today, so you won't  
go far

wrong if you use it.

--
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



On the other hand, The Elements of Typographic Style by Robert  
Bringhurst, the current bible for serious typographers, in its list  
of favorite typefaces with commentaries, does not even include Times  
Roman! This is certainly damnation by omission. As Les points out,  
Times Roman was designed as a newspaper typeface, so it would be  
readable in narrow columns. This hardly would be expected to produce  
the best looking face for normal work. On the other hand, Palatino,  
for example, was designed by Herman Zapf, one of the great type  
designers, and it is available (in LyX document settings) with small  
caps, old style numerals, and mathematical symbols that blend.


Bruce


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread G. Milde
On 27.08.08, Bruce Pourciau wrote:
 On Aug 27, 2008, at 8:44 AM, Les Denham wrote:
 On Wednesday 27 August 2008, Abe Lau wrote:
 Hi all, I am wondering what's the difference between Times Roman and
 Latin Modern Roman font.

 I have read from the mailing list that the Latin Modern Roman 
 (lmodern) package is preferred over the default Computer Modern
 Roman. 

Latin Modern can be thought of as the successor of Computer Modern.
It is a reimplementation as outline font. It covers a wide range of
characters and symbols including true small caps and fits well with
the mathematical fonts used by LaTeX (which might be a problem for
any other font).

OTOH, I find the Latin Modern fonts too light in print (if printed
with a laser printer) and not very nice for on-screen rendering.

 The Times Roman font looks much better on screen and this is the only
 difference I could tell from a brief look.

For on-screen viewing (e.g. of generated PDF) I'd recommend the Vera
family (Bera Serif in the DocumentSettings).

Günter


Please help a newbie with APA citation style in LyX

2008-08-27 Thread squidy

Hello I am very new to this ...

I'm using LyX 1.5.5 in Windows XP.
I'm using JabRef 2.3.1 to manage my bibliography.
I'm using the document class 'article' and have bibliography set to Natbib
author-year.

Here's my problem,
I have written my Master's Thesis in the document class article but I am
required to format my references according to APA manual, 5th edition. I
have tried the packages called apalike and apalike2, these work but they get
it almost but not quite right, (volume numbers aren't emphasised and inbook
references are incorrectly formatted).

I saw in this forum that there is a package called apacite, I have installed
this in MikTeX, however I can't get it to work. When I compile the document
I get an error message which says LyX LaTeX error - Undefined control
sequence, repeated many times! This also happens on my computer at home
where I'm running v. 1.5.3 in Ubuntu HH. 

Can anyone help with this? I don't want to go back to using MS Word :(
Thank you


-- 
View this message in context: 
http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Les Denham wrote:


However, most people are very much used to Times Roman (and its clones,
such as Times New Roman) because it is the most common serif font today,
so you won't go far wrong if you use it.


  Yes you will. It's the most common because it's the Microsoft default.
Period.

  Typefaces have subtle and subconscious effects on the reader. Pick a
typeface that implies professionalism (if that's the impression you want to
make) and use that. My default typeface is Palatino. It's a combination of
traditional and modern and always evokes a positive response.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Bruce Pourciau wrote:


On the other hand, The Elements of Typographic Style by Robert Bringhurst,
the current bible for serious typographers, in its list of favorite
typefaces with commentaries, does not even include Times Roman! This is
certainly damnation by omission. As Les points out, Times Roman was
designed as a newspaper typeface, so it would be readable in narrow
columns. This hardly would be expected to produce the best looking face
for normal work. On the other hand, Palatino, for example, was designed by
Herman Zapf, one of the great type designers, and it is available (in LyX
document settings) with small caps, old style numerals, and mathematical
symbols that blend.


Bruce,

  Palatino is my default typeface. Now if it only had the \textservicemark
symbol built in it would be fully complete. :-)

  And I'll second the recommendation for Bringhurst's book. It's worth
reading just to appreciate the subtle differences among the hundreds of
available designs.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Fwd: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread William Adams

I'd thought this had gone to the list

Begin forwarded message:


On Aug 27, 2008, at 9:44 AM, Les Denham wrote:


However, most
people are very much used to Times Roman (and its clones, such as  
Times New

Roman)



\begin{typographichistorynitpicking}

Actually, Monotype's Times New Roman is the original, while  
Linotype's Times Roman is the clone --- see Walter Tracy's _Letters  
of Credit_ for the beginnings of the back story on this and an  
article in APHA's journal (sorry, can't recall the details) for the  
balance of what's been made known beyond the ``gentlemen's  
agreement'' to hide the back room dealings.


\end{typographichistorynitpicking}


--
William Adams
senior graphic designer
Fry Communications




Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Paul A. Rubin

Rich Shepard wrote:



  Typefaces have subtle and subconscious effects on the reader. Pick a
typeface that implies professionalism (if that's the impression you want to
make) and use that. My default typeface is Palatino. It's a combination of
traditional and modern and always evokes a positive response.


So you're saying that if I hand out grades printed in Palatino, I won't 
get the usual bitching and moaning?




Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread Bob Lounsbury
On Wed, Aug 27, 2008 at 9:12 AM, squidy [EMAIL PROTECTED] wrote:

 Hello I am very new to this ...

 I'm using LyX 1.5.5 in Windows XP.
 I'm using JabRef 2.3.1 to manage my bibliography.
 I'm using the document class 'article' and have bibliography set to Natbib
 author-year.

 Here's my problem,
 I have written my Master's Thesis in the document class article but I am
 required to format my references according to APA manual, 5th edition. I
 have tried the packages called apalike and apalike2, these work but they get
 it almost but not quite right, (volume numbers aren't emphasised and inbook
 references are incorrectly formatted).

 I saw in this forum that there is a package called apacite, I have installed
 this in MikTeX, however I can't get it to work. When I compile the document
 I get an error message which says LyX LaTeX error - Undefined control
 sequence, repeated many times! This also happens on my computer at home
 where I'm running v. 1.5.3 in Ubuntu HH.

 Can anyone help with this? I don't want to go back to using MS Word :(
 Thank you


 --
 View this message in context: 
 http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
 Sent from the LyX - Users mailing list archive at Nabble.com.



There is a package conflict between apacite and Natbib. Please read
through the apacite documentation and specifically the Natbib section:

http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf

It seems that apacite needs to be loaded before Natbib, but because of
the LyX document settings Natbib will be loaded first. So, the real
question to post to the list is how do you load apacite before Natbib?
Which I don't know.

Cheers,
/Bob


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Bruce Pourciau


On Aug 27, 2008, at 10:50 AM, Paul A. Rubin wrote:


Rich Shepard wrote:

  Typefaces have subtle and subconscious effects on the reader.  
Pick a
typeface that implies professionalism (if that's the impression  
you want to
make) and use that. My default typeface is Palatino. It's a  
combination of

traditional and modern and always evokes a positive response.


So you're saying that if I hand out grades printed in Palatino, I  
won't get the usual bitching and moaning?





Indeed, careful randomized, double-blind studies have shown that  
grades handed out in Palatino, or for that metter any typeface  
designed by Zapf (like Aldus, Melior, Renaissance, or even Optima),  
induces a spike in endorphins that masks the pain usually associated  
with low marks. Not sure what journal this appeared in, though.


Fwd: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread William Adams
Eventually, I'll get in the habit of checking the distribution before  
clicking ``Send''


Begin forwarded message:

On Aug 27, 2008, at 10:27 AM, Bruce Pourciau wrote:

Palatino, for example, was designed by Herman Zapf, one of the  
great type designers, and it is available (in LyX document  
settings) with small caps, old style numerals, and mathematical  
symbols that blend.



For Times there's also mathptmx which is quite usable, as well as  
the nascent Stix fonts http://www.stixfonts.org/ or MathTime  
Professional which is well worth the investment if one needs it but  
can't wait for Stix.


--
William Adams
senior graphic designer
Fry Communications




Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Daniel Lohmann

Hi,

I just discovered a feature of the listings inset that actually  
should be considered as a bug: Additional options given on the  
advanced page are implicitly sorted alphabetically. However, if using  
listing styles, the order of options is relevant. Consider the  
following example:


In my preamble, I have defined a custom listings style:

  \lstdefinestyle{acstyle}{
...   % many, many  settings
mathescape=true 
  }

Now I want to apply this style, but set mathescape to false. So I type  
in the Advanced settings of the inset:


style=acstyle
mathescape=false

However, when I press Apply, LyX immediately sorts the options  
alphabetically,  which results in:


mathescape=false
style=acstyle

And hence, the mathescape=true  from the style wins :-(


IMHO this problem also shows a more general issue: When combining main  
settings and advanced settings, the order of application remains  
unclear. It seems that the same sorting rules apply here, which might  
as well yield surprising effects.


The best possible solution for this problem I can imagine would be:

  (a) to not sort options, but respect their order; and
  (b) to reflect all main settings on the Advanced page as well.

The idea behind (b) works as follows: When I activate an option in the  
Main Settings, its string representation is automatically added to  
the end of the advanced settings; when I deactivate it, it is removed.  
When I manually add an option in the advanced settings for which a  
checkbox exists in the main settings, the checkbox is activated.


Thereby,  *all* settings become visible and editable on the Advanced  
page, on which they can (because of (a)) be ordered in whatever order  
the user prefers.


However, just implementing (a) would already be a suitable workaround  
for most cases.


Daniel


Re: Conforming to a style manal

2008-08-27 Thread Richard Heck

Louis A. Turk wrote:

This is my first post. I'm using the memoir class to set type for a
book. I would like to make a few changes that I think are going to
require changes to a file someplace. I want to make the changes just
once, so that everyone in our office can get the same results
(uniformity) without having to know LaTeX. Here are the needed changes:

  
The easiest way to do this is going to be to create your own layout file 
that will automatically include the needed customizations in the 
document preamble. Layout files are detailed in the LyX customization 
manual. Yours can start like this:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[memoir]{Our Book (Memoir)}
Format 4
Input memoir.layout

Preamble
#Most of you customizations will go here
EndPreamble

1. CHANGES TO THE TITLE

We want to use the demo3 title style used in the Memoir Manual
(memman.pdf) on page 147-148.

  

For this, you just to to include:
   \chapterstyle{demo3}
in the Preamble/EndPreamble part of the layout file. That's where most 
of this stuff will go. You'll end up with one



2. CHANGES TO PAGE HEADERS

We want to modify the default header in the following manner:

   --- Place a rule across the page under it.
   --- Make the font slightly smaller and boldfaced.

  
Figure out how to create this using the memoir customization (section 
11.3), and then put it all in the Preamble/EndPreamble block. To make 
them accessible from LyX, you might need to redefine the headings style 
or something like that. LyX doesn't know about arbitrary page styles.



3. CHANGES TO THE QUOTE PARAGRAPH STYLE

   --- Do not want the right margin indented.
   --- Use a different, smaller font.

  

Something like:
\renewenvironment{quote}
{\small\list{}{}%
\item[]}
{\endlist}
in the Preamble. Note that I've just stolen and then modified what's in 
memoir.cls.



4. CHANGES TO THE TITLE AND SECTION HEADERS

   --- Use a sans serif font.

  
Do you mean in LyX or in the output? The font used in the output is 
controlled by memoir.cls, and the default chapter style does precisely 
what you say here:



Concerning fonts, I was surprised that my installation of Lyx (version
1.5.5) does not use a sans serif font at all when printing a page, in
spite of the fact that in document/fonts I have 


Default Family: Roman
Roman : Latin Modern Roman
Sans Serif: Latin Modern Sans
Typewriter: Latin Modern Typewriter

Instead Lyx uses the exact same serif font in the exact same size for
both Standard and Quote paragraph styles. The same serif font (but sized
bigger) is also used for chapter titles and section headers. This
doesn't seem right to me. Have I not set Lyx up properly?

  
As I said, memoir.cls controls the output, not LyX. If you use a 
different chapter style, then you'll see a sans serif font, or whatever.


If you want to change how it looks in LyX, you can do that, too, in the 
layout file, thus:

Style Chapter
   Font
  Family Sans
   EndFont
End
You can do whatever else you want to do, too.

On title pages, see here: http://wiki.lyx.org/LyX/UsingMemoirInLyX#toc5.

rh



Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread quiddity
Thank you to Zan and Bob for very quick replies! They haven't shown up
directly on the forum - is this usual?

I have managed to solve the captalisation problem with curly brackets in
Jabref, so thanks for that tip! I guess I might get away with the lack of
emphasis for the volume no., as it's such a small detail.

I shall make another request for help to see if anyone knows a way around
the natbib/apacite incompatibility problem.

Thanks again

2008/8/27 Bob Lounsbury [EMAIL PROTECTED]

 On Wed, Aug 27, 2008 at 9:12 AM, squidy [EMAIL PROTECTED] wrote:
 
  Hello I am very new to this ...
 
  I'm using LyX 1.5.5 in Windows XP.
  I'm using JabRef 2.3.1 to manage my bibliography.
  I'm using the document class 'article' and have bibliography set to
 Natbib
  author-year.
 
  Here's my problem,
  I have written my Master's Thesis in the document class article but I am
  required to format my references according to APA manual, 5th edition. I
  have tried the packages called apalike and apalike2, these work but they
 get
  it almost but not quite right, (volume numbers aren't emphasised and
 inbook
  references are incorrectly formatted).
 
  I saw in this forum that there is a package called apacite, I have
 installed
  this in MikTeX, however I can't get it to work. When I compile the
 document
  I get an error message which says LyX LaTeX error - Undefined control
  sequence, repeated many times! This also happens on my computer at home
  where I'm running v. 1.5.3 in Ubuntu HH.
 
  Can anyone help with this? I don't want to go back to using MS Word :(
  Thank you
 
 
  --
  View this message in context:
 http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
  Sent from the LyX - Users mailing list archive at Nabble.com.
 
 

 There is a package conflict between apacite and Natbib. Please read
 through the apacite documentation and specifically the Natbib section:

 http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf

 It seems that apacite needs to be loaded before Natbib, but because of
 the LyX document settings Natbib will be loaded first. So, the real
 question to post to the list is how do you load apacite before Natbib?
 Which I don't know.

 Cheers,
 /Bob



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Paul A. Rubin wrote:


So you're saying that if I hand out grades printed in Palatino, I won't
get the usual bitching and moaning?


  That's correct. They will be more polite and mature and ask for cheese
with their whine.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Georg Baum
Daniel Lohmann wrote:

 Hi,
 
 I just discovered a feature of the listings inset that actually
 should be considered as a bug: Additional options given on the
 advanced page are implicitly sorted alphabetically. However, if using
 listing styles, the order of options is relevant. Consider the
 following example:

Yep, this is a known bug, caused by the manner how the parameters are
stored: http://bugzilla.lyx.org/show_bug.cgi?id=4884

Maybe you just add your suggestions there?


Georg



Avoiding formula breaking in multicolumnar enumerate?

2008-08-27 Thread Paul Smith
Dear All,

Consider the attached example. How can one move the item 10 to the
left in order to avoid the formula breaking?

Thanks in advance,

Paul


example.lyx
Description: application/lyx


Help with importing a latex file generated from texmacs

2008-08-27 Thread Marc Mertens
Hello,

 I'm considering to switch from texmacs to lyx but I don't want to loose 
my old documents, to this end I tried to export my documents from texmacs to 
latex format and use the import function of lyx to import it in .lyx format. 
I I do this then I see that macros that are added by texmacs to the latex 
file are not used in lyx, having as effect that texmacs theorem, 
proposition , enumerations etc .. are not rendered correctly when I view them 
in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file 
from texmacs then everything is rendered in the correct way. 
   Is there a way to import latex files containing macros in lyx (more 
specifically latex generated by texmacs).
   I have added as a attachments a very simple latex file generated from 
texmacs and the file produced by importing it in lyx.

Thanks a lot for any help in advance

Marc Mertens


test.lyx
Description: application/lyx
\documentclass{letter}
\usepackage{amssymb,enumerate}

%% Start TeXmacs macros
\newenvironment{enumeratenumeric}{\begin{enumerate}[1.] }{\end{enumerate}}
\newenvironment{proof}{\noindent\textbf{Proof\ }}{\hspace*{\fill}$\Box$\medskip}
\newtheorem{proposition}{Proposition}
\newtheorem{theorem}{Theorem}
%% End TeXmacs macros

\begin{document}

\begin{theorem}
  This is a test of the conversion of texmacs to lyx
  
  \begin{proof}
Ok
  \end{proof}
\end{theorem}

\begin{proposition}
  This is a proposition
\end{proposition}
\begin{enumeratenumeric}
  \item One
  
  \item Two
\end{enumeratenumeric}

\end{document}


Re: Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Daniel Lohmann


On 27.08.2008, at 19:59, Georg Baum wrote:


Daniel Lohmann wrote:


Hi,

I just discovered a feature of the listings inset that actually
should be considered as a bug: Additional options given on the
advanced page are implicitly sorted alphabetically. However, if using
listing styles, the order of options is relevant. Consider the
following example:


Yep, this is a known bug, caused by the manner how the parameters are
stored: http://bugzilla.lyx.org/show_bug.cgi?id=4884

Maybe you just add your suggestions there?



Thanks Georg,

Are you sure?

Actually, I had searched  bugzilla and found bug 4884 before asking on  
the list, but to me it does not really describe the problem of  
sorting. Now after re-reading the entry I  see that it is somewhat  
related, but that is not really obvious.


If you prefer I will add my suggestions there, otherwise I would open  
a new bug (with a reference to 4884).


Daniel



Re: Help with importing a latex file generated from texmacs

2008-08-27 Thread rgheck

Marc Mertens wrote:

Hello,

 I'm considering to switch from texmacs to lyx but I don't want to loose 
my old documents, to this end I tried to export my documents from texmacs to 
latex format and use the import function of lyx to import it in .lyx format. 
I I do this then I see that macros that are added by texmacs to the latex 
file are not used in lyx, having as effect that texmacs theorem, 
proposition , enumerations etc .. are not rendered correctly when I view them 
in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file 
from texmacs then everything is rendered in the correct way. 

  
Right. The conversion is done by a program tex2lyx that does not 
recognize the environments you are using. The things it does recognize 
are detailed in the manpage for the program.


   Is there a way to import latex files containing macros in lyx (more 
specifically latex generated by texmacs).


  

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to 
write some kind of program that does the conversion. This is not as hard 
as it sounds, if you have any programming experience at all. The lyx 
file format is pretty simple, really. In your case, it's a matter of 
replacing bits that look like this:


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
begin{theorem}
\end_layout

\end_inset

with bits that look like this:

\begin_layout Theorem

and so forth. You could do this with sed, perl, python, whatever. It's 
messy and would take a bit, but once you had the filter written, it'd be 
easy to reuse it. And other people might even benefit, if you posted it 
on the wiki, and write it in a way that makes it extensible. (E.g., 
don't hardcode the theorem--Theorem bit, but use some sort of 
associative array.)


That said, you will then have another issue, namely, that LyX may not 
know about some of the environments you are using. This will depend upon 
what document class you are using. LyX's article class, for example, 
does not know about theorem and proof environments. But you could just 
create a myarticle.layout class and include amsmaths.inc. This will be 
easier in 1.6, because of the introduction of layout modules. Even then, 
you would need to write your own layout for the enumeratenumeric 
environment, or else just change these to enumerate and fix the numeric 
bit some other way.


Lots of us here have experience with this sort of thing. And are 
prepared to help.


rh



Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread Bob Lounsbury
On Wed, Aug 27, 2008 at 10:54 AM, quiddity [EMAIL PROTECTED] wrote:
 Thank you to Zan and Bob for very quick replies! They haven't shown up
 directly on the forum - is this usual?

 I have managed to solve the captalisation problem with curly brackets in
 Jabref, so thanks for that tip! I guess I might get away with the lack of
 emphasis for the volume no., as it's such a small detail.

 I shall make another request for help to see if anyone knows a way around
 the natbib/apacite incompatibility problem.

 Thanks again

An ugly workaround, IF, you only need to use the \cite command would
be to change the bibliography setting back to Default (numerical) from
Natbib. Then put (in your preamble):

\usepackage(apacite)
\usepackage[authoryear]{natbib}

Otherwise, if you need to use something other than \cite, you'd have
to use ERT rather than the LyX dialog to insert bibliography
citations. But, if you just need to do this for one paper it may not
be a bad way to go. It does work, it's just not pretty.

/Bob


Re: Help with importing a latex file generated from texmacs

2008-08-27 Thread rgheck

rgheck wrote:

Marc Mertens wrote:

Hello,

 I'm considering to switch from texmacs to lyx but I don't want 
to loose my old documents, to this end I tried to export my documents 
from texmacs to latex format and use the import function of lyx to 
import it in .lyx format. I I do this then I see that macros that are 
added by texmacs to the latex file are not used in lyx, having as 
effect that texmacs theorem, proposition , enumerations etc .. are 
not rendered correctly when I view them in lyx. If I use 'latex' to 
generate a .dvi file from the exported .tex file from texmacs then 
everything is rendered in the correct way.
  
Right. The conversion is done by a program tex2lyx that does not 
recognize the environments you are using. The things it does recognize 
are detailed in the manpage for the program.


   Is there a way to import latex files containing macros in lyx 
(more specifically latex generated by texmacs).


  

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to 
write some kind of program that does the conversion.


Actually, there is a bit more you can do here. If you change the 
document class from letter to amsbook, say, then LyX will convert the 
proof environment: This is because amsbook defines that environment, so 
LyX knows about it. Similarly, if you change theorem to thm---which 
is how it is done in amsmath.inc---then LyX will also convert that. Same 
goes for proposition -- prop. So that's another option.


rh



Re: Any words of wisdom switching from 1.4.2 to 1.5.6?

2008-08-27 Thread Pavel Sanda
 On Saturday 23 August 2008 06:40:32 am killermike wrote:
  Steve Litt wrote:
   I have one book written in stone age LyX in 2001, using Dekl Tsur's color
   character style workaround. It's been upgraded to 1.4.2, and compiles on
   1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in
  
  
   1.5.6. But it has to be done :-)
 
  Would it be worth waiting for 1.6? 
 
 Definitely not. There's a high probability that 1.6 will require a Qt version 
 higher than what my distribution gives me, requiring a HUGE expenditure of 
 effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 
 2007. I've had this problem several times.

hi Steeve, just for clarification, for LyX 1.6 Qt 4.2.2 is needed, so i guess
you dont need to upgrade anything.

pavel


Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Abe Lau
Hi all,
I am wondering what's the difference between Times Roman and Latin Modern
Roman font.

I have read from the mailing list that the Latin Modern Roman (lmodern)
package is preferred over the default Computer Modern Roman.  However, I
can't find any information about Times Roman.

The Times Roman font looks much better on screen and this is the only
difference I could tell from a brief look.  Is there any disadvantage when
compared to Latin Modern Roman?  or is it just a matter of preference?
Thanks,
Abe


Re: Position of chapter heading - left or right page?

2008-08-27 Thread Anthony Campbell
On 26 Aug 2008, Jeremy C. Reed wrote:
 On Mon, 25 Aug 2008, Anthony Campbell wrote:
 
  On 25 Aug 2008, Jeremy C. Reed wrote:
   On Mon, 25 Aug 2008, Anthony Campbell wrote:
   
I'm using the default book category.

The chapter headings come out on the left-hand (even number) page. This
doesn't seem to be usual in any of the books I look at. Is there a way
to make it appear on every page, or alternatively on the right-hand
(odd number) page?
   
   I use fancy headers and I have:
   
   % I want chapter on right odd pages to right side
   % and book title on left even pages to left side
   \fancyhead{}% delete the default header
   \fancyhead[LE]{I put title here}
   \fancyhead[RO]{\leftmark}
  
  This doesn't seem to work for me - perhaps I'm misssing something. Do
  you put it at the beginning of Chapter 1?
  
  This does work:
  
  \pagestyle{myheadings} 
  \markboth{Book title}{chapter title}  
  
  But the code has to be inserted for each chapter and and the correct
  chapter title inserted, so it's only semi-automated.
 
 
 I have it only once -- in my preamble. I am using scrbook and fancy 
 paperpagestyle.


Thanks very much  - yes, it's working for me now! Not sure what was
happening before.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Manveru
2008/8/25 Eran Kaplinsky [EMAIL PROTECTED]:



 Steve Litt
 Sat, 23 Aug 2008 18:43:52 -0700

 Hi all,

 I need your help. It turns out to be a known problem that you can't use
 hyperref with Memoir. However, there's supposedly a fix, known as
 memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
 \usepackage{hyperref}, they can coexist. See this:


 http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
 http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us

 However, when I make a trivial latex file based on the preceding document,
 it fails. Here's the file:

 \documentclass{memoir}
 \usepackage{hyperref}
 \usepackage{memhfixc}
 \usepackage{mempatch}
 \begin{document}
 hello world.
 \end{document}




 Most of my documents are with memoir and hyperref, with no problem. I
 usually have:

 \usepackage{hyperref}

 \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
 urlcolor=black}

 \usepackage{memhfixc}


 But, I tries your document and it works, too ...

Explanation above leads me to suggestion about checking memoir and
hyperref packages versions. Steve, can you compare them with Eran?

-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl


Re: Memoir/hyperref conflict is a known issue PARTIALLY SOLVED

2008-08-27 Thread José Matos
On Tuesday 26 August 2008 09:39:00 José Matos wrote:
 all the packages have the right license (allow us to redistribute and
 modify) with the non-commercial clause (as an example).

Just for correctness sake I should mention that I meant *without* any non-
commercial clause, for example. Any non-commercial clause makes the license 
not free-software and thus non eligible for Fedora.

I think that this was obvious in the original message but I just want to make 
this explicit.

-- 
José Abílio


Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Steve Litt
On Wednesday 27 August 2008 06:20:51 am Manveru wrote:
 2008/8/25 Eran Kaplinsky [EMAIL PROTECTED]:
  Steve Litt
  Sat, 23 Aug 2008 18:43:52 -0700
 
  Hi all,
 
  I need your help. It turns out to be a known problem that you can't use
  hyperref with Memoir. However, there's supposedly a fix, known as
  memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
  \usepackage{hyperref}, they can coexist. See this:
 
 
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/
 2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
  http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn
 /2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdfhl=enct=clnkcd=3gl=us
 
  However, when I make a trivial latex file based on the preceding
  document, it fails. Here's the file:
 
  \documentclass{memoir}
  \usepackage{hyperref}
  \usepackage{memhfixc}
  \usepackage{mempatch}
  \begin{document}
  hello world.
  \end{document}
 
  Most of my documents are with memoir and hyperref, with no problem. I
  usually have:
 
  \usepackage{hyperref}
 
  \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
  urlcolor=black}
 
  \usepackage{memhfixc}
 
 
  But, I tries your document and it works, too ...

 Explanation above leads me to suggestion about checking memoir and
 hyperref packages versions. Steve, can you compare them with Eran?

Hi Manveru,

Great minds think alike. A few days ago when several people were unable to 
reproduce my bug, I also suspected my Memoir package. The suspicion 
heightened with the discovery that my Memoir package was from 2004. So I 
replaced my Memoir package, compiled memoir.ins, and my symptom went away. 
I'm now able to compile my Memoir-derived Ebook.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Les Denham
On Wednesday 27 August 2008, Abe Lau wrote:
 Hi all,
 I am wondering what's the difference between Times Roman and Latin Modern
 Roman font.

 I have read from the mailing list that the Latin Modern Roman (lmodern)
 package is preferred over the default Computer Modern Roman.  However, I
 can't find any information about Times Roman.

 The Times Roman font looks much better on screen and this is the only
 difference I could tell from a brief look.  Is there any disadvantage when
 compared to Latin Modern Roman?  or is it just a matter of preference?
 Thanks,
 Abe

As Times Roman was originally a newspaper font designed for narrow columns, I 
suspect it is on average slightly narrower than other fonts of the same 
nominal size, to make justification simpler in narrow columns.  This would be 
a disadvantage for a page with a single column, where the larger number of 
characters in the line makes reading more difficult. LaTeX will automatically 
compensate for this by making the default margins wider.  However, most 
people are very much used to Times Roman (and its clones, such as Times New 
Roman) because it is the most common serif font today, so you won't go far 
wrong if you use it.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Bruce Pourciau


On Aug 27, 2008, at 8:44 AM, Les Denham wrote:


On Wednesday 27 August 2008, Abe Lau wrote:

Hi all,
I am wondering what's the difference between Times Roman and Latin  
Modern

Roman font.

I have read from the mailing list that the Latin Modern Roman  
(lmodern)
package is preferred over the default Computer Modern Roman.   
However, I

can't find any information about Times Roman.

The Times Roman font looks much better on screen and this is the only
difference I could tell from a brief look.  Is there any  
disadvantage when
compared to Latin Modern Roman?  or is it just a matter of  
preference?

Thanks,
Abe


As Times Roman was originally a newspaper font designed for narrow  
columns, I
suspect it is on average slightly narrower than other fonts of the  
same
nominal size, to make justification simpler in narrow columns.   
This would be
a disadvantage for a page with a single column, where the larger  
number of
characters in the line makes reading more difficult. LaTeX will  
automatically
compensate for this by making the default margins wider.  However,  
most
people are very much used to Times Roman (and its clones, such as  
Times New
Roman) because it is the most common serif font today, so you won't  
go far

wrong if you use it.

--
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



On the other hand, The Elements of Typographic Style by Robert  
Bringhurst, the current bible for serious typographers, in its list  
of favorite typefaces with commentaries, does not even include Times  
Roman! This is certainly damnation by omission. As Les points out,  
Times Roman was designed as a newspaper typeface, so it would be  
readable in narrow columns. This hardly would be expected to produce  
the best looking face for normal work. On the other hand, Palatino,  
for example, was designed by Herman Zapf, one of the great type  
designers, and it is available (in LyX document settings) with small  
caps, old style numerals, and mathematical symbols that blend.


Bruce


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread G. Milde
On 27.08.08, Bruce Pourciau wrote:
 On Aug 27, 2008, at 8:44 AM, Les Denham wrote:
 On Wednesday 27 August 2008, Abe Lau wrote:
 Hi all, I am wondering what's the difference between Times Roman and
 Latin Modern Roman font.

 I have read from the mailing list that the Latin Modern Roman 
 (lmodern) package is preferred over the default Computer Modern
 Roman. 

Latin Modern can be thought of as the successor of Computer Modern.
It is a reimplementation as outline font. It covers a wide range of
characters and symbols including true small caps and fits well with
the mathematical fonts used by LaTeX (which might be a problem for
any other font).

OTOH, I find the Latin Modern fonts too light in print (if printed
with a laser printer) and not very nice for on-screen rendering.

 The Times Roman font looks much better on screen and this is the only
 difference I could tell from a brief look.

For on-screen viewing (e.g. of generated PDF) I'd recommend the Vera
family (Bera Serif in the DocumentSettings).

Günter


Please help a newbie with APA citation style in LyX

2008-08-27 Thread squidy

Hello I am very new to this ...

I'm using LyX 1.5.5 in Windows XP.
I'm using JabRef 2.3.1 to manage my bibliography.
I'm using the document class 'article' and have bibliography set to Natbib
author-year.

Here's my problem,
I have written my Master's Thesis in the document class article but I am
required to format my references according to APA manual, 5th edition. I
have tried the packages called apalike and apalike2, these work but they get
it almost but not quite right, (volume numbers aren't emphasised and inbook
references are incorrectly formatted).

I saw in this forum that there is a package called apacite, I have installed
this in MikTeX, however I can't get it to work. When I compile the document
I get an error message which says LyX LaTeX error - Undefined control
sequence, repeated many times! This also happens on my computer at home
where I'm running v. 1.5.3 in Ubuntu HH. 

Can anyone help with this? I don't want to go back to using MS Word :(
Thank you


-- 
View this message in context: 
http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Les Denham wrote:


However, most people are very much used to Times Roman (and its clones,
such as Times New Roman) because it is the most common serif font today,
so you won't go far wrong if you use it.


  Yes you will. It's the most common because it's the Microsoft default.
Period.

  Typefaces have subtle and subconscious effects on the reader. Pick a
typeface that implies professionalism (if that's the impression you want to
make) and use that. My default typeface is Palatino. It's a combination of
traditional and modern and always evokes a positive response.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Bruce Pourciau wrote:


On the other hand, The Elements of Typographic Style by Robert Bringhurst,
the current bible for serious typographers, in its list of favorite
typefaces with commentaries, does not even include Times Roman! This is
certainly damnation by omission. As Les points out, Times Roman was
designed as a newspaper typeface, so it would be readable in narrow
columns. This hardly would be expected to produce the best looking face
for normal work. On the other hand, Palatino, for example, was designed by
Herman Zapf, one of the great type designers, and it is available (in LyX
document settings) with small caps, old style numerals, and mathematical
symbols that blend.


Bruce,

  Palatino is my default typeface. Now if it only had the \textservicemark
symbol built in it would be fully complete. :-)

  And I'll second the recommendation for Bringhurst's book. It's worth
reading just to appreciate the subtle differences among the hundreds of
available designs.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Fwd: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread William Adams

I'd thought this had gone to the list

Begin forwarded message:


On Aug 27, 2008, at 9:44 AM, Les Denham wrote:


However, most
people are very much used to Times Roman (and its clones, such as  
Times New

Roman)



\begin{typographichistorynitpicking}

Actually, Monotype's Times New Roman is the original, while  
Linotype's Times Roman is the clone --- see Walter Tracy's _Letters  
of Credit_ for the beginnings of the back story on this and an  
article in APHA's journal (sorry, can't recall the details) for the  
balance of what's been made known beyond the ``gentlemen's  
agreement'' to hide the back room dealings.


\end{typographichistorynitpicking}


--
William Adams
senior graphic designer
Fry Communications




Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Paul A. Rubin

Rich Shepard wrote:



  Typefaces have subtle and subconscious effects on the reader. Pick a
typeface that implies professionalism (if that's the impression you want to
make) and use that. My default typeface is Palatino. It's a combination of
traditional and modern and always evokes a positive response.


So you're saying that if I hand out grades printed in Palatino, I won't 
get the usual bitching and moaning?




Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread Bob Lounsbury
On Wed, Aug 27, 2008 at 9:12 AM, squidy [EMAIL PROTECTED] wrote:

 Hello I am very new to this ...

 I'm using LyX 1.5.5 in Windows XP.
 I'm using JabRef 2.3.1 to manage my bibliography.
 I'm using the document class 'article' and have bibliography set to Natbib
 author-year.

 Here's my problem,
 I have written my Master's Thesis in the document class article but I am
 required to format my references according to APA manual, 5th edition. I
 have tried the packages called apalike and apalike2, these work but they get
 it almost but not quite right, (volume numbers aren't emphasised and inbook
 references are incorrectly formatted).

 I saw in this forum that there is a package called apacite, I have installed
 this in MikTeX, however I can't get it to work. When I compile the document
 I get an error message which says LyX LaTeX error - Undefined control
 sequence, repeated many times! This also happens on my computer at home
 where I'm running v. 1.5.3 in Ubuntu HH.

 Can anyone help with this? I don't want to go back to using MS Word :(
 Thank you


 --
 View this message in context: 
 http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
 Sent from the LyX - Users mailing list archive at Nabble.com.



There is a package conflict between apacite and Natbib. Please read
through the apacite documentation and specifically the Natbib section:

http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf

It seems that apacite needs to be loaded before Natbib, but because of
the LyX document settings Natbib will be loaded first. So, the real
question to post to the list is how do you load apacite before Natbib?
Which I don't know.

Cheers,
/Bob


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Bruce Pourciau


On Aug 27, 2008, at 10:50 AM, Paul A. Rubin wrote:


Rich Shepard wrote:

  Typefaces have subtle and subconscious effects on the reader.  
Pick a
typeface that implies professionalism (if that's the impression  
you want to
make) and use that. My default typeface is Palatino. It's a  
combination of

traditional and modern and always evokes a positive response.


So you're saying that if I hand out grades printed in Palatino, I  
won't get the usual bitching and moaning?





Indeed, careful randomized, double-blind studies have shown that  
grades handed out in Palatino, or for that metter any typeface  
designed by Zapf (like Aldus, Melior, Renaissance, or even Optima),  
induces a spike in endorphins that masks the pain usually associated  
with low marks. Not sure what journal this appeared in, though.


Fwd: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread William Adams
Eventually, I'll get in the habit of checking the distribution before  
clicking ``Send''


Begin forwarded message:

On Aug 27, 2008, at 10:27 AM, Bruce Pourciau wrote:

Palatino, for example, was designed by Herman Zapf, one of the  
great type designers, and it is available (in LyX document  
settings) with small caps, old style numerals, and mathematical  
symbols that blend.



For Times there's also mathptmx which is quite usable, as well as  
the nascent Stix fonts http://www.stixfonts.org/ or MathTime  
Professional which is well worth the investment if one needs it but  
can't wait for Stix.


--
William Adams
senior graphic designer
Fry Communications




Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Daniel Lohmann

Hi,

I just discovered a feature of the listings inset that actually  
should be considered as a bug: Additional options given on the  
advanced page are implicitly sorted alphabetically. However, if using  
listing styles, the order of options is relevant. Consider the  
following example:


In my preamble, I have defined a custom listings style:

  \lstdefinestyle{acstyle}{
...   % many, many  settings
mathescape=true 
  }

Now I want to apply this style, but set mathescape to false. So I type  
in the Advanced settings of the inset:


style=acstyle
mathescape=false

However, when I press Apply, LyX immediately sorts the options  
alphabetically,  which results in:


mathescape=false
style=acstyle

And hence, the mathescape=true  from the style wins :-(


IMHO this problem also shows a more general issue: When combining main  
settings and advanced settings, the order of application remains  
unclear. It seems that the same sorting rules apply here, which might  
as well yield surprising effects.


The best possible solution for this problem I can imagine would be:

  (a) to not sort options, but respect their order; and
  (b) to reflect all main settings on the Advanced page as well.

The idea behind (b) works as follows: When I activate an option in the  
Main Settings, its string representation is automatically added to  
the end of the advanced settings; when I deactivate it, it is removed.  
When I manually add an option in the advanced settings for which a  
checkbox exists in the main settings, the checkbox is activated.


Thereby,  *all* settings become visible and editable on the Advanced  
page, on which they can (because of (a)) be ordered in whatever order  
the user prefers.


However, just implementing (a) would already be a suitable workaround  
for most cases.


Daniel


Re: Conforming to a style manal

2008-08-27 Thread Richard Heck

Louis A. Turk wrote:

This is my first post. I'm using the memoir class to set type for a
book. I would like to make a few changes that I think are going to
require changes to a file someplace. I want to make the changes just
once, so that everyone in our office can get the same results
(uniformity) without having to know LaTeX. Here are the needed changes:

  
The easiest way to do this is going to be to create your own layout file 
that will automatically include the needed customizations in the 
document preamble. Layout files are detailed in the LyX customization 
manual. Yours can start like this:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[memoir]{Our Book (Memoir)}
Format 4
Input memoir.layout

Preamble
#Most of you customizations will go here
EndPreamble

1. CHANGES TO THE TITLE

We want to use the demo3 title style used in the Memoir Manual
(memman.pdf) on page 147-148.

  

For this, you just to to include:
   \chapterstyle{demo3}
in the Preamble/EndPreamble part of the layout file. That's where most 
of this stuff will go. You'll end up with one



2. CHANGES TO PAGE HEADERS

We want to modify the default header in the following manner:

   --- Place a rule across the page under it.
   --- Make the font slightly smaller and boldfaced.

  
Figure out how to create this using the memoir customization (section 
11.3), and then put it all in the Preamble/EndPreamble block. To make 
them accessible from LyX, you might need to redefine the headings style 
or something like that. LyX doesn't know about arbitrary page styles.



3. CHANGES TO THE QUOTE PARAGRAPH STYLE

   --- Do not want the right margin indented.
   --- Use a different, smaller font.

  

Something like:
\renewenvironment{quote}
{\small\list{}{}%
\item[]}
{\endlist}
in the Preamble. Note that I've just stolen and then modified what's in 
memoir.cls.



4. CHANGES TO THE TITLE AND SECTION HEADERS

   --- Use a sans serif font.

  
Do you mean in LyX or in the output? The font used in the output is 
controlled by memoir.cls, and the default chapter style does precisely 
what you say here:



Concerning fonts, I was surprised that my installation of Lyx (version
1.5.5) does not use a sans serif font at all when printing a page, in
spite of the fact that in document/fonts I have 


Default Family: Roman
Roman : Latin Modern Roman
Sans Serif: Latin Modern Sans
Typewriter: Latin Modern Typewriter

Instead Lyx uses the exact same serif font in the exact same size for
both Standard and Quote paragraph styles. The same serif font (but sized
bigger) is also used for chapter titles and section headers. This
doesn't seem right to me. Have I not set Lyx up properly?

  
As I said, memoir.cls controls the output, not LyX. If you use a 
different chapter style, then you'll see a sans serif font, or whatever.


If you want to change how it looks in LyX, you can do that, too, in the 
layout file, thus:

Style Chapter
   Font
  Family Sans
   EndFont
End
You can do whatever else you want to do, too.

On title pages, see here: http://wiki.lyx.org/LyX/UsingMemoirInLyX#toc5.

rh



Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread quiddity
Thank you to Zan and Bob for very quick replies! They haven't shown up
directly on the forum - is this usual?

I have managed to solve the captalisation problem with curly brackets in
Jabref, so thanks for that tip! I guess I might get away with the lack of
emphasis for the volume no., as it's such a small detail.

I shall make another request for help to see if anyone knows a way around
the natbib/apacite incompatibility problem.

Thanks again

2008/8/27 Bob Lounsbury [EMAIL PROTECTED]

 On Wed, Aug 27, 2008 at 9:12 AM, squidy [EMAIL PROTECTED] wrote:
 
  Hello I am very new to this ...
 
  I'm using LyX 1.5.5 in Windows XP.
  I'm using JabRef 2.3.1 to manage my bibliography.
  I'm using the document class 'article' and have bibliography set to
 Natbib
  author-year.
 
  Here's my problem,
  I have written my Master's Thesis in the document class article but I am
  required to format my references according to APA manual, 5th edition. I
  have tried the packages called apalike and apalike2, these work but they
 get
  it almost but not quite right, (volume numbers aren't emphasised and
 inbook
  references are incorrectly formatted).
 
  I saw in this forum that there is a package called apacite, I have
 installed
  this in MikTeX, however I can't get it to work. When I compile the
 document
  I get an error message which says LyX LaTeX error - Undefined control
  sequence, repeated many times! This also happens on my computer at home
  where I'm running v. 1.5.3 in Ubuntu HH.
 
  Can anyone help with this? I don't want to go back to using MS Word :(
  Thank you
 
 
  --
  View this message in context:
 http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
  Sent from the LyX - Users mailing list archive at Nabble.com.
 
 

 There is a package conflict between apacite and Natbib. Please read
 through the apacite documentation and specifically the Natbib section:

 http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf

 It seems that apacite needs to be loaded before Natbib, but because of
 the LyX document settings Natbib will be loaded first. So, the real
 question to post to the list is how do you load apacite before Natbib?
 Which I don't know.

 Cheers,
 /Bob



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Paul A. Rubin wrote:


So you're saying that if I hand out grades printed in Palatino, I won't
get the usual bitching and moaning?


  That's correct. They will be more polite and mature and ask for cheese
with their whine.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Georg Baum
Daniel Lohmann wrote:

 Hi,
 
 I just discovered a feature of the listings inset that actually
 should be considered as a bug: Additional options given on the
 advanced page are implicitly sorted alphabetically. However, if using
 listing styles, the order of options is relevant. Consider the
 following example:

Yep, this is a known bug, caused by the manner how the parameters are
stored: http://bugzilla.lyx.org/show_bug.cgi?id=4884

Maybe you just add your suggestions there?


Georg



Avoiding formula breaking in multicolumnar enumerate?

2008-08-27 Thread Paul Smith
Dear All,

Consider the attached example. How can one move the item 10 to the
left in order to avoid the formula breaking?

Thanks in advance,

Paul


example.lyx
Description: application/lyx


Help with importing a latex file generated from texmacs

2008-08-27 Thread Marc Mertens
Hello,

 I'm considering to switch from texmacs to lyx but I don't want to loose 
my old documents, to this end I tried to export my documents from texmacs to 
latex format and use the import function of lyx to import it in .lyx format. 
I I do this then I see that macros that are added by texmacs to the latex 
file are not used in lyx, having as effect that texmacs theorem, 
proposition , enumerations etc .. are not rendered correctly when I view them 
in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file 
from texmacs then everything is rendered in the correct way. 
   Is there a way to import latex files containing macros in lyx (more 
specifically latex generated by texmacs).
   I have added as a attachments a very simple latex file generated from 
texmacs and the file produced by importing it in lyx.

Thanks a lot for any help in advance

Marc Mertens


test.lyx
Description: application/lyx
\documentclass{letter}
\usepackage{amssymb,enumerate}

%% Start TeXmacs macros
\newenvironment{enumeratenumeric}{\begin{enumerate}[1.] }{\end{enumerate}}
\newenvironment{proof}{\noindent\textbf{Proof\ }}{\hspace*{\fill}$\Box$\medskip}
\newtheorem{proposition}{Proposition}
\newtheorem{theorem}{Theorem}
%% End TeXmacs macros

\begin{document}

\begin{theorem}
  This is a test of the conversion of texmacs to lyx
  
  \begin{proof}
Ok
  \end{proof}
\end{theorem}

\begin{proposition}
  This is a proposition
\end{proposition}
\begin{enumeratenumeric}
  \item One
  
  \item Two
\end{enumeratenumeric}

\end{document}


Re: Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Daniel Lohmann


On 27.08.2008, at 19:59, Georg Baum wrote:


Daniel Lohmann wrote:


Hi,

I just discovered a feature of the listings inset that actually
should be considered as a bug: Additional options given on the
advanced page are implicitly sorted alphabetically. However, if using
listing styles, the order of options is relevant. Consider the
following example:


Yep, this is a known bug, caused by the manner how the parameters are
stored: http://bugzilla.lyx.org/show_bug.cgi?id=4884

Maybe you just add your suggestions there?



Thanks Georg,

Are you sure?

Actually, I had searched  bugzilla and found bug 4884 before asking on  
the list, but to me it does not really describe the problem of  
sorting. Now after re-reading the entry I  see that it is somewhat  
related, but that is not really obvious.


If you prefer I will add my suggestions there, otherwise I would open  
a new bug (with a reference to 4884).


Daniel



Re: Help with importing a latex file generated from texmacs

2008-08-27 Thread rgheck

Marc Mertens wrote:

Hello,

 I'm considering to switch from texmacs to lyx but I don't want to loose 
my old documents, to this end I tried to export my documents from texmacs to 
latex format and use the import function of lyx to import it in .lyx format. 
I I do this then I see that macros that are added by texmacs to the latex 
file are not used in lyx, having as effect that texmacs theorem, 
proposition , enumerations etc .. are not rendered correctly when I view them 
in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file 
from texmacs then everything is rendered in the correct way. 

  
Right. The conversion is done by a program tex2lyx that does not 
recognize the environments you are using. The things it does recognize 
are detailed in the manpage for the program.


   Is there a way to import latex files containing macros in lyx (more 
specifically latex generated by texmacs).


  

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to 
write some kind of program that does the conversion. This is not as hard 
as it sounds, if you have any programming experience at all. The lyx 
file format is pretty simple, really. In your case, it's a matter of 
replacing bits that look like this:


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
begin{theorem}
\end_layout

\end_inset

with bits that look like this:

\begin_layout Theorem

and so forth. You could do this with sed, perl, python, whatever. It's 
messy and would take a bit, but once you had the filter written, it'd be 
easy to reuse it. And other people might even benefit, if you posted it 
on the wiki, and write it in a way that makes it extensible. (E.g., 
don't hardcode the theorem--Theorem bit, but use some sort of 
associative array.)


That said, you will then have another issue, namely, that LyX may not 
know about some of the environments you are using. This will depend upon 
what document class you are using. LyX's article class, for example, 
does not know about theorem and proof environments. But you could just 
create a myarticle.layout class and include amsmaths.inc. This will be 
easier in 1.6, because of the introduction of layout modules. Even then, 
you would need to write your own layout for the enumeratenumeric 
environment, or else just change these to enumerate and fix the numeric 
bit some other way.


Lots of us here have experience with this sort of thing. And are 
prepared to help.


rh



Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread Bob Lounsbury
On Wed, Aug 27, 2008 at 10:54 AM, quiddity [EMAIL PROTECTED] wrote:
 Thank you to Zan and Bob for very quick replies! They haven't shown up
 directly on the forum - is this usual?

 I have managed to solve the captalisation problem with curly brackets in
 Jabref, so thanks for that tip! I guess I might get away with the lack of
 emphasis for the volume no., as it's such a small detail.

 I shall make another request for help to see if anyone knows a way around
 the natbib/apacite incompatibility problem.

 Thanks again

An ugly workaround, IF, you only need to use the \cite command would
be to change the bibliography setting back to Default (numerical) from
Natbib. Then put (in your preamble):

\usepackage(apacite)
\usepackage[authoryear]{natbib}

Otherwise, if you need to use something other than \cite, you'd have
to use ERT rather than the LyX dialog to insert bibliography
citations. But, if you just need to do this for one paper it may not
be a bad way to go. It does work, it's just not pretty.

/Bob


Re: Help with importing a latex file generated from texmacs

2008-08-27 Thread rgheck

rgheck wrote:

Marc Mertens wrote:

Hello,

 I'm considering to switch from texmacs to lyx but I don't want 
to loose my old documents, to this end I tried to export my documents 
from texmacs to latex format and use the import function of lyx to 
import it in .lyx format. I I do this then I see that macros that are 
added by texmacs to the latex file are not used in lyx, having as 
effect that texmacs theorem, proposition , enumerations etc .. are 
not rendered correctly when I view them in lyx. If I use 'latex' to 
generate a .dvi file from the exported .tex file from texmacs then 
everything is rendered in the correct way.
  
Right. The conversion is done by a program tex2lyx that does not 
recognize the environments you are using. The things it does recognize 
are detailed in the manpage for the program.


   Is there a way to import latex files containing macros in lyx 
(more specifically latex generated by texmacs).


  

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to 
write some kind of program that does the conversion.


Actually, there is a bit more you can do here. If you change the 
document class from letter to amsbook, say, then LyX will convert the 
proof environment: This is because amsbook defines that environment, so 
LyX knows about it. Similarly, if you change theorem to thm---which 
is how it is done in amsmath.inc---then LyX will also convert that. Same 
goes for proposition -- prop. So that's another option.


rh



Re: Any words of wisdom switching from 1.4.2 to 1.5.6?

2008-08-27 Thread Pavel Sanda
 On Saturday 23 August 2008 06:40:32 am killermike wrote:
  Steve Litt wrote:
   I have one book written in stone age LyX in 2001, using Dekl Tsur's color
   character style workaround. It's been upgraded to 1.4.2, and compiles on
   1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in
  
  
   1.5.6. But it has to be done :-)
 
  Would it be worth waiting for 1.6? 
 
 Definitely not. There's a high probability that 1.6 will require a Qt version 
 higher than what my distribution gives me, requiring a HUGE expenditure of 
 effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 
 2007. I've had this problem several times.

hi Steeve, just for clarification, for LyX 1.6 Qt 4.2.2 is needed, so i guess
you dont need to upgrade anything.

pavel


Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Abe Lau
Hi all,
I am wondering what's the difference between Times Roman and Latin Modern
Roman font.

I have read from the mailing list that the Latin Modern Roman (lmodern)
package is preferred over the default Computer Modern Roman.  However, I
can't find any information about Times Roman.

The Times Roman font looks much better on screen and this is the only
difference I could tell from a brief look.  Is there any disadvantage when
compared to Latin Modern Roman?  or is it just a matter of preference?
Thanks,
Abe


Re: Position of chapter heading - left or right page?

2008-08-27 Thread Anthony Campbell
On 26 Aug 2008, Jeremy C. Reed wrote:
> On Mon, 25 Aug 2008, Anthony Campbell wrote:
> 
> > On 25 Aug 2008, Jeremy C. Reed wrote:
> > > On Mon, 25 Aug 2008, Anthony Campbell wrote:
> > > 
> > > > I'm using the default book category.
> > > > 
> > > > The chapter headings come out on the left-hand (even number) page. This
> > > > doesn't seem to be usual in any of the books I look at. Is there a way
> > > > to make it appear on every page, or alternatively on the right-hand
> > > > (odd number) page?
> > > 
> > > I use fancy headers and I have:
> > > 
> > > % I want chapter on right odd pages to right side
> > > % and book title on left even pages to left side
> > > \fancyhead{}% delete the default header
> > > \fancyhead[LE]{I put title here}
> > > \fancyhead[RO]{\leftmark}
> > 
> > This doesn't seem to work for me - perhaps I'm misssing something. Do
> > you put it at the beginning of Chapter 1?
> > 
> > This does work:
> > 
> > \pagestyle{myheadings} 
> > \markboth{Book title}{chapter title}  
> > 
> > But the code has to be inserted for each chapter and and the correct
> > chapter title inserted, so it's only semi-automated.
> 
> 
> I have it only once -- in my preamble. I am using scrbook and "fancy" 
> paperpagestyle.


Thanks very much  - yes, it's working for me now! Not sure what was
happening before.

Anthony

-- 
Anthony Campbell - [EMAIL PROTECTED] 
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk (blog, book reviews, 
and sceptical articles)



Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Manveru
2008/8/25 Eran Kaplinsky <[EMAIL PROTECTED]>:
>
>
>>
>> Steve Litt
>> Sat, 23 Aug 2008 18:43:52 -0700
>>
>> Hi all,
>>
>> I need your help. It turns out to be a known problem that you can't use
>> hyperref with Memoir. However, there's supposedly a fix, known as
>> memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
>> \usepackage{hyperref}, they can coexist. See this:
>>
>>
>> http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdf=en=clnk=3=us
>> 
>>
>> However, when I make a trivial latex file based on the preceding document,
>> it fails. Here's the file:
>>
>> \documentclass{memoir}
>> \usepackage{hyperref}
>> \usepackage{memhfixc}
>> \usepackage{mempatch}
>> \begin{document}
>> hello world.
>> \end{document}
>>
>
>
>
> Most of my documents are with memoir and hyperref, with no problem. I
> usually have:
>
> \usepackage{hyperref}
>
> \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
> urlcolor=black}
>
> \usepackage{memhfixc}
>
>
> But, I tries your document and it works, too ...

Explanation above leads me to suggestion about checking memoir and
hyperref packages versions. Steve, can you compare them with Eran?

-- 
Manveru
jabber: [EMAIL PROTECTED]
 gg: 1624001
   http://www.manveru.pl


Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread José Matos
On Tuesday 26 August 2008 09:39:00 José Matos wrote:
> all the packages have the right license (allow us to redistribute and
> modify) with the non-commercial clause (as an example).

Just for correctness sake I should mention that I meant *without* any non-
commercial clause, for example. Any non-commercial clause makes the license 
not free-software and thus non eligible for Fedora.

I think that this was obvious in the original message but I just want to make 
this explicit.

-- 
José Abílio


Re: Memoir/hyperref conflict is a known issue

2008-08-27 Thread Steve Litt
On Wednesday 27 August 2008 06:20:51 am Manveru wrote:
> 2008/8/25 Eran Kaplinsky <[EMAIL PROTECTED]>:
> >> Steve Litt
> >> Sat, 23 Aug 2008 18:43:52 -0700
> >>
> >> Hi all,
> >>
> >> I need your help. It turns out to be a known problem that you can't use
> >> hyperref with Memoir. However, there's supposedly a fix, known as
> >> memhfixc.sty. Supposedly, if you \usepackage{memhfixc} AFTER you
> >> \usepackage{hyperref}, they can coexist. See this:
> >>
> >>
> >> http://209.85.215.104/search?q=cache:8kIeWO2Ho9oJ:www.tug.org/pracjourn/
> >>2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdf=en=clnk=3=us
> >>  >>/2006-3/wilson/wilson.pdf+memoir+hyperref+ifpdf=en=clnk=3=us>
> >>
> >> However, when I make a trivial latex file based on the preceding
> >> document, it fails. Here's the file:
> >>
> >> \documentclass{memoir}
> >> \usepackage{hyperref}
> >> \usepackage{memhfixc}
> >> \usepackage{mempatch}
> >> \begin{document}
> >> hello world.
> >> \end{document}
> >
> > Most of my documents are with memoir and hyperref, with no problem. I
> > usually have:
> >
> > \usepackage{hyperref}
> >
> > \hypersetup{pdftex, bookmarks, backref, letterpaper, colorlinks=true,
> > urlcolor=black}
> >
> > \usepackage{memhfixc}
> >
> >
> > But, I tries your document and it works, too ...
>
> Explanation above leads me to suggestion about checking memoir and
> hyperref packages versions. Steve, can you compare them with Eran?

Hi Manveru,

Great minds think alike. A few days ago when several people were unable to 
reproduce my bug, I also suspected my Memoir package. The suspicion 
heightened with the discovery that my Memoir package was from 2004. So I 
replaced my Memoir package, compiled memoir.ins, and my symptom went away. 
I'm now able to compile my Memoir-derived Ebook.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Les Denham
On Wednesday 27 August 2008, Abe Lau wrote:
> Hi all,
> I am wondering what's the difference between Times Roman and Latin Modern
> Roman font.
>
> I have read from the mailing list that the Latin Modern Roman (lmodern)
> package is preferred over the default Computer Modern Roman.  However, I
> can't find any information about Times Roman.
>
> The Times Roman font looks much better on screen and this is the only
> difference I could tell from a brief look.  Is there any disadvantage when
> compared to Latin Modern Roman?  or is it just a matter of preference?
> Thanks,
> Abe

As Times Roman was originally a newspaper font designed for narrow columns, I 
suspect it is on average slightly narrower than other fonts of the same 
nominal size, to make justification simpler in narrow columns.  This would be 
a disadvantage for a page with a single column, where the larger number of 
characters in the line makes reading more difficult. LaTeX will automatically 
compensate for this by making the default margins wider.  However, most 
people are very much used to Times Roman (and its clones, such as Times New 
Roman) because it is the most common serif font today, so you won't go far 
wrong if you use it.

-- 
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Bruce Pourciau


On Aug 27, 2008, at 8:44 AM, Les Denham wrote:


On Wednesday 27 August 2008, Abe Lau wrote:

Hi all,
I am wondering what's the difference between Times Roman and Latin  
Modern

Roman font.

I have read from the mailing list that the Latin Modern Roman  
(lmodern)
package is preferred over the default Computer Modern Roman.   
However, I

can't find any information about Times Roman.

The Times Roman font looks much better on screen and this is the only
difference I could tell from a brief look.  Is there any  
disadvantage when
compared to Latin Modern Roman?  or is it just a matter of  
preference?

Thanks,
Abe


As Times Roman was originally a newspaper font designed for narrow  
columns, I
suspect it is on average slightly narrower than other fonts of the  
same
nominal size, to make justification simpler in narrow columns.   
This would be
a disadvantage for a page with a single column, where the larger  
number of
characters in the line makes reading more difficult. LaTeX will  
automatically
compensate for this by making the default margins wider.  However,  
most
people are very much used to Times Roman (and its clones, such as  
Times New
Roman) because it is the most common serif font today, so you won't  
go far

wrong if you use it.

--
Les

~~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



On the other hand, The Elements of Typographic Style by Robert  
Bringhurst, the current bible for serious typographers, in its list  
of favorite typefaces with commentaries, does not even include Times  
Roman! This is certainly damnation by omission. As Les points out,  
Times Roman was designed as a newspaper typeface, so it would be  
readable in narrow columns. This hardly would be expected to produce  
the best looking face for normal work. On the other hand, Palatino,  
for example, was designed by Herman Zapf, one of the great type  
designers, and it is available (in LyX document settings) with small  
caps, old style numerals, and mathematical symbols that blend.


Bruce


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread G. Milde
On 27.08.08, Bruce Pourciau wrote:
> On Aug 27, 2008, at 8:44 AM, Les Denham wrote:
>> On Wednesday 27 August 2008, Abe Lau wrote:
>>> Hi all, I am wondering what's the difference between Times Roman and
>>> Latin Modern Roman font.

>>> I have read from the mailing list that the Latin Modern Roman 
>>> (lmodern) package is preferred over the default Computer Modern
>>> Roman. 

Latin Modern can be thought of as the successor of Computer Modern.
It is a "reimplementation" as outline font. It covers a wide range of
characters and symbols including true small caps and fits well with
the mathematical fonts used by LaTeX (which might be a problem for
any other font).

OTOH, I find the Latin Modern fonts too light in print (if printed
with a laser printer) and not very nice for on-screen rendering.

>>> The Times Roman font looks much better on screen and this is the only
>>> difference I could tell from a brief look.

For on-screen viewing (e.g. of generated PDF) I'd recommend the Vera
family ("Bera Serif" in the Document>Settings).

Günter


Please help a newbie with APA citation style in LyX

2008-08-27 Thread squidy

Hello I am very new to this ...

I'm using LyX 1.5.5 in Windows XP.
I'm using JabRef 2.3.1 to manage my bibliography.
I'm using the document class 'article' and have bibliography set to Natbib
author-year.

Here's my problem,
I have written my Master's Thesis in the document class article but I am
required to format my references according to APA manual, 5th edition. I
have tried the packages called apalike and apalike2, these work but they get
it almost but not quite right, (volume numbers aren't emphasised and inbook
references are incorrectly formatted).

I saw in this forum that there is a package called apacite, I have installed
this in MikTeX, however I can't get it to work. When I compile the document
I get an error message which says LyX LaTeX error - Undefined control
sequence, repeated many times! This also happens on my computer at home
where I'm running v. 1.5.3 in Ubuntu HH. 

Can anyone help with this? I don't want to go back to using MS Word :(
Thank you


-- 
View this message in context: 
http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Les Denham wrote:


However, most people are very much used to Times Roman (and its clones,
such as Times New Roman) because it is the most common serif font today,
so you won't go far wrong if you use it.


  Yes you will. It's the most common because it's the Microsoft default.
Period.

  Typefaces have subtle and subconscious effects on the reader. Pick a
typeface that implies professionalism (if that's the impression you want to
make) and use that. My default typeface is Palatino. It's a combination of
traditional and modern and always evokes a positive response.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Bruce Pourciau wrote:


On the other hand, The Elements of Typographic Style by Robert Bringhurst,
the current bible for serious typographers, in its list of favorite
typefaces with commentaries, does not even include Times Roman! This is
certainly damnation by omission. As Les points out, Times Roman was
designed as a newspaper typeface, so it would be readable in narrow
columns. This hardly would be expected to produce the best looking face
for normal work. On the other hand, Palatino, for example, was designed by
Herman Zapf, one of the great type designers, and it is available (in LyX
document settings) with small caps, old style numerals, and mathematical
symbols that blend.


Bruce,

  Palatino is my default typeface. Now if it only had the \textservicemark
symbol built in it would be fully complete. :-)

  And I'll second the recommendation for Bringhurst's book. It's worth
reading just to appreciate the subtle differences among the hundreds of
available designs.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Fwd: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread William Adams

I'd thought this had gone to the list

Begin forwarded message:


On Aug 27, 2008, at 9:44 AM, Les Denham wrote:


However, most
people are very much used to Times Roman (and its clones, such as  
Times New

Roman)



\begin{typographichistorynitpicking}

Actually, Monotype's Times New Roman is the original, while  
Linotype's Times Roman is the clone --- see Walter Tracy's _Letters  
of Credit_ for the beginnings of the back story on this and an  
article in APHA's journal (sorry, can't recall the details) for the  
balance of what's been made known beyond the ``gentlemen's  
agreement'' to hide the back room dealings.


\end{typographichistorynitpicking}


--
William Adams
senior graphic designer
Fry Communications




Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Paul A. Rubin

Rich Shepard wrote:



  Typefaces have subtle and subconscious effects on the reader. Pick a
typeface that implies professionalism (if that's the impression you want to
make) and use that. My default typeface is Palatino. It's a combination of
traditional and modern and always evokes a positive response.


So you're saying that if I hand out grades printed in Palatino, I won't 
get the usual bitching and moaning?




Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread Bob Lounsbury
On Wed, Aug 27, 2008 at 9:12 AM, squidy <[EMAIL PROTECTED]> wrote:
>
> Hello I am very new to this ...
>
> I'm using LyX 1.5.5 in Windows XP.
> I'm using JabRef 2.3.1 to manage my bibliography.
> I'm using the document class 'article' and have bibliography set to Natbib
> author-year.
>
> Here's my problem,
> I have written my Master's Thesis in the document class article but I am
> required to format my references according to APA manual, 5th edition. I
> have tried the packages called apalike and apalike2, these work but they get
> it almost but not quite right, (volume numbers aren't emphasised and inbook
> references are incorrectly formatted).
>
> I saw in this forum that there is a package called apacite, I have installed
> this in MikTeX, however I can't get it to work. When I compile the document
> I get an error message which says LyX LaTeX error - Undefined control
> sequence, repeated many times! This also happens on my computer at home
> where I'm running v. 1.5.3 in Ubuntu HH.
>
> Can anyone help with this? I don't want to go back to using MS Word :(
> Thank you
>
>
> --
> View this message in context: 
> http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
> Sent from the LyX - Users mailing list archive at Nabble.com.
>
>

There is a package conflict between apacite and Natbib. Please read
through the apacite documentation and specifically the Natbib section:

http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf

It seems that apacite needs to be loaded before Natbib, but because of
the LyX document settings Natbib will be loaded first. So, the real
question to post to the list is how do you load apacite before Natbib?
Which I don't know.

Cheers,
/Bob


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Bruce Pourciau


On Aug 27, 2008, at 10:50 AM, Paul A. Rubin wrote:


Rich Shepard wrote:

  Typefaces have subtle and subconscious effects on the reader.  
Pick a
typeface that implies professionalism (if that's the impression  
you want to
make) and use that. My default typeface is Palatino. It's a  
combination of

traditional and modern and always evokes a positive response.


So you're saying that if I hand out grades printed in Palatino, I  
won't get the usual bitching and moaning?





Indeed, careful randomized, double-blind studies have shown that  
grades handed out in Palatino, or for that metter any typeface  
designed by Zapf (like Aldus, Melior, Renaissance, or even Optima),  
induces a spike in endorphins that masks the pain usually associated  
with low marks. Not sure what journal this appeared in, though.


Fwd: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread William Adams
Eventually, I'll get in the habit of checking the distribution before  
clicking ``Send''


Begin forwarded message:

On Aug 27, 2008, at 10:27 AM, Bruce Pourciau wrote:

Palatino, for example, was designed by Herman Zapf, one of the  
great type designers, and it is available (in LyX document  
settings) with small caps, old style numerals, and mathematical  
symbols that blend.



For Times there's also mathptmx which is quite usable, as well as  
the nascent Stix fonts http://www.stixfonts.org/ or MathTime  
Professional which is well worth the investment if one needs it but  
can't wait for Stix.


--
William Adams
senior graphic designer
Fry Communications




Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Daniel Lohmann

Hi,

I just discovered a "feature" of the listings inset that actually  
should be considered as a bug: Additional options given on the  
advanced page are implicitly sorted alphabetically. However, if using  
listing styles, the order of options is relevant. Consider the  
following example:


In my preamble, I have defined a custom listings style:

  \lstdefinestyle{acstyle}{
...   % many, many  settings
mathescape=true 
  }

Now I want to apply this style, but set mathescape to false. So I type  
in the "Advanced" settings of the inset:


style=acstyle
mathescape=false

However, when I press "Apply", LyX immediately sorts the options  
alphabetically,  which results in:


mathescape=false
style=acstyle

And hence, the mathescape=true  from the style "wins" :-(


IMHO this problem also shows a more general issue: When combining main  
settings and advanced settings, the order of application remains  
unclear. It seems that the same sorting rules apply here, which might  
as well yield surprising effects.


The best possible solution for this problem I can imagine would be:

  (a) to not sort options, but respect their order; and
  (b) to reflect all main settings on the "Advanced" page as well.

The idea behind (b) works as follows: When I activate an option in the  
"Main Settings", its string representation is automatically added to  
the end of the advanced settings; when I deactivate it, it is removed.  
When I manually add an option in the advanced settings for which a  
checkbox exists in the main settings, the checkbox is activated.


Thereby,  *all* settings become visible and editable on the "Advanced"  
page, on which they can (because of (a)) be ordered in whatever order  
the user prefers.


However, just implementing (a) would already be a suitable workaround  
for most cases.


Daniel


Re: Conforming to a style manal

2008-08-27 Thread Richard Heck

Louis A. Turk wrote:

This is my first post. I'm using the memoir class to set type for a
book. I would like to make a few changes that I think are going to
require changes to a file someplace. I want to make the changes just
once, so that everyone in our office can get the same results
(uniformity) without having to know LaTeX. Here are the needed changes:

  
The easiest way to do this is going to be to create your own layout file 
that will automatically include the needed customizations in the 
document preamble. Layout files are detailed in the LyX customization 
manual. Yours can start like this:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[memoir]{Our Book (Memoir)}
Format 4
Input memoir.layout

Preamble
#Most of you customizations will go here
EndPreamble

1. CHANGES TO THE TITLE

We want to use the demo3 title style used in the Memoir Manual
(memman.pdf) on page 147-148.

  

For this, you just to to include:
   \chapterstyle{demo3}
in the Preamble/EndPreamble part of the layout file. That's where most 
of this stuff will go. You'll end up with one



2. CHANGES TO PAGE HEADERS

We want to modify the default header in the following manner:

   --- Place a rule across the page under it.
   --- Make the font slightly smaller and boldfaced.

  
Figure out how to create this using the memoir customization (section 
11.3), and then put it all in the Preamble/EndPreamble block. To make 
them accessible from LyX, you might need to redefine the headings style 
or something like that. LyX doesn't know about arbitrary page styles.



3. CHANGES TO THE QUOTE PARAGRAPH STYLE

   --- Do not want the right margin indented.
   --- Use a different, smaller font.

  

Something like:
\renewenvironment{quote}
{\small\list{}{}%
\item[]}
{\endlist}
in the Preamble. Note that I've just stolen and then modified what's in 
memoir.cls.



4. CHANGES TO THE TITLE AND SECTION HEADERS

   --- Use a sans serif font.

  
Do you mean in LyX or in the output? The font used in the output is 
controlled by memoir.cls, and the default chapter style does precisely 
what you say here:



Concerning fonts, I was surprised that my installation of Lyx (version
1.5.5) does not use a sans serif font at all when printing a page, in
spite of the fact that in document/fonts I have 


Default Family: Roman
Roman : Latin Modern Roman
Sans Serif: Latin Modern Sans
Typewriter: Latin Modern Typewriter

Instead Lyx uses the exact same serif font in the exact same size for
both Standard and Quote paragraph styles. The same serif font (but sized
bigger) is also used for chapter titles and section headers. This
doesn't seem right to me. Have I not set Lyx up properly?

  
As I said, memoir.cls controls the output, not LyX. If you use a 
different chapter style, then you'll see a sans serif font, or whatever.


If you want to change how it looks in LyX, you can do that, too, in the 
layout file, thus:

Style Chapter
   Font
  Family Sans
   EndFont
End
You can do whatever else you want to do, too.

On title pages, see here: http://wiki.lyx.org/LyX/UsingMemoirInLyX#toc5.

rh



Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread quiddity
Thank you to Zan and Bob for very quick replies! They haven't shown up
directly on the forum - is this usual?

I have managed to solve the captalisation problem with curly brackets in
Jabref, so thanks for that tip! I guess I might get away with the lack of
emphasis for the volume no., as it's such a small detail.

I shall make another request for help to see if anyone knows a way around
the natbib/apacite incompatibility problem.

Thanks again

2008/8/27 Bob Lounsbury <[EMAIL PROTECTED]>

> On Wed, Aug 27, 2008 at 9:12 AM, squidy <[EMAIL PROTECTED]> wrote:
> >
> > Hello I am very new to this ...
> >
> > I'm using LyX 1.5.5 in Windows XP.
> > I'm using JabRef 2.3.1 to manage my bibliography.
> > I'm using the document class 'article' and have bibliography set to
> Natbib
> > author-year.
> >
> > Here's my problem,
> > I have written my Master's Thesis in the document class article but I am
> > required to format my references according to APA manual, 5th edition. I
> > have tried the packages called apalike and apalike2, these work but they
> get
> > it almost but not quite right, (volume numbers aren't emphasised and
> inbook
> > references are incorrectly formatted).
> >
> > I saw in this forum that there is a package called apacite, I have
> installed
> > this in MikTeX, however I can't get it to work. When I compile the
> document
> > I get an error message which says LyX LaTeX error - Undefined control
> > sequence, repeated many times! This also happens on my computer at home
> > where I'm running v. 1.5.3 in Ubuntu HH.
> >
> > Can anyone help with this? I don't want to go back to using MS Word :(
> > Thank you
> >
> >
> > --
> > View this message in context:
> http://n2.nabble.com/Please-help-a-newbie-with-APA-citation-style-in-LyX-tp787261p787261.html
> > Sent from the LyX - Users mailing list archive at Nabble.com.
> >
> >
>
> There is a package conflict between apacite and Natbib. Please read
> through the apacite documentation and specifically the Natbib section:
>
> http://tug.ctan.org/tex-archive/biblio/bibtex/contrib/apacite/apacite.pdf
>
> It seems that apacite needs to be loaded before Natbib, but because of
> the LyX document settings Natbib will be loaded first. So, the real
> question to post to the list is how do you load apacite before Natbib?
> Which I don't know.
>
> Cheers,
> /Bob
>


Re: Times Roman vs Latin Modern Roman Font

2008-08-27 Thread Rich Shepard

On Wed, 27 Aug 2008, Paul A. Rubin wrote:


So you're saying that if I hand out grades printed in Palatino, I won't
get the usual bitching and moaning?


  That's correct. They will be more polite and mature and ask for cheese
with their whine.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Georg Baum
Daniel Lohmann wrote:

> Hi,
> 
> I just discovered a "feature" of the listings inset that actually
> should be considered as a bug: Additional options given on the
> advanced page are implicitly sorted alphabetically. However, if using
> listing styles, the order of options is relevant. Consider the
> following example:

Yep, this is a known bug, caused by the manner how the parameters are
stored: http://bugzilla.lyx.org/show_bug.cgi?id=4884

Maybe you just add your suggestions there?


Georg



Avoiding formula breaking in multicolumnar enumerate?

2008-08-27 Thread Paul Smith
Dear All,

Consider the attached example. How can one move the item 10 to the
left in order to avoid the formula breaking?

Thanks in advance,

Paul


example.lyx
Description: application/lyx


Help with importing a latex file generated from texmacs

2008-08-27 Thread Marc Mertens
Hello,

 I'm considering to switch from texmacs to lyx but I don't want to loose 
my old documents, to this end I tried to export my documents from texmacs to 
latex format and use the import function of lyx to import it in .lyx format. 
I I do this then I see that macros that are added by texmacs to the latex 
file are not used in lyx, having as effect that texmacs theorem, 
proposition , enumerations etc .. are not rendered correctly when I view them 
in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file 
from texmacs then everything is rendered in the correct way. 
   Is there a way to import latex files containing macros in lyx (more 
specifically latex generated by texmacs).
   I have added as a attachments a very simple latex file generated from 
texmacs and the file produced by importing it in lyx.

Thanks a lot for any help in advance

Marc Mertens


test.lyx
Description: application/lyx
\documentclass{letter}
\usepackage{amssymb,enumerate}

%% Start TeXmacs macros
\newenvironment{enumeratenumeric}{\begin{enumerate}[1.] }{\end{enumerate}}
\newenvironment{proof}{\noindent\textbf{Proof\ }}{\hspace*{\fill}$\Box$\medskip}
\newtheorem{proposition}{Proposition}
\newtheorem{theorem}{Theorem}
%% End TeXmacs macros

\begin{document}

\begin{theorem}
  This is a test of the conversion of texmacs to lyx
  
  \begin{proof}
Ok
  \end{proof}
\end{theorem}

\begin{proposition}
  This is a proposition
\end{proposition}
\begin{enumeratenumeric}
  \item One
  
  \item Two
\end{enumeratenumeric}

\end{document}


Re: Bug in listings inset (Lyx 1.5.6, OS X)

2008-08-27 Thread Daniel Lohmann


On 27.08.2008, at 19:59, Georg Baum wrote:


Daniel Lohmann wrote:


Hi,

I just discovered a "feature" of the listings inset that actually
should be considered as a bug: Additional options given on the
advanced page are implicitly sorted alphabetically. However, if using
listing styles, the order of options is relevant. Consider the
following example:


Yep, this is a known bug, caused by the manner how the parameters are
stored: http://bugzilla.lyx.org/show_bug.cgi?id=4884

Maybe you just add your suggestions there?



Thanks Georg,

Are you sure?

Actually, I had searched  bugzilla and found bug 4884 before asking on  
the list, but to me it does not really describe the problem of  
sorting. Now after re-reading the entry I  see that it is somewhat  
related, but that is not really obvious.


If you prefer I will add my suggestions there, otherwise I would open  
a new bug (with a reference to 4884).


Daniel



Re: Help with importing a latex file generated from texmacs

2008-08-27 Thread rgheck

Marc Mertens wrote:

Hello,

 I'm considering to switch from texmacs to lyx but I don't want to loose 
my old documents, to this end I tried to export my documents from texmacs to 
latex format and use the import function of lyx to import it in .lyx format. 
I I do this then I see that macros that are added by texmacs to the latex 
file are not used in lyx, having as effect that texmacs theorem, 
proposition , enumerations etc .. are not rendered correctly when I view them 
in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file 
from texmacs then everything is rendered in the correct way. 

  
Right. The conversion is done by a program tex2lyx that does not 
recognize the environments you are using. The things it does recognize 
are detailed in the manpage for the program.


   Is there a way to import latex files containing macros in lyx (more 
specifically latex generated by texmacs).


  

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to 
write some kind of program that does the conversion. This is not as hard 
as it sounds, if you have any programming experience at all. The lyx 
file format is pretty simple, really. In your case, it's a matter of 
replacing bits that look like this:


\begin_inset ERT
status collapsed

\begin_layout Standard


\backslash
begin{theorem}
\end_layout

\end_inset

with bits that look like this:

\begin_layout Theorem

and so forth. You could do this with sed, perl, python, whatever. It's 
messy and would take a bit, but once you had the filter written, it'd be 
easy to reuse it. And other people might even benefit, if you posted it 
on the wiki, and write it in a way that makes it extensible. (E.g., 
don't hardcode the "theorem"-->"Theorem" bit, but use some sort of 
associative array.)


That said, you will then have another issue, namely, that LyX may not 
know about some of the environments you are using. This will depend upon 
what document class you are using. LyX's article class, for example, 
does not know about theorem and proof environments. But you could just 
create a myarticle.layout class and include amsmaths.inc. This will be 
easier in 1.6, because of the introduction of layout modules. Even then, 
you would need to write your own layout for the enumeratenumeric 
environment, or else just change these to enumerate and fix the numeric 
bit some other way.


Lots of us here have experience with this sort of thing. And are 
prepared to help.


rh



Re: Please help a newbie with APA citation style in LyX

2008-08-27 Thread Bob Lounsbury
On Wed, Aug 27, 2008 at 10:54 AM, quiddity <[EMAIL PROTECTED]> wrote:
> Thank you to Zan and Bob for very quick replies! They haven't shown up
> directly on the forum - is this usual?
>
> I have managed to solve the captalisation problem with curly brackets in
> Jabref, so thanks for that tip! I guess I might get away with the lack of
> emphasis for the volume no., as it's such a small detail.
>
> I shall make another request for help to see if anyone knows a way around
> the natbib/apacite incompatibility problem.
>
> Thanks again

An ugly workaround, IF, you only need to use the \cite command would
be to change the bibliography setting back to Default (numerical) from
Natbib. Then put (in your preamble):

\usepackage(apacite)
\usepackage[authoryear]{natbib}

Otherwise, if you need to use something other than \cite, you'd have
to use ERT rather than the LyX dialog to insert bibliography
citations. But, if you just need to do this for one paper it may not
be a bad way to go. It does work, it's just not pretty.

/Bob


Re: Help with importing a latex file generated from texmacs

2008-08-27 Thread rgheck

rgheck wrote:

Marc Mertens wrote:

Hello,

 I'm considering to switch from texmacs to lyx but I don't want 
to loose my old documents, to this end I tried to export my documents 
from texmacs to latex format and use the import function of lyx to 
import it in .lyx format. I I do this then I see that macros that are 
added by texmacs to the latex file are not used in lyx, having as 
effect that texmacs theorem, proposition , enumerations etc .. are 
not rendered correctly when I view them in lyx. If I use 'latex' to 
generate a .dvi file from the exported .tex file from texmacs then 
everything is rendered in the correct way.
  
Right. The conversion is done by a program tex2lyx that does not 
recognize the environments you are using. The things it does recognize 
are detailed in the manpage for the program.


   Is there a way to import latex files containing macros in lyx 
(more specifically latex generated by texmacs).


  

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to 
write some kind of program that does the conversion.


Actually, there is a bit more you can do here. If you change the 
document class from letter to amsbook, say, then LyX will convert the 
proof environment: This is because amsbook defines that environment, so 
LyX knows about it. Similarly, if you change "theorem" to "thm"---which 
is how it is done in amsmath.inc---then LyX will also convert that. Same 
goes for proposition --> prop. So that's another option.


rh



Re: Any words of wisdom switching from 1.4.2 to 1.5.6?

2008-08-27 Thread Pavel Sanda
> On Saturday 23 August 2008 06:40:32 am killermike wrote:
> > Steve Litt wrote:
> > > I have one book written in stone age LyX in 2001, using Dekl Tsur's color
> > > character style workaround. It's been upgraded to 1.4.2, and compiles on
> > > 1.4.2, but it doesn't compile on 1.5.x, and I dread getting it running in
> > >
> > >
> > > 1.5.6. But it has to be done :-)
> >
> > Would it be worth waiting for 1.6? 
> 
> Definitely not. There's a high probability that 1.6 will require a Qt version 
> higher than what my distribution gives me, requiring a HUGE expenditure of 
> effort and troubleshooting. I had this problem moving up to 1.5.3 on Mandriva 
> 2007. I've had this problem several times.

hi Steeve, just for clarification, for LyX 1.6 Qt 4.2.2 is needed, so i guess
you dont need to upgrade anything.

pavel