Re: lyx2lyx failure

2007-12-08 Thread José Matos
On Friday 07 December 2007 19:47:25 Christopher Menzel wrote:
> Howdy,
>
> I am unable to import some older LyX files (from 2000 -- LyX format
> version 215) and I'm not finding any solutions on the web or the LyX
> archives or Wiki.  Inside LyX, I get the following msg:
>
>(MyFile) is from a different version of LyX, but the lyx2lyx script
> failed to convert it.
>
> When I try to run lyx2lyx from the command line I get the following
> debug info:
>
> Traceback (most recent call last):
>File "./lyx2lyx", line 101, in 
>  sys.exit(main(sys.argv))
>File "./lyx2lyx", line 92, in main
>  file = LyX.File(end_format, input, output, error, debug,
> try_hard, cjk_encoding)
>File "/Applications/LyX.app/Contents/Resources/lyx2lyx/LyX.py",
> line 556, in __init__
>  self.read()
>File "/Applications/LyX.app/Contents/Resources/lyx2lyx/LyX.py",
> line 242, in read
>  self.encoding = get_encoding(self.language, self.inputencoding,
> self.format, self.cjk_encoding)
>File "/Applications/LyX.app/Contents/Resources/lyx2lyx/LyX.py",
> line 128, in get_encoding
>  return lang[language][3]
> KeyError: 'default'
>
> Looking through the LyX file, I do not see any unusual characters;
> appears to be standard ASCII all the way.  Help/advice appreciated.

  A fix to this problem was committed to the next version (1.5.3).

Meanwhile a simple fix is to change the file by hand.

Where it says (in the first lines of the file)

\language default

change it to

\language english

As I said this problem is already fixed in svn. This is just a shortcut in the 
meanwhile.

> Chris Menzel

-- 
José Abílio


Re: XeTeX and Hyperref

2007-12-08 Thread Maximilian Wollner


Am 08.12.2007 um 01:07 schrieb Bennett Helm:


On Dec 7, 2007, at 5:44 PM, Maximilian Wollner wrote:

Am 07.12.2007 um 22:05 schrieb Bennett Helm:


On Dec 7, 2007, at 5:38 AM, Helge Hafting wrote:


Maximilian Wollner wrote:


By the way, if all you want is to use Hoefler Text as your  
standard font, you can accomplish this using


\usepackage[osf]{gtamachoefler}

