Re: Latex error

2010-11-09 Thread Jürgen Spitzmüller
Guenter Milde wrote:
 The language switching code in the document is nearly the same. It's the
 preamble code that differs:

Günter, could you set up a document with this comparision and outline exactly 
where polyglossia and babel differ (in terms of what LyX must output/can 
support)?

I do not have time to dive into the polylossia documentation right now, but if 
your statement is correct, it would be probably easier than I thought, and the 
documentation would help implementing it.

Jürgen


Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Steve Litt
Hi all,

I'm involved in an argument on another list with one of these guys who says 
TeX is ancient technology not fit for modern books. Obviously he's full of 
beans unless he's doing coffee table books, but one place where this guy's 
gonna thrash me is fonts. Unless I'm mistaken, fonts other than the ones 
packaged with your LaTeX are incredibly difficult to do in LyX/LaTeX/TeX.

Is there documentation on how to take a random font and make it ready to use 
in LyX, LaTeX or TeX?

Thanks

SteveT

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



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Gour
On Tue, 9 Nov 2010 04:09:50 -0400
 Steve == Steve Litt wrote:

Steve Is there documentation on how to take a random font and make it
Steve ready to use in LyX, LaTeX or TeX?

Probably only by using XeTeX and/or LuaTeX.

Otoh, once when you install fonts, that's it, while having bad
typesetting engine is something which spoils the party constantly. ;)


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA



signature.asc
Description: PGP signature


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Liviu Andronic
On Tue, Nov 9, 2010 at 9:22 AM, Gour g...@atmarama.net wrote:
 Steve Is there documentation on how to take a random font and make it
 Steve ready to use in LyX, LaTeX or TeX?

 Probably only by using XeTeX and/or LuaTeX.

So you either read the wiki regarding XeTeX in 1.6.x, or dive into the
alphas or wait for 2.0. In my tests it was painless to change the
documents to XeTeX and use random system fonts.

Regards
Liviu


 Otoh, once when you install fonts, that's it, while having bad
 typesetting engine is something which spoils the party constantly. ;)


 Sincerely,
 Gour

 --

 Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA
 




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Foreign Language Support + Font Setup

2010-11-09 Thread Richard Heck

On 11/09/2010 04:54 AM, Daron Wilson wrote:

Walter,

I'm actually fairly new to Lyx, so I'm still finding my way a bit.  However, I 
came to LyX with a tad more LaTeX and XeTeX experience.  I've messed about a 
bit with XeTeX for Hebrew, Polytonic Greek, and Thai, and found that to be very 
helpful

I would recommend trying out LyX 2.0 Alpha 6.  I'm using it on OSX 10.6, and 
I've had no trouble so far, though I cannot speak for the Linux version.

The reason I've switched to LyX 2.0 is that it has XeTeX functionality built in.  In the document 
settings window there is a radio button for XeTeX, which makes LyX  default to XeTex as it's 
processing engine (the tool bar eyeballs and menu item view PDF (XeTeX) now 
work automatically as expected also). This has been working quite smoothly for me.

I'm not sure what your experience is with XeTeX/fontspec/TeX  markup, so I'll 
just include my own basic solution and if you have more questions about how to 
hack it for your own use I can try and answer them. As I mentioned, I'm still 
pretty new to the whole thing myself though, so hopefully some of the pros will 
chime in and help me out if I'm heading in the wrong direction, at least on the 
LyX implementation.

Regardless of whether you stick with LyX 1.6 or go with 2.0, the stuff below 
should work as long as you can get LyX to use XeTeX somehow, whether 
conveniently (2.0) or otherwise(1.6).

I've attached a module that sets up character insets for different languages.  
I like this approach because it allows me to use any system fonts I have in the 
output, and to tweak the typeset appearance of each language individually--e.g. 
my own favorite font for Hebrew, different favorite for Thai, scale the Greek 
font up, but scale the Chinese down, etc.

For where to put the module, and how to get Lyx to recognize it, check out the Layout 
Modules section in the help document Customizing LyX. (at least that is where it 
is in the 2.0 documentation)

If you can get the module to be recognized in LyX, then all you need to do is 
include it in your document settings.  You should be able find the new character 
style insets in the Edit---Text Style menu.   Just click the desired language 
style and input the unicode characters into the new inset box.

In order to typeset the insets correctly, you will also have to add the 
material I've included below to your document preamble.  The only thing you 
should have to change in your preamble is the font names, to whatever fonts you 
have available on your system (see the fontspec documentation for more info on 
setting up fonts).   I've attached a screenshot of a sample document in LyX, as 
well as the corresponding PDF output from XeTeX.

This is nice work, Daron, and an excellent example of how to use modules 
and character styles to extend LyX's functionality. The only thing I'll 
add is that this last thing you said, about adding things to the 
preamble, isn't actually necessary, since you can include the preamble 
information in the module itself, using the Preamble tag. E.g.:


InsetLayout Thai
LyxTypecharstyle
MultiPar1
Custom Pars1
LabelStringThai
LatexTypecommand
LatexNamethai
Preamble
%: - thai font
\newfontfamily{\TH}[Scale=1.2]{Ayuthaya}
\newcommand{\thai}[1]{{\TH #1}}
EndPreamble
End

Richard



Re: Latex error

2010-11-09 Thread Richard Heck

On 11/08/2010 05:22 PM, Jean-Marc Lasgouttes wrote:

Le 8 nov. 10 à 20:29, Richard Heck a écrit :

On 11/07/2010 11:45 PM, Uwe Stöhr wrote:

Am 07.11.2010 21:59, schrieb Richard Heck:

Shouldn't Use babel really be a document setting, rather than a 
preference?


Yes, definitively. Babel needs to be deactivated for some document 
classes and can cause troubles when using XeTeX. XeTeX has its own 
babel replacement and it might be possible that both can interfere.



I'll do this.


Are we sure that it is needed on a document basis? When I see how the 
global language

settings are not going away while being clearly a hack, I have doubts.

Isn't it enough to disable it with XeTeX and use Provide babel 1 when 
needed?


My sense, from the conversations here, is that there are times when one 
wants to load some package in the preamble and one needs to disable the 
automatic loading of babel. One could do Provide babel 1 in the local 
layout, but that's asking a lot of users. In this particular case, the 
layout file really should use that, but it was format 2, so it's clear 
why it doesn't.


What would really be best is if we had a central place, in 
DocumentSettings, where all such things could be set, for every package 
we automatically load. Maybe a combo box listing them, and then when you 
choose it, three radio buttons: Load Always, Load As Needed, Load Never. 
Right now, we have quite a few such settings scattered about in 
different places, for the math packages and other things. But users are 
always asking for finer control of package loading with almost every 
package we load.


Richard



2.0.0alpha5 xetex (texlive 2011/dev) failure

2010-11-09 Thread Neal Becker
First try with lyx 2.0.0alpha5 of xetex.  Log is attached.  Failure is 

! Undefined control sequence.
l.67 \ExplSyntaxOn
 This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2011/dev) 
(format=xelatex 2010.11.9)  9 NOV 2010 08:20
entering extended mode
 restricted \write18 enabled.
 %-line parsing enabled.
**equalizer_freq_response.tex
(./equalizer_freq_response.tex
LaTeX2e 2009/09/24
Babel v3.8l and hyphenation patterns for english, dumylang, nohyphenation, po
lish, russian, ukrainian, kurmanji, estonian, arabic, bokmal, nynorsk, ukenglis
h, usenglishmax, uppersorbian, basque, lithuanian, mongolian, mongolianlmc, ger
man-x-2009-06-19, ngerman-x-2009-06-19, french, monogreek, greek, armenian, swe
dish, latin, italian, coptic, finnish, bulgarian, portuguese, indonesian, hunga
rian, slovenian, welsh, catalan, irish, turkmen, latvian, dutch, spanish, serbi
an, farsi, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, ori
ya, panjabi, tamil, telugu, icelandic, pinyin, lao, ancientgreek, ibycus, sansk
rit, galician, german, ngerman, swissgerman, danish, romanian, slovak, czech, i
nterlingua, esperanto, loaded.

(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1
\linespacing=\dimen102
\normalparindent=\dimen103
\normaltopskip=\skip41
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\...@mathmargin=\skip42
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\...@emptytoks=\toks14
\...@=\dimen104
)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbra...@=\dimen105
) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\...@bad=\count80
LaTeX Info: Redefining \frac on input line 211.
\upr...@=\count81
\leftr...@=\count82
LaTeX Info: Redefining \overline on input line 307.
\class...@=\count83
\dotsc...@=\count84
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\mathstrut...@=\box26
\strut...@=\box27
\...@size=\dimen106
LaTeX Font Info:Redeclaring font encoding OML on input line 567.
LaTeX Font Info:Redeclaring font encoding OMS on input line 568.
\m...@depth=\count85
\...@maxmatrixcols=\count86
\dotssp...@=\muskip10
\...@parentequation=\count87
\dsp...@lvl=\count88
\...@help=\toks15
\...@=\count89
\col...@=\count90
\maxfie...@=\count91
\andh...@=\toks16
\eqnsh...@=\dimen107
\align...@=\dimen108
\tagsh...@=\dimen109
\tagwi...@=\dimen110
\totwi...@=\dimen111
\lin...@=\dimen112
\...@envbody=\toks17
\multlinegap=\skip43
\multlinetaggap=\skip44
\mathdisp...@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
LaTeX Font Info:Try loading font information for U+msa on input line 388.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:Overwriting math alphabet `\mathfrak' in version `bold'
(Font)  U/euf/m/n -- U/euf/b/n on input line 96.
)
\copyins=\insert233
\abstractbox=\box28
\listisep=\skip45
\...@part=\count92
\...@section=\count93
\...@subsection=\count94
\...@subsubsection=\count95
\...@paragraph=\count96
\...@subparagraph=\count97
\...@figure=\count98
\...@table=\count99
\abovecaptionskip=\skip46
\belowcaptionskip=\skip47
\captionindent=\dimen113
\...@style=\toks19
\...@bodyfont=\toks20
\...@headfont=\toks21
\...@notefont=\toks22
\...@headpunct=\toks23
\...@preskip=\skip48
\...@postskip=\skip49
\...@headsep=\skip50
\...@everypar=\toks24
) (/home/nbecker/texmf/tex/xelatex/fontspec/fontspec.sty
Package: fontspec 2007/06/20 v1.14 Advanced font selection for XeLaTeX
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional
)
\...@zf@newff=\count100
\...@zf@index=\count101
\...@zf@script=\count102
\...@zf@language=\count103
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
\c...@acount=\count104
\c...@bcount=\count105
\c...@adimen=\dimen114
\c...@bdimen=\dimen115
\c...@askip=\skip51
\c...@bskip=\skip52
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
\c...@ccount=\count106
\c...@cskip=\skip53
) (/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
\...@toks=\toks25

Re: Spellchecker and ú

2010-11-09 Thread Christopher Menzel
On Nov 7, 2010, at 2:59 PM, Stephan Witt wrote:
 ...Am 29.10.2010 um 22:01 schrieb Christopher Menzel:
 
 Greetings LyX users,
 
 The aspell-based spellchecker in LyX does not appear to be happy 
 checking a document containing a Spanish name that includes the 
 character ú.  Specifically, the name seems throw the checker pretty 
 seriously off balance; it begins to stop on perfectly ordinary words 
 that occur in the document a word or two *after* a word that it 
 apparently isn't recognizing internally -- for example, it asked if 
 I wanted to replace the word that with bisection, where that 
 occurred two words after bijection, which was clearly the word it 
 had stopped on internally.  Is there a solution to this beyond 
 avoiding non-English unicode characters?
 
 Sorry, I've no solution but a question.
 You're using LyX 1.6.7? Which platform?
 
 1.6.7 on a Mac, latest version of Snow Leopard.
 
 Interestingly... there are 2 options to use aspell then.
 What's your setup exactly? What did you do to make aspell work?
 
 IIRC, I installed a package that added a System Preferences thingy.  
 Beyond that I don't recall doing anything.  Spellchecking just worked.
 
 I'd guess it is cocoaSpell...
 
 Yes, that is correct.
 
 After upgrade to Snow Leopard I don't have it anymore.
 I'll check it on another system...
 
 To be sure: are you able to send me a test case?
 
 Sent to you directly.
 
 I tried it and I cannot reproduce your problem.
 
 What I did:
 * install cocoaSpell
 * start LyX 1.6.7
 * open preferences, goto language - spellcheck
 * select aspell and apply
 * press F7 then Ignore until end of document
 
 Sorry, not clear enough... here i had no error. 
 All is working with aspell (NOT library) at this point.
 Than I tried the other route to reproduce the problem.
 
 * reopen preferences, goto language - spellcheck
 * select aspell(library) and apply
 * F7 = error message: no word lists for en_US
 * paste into the Alternative language field of spellcheck preferences:
 /Library/Application Support/cocoAspell/aspell6-en-6.0-0/english.alias
 * F7 = error message: no word lists for 
 * so aspell(library) seems to not work here
 
 Please tell me, which way is yours?
 
 I installed cocoAspell; and, just in case, I just now reinstalled (ver 2.1). 
  And, except for documents containing ú and the like, spellchecking works; I 
 don't get the errors you are reporting.
 
 I'd like to know which aspell configuration in LyX's preferences you're using.

Well, I've selected aspell as the executable and I didn't have anything set 
as the alternative language, though I've also tried setting it to 
/Library/Application Support/cocoAspell/aspell6-en-6.0-0/english.alias, which 
makes no difference.

 Maybe it's impossible to reproduce because I have a 2nd aspell installation 
 from macports...

Right.

 To be sure I checked in Terminal.app my LANG value = de_DE.UTF-8
 
 I can't get LyX 2.0alpha6 running on my iMac; crashes almost immediately.  
 
 That's bad. Is it Intel Snow Leopard?
 What's the first few dozen lines of the crash report contents?
 
 Actually, it now seems to be working, so I'm not sure what the earlier 
 problem was.
 
 Good.
 
 Moreover, the spellchecker in 2.0alpha6 does NOT have the problem with ú 
 that I'm having with the spellchecker in LyX 1.6.7.
 
 Which spell checker did you try? The Native or Aspell or both?

I've tried setting the executable to ispell and aspell.  If I set it to hspell 
I get an error that ispell cannot start.

 ...
 I tried compiling my own svn version and the compile seemed to complete 
 without complaining (though this required changing some unsigned int 
 occurrences to int in Author.cpp) but the resulting binary crashes when I 
 try to run it and I don't have the time (and, most likely, the skillz) to 
 diagnose the problem. :-(
 
 The compile problem did exist only hours... you have to update your svn 
 checkout.
 
 Did you follow the recipes in INSTALL.MacOSX and now it crashes?

I updated and compiled without incident and the executable seems to be working 
well.  In particular, no problem is caused by the presence of ú and other such 
characters in the document, so the problem is becoming moot (and it's avoidable 
anyway, if not ideally, simply by inserting \'{u} as ERT in place of ú).

-chris



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Julien Rioux

On 09/11/2010 10:30 AM, Rob Oakes wrote:

(Including a chapter that covers this topic in detail, amongst other
things. But it isn't quite finished. And I am not sure that it will be in time
for your debate. Otherwise, i would send that too. It's where the figures came
from.)


I find your book project very interesting as I am sure others on this 
list do. But I found two typos in the pdfs:


In Figure 1
They also _have_ a heavier stroke and are designed to ...

In Figure 2
laso - also

Cheers,
Julien



Re: Latex error

2010-11-09 Thread Jacob Bishop
Perhaps without adding a high amount of useful information, I just want to
voice support for this. While writing my thesis, I had to disable the babel
package since there were incompatibilities with the thesis template I was
using.

I feel that making this configurable on a per-document basis is definitely
the right way to go. I also think Richard's suggestion

What would really be best is if we had a central place, in
DocumentSettings, where all such things could be set, for every package we
automatically load. Maybe a combo box listing them, and then when you choose
it, three radio buttons: Load Always, Load As Needed, Load Never. Right now,
we have quite a few such settings scattered about in different places, for
the math packages and other things. But users are always asking for finer
control of package loading with almost every package we load.

would provide a very nice solution.

Just my two bits.

Jacob


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Guenter Milde
On 2010-11-09, Rob Oakes wrote:

 gonna thrash me is fonts. Unless I'm mistaken, fonts other than the =
 ones=20
 packaged with your LaTeX are incredibly difficult to do in =
 LyX/LaTeX/TeX.

Well, there are some more TeX-ready fonts then the ones that come
packed with TeXLive or MikeTeX (also commercial ones). But for the
arbitrary system font, the better option is LuaTeX or XeTeX.


 I would specifically focus on XeTeX.  XeTeX in particular, as it uses =
 system fonts, supports OpenType, and is generally awesome.  The newest =
 version (released in TeX Live 2010) even has support for microtypography =
 and margin kerning. 

TeXLive 10 now also has a workable version of LuaTeX with even better
microtypography support. But in both cases this is still beta code.
Especially, mikrotype does not work (yet) out-of-the-box with arbitrary
fonts.

 Moreover, it's supported by LyX, which means advanced typography
 = for the masses.

There is preliminary XeTeX support in the development version. Not
ready for the masses.

...

 For long texts, with footnotes, numbered figures, tables, and other =
 miscellanea, the production tool to use is LaTeX. 

Agreed.

Also, for most of these texts, there are more than enough quality free
fonts available also for pure LaTeX.

Günter



Re: Latex error

2010-11-09 Thread Guenter Milde
On 2010-11-09, Uwe Stöhr wrote:
 Am 08.11.2010 23:22, schrieb Jean-Marc Lasgouttes:

 Are we sure that it is needed on a document basis?

 Yes.


 Now that I think of it, what is the exact effect of use babel? Just
 the usepackage, or more?

 It adds \usepackage{babel} but also adds the used languages as option
 list for the \documentclass command. 

or the babel package, depending on the global check-box setting.

 The last language in this option
 list is the document language. When turning off-babel the document
 language is English and the \documentclass command has no language
 options.

... unless you add them via DocumentSettingsClass OptionsCustom


Günter



Re: about LyX shortcuts

2010-11-09 Thread Guenter Milde
On 2010-11-09, Pavel Sanda wrote:
 zhaoyunsong wrote:

 I am writting to ask if I can define shortcuts that works only in math
 mode.

 no. but there has been already such request.

  hmm thinking more, we have command-alternative, which ends up in
 the first successfull lfun.

So, for the example, it might be fine to bind Ctrl-F to

  command-alternative; frac; find-file
  
or what the correct LFUN for these actions are...

Günter



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Rob Oakes

On Nov 9, 2010, at 1:33 PM, Guenter Milde wrote:

 There is preliminary XeTeX support in the development version. Not
 ready for the masses.

On this point, I have to disagree.

Preliminary as it might be, I've found it very stable.  I've been using LyX 2 
for nearly a year, and have transitioned to using XeTeX for everything.  And 
quite frankly, I have fewer problems with LyX 2 than I do with LyX 1.6.

The entire text for my book and innumerable articles and reports have come out 
of LyX 2, and while development versions some four or five months ago left much 
to be desired, the most recent codebase is very stable.  I quite literally 
cannot tell you the last time it crashed on me.  I so much prefer it that I 
will never go back to LyX 1.6.  (And the copy I use has my outline bits in it, 
which presumably destabilize it even more.)

I'm not trying to be disagreeable here, but I think you underestimate the 
quality of your own work.  When LyX 2 is finally released, you deserve a party. 
LyX has gone from being a good program to being an exceptional one and I, for 
one, applaud you for that.

Cheers,

Rob

Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread ehud.kap...@gmail.com

 When is the Lyx 2 release party?

On 11/9/2010 4:49 PM, Rob Oakes wrote:

On Nov 9, 2010, at 1:33 PM, Guenter Milde wrote:


There is preliminary XeTeX support in the development version. Not
ready for the masses.

On this point, I have to disagree.

Preliminary as it might be, I've found it very stable.  I've been using LyX 2 
for nearly a year, and have transitioned to using XeTeX for everything.  And 
quite frankly, I have fewer problems with LyX 2 than I do with LyX 1.6.

The entire text for my book and innumerable articles and reports have come out 
of LyX 2, and while development versions some four or five months ago left much 
to be desired, the most recent codebase is very stable.  I quite literally 
cannot tell you the last time it crashed on me.  I so much prefer it that I 
will never go back to LyX 1.6.  (And the copy I use has my outline bits in it, 
which presumably destabilize it even more.)

I'm not trying to be disagreeable here, but I think you underestimate the 
quality of your own work.  When LyX 2 is finally released, you deserve a party. 
LyX has gone from being a good program to being an exceptional one and I, for 
one, applaud you for that.

Cheers,

Rob


--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness /Professor
*Director*, Center of Excellence for /Computational  System neuroscience,/
The Friedman Brain Institute, MSSM
*Director*, The laboratory of /Visual  Computational Neuroscience/
Depts. of Neuroscience, Ophthalmology, Chemical  Structural Biology
The Mount Sinai School of Medicine
One Gustave Levy Place
New York, NY, 10029


when supporting Sweave out of the box?

2010-11-09 Thread Paolo Cavatore
Any update about Sweave's out of the box support?

 

Thanks,

 

Paolo



Re: marking text

2010-11-09 Thread Rodrigo Fresneda
I am also annoyed by this bug. Is it a lyx bug or a glipper bug? It is
amazing it has not been fixed yet; does anybody in the gnome community use
LyX? Or they just don't care for glipper?

On Tue, Feb 23, 2010 at 2:55 AM, Pavel Sanda sa...@lyx.org wrote:

 Bernd Schubert wrote:
  I started to work with lyx I also switched from klipper to glipper
 and
  didn't notice it pays bad games with me. Didn't find an option to disable

 may its worth to report this to glipper developers?
 pavel



Re: hiding the menu bar

2010-11-09 Thread Jose Quesada
I've also added a shortcut to toggle the status bar.
Is there any way I could tell lyx to start up with both menu and status
hidden?

Thanks,
-J

On Sat, Nov 6, 2010 at 8:44 AM, Jose Quesada ques...@gmail.com wrote:

 This is great.
 Thanks!


 On Fri, Nov 5, 2010 at 2:48 PM, Richard Heck rgh...@comcast.net wrote:

 On 11/05/2010 09:26 AM, Pavel Sanda wrote:

 Jose Quesada wrote:


 I finf the ability of most KDE apps of hiding the menu bar very useful.
 You
 can assign a shortcut to toggle it.
 Is this possible in lyx? If not, is it worth a feature request?


 alt+x
 ui-toggle menubar
 enter



 And of course you can assign a shortcut to ui-toggle menubar.

 rh




 --
 Best,
 -Jose

 Jose Quesada, PhD.
 Research scientist,
 Max Planck Institute,
 Center for Adaptive Behavior and Cognition,
 Berlin
 http://www.josequesada.name/
 http://twitter.com/Quesada




-- 
Best,
-Jose

Jose Quesada, PhD.
Research scientist,
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


how can I input ^

2010-11-09 Thread zhao_yunsong
SHIFT +^ is binded to the supscript, then how can I input ^

2010-11-10 



zhao_yunsong 
No virus found
Checked by Hillstone Networks AntiVirus


Re: how can I input ^

2010-11-09 Thread Waluyo Adi Siswanto
 SHIFT +^ is binded to the supscript, then how can I input ^


If you are in math mode, you can use superscript (also subscript). You
can see the tool at the bottom of your lyx window (appear
automatically in math mode/equation).

In math mode, the superscript also work, just press Shift+^ . For
subscript, Shift+-

Regards
waluyo


Re: how can I input quot;^quot;

2010-11-09 Thread Jack Tanner
zhao_yunsong zhao_yunsong at 163.com writes:

 SHIFT +^ is binded to the supscript, then how 
 can I input ^

It's only bound to superscript in Math mode, of course. And there, you're
looking for \hat.



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread stefano franchi
On Tue, Nov 9, 2010 at 2:33 PM, Guenter Milde mi...@users.berlios.dewrote:

 On 2010-11-09, Rob Oakes wrote:

  I would specifically focus on XeTeX.  XeTeX in particular, as it uses =
  system fonts, supports OpenType, and is generally awesome.  The newest =
  version (released in TeX Live 2010) even has support for microtypography
 =
  and margin kerning.

 TeXLive 10 now also has a workable version of LuaTeX with even better
 microtypography support. But in both cases this is still beta code.
 Especially, mikrotype does not work (yet) out-of-the-box with arbitrary
 fonts.


Rob,

do you have any advice or pointers to sites explaining how to use margin
kerning in XeTeX? The notes posted by J Kew on the mailing list and on the
XeTeX wiki are way too cryptic for me.

Also, am I correct in thinking that microtypography's font expansion (which
greatly improves paragraph layout, in my opinion) is still not working in
XeTeX?


Cheers,

Stefano




Re: Foreign Language Support + Font Setup / fontwrap package for XeLaTex ?

2010-11-09 Thread Michael Joyner
What is needed is something like:

http://www.ctan.org/tex-archive/macros/xetex/latex/fontwrap/

http://www.ctan.org/tex-archive/macros/xetex/latex/fontwrap/So that fonts
are *autoselected* based on UNICODE range unless otherwise overridden.

fontwrap package for XeLaTex

Michiel Kamermans, june 2008
 Available under GPL


What is it?
  --

fontwrap is a package for XeLaTeX to automatically
wrap multilingual utf8 encoded text in approriate
font tags, issuing fontspec commands whenever text
switches from one unicode block to another. As most
of us use TeX in order to separate visual styling
from the actual document as much as possible, this
package removes the need to add fonttags all over
the place when writing multilingual documents.


On Tue, Nov 9, 2010 at 9:02 AM, Walter walter.stan...@gmail.com wrote:

 Daron,

 Thanks so much for your detailed reply!

 I was very inspired by your screenshot and output PDF, which have me
 hope that a decent solution *is*, in fact, possible!

 I had no idea that it was possible to set up character styles with
 font associations.  This seems like the right sort of solution.

 First an update.  Prior to your reply I did already try upgrading to
 LyX 2.0 alpha6 as recommended, however it did not change my situation
 very much as I had by that stage already set up TeX codeboxes before
 and after every piece of non-English text to specifically change the
 font.  That solution 'works', except that it makes the document
 annoying to edit, and it's a pain when I want to, say, change the font
 used for Chinese right throughout the document. (A job for sed!)  Also
 in upgrading, I had failed to see the the 'Document  Settings 
 Output  Use XeTeX' checkbox, which is great and seems to have a
 follow-on effect on modifying various elements elsewhere within the
 Document Settings dialog ... so thanks for pointing that one out.

  If you can get the module to be recognized in LyX

 In attempting to replicate your solution, I have had problems
 specifically with this part until I realised a full
 start/reconfigure/stop/start cycle was necessary to make the new
 module visible.  I think I had assumed incorrectly that stop/start
 would have the same effect.

 The result: finally, I did succeed in getting your solution to work.
 Hooray!  Thank you so much.  If you are ever in Los
 Angeles/London/Kunming/Sydney (my present four homes) and wish to have
 a free 'adult beverage' (in deference to the LyX customization
 document), then you are most welcome.

 Now, I will try to give something back.

 *ahem* Thoughts for the future, or Dear LyX Community:

  It seems to me that the primary stated goal of LyX is to combine the
 flexibility of TeX with the ease of use of a GUI.

  Right now, 'ease of use' would not describe accurately the process
 required to achieve a relatively pleasant process for editing
 multilingual documents.

  Whilst the recent addition of built-in XeTeX support to LyX 2.0 is a
 huge step in the right direction, at present the website's claim of
 No more endless tinkering with formatting details, 'finger painting'
 font attributes is somewhat inflated when it comes to this sort of
 situation.

  In effect, even with Daron's comparatively elegant solution, one must
 still essentially finger paint structures corresponding to fonts, and
 only after significant setup to enable the process.

  IMHO, the best possible solution for documents with heavy use of
 multilingual text would seem to be a combination of this type of
 solution (character styles with font associations), and automatic
 unicode block-based input classification.   This would enable LyX to
 automatically change the default, available and/or recommended styles
 based on what kind of character was input.

  Whilst there are a few obvious complications (Han characters - CJK -
 which language?), if a user interface is provided by LyX that allows
 the user to configure the matching process by defining unicode block
 to character style and font associations, then 'just type'-level ease
 of use could finally be achieved.  Furthermore, by detecting the
 available unicode glyphs in each font, intelligent font suggestions
 could be made when defining a new, unicode block-associated character
 style.

 Please find a suggested UI mockup attached.

  (Probably, the language concept within Daron's module should be
 dropped in favour of character style with unicode block titles as
 default nomenclature)

 What do others think of this proposal?

 - Walter




-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: how can I input ^

2010-11-09 Thread Sam Liddicott
Press shift-F5 first

Sam

zhao_yunsong zhao_yuns...@163.com wrote:

SHIFT +^ is binded to the supscript, then how can I input ^

2010-11-10 



zhao_yunsong 

No virus found
   Checked by Hillstone Networks AntiVirus


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Rob Oakes
Hi Stefano,

 do you have any advice or pointers to sites explaining how to use margin 
 kerning in XeTeX? The notes posted by J Kew on the mailing list and on the 
 XeTeX wiki are way too cryptic for me.

Short answer, yes.  As far as I know, it hasn't yet been discussed much in the 
Interwebs, but there are several resources you can find on it.  The place to 
probably start is the XeTeX Microtypography website:

http://xetex.tk/mediawiki/index.php/Microtype_package_%28preliminary_version%29

There, you can download the latest version of the microtype package that 
enables margin kerning with XeTeX. To get things working correctly, you must 
use version 2.5 (or newer) of the package.  If the manual isn't dated 
11/5/2010, then you have the wrong one.

The microtype distributed with TeXLive 2010 *will not work.*  (And at the 
moment, xetex microtype is pretty limited.  It's only margin kerning.  Font 
expansion doesn't work.  Yet.)

After download, process the microtype.ins file with xelatex which will create 
the .sty files you need.

xelatex microtype.ins

Copy the entire directory to somewhere in your LaTeX path.  Run texhash.

Once you've installed the newest version of the package, you can enable 
microtype support by adding:

\usepackage{microtype}

to your preamble (see the attached sample doc).  While it is possible to tweak 
things, it shouldn't be necessary.  In fact, don't. microtype should detect 
which version of XeTeX you are using and enable the appropriate options.  The 
only time I ran into problems is when I tried to tweak the settings.

After that, put together a simple test document (or use mine).  To see if 
things are working correctly, you might want to turn on the showframes option 
of geometry.  (Test document also shows how to do this. PDF output also 
attached.)

Please keep in mind, you must have XeTeX 0.9997.4 or higher installed for 
margin kerning to work.  This version of XeTeX comes with TeX Live 2010.  I've 
been playing with it on my Mac, and it's been pretty stable.  As of yet, I have 
not looked at how hard it would be to get things up and running on Linux or 
Windows.

On another note, in my exuberance yesterday, I might have overstated the 
stability of LyX, the new version of XeLaTeX and microtype.  In my personal 
experience, it has been very, very stable.   But I should probably include the 
requisite disclaimer: your mileage may vary.

If you have any troubles or if something isn't clear, let me know.  I'm off 
work this week to try and get the book done and will be watching the list.

Cheers,

Rob

Attached:

1.) Sample LyX document, showing XeTeX microtype features.  Requires TeX Live 
2010, beta version of microtype package and beta1 of LyX to compile.
2.) Sample PDF output.


TestDoc-XeTeX.pdf
Description: Adobe PDF document


TestDoc-XeTeX.lyx
Description: Binary data


Re: Latex error

2010-11-09 Thread Jürgen Spitzmüller
Guenter Milde wrote:
 The language switching code in the document is nearly the same. It's the
 preamble code that differs:

Günter, could you set up a document with this comparision and outline exactly 
where polyglossia and babel differ (in terms of what LyX must output/can 
support)?

I do not have time to dive into the polylossia documentation right now, but if 
your statement is correct, it would be probably easier than I thought, and the 
documentation would help implementing it.

Jürgen


Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Steve Litt
Hi all,

I'm involved in an argument on another list with one of these guys who says 
TeX is ancient technology not fit for modern books. Obviously he's full of 
beans unless he's doing coffee table books, but one place where this guy's 
gonna thrash me is fonts. Unless I'm mistaken, fonts other than the ones 
packaged with your LaTeX are incredibly difficult to do in LyX/LaTeX/TeX.

Is there documentation on how to take a random font and make it ready to use 
in LyX, LaTeX or TeX?

Thanks

SteveT

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



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Gour
On Tue, 9 Nov 2010 04:09:50 -0400
 Steve == Steve Litt wrote:

Steve Is there documentation on how to take a random font and make it
Steve ready to use in LyX, LaTeX or TeX?

Probably only by using XeTeX and/or LuaTeX.

Otoh, once when you install fonts, that's it, while having bad
typesetting engine is something which spoils the party constantly. ;)


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA



signature.asc
Description: PGP signature


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Liviu Andronic
On Tue, Nov 9, 2010 at 9:22 AM, Gour g...@atmarama.net wrote:
 Steve Is there documentation on how to take a random font and make it
 Steve ready to use in LyX, LaTeX or TeX?

 Probably only by using XeTeX and/or LuaTeX.

So you either read the wiki regarding XeTeX in 1.6.x, or dive into the
alphas or wait for 2.0. In my tests it was painless to change the
documents to XeTeX and use random system fonts.

Regards
Liviu


 Otoh, once when you install fonts, that's it, while having bad
 typesetting engine is something which spoils the party constantly. ;)


 Sincerely,
 Gour

 --

 Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA
 




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Foreign Language Support + Font Setup

2010-11-09 Thread Richard Heck

On 11/09/2010 04:54 AM, Daron Wilson wrote:

Walter,

I'm actually fairly new to Lyx, so I'm still finding my way a bit.  However, I 
came to LyX with a tad more LaTeX and XeTeX experience.  I've messed about a 
bit with XeTeX for Hebrew, Polytonic Greek, and Thai, and found that to be very 
helpful

I would recommend trying out LyX 2.0 Alpha 6.  I'm using it on OSX 10.6, and 
I've had no trouble so far, though I cannot speak for the Linux version.

The reason I've switched to LyX 2.0 is that it has XeTeX functionality built in.  In the document 
settings window there is a radio button for XeTeX, which makes LyX  default to XeTex as it's 
processing engine (the tool bar eyeballs and menu item view PDF (XeTeX) now 
work automatically as expected also). This has been working quite smoothly for me.

I'm not sure what your experience is with XeTeX/fontspec/TeX  markup, so I'll 
just include my own basic solution and if you have more questions about how to 
hack it for your own use I can try and answer them. As I mentioned, I'm still 
pretty new to the whole thing myself though, so hopefully some of the pros will 
chime in and help me out if I'm heading in the wrong direction, at least on the 
LyX implementation.

Regardless of whether you stick with LyX 1.6 or go with 2.0, the stuff below 
should work as long as you can get LyX to use XeTeX somehow, whether 
conveniently (2.0) or otherwise(1.6).

I've attached a module that sets up character insets for different languages.  
I like this approach because it allows me to use any system fonts I have in the 
output, and to tweak the typeset appearance of each language individually--e.g. 
my own favorite font for Hebrew, different favorite for Thai, scale the Greek 
font up, but scale the Chinese down, etc.

For where to put the module, and how to get Lyx to recognize it, check out the Layout 
Modules section in the help document Customizing LyX. (at least that is where it 
is in the 2.0 documentation)

If you can get the module to be recognized in LyX, then all you need to do is 
include it in your document settings.  You should be able find the new character 
style insets in the Edit---Text Style menu.   Just click the desired language 
style and input the unicode characters into the new inset box.