in your preamble (at least with recent versions of texlive.  
Then you can typeset using pdflatex and so use microtype, e.g.


Yes, Hoefler Text is (so far) the only reason for me to use  
XeTeX. I tried to put the command in my preamble but got an error:


LaTeX Error: File `gtamachoefler.sty' not found.

Then I installed the latest MacTeX package, reconfigured LyX  
but I still get the same error message. What can I do?
If you don't have this gtamachoefler.sty, download it from  
somewhere.

Not as a part of the latest MacTex, but as a separate package.


But it *is* a part of the latest MacTeX; it can be found at:

/usr/local/texlive/texmf-local/tex/latex/gtamacfonts/ 
gtamachoefler.sty


Well, that's strange, I've got a /usr/local/texlive/texmf-local/ 
tex/latex folder but apart from another "local"-folder (which is  
empty) inside it, that folder is empty, too. So not "gtamacfonts"  
folder whatsoever. Indeed, Spotlight can't find any folder with  
that name either.
Just a stupid question: it does not have to do anything with me  
not running an admin user, does it? Nor did I use an  
administrators account to install MacTeX...


Doesn't the MacTeX installer require an administrative password to  
work? (Otherwise it wouldn't be able to write files to /usr/local.)  
If you really installed the latest MacTeX -- available here:




-- then gtamacfonts are installed.

(Note that Spotlight doesn't index folders that are normally hidden  
by the Finder, including everything in /usr. So you shouldn't  
expect Spotlight to find it.)


I know. Sometimes, however, it does find hidden folders, this way I  
found the texmf-local folder (with exactly that path). Anyway :)




Anyway, I tried to find the package via i-installer (but did not  
find it, probably I lack the proper search term. There is a Font  
Utilities.pkg but when I launch it, it tells me that it's going to  
install MacTeX 2006 (so I aborted it).


Thanks again for your help and your patience :)


Note that i-Installer is now unsupported software, and people are  
instead encouraged to use MacTeX. I haven't used i-Installer for  
over a year now, but it did include gtamacfonts as a part of its  
standard teTeX/gwTeX installation. (Gerben Wierda was behind the  
development of gtamacfonts, and the "g" is for Gerben.)


Yes, however, it's still part of MacTeX (and recommended for, say,  
uninstall). I thought that I might easily install single packages via  
i-installer (eg. the needed gtamac...).




I wonder if you have multiple TeX installations. You can check by  
going to System Preferences and clicking on the "TeX Distribution"  
icon in the "Other" category. Make sure TeXLive-2007 is selected.


Until a few days ago I had a TeX installation from around two (or  
more) years ago (a gwTeX) and a MacTeX from early 2007, in the  
systems preferences the TeXlive 2007 was selected. I removed gwTeX,  
removed (as much as I could) from the MacTeX and installed the latest  
MacTeX; at least I managed to have only one possible TeX distribution  
in systems preferences. Well... I think I'll install the latest  
MacTeX on my girlfriends iBook (which is absolutely TeX-free so far)  
and then I'll see, whether I have to clean up my hidden folders (and  
all possible files of earlier distributions) that might cause a  
conflict.




Bennett


You're my man, Bennett :) If you are fed up or bored, don't worry,  
I'll simply use XeTeX then. Nevertheless, thank you for your patience  
and help,


Max


TeXLive rpm packages available to Fedora 8 users

2007-12-08 Thread Oisin Feeley
Hi,

For those of us running Fedora 8 it's now easy to install TeXLive (the
replacement to the no longer maintained teTeX) thanks to Red Hat's
Jindrich Novy.  As part of the work he's doing for the upcoming Fedora
9 Jindrich has released RPMs which are available at his personal page
in a repository which can be activated as detailed here:

http://fedoraproject.org/wiki/Releases/FeatureTexLive#head-694fe23a06614cef1588905ead64d7f2cf9edd74

Best wishes,
Oisin Feeley


Re: TeXLive rpm packages available to Fedora 8 users

2007-12-08 Thread Jürgen Spitzmüller
Oisin Feeley wrote:
> For those of us running Fedora 8 it's now easy to install TeXLive (the
> replacement to the no longer maintained teTeX) thanks to Red Hat's
> Jindrich Novy.  As part of the work he's doing for the upcoming Fedora
> 9 Jindrich has released RPMs which are available at his personal page
> in a repository which can be activated as detailed here:

Note, however, that we got crash reports from users of TeXLive with Fedora 8:
http://bugzilla.lyx.org/show_bug.cgi?id=4409

Jürgen


Re: "draft mode" version of lyx note?

2007-12-08 Thread Richard Heck

Jean-Marc Lasgouttes wrote:

nooj <[EMAIL PROTECTED]> writes:

  
I've been using the LyX notes to include information I may 
want for later, such as references, comments and suggestions 
to myself.


I like to print out my document and edit it by hand, to help 
separate productivity with time spent in front of a computer.  

Is there a way to have my printable LyX notes print out 
only when in "draft mode"?  

I keep going back and forth between wanting printouts to look 
"finished" or "public" and wanting printouts to be editable drafts.  
The only solution at the moment is to select every single

note (there are dozens) and change them from "greyed out"
or whatever to "comment" or whatever.  



Did you look at using branches?
  
The other possibility would be a bit of ERT that resets greyed out 
things to comments, or whatever. I don't know what the source code is 
here, but something along these lines: \let\greyedout=\comment, is what 
I have in mind.


rh

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



disabling microtype for lyxcode

2007-12-08 Thread reed
I noticed that my formatted text in a lyxcode environments didn't line up 
even though it was the fixed face.

This was caused by using the microtype package.

Using microtype shortens my 603 page book to 599 pages.

I am curious if there is any way to disable it just for my lyxcode 
environments?

I see \microtypesetup{expansion=false} but I don't know much about 
activate and protrusion and expansion.

Any ideas?

Or I can just keep microtype disabled.

  Jeremy C. Reed

p.s. If anyone is available to quickly give feedback on my cover ideas or 
book layout, please let me know.


Re: Edit complete source?

2007-12-08 Thread Paul A. Rubin

Jean-Marc Lasgouttes wrote:

Richard Heck <[EMAIL PROTECTED]> writes:


bigblop wrote:

But that does not work in the  "LaTeX source" area. Only in the LyX editor.
  

Yes, that's right. What people call "round-trip" source view doesn't
yet exist, though many people would like to see it. It's possible
it'll be implemented before too long, but there are non-trivial
obstacles to be overcome before then. In a way, all the pieces exist:
We can import LaTeX using tex2lyx. But the problem is that, at the
moment, tex2lyx isn't really integrated into LyX; it's a standalone
utility. And even if it were integrated into LyX, tex2lyx isn't always
terribly reliable. Those, as I understand things, are the main issues.


The main issue as I see it is that some people have the hope that writing
raw latex will allow them to get almost native support for things that
LyX does not support yet. If one does not like the kind of code that
LyX outputs, I do not see how it could be possible to modify it and
hop that LyX will stick to this new form of writing.

I'd like to hear about reasonable use cases.



One possible example:  I had a document in which I wanted an equation 
array with non-default column alignments.  I could not find any way to 
do this in LyX (which might just mean I missed something obvious -- but 
I posted the question here and got no responses).  So I exported a LaTeX 
file and edited it outside LyX.  That's fine, but suppose that I want to 
modify the document (in LyX) in the future while retaining that change. 
 I don't need LyX to display the equation array with the tweaked 
alignment, but I do want to be able to use LyX's math editing features 
on it (meaning that I do not want to convert it to ERT), and I'm not 
sure whether importing the LaTeX file will preserve the change and still 
produce a math inset v. ERT (I have not tried this).


This is probably not exactly what the original requester had in mind, 
but it might be an application of a round-trip edit feature.


/Paul



Re: lyx2lyx failure

2007-12-08 Thread Christopher Menzel

On Dec 8, 2007, at 4:06 AM, José Matos wrote:

On Friday 07 December 2007 19:47:25 Christopher Menzel wrote:

Howdy,

I am unable to import some older LyX files (from 2000 -- LyX format
version 215)


 A fix to this problem was committed to the next version (1.5.3).


Excellent.


Meanwhile a simple fix is to change the file by hand.

Where it says (in the first lines of the file)

\language default

change it to

\language english


Yes, great, works perfectly; thanks very much.

Chris Menzel



Re: TeXLive rpm packages available to Fedora 8 users

2007-12-08 Thread Neal Becker
Jürgen Spitzmüller wrote:

> Oisin Feeley wrote:
>> For those of us running Fedora 8 it's now easy to install TeXLive (the
>> replacement to the no longer maintained teTeX) thanks to Red Hat's
>> Jindrich Novy.  As part of the work he's doing for the upcoming Fedora
>> 9 Jindrich has released RPMs which are available at his personal page
>> in a repository which can be activated as detailed here:
> 
> Note, however, that we got crash reports from users of TeXLive with Fedora
> 8: http://bugzilla.lyx.org/show_bug.cgi?id=4409
> 
> Jürgen
In retrospect, the crash might be unrelated to the upgrade.



Re: problems with references, apsrev

2007-12-08 Thread Paul A. Rubin

Jennifer Brookes wrote:

Hi,

I am using the document class REVTeX4 to write an article and JabRef to 
write my references. JabRef writes bitex code that I can insert into 
lyx. I have been using apsrev as the style to insert my references which 
seems fine, except the second initials of authors never seem to come out 
right. For example:


@ARTICLE{PRL,
 author = {J.C. Brookes and F. Hartoutsiou and A.P. Horsfield and A.M. 
Stoneham},

 title = {Could humans recognize odor by phonon assisted tunneling?},
 journal = {Physics Review Letters},
 year = {2007},
 volume = {98},
 pages = {038101},
 owner = {Jennifer},
 timestamp = {2007.04.14}
}

in the .bib file, put when I export my document  to .pdf I get:

[1] J.C Brookes and F. Hartoutsiou and A. Horsfield and A. Stoneham

where the P and M are missing. If I try something like plainnat as the 
style, there is no problem, i.e.


[1] J.C. Brookes and F. Hartoutsiou and A.P. Horsfield and A.M. Stoneham

Except the sorting of the numbers goes all haywire and they appear 
alphabetically not numerically.


Please can anyone help?

Many thanks
Jenny




Try putting a space between first and middle initial in the .bib 
entries.  I think that BibTeX (or at least the apsrev style) interprets 
"A.P." as a first name and abbreviates it as "A."  I'm not sure why it 
would not do that with "J.C." -- it's consistent about reducing two 
initials without an intervening space to one on a test document of mine, 
including the first author.


Cheers,
Paul