In order to typeset the insets correctly, you will also have to add the 
material I've included below to your document preamble.  The only thing you 
should have to change in your preamble is the font names, to whatever fonts you 
have available on your system (see the fontspec documentation for more info on 
setting up fonts).   I've attached a screenshot of a sample document in LyX, as 
well as the corresponding PDF output from XeTeX.

This is nice work, Daron, and an excellent example of how to use modules 
and character styles to extend LyX's functionality. The only thing I'll 
add is that this last thing you said, about adding things to the 
preamble, isn't actually necessary, since you can include the preamble 
information in the module itself, using the Preamble tag. E.g.:


InsetLayout Thai
LyxTypecharstyle
MultiPar1
Custom Pars1
LabelStringThai
LatexTypecommand
LatexNamethai
Preamble
%: - thai font
\newfontfamily{\TH}[Scale=1.2]{Ayuthaya}
\newcommand{\thai}[1]{{\TH #1}}
EndPreamble
End

Richard



Re: Latex error

2010-11-09 Thread Richard Heck

On 11/08/2010 05:22 PM, Jean-Marc Lasgouttes wrote:

Le 8 nov. 10 à 20:29, Richard Heck a écrit :

On 11/07/2010 11:45 PM, Uwe Stöhr wrote:

Am 07.11.2010 21:59, schrieb Richard Heck:

Shouldn't Use babel really be a document setting, rather than a 
preference?


Yes, definitively. Babel needs to be deactivated for some document 
classes and can cause troubles when using XeTeX. XeTeX has its own 
babel replacement and it might be possible that both can interfere.



I'll do this.


Are we sure that it is needed on a document basis? When I see how the 
global language

settings are not going away while being clearly a hack, I have doubts.

Isn't it enough to disable it with XeTeX and use Provide babel 1 when 
needed?


My sense, from the conversations here, is that there are times when one 
wants to load some package in the preamble and one needs to disable the 
automatic loading of babel. One could do Provide babel 1 in the local 
layout, but that's asking a lot of users. In this particular case, the 
layout file really should use that, but it was format 2, so it's clear 
why it doesn't.


What would really be best is if we had a central place, in 
DocumentSettings, where all such things could be set, for every package 
we automatically load. Maybe a combo box listing them, and then when you 
choose it, three radio buttons: Load Always, Load As Needed, Load Never. 
Right now, we have quite a few such settings scattered about in 
different places, for the math packages and other things. But users are 
always asking for finer control of package loading with almost every 
package we load.


Richard



2.0.0alpha5 xetex (texlive 2011/dev) failure

2010-11-09 Thread Neal Becker
First try with lyx 2.0.0alpha5 of xetex.  Log is attached.  Failure is 

! Undefined control sequence.
l.67 \ExplSyntaxOn
 This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2011/dev) 
(format=xelatex 2010.11.9)  9 NOV 2010 08:20
entering extended mode
 restricted \write18 enabled.
 %-line parsing enabled.
**equalizer_freq_response.tex
(./equalizer_freq_response.tex
LaTeX2e 2009/09/24
Babel v3.8l and hyphenation patterns for english, dumylang, nohyphenation, po
lish, russian, ukrainian, kurmanji, estonian, arabic, bokmal, nynorsk, ukenglis
h, usenglishmax, uppersorbian, basque, lithuanian, mongolian, mongolianlmc, ger
man-x-2009-06-19, ngerman-x-2009-06-19, french, monogreek, greek, armenian, swe
dish, latin, italian, coptic, finnish, bulgarian, portuguese, indonesian, hunga
rian, slovenian, welsh, catalan, irish, turkmen, latvian, dutch, spanish, serbi
an, farsi, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, ori
ya, panjabi, tamil, telugu, icelandic, pinyin, lao, ancientgreek, ibycus, sansk
rit, galician, german, ngerman, swissgerman, danish, romanian, slovak, czech, i
nterlingua, esperanto, loaded.

(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1
\linespacing=\dimen102
\normalparindent=\dimen103
\normaltopskip=\skip41
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\...@mathmargin=\skip42
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\...@emptytoks=\toks14
\...@=\dimen104
)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbra...@=\dimen105
) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\...@bad=\count80
LaTeX Info: Redefining \frac on input line 211.
\upr...@=\count81
\leftr...@=\count82
LaTeX Info: Redefining \overline on input line 307.
\class...@=\count83
\dotsc...@=\count84
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\mathstrut...@=\box26
\strut...@=\box27
\...@size=\dimen106
LaTeX Font Info:Redeclaring font encoding OML on input line 567.
LaTeX Font Info:Redeclaring font encoding OMS on input line 568.
\m...@depth=\count85
\...@maxmatrixcols=\count86
\dotssp...@=\muskip10
\...@parentequation=\count87
\dsp...@lvl=\count88
\...@help=\toks15
\...@=\count89
\col...@=\count90
\maxfie...@=\count91
\andh...@=\toks16
\eqnsh...@=\dimen107
\align...@=\dimen108
\tagsh...@=\dimen109
\tagwi...@=\dimen110
\totwi...@=\dimen111
\lin...@=\dimen112
\...@envbody=\toks17
\multlinegap=\skip43
\multlinetaggap=\skip44
\mathdisp...@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
LaTeX Font Info:Try loading font information for U+msa on input line 388.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:Overwriting math alphabet `\mathfrak' in version `bold'
(Font)  U/euf/m/n -- U/euf/b/n on input line 96.
)
\copyins=\insert233
\abstractbox=\box28
\listisep=\skip45
\...@part=\count92
\...@section=\count93
\...@subsection=\count94
\...@subsubsection=\count95
\...@paragraph=\count96
\...@subparagraph=\count97
\...@figure=\count98
\...@table=\count99
\abovecaptionskip=\skip46
\belowcaptionskip=\skip47
\captionindent=\dimen113
\...@style=\toks19
\...@bodyfont=\toks20
\...@headfont=\toks21
\...@notefont=\toks22
\...@headpunct=\toks23
\...@preskip=\skip48
\...@postskip=\skip49
\...@headsep=\skip50
\...@everypar=\toks24
) (/home/nbecker/texmf/tex/xelatex/fontspec/fontspec.sty
Package: fontspec 2007/06/20 v1.14 Advanced font selection for XeLaTeX
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional
)
\...@zf@newff=\count100
\...@zf@index=\count101
\...@zf@script=\count102
\...@zf@language=\count103
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
\c...@acount=\count104
\c...@bcount=\count105
\c...@adimen=\dimen114
\c...@bdimen=\dimen115
\c...@askip=\skip51
\c...@bskip=\skip52
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
\c...@ccount=\count106
\c...@cskip=\skip53
) (/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
\...@toks=\toks25

Re: Spellchecker and ú

2010-11-09 Thread Christopher Menzel
On Nov 7, 2010, at 2:59 PM, Stephan Witt wrote:
 ...Am 29.10.2010 um 22:01 schrieb Christopher Menzel:
 
 Greetings LyX users,
 
 The aspell-based spellchecker in LyX does not appear to be happy 
 checking a document containing a Spanish name that includes the 
 character ú.  Specifically, the name seems throw the checker pretty 
 seriously off balance; it begins to stop on perfectly ordinary words 
 that occur in the document a word or two *after* a word that it 
 apparently isn't recognizing internally -- for example, it asked if 
 I wanted to replace the word that with bisection, where that 
 occurred two words after bijection, which was clearly the word it 
 had stopped on internally.  Is there a solution to this beyond 
 avoiding non-English unicode characters?
 
 Sorry, I've no solution but a question.
 You're using LyX 1.6.7? Which platform?
 
 1.6.7 on a Mac, latest version of Snow Leopard.
 
 Interestingly... there are 2 options to use aspell then.
 What's your setup exactly? What did you do to make aspell work?
 
 IIRC, I installed a package that added a System Preferences thingy.  
 Beyond that I don't recall doing anything.  Spellchecking just worked.
 
 I'd guess it is cocoaSpell...
 
 Yes, that is correct.
 
 After upgrade to Snow Leopard I don't have it anymore.
 I'll check it on another system...
 
 To be sure: are you able to send me a test case?
 
 Sent to you directly.
 
 I tried it and I cannot reproduce your problem.
 
 What I did:
 * install cocoaSpell
 * start LyX 1.6.7
 * open preferences, goto language - spellcheck
 * select aspell and apply
 * press F7 then Ignore until end of document
 
 Sorry, not clear enough... here i had no error. 
 All is working with aspell (NOT library) at this point.
 Than I tried the other route to reproduce the problem.
 
 * reopen preferences, goto language - spellcheck
 * select aspell(library) and apply
 * F7 = error message: no word lists for en_US
 * paste into the Alternative language field of spellcheck preferences:
 /Library/Application Support/cocoAspell/aspell6-en-6.0-0/english.alias
 * F7 = error message: no word lists for 
 * so aspell(library) seems to not work here
 
 Please tell me, which way is yours?
 
 I installed cocoAspell; and, just in case, I just now reinstalled (ver 2.1). 
  And, except for documents containing ú and the like, spellchecking works; I 
 don't get the errors you are reporting.
 
 I'd like to know which aspell configuration in LyX's preferences you're using.

Well, I've selected aspell as the executable and I didn't have anything set 
as the alternative language, though I've also tried setting it to 
/Library/Application Support/cocoAspell/aspell6-en-6.0-0/english.alias, which 
makes no difference.

 Maybe it's impossible to reproduce because I have a 2nd aspell installation 
 from macports...

Right.

 To be sure I checked in Terminal.app my LANG value = de_DE.UTF-8
 
 I can't get LyX 2.0alpha6 running on my iMac; crashes almost immediately.  
 
 That's bad. Is it Intel Snow Leopard?
 What's the first few dozen lines of the crash report contents?
 
 Actually, it now seems to be working, so I'm not sure what the earlier 
 problem was.
 
 Good.
 
 Moreover, the spellchecker in 2.0alpha6 does NOT have the problem with ú 
 that I'm having with the spellchecker in LyX 1.6.7.
 
 Which spell checker did you try? The Native or Aspell or both?

I've tried setting the executable to ispell and aspell.  If I set it to hspell 
I get an error that ispell cannot start.

 ...
 I tried compiling my own svn version and the compile seemed to complete 
 without complaining (though this required changing some unsigned int 
 occurrences to int in Author.cpp) but the resulting binary crashes when I 
 try to run it and I don't have the time (and, most likely, the skillz) to 
 diagnose the problem. :-(
 
 The compile problem did exist only hours... you have to update your svn 
 checkout.
 
 Did you follow the recipes in INSTALL.MacOSX and now it crashes?

I updated and compiled without incident and the executable seems to be working 
well.  In particular, no problem is caused by the presence of ú and other such 
characters in the document, so the problem is becoming moot (and it's avoidable 
anyway, if not ideally, simply by inserting \'{u} as ERT in place of ú).

-chris



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Julien Rioux

On 09/11/2010 10:30 AM, Rob Oakes wrote:

(Including a chapter that covers this topic in detail, amongst other
things. But it isn't quite finished. And I am not sure that it will be in time
for your debate. Otherwise, i would send that too. It's where the figures came
from.)


I find your book project very interesting as I am sure others on this 
list do. But I found two typos in the pdfs:


In Figure 1
They also _have_ a heavier stroke and are designed to ...

In Figure 2
laso - also

Cheers,
Julien



Re: Latex error

2010-11-09 Thread Jacob Bishop
Perhaps without adding a high amount of useful information, I just want to
voice support for this. While writing my thesis, I had to disable the babel
package since there were incompatibilities with the thesis template I was
using.

I feel that making this configurable on a per-document basis is definitely
the right way to go. I also think Richard's suggestion

What would really be best is if we had a central place, in
DocumentSettings, where all such things could be set, for every package we
automatically load. Maybe a combo box listing them, and then when you choose
it, three radio buttons: Load Always, Load As Needed, Load Never. Right now,
we have quite a few such settings scattered about in different places, for
the math packages and other things. But users are always asking for finer
control of package loading with almost every package we load.

would provide a very nice solution.

Just my two bits.

Jacob


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Guenter Milde
On 2010-11-09, Rob Oakes wrote:

 gonna thrash me is fonts. Unless I'm mistaken, fonts other than the =
 ones=20
 packaged with your LaTeX are incredibly difficult to do in =
 LyX/LaTeX/TeX.

Well, there are some more TeX-ready fonts then the ones that come
packed with TeXLive or MikeTeX (also commercial ones). But for the
arbitrary system font, the better option is LuaTeX or XeTeX.


 I would specifically focus on XeTeX.  XeTeX in particular, as it uses =
 system fonts, supports OpenType, and is generally awesome.  The newest =
 version (released in TeX Live 2010) even has support for microtypography =
 and margin kerning. 

TeXLive 10 now also has a workable version of LuaTeX with even better
microtypography support. But in both cases this is still beta code.
Especially, mikrotype does not work (yet) out-of-the-box with arbitrary
fonts.

 Moreover, it's supported by LyX, which means advanced typography
 = for the masses.

There is preliminary XeTeX support in the development version. Not
ready for the masses.

...

 For long texts, with footnotes, numbered figures, tables, and other =
 miscellanea, the production tool to use is LaTeX. 

Agreed.

Also, for most of these texts, there are more than enough quality free
fonts available also for pure LaTeX.

Günter



Re: Latex error

2010-11-09 Thread Guenter Milde
On 2010-11-09, Uwe Stöhr wrote:
 Am 08.11.2010 23:22, schrieb Jean-Marc Lasgouttes:

 Are we sure that it is needed on a document basis?

 Yes.


 Now that I think of it, what is the exact effect of use babel? Just
 the usepackage, or more?

 It adds \usepackage{babel} but also adds the used languages as option
 list for the \documentclass command. 

or the babel package, depending on the global check-box setting.

 The last language in this option
 list is the document language. When turning off-babel the document
 language is English and the \documentclass command has no language
 options.

... unless you add them via DocumentSettingsClass OptionsCustom


Günter



Re: about LyX shortcuts

2010-11-09 Thread Guenter Milde
On 2010-11-09, Pavel Sanda wrote:
 zhaoyunsong wrote:

 I am writting to ask if I can define shortcuts that works only in math
 mode.

 no. but there has been already such request.

  hmm thinking more, we have command-alternative, which ends up in
 the first successfull lfun.

So, for the example, it might be fine to bind Ctrl-F to

  command-alternative; frac; find-file
  
or what the correct LFUN for these actions are...

Günter



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Rob Oakes

On Nov 9, 2010, at 1:33 PM, Guenter Milde wrote:

 There is preliminary XeTeX support in the development version. Not
 ready for the masses.

On this point, I have to disagree.

Preliminary as it might be, I've found it very stable.  I've been using LyX 2 
for nearly a year, and have transitioned to using XeTeX for everything.  And 
quite frankly, I have fewer problems with LyX 2 than I do with LyX 1.6.

The entire text for my book and innumerable articles and reports have come out 
of LyX 2, and while development versions some four or five months ago left much 
to be desired, the most recent codebase is very stable.  I quite literally 
cannot tell you the last time it crashed on me.  I so much prefer it that I 
will never go back to LyX 1.6.  (And the copy I use has my outline bits in it, 
which presumably destabilize it even more.)

I'm not trying to be disagreeable here, but I think you underestimate the 
quality of your own work.  When LyX 2 is finally released, you deserve a party. 
LyX has gone from being a good program to being an exceptional one and I, for 
one, applaud you for that.

Cheers,

Rob

Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread ehud.kap...@gmail.com

 When is the Lyx 2 release party?

On 11/9/2010 4:49 PM, Rob Oakes wrote:

On Nov 9, 2010, at 1:33 PM, Guenter Milde wrote:


There is preliminary XeTeX support in the development version. Not
ready for the masses.

On this point, I have to disagree.

Preliminary as it might be, I've found it very stable.  I've been using LyX 2 
for nearly a year, and have transitioned to using XeTeX for everything.  And 
quite frankly, I have fewer problems with LyX 2 than I do with LyX 1.6.

The entire text for my book and innumerable articles and reports have come out 
of LyX 2, and while development versions some four or five months ago left much 
to be desired, the most recent codebase is very stable.  I quite literally 
cannot tell you the last time it crashed on me.  I so much prefer it that I 
will never go back to LyX 1.6.  (And the copy I use has my outline bits in it, 
which presumably destabilize it even more.)

I'm not trying to be disagreeable here, but I think you underestimate the 
quality of your own work.  When LyX 2 is finally released, you deserve a party. 
LyX has gone from being a good program to being an exceptional one and I, for 
one, applaud you for that.

Cheers,

Rob


--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness /Professor
*Director*, Center of Excellence for /Computational  System neuroscience,/
The Friedman Brain Institute, MSSM
*Director*, The laboratory of /Visual  Computational Neuroscience/
Depts. of Neuroscience, Ophthalmology, Chemical  Structural Biology
The Mount Sinai School of Medicine
One Gustave Levy Place
New York, NY, 10029


when supporting Sweave out of the box?

2010-11-09 Thread Paolo Cavatore
Any update about Sweave's out of the box support?

 

Thanks,

 

Paolo



Re: marking text

2010-11-09 Thread Rodrigo Fresneda
I am also annoyed by this bug. Is it a lyx bug or a glipper bug? It is
amazing it has not been fixed yet; does anybody in the gnome community use
LyX? Or they just don't care for glipper?

On Tue, Feb 23, 2010 at 2:55 AM, Pavel Sanda sa...@lyx.org wrote:

 Bernd Schubert wrote:
  I started to work with lyx I also switched from klipper to glipper
 and
  didn't notice it pays bad games with me. Didn't find an option to disable

 may its worth to report this to glipper developers?
 pavel



Re: hiding the menu bar

2010-11-09 Thread Jose Quesada
I've also added a shortcut to toggle the status bar.
Is there any way I could tell lyx to start up with both menu and status
hidden?

Thanks,
-J

On Sat, Nov 6, 2010 at 8:44 AM, Jose Quesada ques...@gmail.com wrote:

 This is great.
 Thanks!


 On Fri, Nov 5, 2010 at 2:48 PM, Richard Heck rgh...@comcast.net wrote:

 On 11/05/2010 09:26 AM, Pavel Sanda wrote:

 Jose Quesada wrote:


 I finf the ability of most KDE apps of hiding the menu bar very useful.
 You
 can assign a shortcut to toggle it.
 Is this possible in lyx? If not, is it worth a feature request?


 alt+x
 ui-toggle menubar
 enter



 And of course you can assign a shortcut to ui-toggle menubar.

 rh




 --
 Best,
 -Jose

 Jose Quesada, PhD.
 Research scientist,
 Max Planck Institute,
 Center for Adaptive Behavior and Cognition,
 Berlin
 http://www.josequesada.name/
 http://twitter.com/Quesada




-- 
Best,
-Jose

Jose Quesada, PhD.
Research scientist,
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


how can I input ^

2010-11-09 Thread zhao_yunsong
SHIFT +^ is binded to the supscript, then how can I input ^

2010-11-10 



zhao_yunsong 
No virus found
Checked by Hillstone Networks AntiVirus


Re: how can I input ^

2010-11-09 Thread Waluyo Adi Siswanto
 SHIFT +^ is binded to the supscript, then how can I input ^


If you are in math mode, you can use superscript (also subscript). You
can see the tool at the bottom of your lyx window (appear
automatically in math mode/equation).

In math mode, the superscript also work, just press Shift+^ . For
subscript, Shift+-

Regards
waluyo


Re: how can I input quot;^quot;

2010-11-09 Thread Jack Tanner
zhao_yunsong zhao_yunsong at 163.com writes:

 SHIFT +^ is binded to the supscript, then how 
 can I input ^

It's only bound to superscript in Math mode, of course. And there, you're
looking for \hat.



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread stefano franchi
On Tue, Nov 9, 2010 at 2:33 PM, Guenter Milde mi...@users.berlios.dewrote:

 On 2010-11-09, Rob Oakes wrote:

  I would specifically focus on XeTeX.  XeTeX in particular, as it uses =
  system fonts, supports OpenType, and is generally awesome.  The newest =
  version (released in TeX Live 2010) even has support for microtypography
 =
  and margin kerning.

 TeXLive 10 now also has a workable version of LuaTeX with even better
 microtypography support. But in both cases this is still beta code.
 Especially, mikrotype does not work (yet) out-of-the-box with arbitrary
 fonts.


Rob,

do you have any advice or pointers to sites explaining how to use margin
kerning in XeTeX? The notes posted by J Kew on the mailing list and on the
XeTeX wiki are way too cryptic for me.

Also, am I correct in thinking that microtypography's font expansion (which
greatly improves paragraph layout, in my opinion) is still not working in
XeTeX?


Cheers,

Stefano




Re: Foreign Language Support + Font Setup / fontwrap package for XeLaTex ?

2010-11-09 Thread Michael Joyner
What is needed is something like:

http://www.ctan.org/tex-archive/macros/xetex/latex/fontwrap/

http://www.ctan.org/tex-archive/macros/xetex/latex/fontwrap/So that fonts
are *autoselected* based on UNICODE range unless otherwise overridden.

fontwrap package for XeLaTex

Michiel Kamermans, june 2008
 Available under GPL


What is it?
  --

fontwrap is a package for XeLaTeX to automatically
wrap multilingual utf8 encoded text in approriate
font tags, issuing fontspec commands whenever text
switches from one unicode block to another. As most
of us use TeX in order to separate visual styling
from the actual document as much as possible, this
package removes the need to add fonttags all over
the place when writing multilingual documents.


On Tue, Nov 9, 2010 at 9:02 AM, Walter walter.stan...@gmail.com wrote:

 Daron,

 Thanks so much for your detailed reply!

 I was very inspired by your screenshot and output PDF, which have me
 hope that a decent solution *is*, in fact, possible!

 I had no idea that it was possible to set up character styles with
 font associations.  This seems like the right sort of solution.

 First an update.  Prior to your reply I did already try upgrading to
 LyX 2.0 alpha6 as recommended, however it did not change my situation
 very much as I had by that stage already set up TeX codeboxes before
 and after every piece of non-English text to specifically change the
 font.  That solution 'works', except that it makes the document
 annoying to edit, and it's a pain when I want to, say, change the font
 used for Chinese right throughout the document. (A job for sed!)  Also
 in upgrading, I had failed to see the the 'Document  Settings 
 Output  Use XeTeX' checkbox, which is great and seems to have a
 follow-on effect on modifying various elements elsewhere within the
 Document Settings dialog ... so thanks for pointing that one out.

  If you can get the module to be recognized in LyX

 In attempting to replicate your solution, I have had problems
 specifically with this part until I realised a full
 start/reconfigure/stop/start cycle was necessary to make the new
 module visible.  I think I had assumed incorrectly that stop/start
 would have the same effect.

 The result: finally, I did succeed in getting your solution to work.
 Hooray!  Thank you so much.  If you are ever in Los
 Angeles/London/Kunming/Sydney (my present four homes) and wish to have
 a free 'adult beverage' (in deference to the LyX customization
 document), then you are most welcome.

 Now, I will try to give something back.

 *ahem* Thoughts for the future, or Dear LyX Community:

  It seems to me that the primary stated goal of LyX is to combine the
 flexibility of TeX with the ease of use of a GUI.

  Right now, 'ease of use' would not describe accurately the process
 required to achieve a relatively pleasant process for editing
 multilingual documents.

  Whilst the recent addition of built-in XeTeX support to LyX 2.0 is a
 huge step in the right direction, at present the website's claim of
 No more endless tinkering with formatting details, 'finger painting'
 font attributes is somewhat inflated when it comes to this sort of
 situation.

  In effect, even with Daron's comparatively elegant solution, one must
 still essentially finger paint structures corresponding to fonts, and
 only after significant setup to enable the process.

  IMHO, the best possible solution for documents with heavy use of
 multilingual text would seem to be a combination of this type of
 solution (character styles with font associations), and automatic
 unicode block-based input classification.   This would enable LyX to
 automatically change the default, available and/or recommended styles
 based on what kind of character was input.

  Whilst there are a few obvious complications (Han characters - CJK -
 which language?), if a user interface is provided by LyX that allows
 the user to configure the matching process by defining unicode block
 to character style and font associations, then 'just type'-level ease
 of use could finally be achieved.  Furthermore, by detecting the
 available unicode glyphs in each font, intelligent font suggestions
 could be made when defining a new, unicode block-associated character
 style.

 Please find a suggested UI mockup attached.

  (Probably, the language concept within Daron's module should be
 dropped in favour of character style with unicode block titles as
 default nomenclature)

 What do others think of this proposal?

 - Walter




-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: how can I input ^

2010-11-09 Thread Sam Liddicott
Press shift-F5 first

Sam

zhao_yunsong zhao_yuns...@163.com wrote:

SHIFT +^ is binded to the supscript, then how can I input ^

2010-11-10 



zhao_yunsong 

No virus found
   Checked by Hillstone Networks AntiVirus


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Rob Oakes
Hi Stefano,

 do you have any advice or pointers to sites explaining how to use margin 
 kerning in XeTeX? The notes posted by J Kew on the mailing list and on the 
 XeTeX wiki are way too cryptic for me.

Short answer, yes.  As far as I know, it hasn't yet been discussed much in the 
Interwebs, but there are several resources you can find on it.  The place to 
probably start is the XeTeX Microtypography website:

http://xetex.tk/mediawiki/index.php/Microtype_package_%28preliminary_version%29

There, you can download the latest version of the microtype package that 
enables margin kerning with XeTeX. To get things working correctly, you must 
use version 2.5 (or newer) of the package.  If the manual isn't dated 
11/5/2010, then you have the wrong one.

The microtype distributed with TeXLive 2010 *will not work.*  (And at the 
moment, xetex microtype is pretty limited.  It's only margin kerning.  Font 
expansion doesn't work.  Yet.)

After download, process the microtype.ins file with xelatex which will create 
the .sty files you need.

xelatex microtype.ins

Copy the entire directory to somewhere in your LaTeX path.  Run texhash.

Once you've installed the newest version of the package, you can enable 
microtype support by adding:

\usepackage{microtype}

to your preamble (see the attached sample doc).  While it is possible to tweak 
things, it shouldn't be necessary.  In fact, don't. microtype should detect 
which version of XeTeX you are using and enable the appropriate options.  The 
only time I ran into problems is when I tried to tweak the settings.

After that, put together a simple test document (or use mine).  To see if 
things are working correctly, you might want to turn on the showframes option 
of geometry.  (Test document also shows how to do this. PDF output also 
attached.)

Please keep in mind, you must have XeTeX 0.9997.4 or higher installed for 
margin kerning to work.  This version of XeTeX comes with TeX Live 2010.  I've 
been playing with it on my Mac, and it's been pretty stable.  As of yet, I have 
not looked at how hard it would be to get things up and running on Linux or 
Windows.

On another note, in my exuberance yesterday, I might have overstated the 
stability of LyX, the new version of XeLaTeX and microtype.  In my personal 
experience, it has been very, very stable.   But I should probably include the 
requisite disclaimer: your mileage may vary.

If you have any troubles or if something isn't clear, let me know.  I'm off 
work this week to try and get the book done and will be watching the list.

Cheers,

Rob

Attached:

1.) Sample LyX document, showing XeTeX microtype features.  Requires TeX Live 
2010, beta version of microtype package and beta1 of LyX to compile.
2.) Sample PDF output.


TestDoc-XeTeX.pdf
Description: Adobe PDF document


TestDoc-XeTeX.lyx
Description: Binary data


Re: Latex error

2010-11-09 Thread Jürgen Spitzmüller
Guenter Milde wrote:
> The language switching code in the document is nearly the same. It's the
> preamble code that differs:

Günter, could you set up a document with this comparision and outline exactly 
where polyglossia and babel differ (in terms of what LyX must output/can 
support)?

I do not have time to dive into the polylossia documentation right now, but if 
your statement is correct, it would be probably easier than I thought, and the 
documentation would help implementing it.

Jürgen


Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Steve Litt
Hi all,

I'm involved in an argument on another list with one of these guys who says 
TeX is ancient technology not fit for modern books. Obviously he's full of 
beans unless he's doing coffee table books, but one place where this guy's 
gonna thrash me is fonts. Unless I'm mistaken, fonts other than the ones 
packaged with your LaTeX are incredibly difficult to do in LyX/LaTeX/TeX.

Is there documentation on how to take a random font and make it ready to use 
in LyX, LaTeX or TeX?

Thanks

SteveT

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



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Gour
On Tue, 9 Nov 2010 04:09:50 -0400
>> "Steve" == Steve Litt wrote:

Steve> Is there documentation on how to take a random font and make it
Steve> ready to use in LyX, LaTeX or TeX?

Probably only by using XeTeX and/or LuaTeX.

Otoh, once when you install fonts, that's it, while having bad
typesetting engine is something which spoils the party constantly. ;)


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA



signature.asc
Description: PGP signature


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Liviu Andronic
On Tue, Nov 9, 2010 at 9:22 AM, Gour  wrote:
> Steve> Is there documentation on how to take a random font and make it
> Steve> ready to use in LyX, LaTeX or TeX?
>
> Probably only by using XeTeX and/or LuaTeX.
>
So you either read the wiki regarding XeTeX in 1.6.x, or dive into the
alphas or wait for 2.0. In my tests it was painless to change the
documents to XeTeX and use random system fonts.

Regards
Liviu


> Otoh, once when you install fonts, that's it, while having bad
> typesetting engine is something which spoils the party constantly. ;)
>
>
> Sincerely,
> Gour
>
> --
>
> Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA
> 
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Foreign Language Support + Font Setup

2010-11-09 Thread Richard Heck

On 11/09/2010 04:54 AM, Daron Wilson wrote:

Walter,

I'm actually fairly new to Lyx, so I'm still finding my way a bit.  However, I 
came to LyX with a tad more LaTeX and XeTeX experience.  I've messed about a 
bit with XeTeX for Hebrew, Polytonic Greek, and Thai, and found that to be very 
helpful

I would recommend trying out LyX 2.0 Alpha 6.  I'm using it on OSX 10.6, and 
I've had no trouble so far, though I cannot speak for the Linux version.

The reason I've switched to LyX 2.0 is that it has XeTeX functionality built in.  In the document 
settings window there is a radio button for XeTeX, which makes LyX  default to XeTex as it's 
processing engine (the tool bar "eyeballs" and menu item "view PDF (XeTeX)" now 
work automatically as expected also). This has been working quite smoothly for me.

I'm not sure what your experience is with XeTeX/fontspec/TeX  markup, so I'll 
just include my own basic solution and if you have more questions about how to 
hack it for your own use I can try and answer them. As I mentioned, I'm still 
pretty new to the whole thing myself though, so hopefully some of the pros will 
chime in and help me out if I'm heading in the wrong direction, at least on the 
LyX implementation.

Regardless of whether you stick with LyX 1.6 or go with 2.0, the stuff below 
should work as long as you can get LyX to use XeTeX somehow, whether 
conveniently (2.0) or otherwise(1.6).

I've attached a module that sets up character insets for different languages.  
I like this approach because it allows me to use any system fonts I have in the 
output, and to tweak the typeset appearance of each language individually--e.g. 
my own favorite font for Hebrew, different favorite for Thai, scale the Greek 
font up, but scale the Chinese down, etc.

For where to put the module, and how to get Lyx to recognize it, check out the "Layout 
Modules" section in the help document "Customizing LyX". (at least that is where it 
is in the 2.0 documentation)

If you can get the module to be recognized in LyX, then all you need to do is 
include it in your document settings.  You should be able find the new character 
style insets in the Edit--->Text Style menu.   Just click the desired language 
style and input the unicode characters into the new inset box.

In order to typeset the insets correctly, you will also have to add the 
material I've included below to your document preamble.  The only thing you 
should have to change in your preamble is the font names, to whatever fonts you 
have available on your system (see the fontspec documentation for more info on 
setting up fonts).   I've attached a screenshot of a sample document in LyX, as 
well as the corresponding PDF output from XeTeX.

This is nice work, Daron, and an excellent example of how to use modules 
and character styles to extend LyX's functionality. The only thing I'll 
add is that this last thing you said, about adding things to the 
preamble, isn't actually necessary, since you can include the preamble 
information in the module itself, using the Preamble tag. E.g.:


InsetLayout Thai
LyxTypecharstyle
MultiPar1
Custom Pars1
LabelStringThai
LatexTypecommand
LatexNamethai
Preamble
%: - thai font
\newfontfamily{\TH}[Scale=1.2]{Ayuthaya}
\newcommand{\thai}[1]{{\TH #1}}
EndPreamble
End

Richard



Re: Latex error

2010-11-09 Thread Richard Heck

On 11/08/2010 05:22 PM, Jean-Marc Lasgouttes wrote:

Le 8 nov. 10 à 20:29, Richard Heck a écrit :

On 11/07/2010 11:45 PM, Uwe Stöhr wrote:

Am 07.11.2010 21:59, schrieb Richard Heck:

Shouldn't "Use babel" really be a document setting, rather than a 
preference?


Yes, definitively. Babel needs to be deactivated for some document 
classes and can cause troubles when using XeTeX. XeTeX has its own 
babel replacement and it might be possible that both can interfere.



I'll do this.


Are we sure that it is needed on a document basis? When I see how the 
global language

settings are not going away while being clearly a hack, I have doubts.

Isn't it enough to disable it with XeTeX and use Provide babel 1 when 
needed?


My sense, from the conversations here, is that there are times when one 
wants to load some package in the preamble and one needs to disable the 
automatic loading of babel. One could do "Provide babel 1" in the local 
layout, but that's asking a lot of users. In this particular case, the 
layout file really should use that, but it was format 2, so it's clear 
why it doesn't.


What would really be best is if we had a central place, in 
Document>Settings, where all such things could be set, for every package 
we automatically load. Maybe a combo box listing them, and then when you 
choose it, three radio buttons: Load Always, Load As Needed, Load Never. 
Right now, we have quite a few such settings scattered about in 
different places, for the math packages and other things. But users are 
always asking for finer control of package loading with almost every 
package we load.


Richard



2.0.0alpha5 xetex (texlive 2011/dev) failure

2010-11-09 Thread Neal Becker
First try with lyx 2.0.0alpha5 of xetex.  Log is attached.  Failure is 

! Undefined control sequence.
l.67 \ExplSyntaxOn
 This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2011/dev) 
(format=xelatex 2010.11.9)  9 NOV 2010 08:20
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**equalizer_freq_response.tex
(./equalizer_freq_response.tex
LaTeX2e <2009/09/24>
Babel  and hyphenation patterns for english, dumylang, nohyphenation, po
lish, russian, ukrainian, kurmanji, estonian, arabic, bokmal, nynorsk, ukenglis
h, usenglishmax, uppersorbian, basque, lithuanian, mongolian, mongolianlmc, ger
man-x-2009-06-19, ngerman-x-2009-06-19, french, monogreek, greek, armenian, swe
dish, latin, italian, coptic, finnish, bulgarian, portuguese, indonesian, hunga
rian, slovenian, welsh, catalan, irish, turkmen, latvian, dutch, spanish, serbi
an, farsi, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, ori
ya, panjabi, tamil, telugu, icelandic, pinyin, lao, ancientgreek, ibycus, sansk
rit, galician, german, ngerman, swissgerman, danish, romanian, slovak, czech, i
nterlingua, esperanto, loaded.

(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1
\linespacing=\dimen102
\normalparindent=\dimen103
\normaltopskip=\skip41
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\...@mathmargin=\skip42
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\...@emptytoks=\toks14
\...@=\dimen104
)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbra...@=\dimen105
) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\...@bad=\count80
LaTeX Info: Redefining \frac on input line 211.
\upr...@=\count81
\leftr...@=\count82
LaTeX Info: Redefining \overline on input line 307.
\class...@=\count83
\dotsc...@=\count84
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\mathstrut...@=\box26
\strut...@=\box27
\...@size=\dimen106
LaTeX Font Info:Redeclaring font encoding OML on input line 567.
LaTeX Font Info:Redeclaring font encoding OMS on input line 568.
\m...@depth=\count85
\...@maxmatrixcols=\count86
\dotssp...@=\muskip10
\...@parentequation=\count87
\dsp...@lvl=\count88
\...@help=\toks15
\...@=\count89
\col...@=\count90
\maxfie...@=\count91
\andh...@=\toks16
\eqnsh...@=\dimen107
\align...@=\dimen108
\tagsh...@=\dimen109
\tagwi...@=\dimen110
\totwi...@=\dimen111
\lin...@=\dimen112
\...@envbody=\toks17
\multlinegap=\skip43
\multlinetaggap=\skip44
\mathdisp...@stack=\toks18
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
LaTeX Font Info:Try loading font information for U+msa on input line 388.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2009/06/22 v3.00 AMS symbols A
) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2009/06/22 v3.00 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:Overwriting math alphabet `\mathfrak' in version `bold'
(Font)  U/euf/m/n --> U/euf/b/n on input line 96.
)
\copyins=\insert233
\abstractbox=\box28
\listisep=\skip45
\...@part=\count92
\...@section=\count93
\...@subsection=\count94
\...@subsubsection=\count95
\...@paragraph=\count96
\...@subparagraph=\count97
\...@figure=\count98
\...@table=\count99
\abovecaptionskip=\skip46
\belowcaptionskip=\skip47
\captionindent=\dimen113
\...@style=\toks19
\...@bodyfont=\toks20
\...@headfont=\toks21
\...@notefont=\toks22
\...@headpunct=\toks23
\...@preskip=\skip48
\...@postskip=\skip49
\...@headsep=\skip50
\...@everypar=\toks24
) (/home/nbecker/texmf/tex/xelatex/fontspec/fontspec.sty
Package: fontspec 2007/06/20 v1.14 Advanced font selection for XeLaTeX
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional
)
\...@zf@newff=\count100
\...@zf@index=\count101
\...@zf@script=\count102
\...@zf@language=\count103
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
\c...@acount=\count104
\c...@bcount=\count105
\c...@adimen=\dimen114
\c...@bdimen=\dimen115
\c...@askip=\skip51
\c...@bskip=\skip52
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
\c...@ccount=\count106
\c...@cskip=\skip53
) (/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
\...@toks=\toks25

Re: Spellchecker and ú

2010-11-09 Thread Christopher Menzel
On Nov 7, 2010, at 2:59 PM, Stephan Witt wrote:
> ...Am 29.10.2010 um 22:01 schrieb Christopher Menzel:
> 
>> Greetings LyX users,
>> 
>> The aspell-based spellchecker in LyX does not appear to be happy 
>> checking a document containing a Spanish name that includes the 
>> character ú.  Specifically, the name seems throw the checker pretty 
>> seriously off balance; it begins to stop on perfectly ordinary words 
>> that occur in the document a word or two *after* a word that it 
>> apparently isn't recognizing internally -- for example, it asked if 
>> I wanted to replace the word "that" with "bisection", where "that" 
>> occurred two words after "bijection", which was clearly the word it 
>> had stopped on internally.  Is there a solution to this beyond 
>> avoiding non-English unicode characters?
>> 
> Sorry, I've no solution but a question.
> You're using LyX 1.6.7? Which platform?
> 
 1.6.7 on a Mac, latest version of Snow Leopard.
>>> 
>>> Interestingly... there are 2 options to use aspell then.
>>> What's your setup exactly? What did you do to make aspell work?
>> 
>> IIRC, I installed a package that added a System Preferences thingy.  
>> Beyond that I don't recall doing anything.  Spellchecking just worked.
> 
> I'd guess it is cocoaSpell...
 
 Yes, that is correct.
 
> After upgrade to Snow Leopard I don't have it anymore.
> I'll check it on another system...
> 
> To be sure: are you able to send me a test case?
 
 Sent to you directly.
>>> 
>>> I tried it and I cannot reproduce your problem.
>>> 
>>> What I did:
>>> * install cocoaSpell
>>> * start LyX 1.6.7
>>> * open preferences, goto language -> spellcheck
>>> * select aspell and apply
>>> * press F7 then Ignore until end of document
> 
> Sorry, not clear enough... here i had no error. 
> All is working with aspell (NOT library) at this point.
> Than I tried the other route to reproduce the problem.
> 
>>> * reopen preferences, goto language -> spellcheck
>>> * select aspell(library) and apply
>>> * F7 => error message: no word lists for en_US
>>> * paste into the "Alternative language" field of spellcheck preferences:
>>> /Library/Application Support/cocoAspell/aspell6-en-6.0-0/english.alias
>>> * F7 => error message: no word lists for ""
>>> * so aspell(library) seems to not work here
>>> 
>>> Please tell me, which way is yours?
>> 
>> I installed cocoAspell; and, just in case, I just now reinstalled (ver 2.1). 
>>  And, except for documents containing ú and the like, spellchecking works; I 
>> don't get the errors you are reporting.
> 
> I'd like to know which aspell configuration in LyX's preferences you're using.

Well, I've selected "aspell" as the executable and I didn't have anything set 
as the alternative language, though I've also tried setting it to 
/Library/Application Support/cocoAspell/aspell6-en-6.0-0/english.alias, which 
makes no difference.

> Maybe it's impossible to reproduce because I have a 2nd aspell installation 
> from macports...

Right.

>>> To be sure I checked in Terminal.app my LANG value => de_DE.UTF-8
>>> 
 I can't get LyX 2.0alpha6 running on my iMac; crashes almost immediately.  
>>> 
>>> That's bad. Is it Intel Snow Leopard?
>>> What's the first few dozen lines of the crash report contents?
>> 
>> Actually, it now seems to be working, so I'm not sure what the earlier 
>> problem was.
> 
> Good.
> 
>> Moreover, the spellchecker in 2.0alpha6 does NOT have the problem with ú 
>> that I'm having with the spellchecker in LyX 1.6.7.
> 
> Which spell checker did you try? The Native or Aspell or both?

I've tried setting the executable to ispell and aspell.  If I set it to hspell 
I get an error that ispell cannot start.

> ...
>> I tried compiling my own svn version and the compile seemed to complete 
>> without complaining (though this required changing some "unsigned int" 
>> occurrences to "int" in Author.cpp) but the resulting binary crashes when I 
>> try to run it and I don't have the time (and, most likely, the skillz) to 
>> diagnose the problem. :-(
> 
> The compile problem did exist only hours... you have to update your svn 
> checkout.
> 
> Did you follow the recipes in INSTALL.MacOSX and now it crashes?

I updated and compiled without incident and the executable seems to be working 
well.  In particular, no problem is caused by the presence of ú and other such 
characters in the document, so the problem is becoming moot (and it's avoidable 
anyway, if not ideally, simply by inserting \'{u} as ERT in place of ú).

-chris



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Julien Rioux

On 09/11/2010 10:30 AM, Rob Oakes wrote:

(Including a chapter that covers this topic in detail, amongst other
things. But it isn't quite finished. And I am not sure that it will be in time
for your debate. Otherwise, i would send that too. It's where the figures came
from.)


I find your book project very interesting as I am sure others on this 
list do. But I found two typos in the pdfs:


In Figure 1
They also _have_ a heavier stroke and are designed to ...

In Figure 2
laso -> also

Cheers,
Julien



Re: Latex error

2010-11-09 Thread Jacob Bishop
Perhaps without adding a high amount of useful information, I just want to
voice support for this. While writing my thesis, I had to disable the babel
package since there were incompatibilities with the thesis template I was
using.

I feel that making this configurable on a per-document basis is definitely
the right way to go. I also think Richard's suggestion

"What would really be best is if we had a central place, in
Document>Settings, where all such things could be set, for every package we
automatically load. Maybe a combo box listing them, and then when you choose
it, three radio buttons: Load Always, Load As Needed, Load Never. Right now,
we have quite a few such settings scattered about in different places, for
the math packages and other things. But users are always asking for finer
control of package loading with almost every package we load."

would provide a very nice solution.

Just my two bits.

Jacob


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Guenter Milde
On 2010-11-09, Rob Oakes wrote:

>> gonna thrash me is fonts. Unless I'm mistaken, fonts other than the =
> ones=20
>> packaged with your LaTeX are incredibly difficult to do in =
> LyX/LaTeX/TeX.

Well, there are some more TeX-ready fonts then the ones that come
packed with TeXLive or MikeTeX (also commercial ones). But for the
"arbitrary system font", the better option is LuaTeX or XeTeX.


> I would specifically focus on XeTeX.  XeTeX in particular, as it uses =
> system fonts, supports OpenType, and is generally awesome.  The newest =
> version (released in TeX Live 2010) even has support for microtypography =
> and margin kerning. 

TeXLive 10 now also has a workable version of LuaTeX with even better
microtypography support. But in both cases this is still beta code.
Especially, mikrotype does not work (yet) out-of-the-box with "arbitrary"
fonts.

> Moreover, it's supported by LyX, which means advanced typography
> = for the masses.

There is preliminary XeTeX support in the development version. Not
ready for the masses.

...

> For long texts, with footnotes, numbered figures, tables, and other =
> miscellanea, the production tool to use is LaTeX. 

Agreed.

Also, for most of these texts, there are more than enough quality free
fonts available also for "pure" LaTeX.

Günter



Re: Latex error

2010-11-09 Thread Guenter Milde
On 2010-11-09, Uwe Stöhr wrote:
> Am 08.11.2010 23:22, schrieb Jean-Marc Lasgouttes:

>> Are we sure that it is needed on a document basis?

> Yes.


>> Now that I think of it, what is the exact effect of "use babel"? Just
>> the usepackage, or more?

> It adds \usepackage{babel} but also adds the used languages as option
> list for the \documentclass command. 

or the babel package, depending on the "global" check-box setting.

> The last language in this option
> list is the document language. When turning off-babel the document
> language is English and the \documentclass command has no language
> options.

... unless you add them via Document>Settings>Class Options>Custom


Günter



Re: about LyX shortcuts

2010-11-09 Thread Guenter Milde
On 2010-11-09, Pavel Sanda wrote:
> zhaoyunsong wrote:

>> I am writting to ask if I can define shortcuts that works only in math
>> mode.

> no. but there has been already such request.

>  hmm thinking more, we have command-alternative, which ends up in
> the first successfull lfun.

So, for the example, it might be fine to bind Ctrl-F to

  command-alternative; frac; find-file
  
or what the correct LFUN for these actions are...

Günter



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Rob Oakes

On Nov 9, 2010, at 1:33 PM, Guenter Milde wrote:

> There is preliminary XeTeX support in the development version. Not
> ready for the masses.

On this point, I have to disagree.

Preliminary as it might be, I've found it very stable.  I've been using LyX 2 
for nearly a year, and have transitioned to using XeTeX for everything.  And 
quite frankly, I have fewer problems with LyX 2 than I do with LyX 1.6.

The entire text for my book and innumerable articles and reports have come out 
of LyX 2, and while development versions some four or five months ago left much 
to be desired, the most recent codebase is very stable.  I quite literally 
cannot tell you the last time it crashed on me.  I so much prefer it that I 
will never go back to LyX 1.6.  (And the copy I use has my outline bits in it, 
which presumably destabilize it even more.)

I'm not trying to be disagreeable here, but I think you underestimate the 
quality of your own work.  When LyX 2 is finally released, you deserve a party. 
LyX has gone from being a good program to being an exceptional one and I, for 
one, applaud you for that.

Cheers,

Rob

Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread ehud.kap...@gmail.com

 When is the Lyx 2 release party?

On 11/9/2010 4:49 PM, Rob Oakes wrote:

On Nov 9, 2010, at 1:33 PM, Guenter Milde wrote:


There is preliminary XeTeX support in the development version. Not
ready for the masses.

On this point, I have to disagree.

Preliminary as it might be, I've found it very stable.  I've been using LyX 2 
for nearly a year, and have transitioned to using XeTeX for everything.  And 
quite frankly, I have fewer problems with LyX 2 than I do with LyX 1.6.

The entire text for my book and innumerable articles and reports have come out 
of LyX 2, and while development versions some four or five months ago left much 
to be desired, the most recent codebase is very stable.  I quite literally 
cannot tell you the last time it crashed on me.  I so much prefer it that I 
will never go back to LyX 1.6.  (And the copy I use has my outline bits in it, 
which presumably destabilize it even more.)

I'm not trying to be disagreeable here, but I think you underestimate the 
quality of your own work.  When LyX 2 is finally released, you deserve a party. 
LyX has gone from being a good program to being an exceptional one and I, for 
one, applaud you for that.

Cheers,

Rob


--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness /Professor
*Director*, Center of Excellence for /Computational & System neuroscience,/
The Friedman Brain Institute, MSSM
*Director*, The laboratory of /Visual & Computational Neuroscience/
Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
The Mount Sinai School of Medicine
One Gustave Levy Place
New York, NY, 10029


when supporting Sweave out of the box?

2010-11-09 Thread Paolo Cavatore
Any update about Sweave's out of the box support?

 

Thanks,

 

Paolo



Re: marking text

2010-11-09 Thread Rodrigo Fresneda
I am also annoyed by this bug. Is it a lyx bug or a glipper bug? It is
amazing it has not been fixed yet; does anybody in the gnome community use
LyX? Or they just don't care for glipper?

On Tue, Feb 23, 2010 at 2:55 AM, Pavel Sanda  wrote:

> Bernd Schubert wrote:
> > I started to work with lyx I also switched from "klipper" to "glipper"
> and
> > didn't notice it pays bad games with me. Didn't find an option to disable
>
> may its worth to report this to glipper developers?
> pavel
>


Re: hiding the menu bar

2010-11-09 Thread Jose Quesada
I've also added a shortcut to toggle the status bar.
Is there any way I could tell lyx to start up with both menu and status
hidden?

Thanks,
-J

On Sat, Nov 6, 2010 at 8:44 AM, Jose Quesada  wrote:

> This is great.
> Thanks!
>
>
> On Fri, Nov 5, 2010 at 2:48 PM, Richard Heck  wrote:
>
>> On 11/05/2010 09:26 AM, Pavel Sanda wrote:
>>
>>> Jose Quesada wrote:
>>>
>>>
 I finf the ability of most KDE apps of hiding the menu bar very useful.
 You
 can assign a shortcut to toggle it.
 Is this possible in lyx? If not, is it worth a feature request?


>>> alt+x
>>> ui-toggle menubar
>>> enter
>>>
>>>
>>>
>> And of course you can assign a shortcut to "ui-toggle menubar".
>>
>> rh
>>
>>
>
>
> --
> Best,
> -Jose
>
> Jose Quesada, PhD.
> Research scientist,
> Max Planck Institute,
> Center for Adaptive Behavior and Cognition,
> Berlin
> http://www.josequesada.name/
> http://twitter.com/Quesada
>



-- 
Best,
-Jose

Jose Quesada, PhD.
Research scientist,
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


how can I input "^"

2010-11-09 Thread zhao_yunsong
"SHIFT +^" is binded to the supscript, then how can I input "^"

2010-11-10 



zhao_yunsong 
No virus found
Checked by Hillstone Networks AntiVirus


Re: how can I input "^"

2010-11-09 Thread Waluyo Adi Siswanto
> "SHIFT +^" is binded to the supscript, then how can I input "^"
>

If you are in math mode, you can use superscript (also subscript). You
can see the tool at the bottom of your lyx window (appear
automatically in math mode/equation).

In math mode, the superscript also work, just press Shift+^ . For
subscript, Shift+-

Regards
waluyo


Re: how can I input ^

2010-11-09 Thread Jack Tanner
zhao_yunsong  163.com> writes:

> "SHIFT +^" is binded to the supscript, then how 
> can I input "^"

It's only bound to superscript in Math mode, of course. And there, you're
looking for \hat.



Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread stefano franchi
On Tue, Nov 9, 2010 at 2:33 PM, Guenter Milde wrote:

> On 2010-11-09, Rob Oakes wrote:
>
> > I would specifically focus on XeTeX.  XeTeX in particular, as it uses =
> > system fonts, supports OpenType, and is generally awesome.  The newest =
> > version (released in TeX Live 2010) even has support for microtypography
> =
> > and margin kerning.
>
> TeXLive 10 now also has a workable version of LuaTeX with even better
> microtypography support. But in both cases this is still beta code.
> Especially, mikrotype does not work (yet) out-of-the-box with "arbitrary"
> fonts.
>
>
Rob,

do you have any advice or pointers to sites explaining how to use margin
kerning in XeTeX? The notes posted by J Kew on the mailing list and on the
XeTeX wiki are way too cryptic for me.

Also, am I correct in thinking that microtypography's font expansion (which
greatly improves paragraph layout, in my opinion) is still not working in
XeTeX?


Cheers,

Stefano

>


Re: Foreign Language Support + Font Setup / fontwrap package for XeLaTex ?

2010-11-09 Thread Michael Joyner
What is needed is something like:

http://www.ctan.org/tex-archive/macros/xetex/latex/fontwrap/

So that fonts
are *autoselected* based on UNICODE range unless otherwise overridden.

fontwrap package for XeLaTex

Michiel Kamermans, june 2008
 Available under GPL


What is it?
  --

fontwrap is a package for XeLaTeX to automatically
wrap multilingual utf8 encoded text in approriate
font tags, issuing fontspec commands whenever text
switches from one unicode block to another. As most
of us use TeX in order to separate visual styling
from the actual document as much as possible, this
package removes the need to add fonttags all over
the place when writing multilingual documents.


On Tue, Nov 9, 2010 at 9:02 AM, Walter  wrote:

> Daron,
>
> Thanks so much for your detailed reply!
>
> I was very inspired by your screenshot and output PDF, which have me
> hope that a decent solution *is*, in fact, possible!
>
> I had no idea that it was possible to set up character styles with
> font associations.  This seems like the right sort of solution.
>
> First an update.  Prior to your reply I did already try upgrading to
> LyX 2.0 alpha6 as recommended, however it did not change my situation
> very much as I had by that stage already set up TeX codeboxes before
> and after every piece of non-English text to specifically change the
> font.  That solution 'works', except that it makes the document
> annoying to edit, and it's a pain when I want to, say, change the font
> used for Chinese right throughout the document. (A job for sed!)  Also
> in upgrading, I had failed to see the the 'Document > Settings >
> Output > Use XeTeX' checkbox, which is great and seems to have a
> follow-on effect on modifying various elements elsewhere within the
> Document Settings dialog ... so thanks for pointing that one out.
>
> > If you can get the module to be recognized in LyX
>
> In attempting to replicate your solution, I have had problems
> specifically with this part until I realised a full
> start/reconfigure/stop/start cycle was necessary to make the new
> module visible.  I think I had assumed incorrectly that stop/start
> would have the same effect.
>
> The result: finally, I did succeed in getting your solution to work.
> Hooray!  Thank you so much.  If you are ever in Los
> Angeles/London/Kunming/Sydney (my present four homes) and wish to have
> a free 'adult beverage' (in deference to the LyX customization
> document), then you are most welcome.
>
> Now, I will try to give something back.
>
> *ahem* Thoughts for the future, or "Dear LyX Community":
>
>  It seems to me that the primary stated goal of LyX is to combine the
> flexibility of TeX with the ease of use of a GUI.
>
>  Right now, 'ease of use' would not describe accurately the process
> required to achieve a relatively pleasant process for editing
> multilingual documents.
>
>  Whilst the recent addition of built-in XeTeX support to LyX 2.0 is a
> huge step in the right direction, at present the website's claim of
> "No more endless tinkering with formatting details, 'finger painting'
> font attributes" is somewhat inflated when it comes to this sort of
> situation.
>
>  In effect, even with Daron's comparatively elegant solution, one must
> still essentially finger paint structures corresponding to fonts, and
> only after significant setup to enable the process.
>
>  IMHO, the best possible solution for documents with heavy use of
> multilingual text would seem to be a combination of this type of
> solution (character styles with font associations), and automatic
> unicode block-based input classification.   This would enable LyX to
> automatically change the default, available and/or recommended styles
> based on what kind of character was input.
>
>  Whilst there are a few obvious complications (Han characters - CJK -
> which language?), if a user interface is provided by LyX that allows
> the user to configure the matching process by defining unicode block
> to character style and font associations, then 'just type'-level ease
> of use could finally be achieved.  Furthermore, by detecting the
> available unicode glyphs in each font, intelligent font suggestions
> could be made when defining a new, unicode block-associated character
> style.
>
> Please find a suggested UI mockup attached.
>
>  (Probably, the "language" concept within Daron's module should be
> dropped in favour of "character style" with unicode block titles as
> default nomenclature)
>
> What do others think of this proposal?
>
> - Walter
>



-- 
---

   - Learn to speak Cherokee: http://www.cherokeelessons.com/
   - Cherokee Language Help BBS/Chat:
   http://www.cherokeelessons.com/phpBB3/viewforum.php?f=6
   - Cherokee Lessons PDF made with: http://www.lyx.org/


Re: how can I input "^"

2010-11-09 Thread Sam Liddicott
Press shift-F5 first

Sam

zhao_yunsong  wrote:

>"SHIFT +^" is binded to the supscript, then how can I input "^"
>
>2010-11-10 
>
>
>
>zhao_yunsong 
>
>No virus found
>   Checked by Hillstone Networks AntiVirus


Re: Fonts in LyX (and LaTeX and TeX)

2010-11-09 Thread Rob Oakes
Hi Stefano,

> do you have any advice or pointers to sites explaining how to use margin 
> kerning in XeTeX? The notes posted by J Kew on the mailing list and on the 
> XeTeX wiki are way too cryptic for me.

Short answer, yes.  As far as I know, it hasn't yet been discussed much in the 
Interwebs, but there are several resources you can find on it.  The place to 
probably start is the XeTeX Microtypography website:

http://xetex.tk/mediawiki/index.php/Microtype_package_%28preliminary_version%29

There, you can download the latest version of the microtype package that 
enables margin kerning with XeTeX. To get things working correctly, you must 
use version 2.5 (or newer) of the package.  If the manual isn't dated 
11/5/2010, then you have the wrong one.

The microtype distributed with TeXLive 2010 *will not work.*  (And at the 
moment, xetex microtype is pretty limited.  It's only margin kerning.  Font 
expansion doesn't work.  Yet.)

After download, process the microtype.ins file with xelatex which will create 
the .sty files you need.

xelatex microtype.ins

Copy the entire directory to somewhere in your LaTeX path.  Run texhash.

Once you've installed the newest version of the package, you can enable 
microtype support by adding:

\usepackage{microtype}

to your preamble (see the attached sample doc).  While it is possible to tweak 
things, it shouldn't be necessary.  In fact, don't. microtype should detect 
which version of XeTeX you are using and enable the appropriate options.  The 
only time I ran into problems is when I tried to tweak the settings.

After that, put together a simple test document (or use mine).  To see if 
things are working correctly, you might want to turn on the showframes option 
of geometry.  (Test document also shows how to do this. PDF output also 
attached.)

Please keep in mind, you must have XeTeX 0.9997.4 or higher installed for 
margin kerning to work.  This version of XeTeX comes with TeX Live 2010.  I've 
been playing with it on my Mac, and it's been pretty stable.  As of yet, I have 
not looked at how hard it would be to get things up and running on Linux or 
Windows.

On another note, in my exuberance yesterday, I might have overstated the 
stability of LyX, the new version of XeLaTeX and microtype.  In my personal 
experience, it has been very, very stable.   But I should probably include the 
requisite disclaimer: your mileage may vary.

If you have any troubles or if something isn't clear, let me know.  I'm off 
work this week to try and get the book done and will be watching the list.

Cheers,

Rob

Attached:

1.) Sample LyX document, showing XeTeX microtype features.  Requires TeX Live 
2010, beta version of microtype package and beta1 of LyX to compile.
2.) Sample PDF output.


TestDoc-XeTeX.pdf
Description: Adobe PDF document


TestDoc-XeTeX.lyx
Description: Binary data