Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread leonid baranov
 No you don't. Leave all fonts at default setting. cm-super will select the
right glyphs 
 automatically for you. (The default are the different shapes of the Computer
modern fonts and 
 CM-super is their vector replacement.) 
...
 
 If you really want to use another font than Computer modern, then use ttf/otf
fonts via the docment 
 font settings option use-non TeX fonts. For more info abot this option, see
the LyX userGuide, 
 sec. 3.7 Fonts and Text Styles
... 
 All fonts that you can select via the document settings are installed. The
next LyX version supports 
 a few more fonts, but thanks to XeTeX you can use nowadays every font you like
as TTF or OTF font.


Uwe, thanks for clarifications.

But now I am wondering if I got you right on
the implications of your answers?

Suppose, a novice (as myself) wants to prepare an aesthetically
looking PDF, with vector fonts, of a multilingual document. He
leans to enjoy the conveniences of LyX/MiKTeX. Then he has at
least 3 options:

1.
Chose the TeX-fonts and rely on the wits of LyX/MiKTeX.
If, say, a Cyrillic script is in heavy presence, then install
'cmcyr'+'cm-super' font packages. That leaves a freedom to vary
the family (Serif|Sans|Typewriter) and many other attributes.
But not the design -- that part of look and feel which is not
captured by the above attributes. This locks the user within a
single font design -- CM (Computer Modern);

2.
Suppose there is a need to switch between several designs
(say, in order to convey a touch of other times and places).
  There is still an option to stay with the TeX-fonts.
For instance, a Cyrillic package PSCyr offers several designs
of Postscript fonts -- Academy, Handbook, College, Antiqua,
Lazurski, and a number of others.
  But then the author is all by himself, no lifeline from
LyX/MiKTeX. There is a hairball of issues revolving around the
font management infrastructure (NFSS ?) behind the TeX, LaTeX
and MiKTeX. The downsides:

  2.1. Tons of reading, learning and experimenting. Quite
   a feat of heavy-lifting for a novice;
  2.2. The entire idea does not sit well with the automation
   of MiKTeX. Hand-made changes in various files are useless
   for they will be wiped off come a next update on-the-fly;
  2.3. Will the PSCyr fonts coexist peacefully with CM and, possibly,
   yet another package within same document? That might require
   a local stand-apart font installation, at the very least.
   Perhaps, some non-trivial TeX-programming, too.

3.
Alternatively, one could opt to leave a scary tight underworld
of TeX-fonts. And step into a wide open sunny land of Open Type
Fonts available through XeTeX/LuaTeX. The gains:

  3.1. Plenty of beautiful OTF/TFF fonts preinstalled on Windows;
  3.2. Even more of mighty flexible fonts are available from other
   sources. Linux Libertine is a notable example (thanks, Maria).
  3.3. Switching between the different font designs any time any
   place is incredibly easy, just take a look at a sample at
   http://en.wikipedia.org/wiki/XeTeX#Example

4.
Given (1,2,3), what would be a compelling reason to prefer
the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

5.
More specifically, if one chooses to go with XeTeX  (or LuaTeX),

  5.1. Would that cost one any problems with typesetting a math?
  5.2. Would there be incompatibilities with the pre-XeTeX
   packages? Would one lose an access to some irreplaceable
   legacy code?

I would appreciate your insight and opinion.

Best regards,

Leonid




Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread Liviu Andronic
On Thu, Mar 14, 2013 at 7:06 AM, leonid baranov
leonidbaran...@gmail.com wrote:
 4.
 Given (1,2,3), what would be a compelling reason to prefer
 the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

Several thoughts:
- XeTeX typesetting is in my experience inferior to pdflatex typesetting
- For multilingual documents, TeX fonts encodings may quickly become a
nightmare. XeTeX/LuaTeX plays much nicer since they're natively
unicode
- I'm not sure what's the status of XeTeX/LuaTeX babel equivalent
(polyglossia, I think). Last time I tried I couldn't get it to work
- pdflatex is stable and has be around for ages, while XeTeX/LuaTeX
are quite new and may still be evolving
- Most TeX fonts available in LyX are high-quality, while with
XeTeX/LuaTeX you're free to choose as ugly a font as you will (tip:
try Comic Sans)

So it all really boils down to a trade-off, and a choice of what works
fine for you.

Liviu


Re: Max and Min in spanish

2013-03-14 Thread Guenter Milde
On 2013-03-13, Julio Rojas wrote:
 Dear all, I am working with Lyx 2.0.5.1 and MikTeX 2.9 on a Beamer
 presentation. In my Spanish formatted documents (article class, for
 example), \min and \max are produced upright and accented inside any
 math environment. On Beamer, these accents are not produced and the
 supposedly accented letters are overlapped by a  symbol. I have
 tried changing the font in the menu, with no better results.

I suppose this is because Beamer uses fonts in T1 (instead of OT1) font
encoding for \mathrm. You may be able to override this with a suitable
OT1-encoded upright font. You may try

\SetMathAlphabet{\mathrm}{normal}{OT1}{zavm}{m}{n}
\SetMathAlphabet{\mathrm}{bold}{OT1}{zavm}{bx}{n}

(untested).

Alternatvely, try with \text{max} \text{min} (of course in Spanish), but
this requires extra work if you want limits below.

Günter



Re: editing math in lyx

2013-03-14 Thread Guenter Milde
On 2013-03-13, Csikos Bela wrote:
 Hello:

 How can I edit text written in math mode in lyx?
 An example: I write a fraction using \textrm for both
 the numerator and the denominator. Then I decide to
 change these to sans serif (textsf). How can I apply
 the change to the fraction's numerator and denominator?
 (ie. change the code \textrm to \textsf)?

Third method: 

* select and cut the fraction
* paste into text - will appear as LaTeX macros
* edit
* cut and paste back to the formula

This also works for complete formulas. Then, alternatively, you can select
the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a
display formula).

Günter



Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread Guenter Milde
On 2013-03-14, Liviu Andronic wrote:
 On Thu, Mar 14, 2013 at 7:06 AM, leonid baranov
leonidbaran...@gmail.com wrote:
 4.
 Given (1,2,3), what would be a compelling reason to prefer
 the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

 Several thoughts:

- Multi-lingual multi-script documents are a niche - the majority of
  users write in one (or maybe two) languages, mainly just using Latin
  script. For them, 1,2,3 does not apply.

 - XeTeX typesetting is in my experience inferior to pdflatex typesetting

Do you mean the missing microtypography support? OTOH, microtypography is
not natively supported by LyX (you need to activate it in the LaTeX
preamble).

- Packages that play with Postscript no longer work (psfrag, pstricks etc).

 - For multilingual documents, TeX fonts encodings may quickly become a
 nightmare. XeTeX/LuaTeX plays much nicer since they're natively
 unicode

 - I'm not sure what's the status of XeTeX/LuaTeX babel equivalent
 (polyglossia, I think). Last time I tried I couldn't get it to work

  Polyglossia and its support in LyX work reasonably well nowadays.

  OTOH, there is work on babel to get it working with both
  traditional and Unicode-aware TeX engines.
  http://www.ctan.org/pkg/babel-beta

 - pdflatex is stable and has be around for ages, while XeTeX/LuaTeX
 are quite new and may still be evolving

  XeTeX is no longer supported, LuaLaTeX is still beta code.

- Speed. pdflatex is far faster

 - Most TeX fonts available in LyX are high-quality, while with
 XeTeX/LuaTeX you're free to choose as ugly a font as you will (tip:
 try Comic Sans)

- By default, also Xe- and LuaTeX use TeX fonts for maths. Mixing these with
  non-CM fonts may look bad.
  
  There is the experimental unicode-math package that can use OpenType
  math fonts (Microsofts Cambria and a small selection of OpenSource
  ones).  http://www.ctan.org/pkg/unicode-math

 So it all really boils down to a trade-off, and a choice of what works
 fine for you.

Günter



updating texlive package

2013-03-14 Thread Csikos Bela
Hello:

Not specific to lyx but related.
I have currently texlive 2012 and I don't want to update it to newest texlive 
2013 now. But I have a few outdated packages I would like to update.
Can it be done with texlive manager (tlmgr)? To update a texlive package from a 
local zip file downloaded from a site like ctan.

Thanks,

bcsikos



Re: editing math in lyx

2013-03-14 Thread Alex Vergara Gil
- Original Message - 
From: Guenter Milde mi...@users.sf.net

To: lyx-users@lists.lyx.org
Sent: Thursday, March 14, 2013 3:35 AM
Subject: Re: editing math in lyx



Third method:

* select and cut the fraction
* paste into text - will appear as LaTeX macros
* edit
* cut and paste back to the formula

This also works for complete formulas. Then, alternatively, you can select
the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for 
a

display formula).

Günter




Isn´t there a better way to do this inside LyX?
I think this is a good feature request for developers, is not that hard to 
put a button inside the math environment that switches between TeX and 
rendered math mode, and when exited you see only rendered. I don´t know if I 
am making myself clear, so I will explain this a little more.


1 Enter in math mode and add some equation/whatever.
2 Now I want to add some TeX code directly or edit what I have introduced, 
so I press the (requested) switch button and I could see all in TeX code.
3 I edit the TeX code  and when finished press the switch button again (or 
just leave math mode), the result should be the new rendered 
equation/whatever I have edited.


This feature would be great for middle to power users, off course one should 
only expect math code inside the math mode so it would be nice to clarify 
this in the manual if it is actually included.


I know I can do this in a ERT environment but then I need to copy to math 
but that´s not an optimal approach.


Regards

Alex 



Re: updating texlive package

2013-03-14 Thread Scott Kostyshak
On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 Not specific to lyx but related.
 I have currently texlive 2012 and I don't want to update it to newest texlive 
 2013 now. But I have a few outdated packages I would like to update.
 Can it be done with texlive manager (tlmgr)? To update a texlive package from 
 a local zip file downloaded from a site like ctan.

2013 is not released yet.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.

To update everything from the command line, do:
tlmgr update --self --all

You might have to use 'sudo'.

Scott


 Thanks,

 bcsikos



Re: updating texlive package

2013-03-14 Thread EK

  
  
Scott,
Your advice works for Windows, but in linux tex-live seem to hide
the package manager (to enforce unified package updating through the
linux package manager, I guess). 
I tried to find tlmgr in the ubuntu repositories but failed.

Yours,
Ehud


On 03/14/2013 11:26 AM, Scott Kostyshak
  wrote:


  On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela bcsikos...@freemail.hu wrote:

  
Hello:

Not specific to lyx but related.
I have currently texlive 2012 and I don't want to update it to newest texlive 2013 now. But I have a few outdated packages I would like to update.
Can it be done with texlive manager (tlmgr)? To update a texlive package from a local zip file downloaded from a site like ctan.

  
  
2013 is not released yet.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.

To update everything from the command line, do:
tlmgr update --self --all

You might have to use 'sudo'.

Scott


  

Thanks,

bcsikos


  


-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual  Computational
  Neuroscience
  Director, Center for Excellence in Computational 
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural 
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: updating texlive package

2013-03-14 Thread Scott Kostyshak
On Thu, Mar 14, 2013 at 12:42 PM, EK ehud.kap...@gmail.com wrote:
 Scott,
 Your advice works for Windows, but in linux tex-live seem to hide the
 package manager (to enforce unified package updating through the linux
 package manager, I guess).
 I tried to find tlmgr in the ubuntu repositories but failed.

Hi Ehud,

Good point. Because bcsikos mentioned tlmgr I assumed he had it
installed. In Linux the above works also, but you have to install TeX
Live manually instead of using the Ubuntu packages. I recently
transitioned from using the Ubuntu PPA to installing TeX Live manually
so if you would like some advice on this, let me know and I can write
up something. Maybe we could write a Wiki article for this. It's a
little tricky because if you don't use some workarounds, whenever you
try to install an Ubuntu package that depends on LaTeX, Ubuntu will
try to install TeX Live again because it doesn't know that you already
installed it.

Best,

Scott


Re: updating texlive package

2013-03-14 Thread Liviu Andronic
On Thu, Mar 14, 2013 at 7:00 PM, Scott Kostyshak skost...@princeton.edu wrote:
 On Thu, Mar 14, 2013 at 12:42 PM, EK ehud.kap...@gmail.com wrote:
 Scott,
 Your advice works for Windows, but in linux tex-live seem to hide the
 package manager (to enforce unified package updating through the linux
 package manager, I guess).
 I tried to find tlmgr in the ubuntu repositories but failed.

 Hi Ehud,

 Good point. Because bcsikos mentioned tlmgr I assumed he had it
 installed. In Linux the above works also, but you have to install TeX
 Live manually instead of using the Ubuntu packages. I recently
 transitioned from using the Ubuntu PPA to installing TeX Live manually
 so if you would like some advice on this, let me know and I can write
 up something. Maybe we could write a Wiki article for this. It's a

I think that would be great. If there are clear instructions on how
one should proceed, perhaps we may come up with a PPA that renders the
process straightforward.

Liviu


 little tricky because if you don't use some workarounds, whenever you
 try to install an Ubuntu package that depends on LaTeX, Ubuntu will
 try to install TeX Live again because it doesn't know that you already
 installed it.




 Best,

 Scott



-- 
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: updating texlive package

2013-03-14 Thread Csikos Bela
Scott Kostyshak skost...@princeton.edu írta:
On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 Not specific to lyx but related.
 I have currently texlive 2012 and I don't want to update it to newest 
 texlive 2013 now. But I have a few outdated packages I would like to update.
 Can it be done with texlive manager (tlmgr)? To update a texlive package 
 from a local zip file downloaded from a site like ctan.

2013 is not released yet.

Thanks, you're right.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.


I know how to start tlmgr gui.
What I don't know if I can use it to update a package from local zip file,
and if yes, how. This was my original question.

In the meantime I ran tlmgr and found that the package I am interested 
is installed, and the window shows the package name, and local rev .(ver).
But the remote rev. (ver.) column is empty.

Question:

How can I check the remote rev. (ver.) without installing/updating the given 
package? A want to update it only if I see that it (the remote rev. (ver.)) is 
the one I need. If I check the package checkbox and click update the package 
will be updated, what I don't want until I don't see version number. (I hope I 
made my question clear.)

Thanks,

bcsikos



Re: updating texlive package

2013-03-14 Thread Csikos Bela
stefano franchi stefano.fran...@gmail.com írta:
On Thu, Mar 14, 2013 at 1:52 PM, Csikos Bela bcsikos...@freemail.hu
 wrote:
I know how to start tlmgr gui.
What I don#39;t know if I can use it to update a package from local zip file,
and if yes, how. This was my original question.

If by quot;local zip filequot; you mean quot;a zipped file containing a 
TexLive packagequot;, then tlmgr help says:  install [option]... pkg...  
 Install each pkg given on the command line. By default this installs all 
packages on which the given pkgs are dependent, also.  Options:
   --file   Instead of fetching a package from the installation 
repository, use the packages files given on the command line. These files 
need to be proper TeX Live package files (with contained tlpobj file).

so: [sudo] tlmgr --file zipped-package.zip should do the trick

Yes, this is what I meant.

But I am not sure why you would want to download the package manually and 
then install it with tlmgr. Isn#39;t it simpler to install it from a remote 
repository and saving yourself one step? Or am I missing something?

It is sure simpler, but I have an outdated texlive installation (texlive 2011 I 
guess, I can not check it right now). It works for me well, and I don't want to 
update it. But I want update individual packages.

How can I check the remote rev. (ver.) without installing/updating the 
given package? A want to update it only if I see that it (the remote 
rev. (ver.)) is the one I need. If I check the package checkbox and 
click update the package will be updated, what I don#39;t want until I 
don#39;t see version number. (I hope I made my question clear.)

This is tlmgr#39;s standard behavior. As soon as you load a remote 
repository it will show you the version number of the locally installed 
versio next to the version number of the remote version
But you need to load a remote rep first.Cheers,Stefano-- 

Thanks, I found it. tlmgr-menu - load repository.

bcsikos



Re: [off-topic] LyX as a LaTeX table editor (and other selling advice)

2013-03-14 Thread Maria Gouskova
On Wed, Mar 13, 2013 at 10:25 AM, Liviu Andronic landronim...@gmail.comwrote:

 On Wed, Mar 13, 2013 at 2:45 PM, stefano franchi
 stefano.fran...@gmail.com wrote:
  Continuous spell-checking is a fairly common editor's feature nowadays.
  Linux's Kile (a Latex editor) has it, for instance, and it is based on
  standard KDE components. As much as I love Lyx's spellchecker (and I
  wouldn't be able to work without it), I would hesitate to sell Lyx over
  Latex on it.
 
 However if the LaTeX user is used to spell-checking, then selling LyX
 without stressing the feature would be a deal-breaker. :) Anyways, I'm
 not that familiar with LaTeX editors, and this specific colleague was
 using one without a spell-checking feature.

 Oh, one other point.. My pitch for selling LyX is that it is like
 Word for LaTeX. And then I start clicking around to show how
 intuitive all is, and display the source pane to show them what they
 would have had to type to get that specific construct (including
 math). I think this delivers the message rather well.

 Cheers,
 Liviu


I occasionally teach a How to use MS Word workshop in my department,
where I show grad students how to make use of the formatting styles
feature, automatic numbering, and cross-referencing. Then a grad student
and I will co-teach a workshop on LaTeX/LyX. We start with LaTeX proper,
explained by the grad student. Then I show how LyX combines the stability
and control of LaTeX with the gui-ness of Word, and I specifically mention
tables as a major difference.

Tables were the deal breaker for me wrt real LaTeX. I use tables all the
time, and LyX's table editor is not, frankly, as elegant as Word's (as I
remember Word from the year 2003 or so). But LyX's table editing features
are good enough for my usual needs, and it definitely has an advantage over
other LaTeX editors.

Maria


Re: updating texlive package

2013-03-14 Thread EK

  
  
What I have been doing instead of using tlmgr in (L)ubuntu is to get
the package I need from CTAN, copy it to where Lubuntu likes to
store packages, and run:
sudo texhash
If you then remember to reconfigure lyx, everything works.
Yours,
Ehud

On 03/14/2013 02:00 PM, Scott Kostyshak
  wrote:


  On Thu, Mar 14, 2013 at 12:42 PM, EK ehud.kap...@gmail.com wrote:

  
Scott,
Your advice works for Windows, but in linux tex-live seem to hide the
package manager (to enforce unified package updating through the linux
package manager, I guess).
I tried to find tlmgr in the ubuntu repositories but failed.

  
  
Hi Ehud,

Good point. Because bcsikos mentioned tlmgr I assumed he had it
installed. In Linux the above works also, but you have to install TeX
Live manually instead of using the Ubuntu packages. I recently
transitioned from using the Ubuntu PPA to installing TeX Live manually
so if you would like some advice on this, let me know and I can write
up something. Maybe we could write a Wiki article for this. It's a
little tricky because if you don't use some workarounds, whenever you
try to install an Ubuntu package that depends on LaTeX, Ubuntu will
try to install TeX Live again because it doesn't know that you already
installed it.

Best,

Scott



-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual  Computational
  Neuroscience
  Director, Center for Excellence in Computational 
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural 
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: problem with wrapfigure

2013-03-14 Thread Uwe Stöhr

Am 14.03.2013 19:41, schrieb Federico Rapuano:


When using wrapfigure with a language different from english you always end up with 
the word Figure
xy under the picture. This is due to the fact that the tex expansion of the 
wrap:Figure Lyx
instruction is:...


Could you please attach your LyX file that I can have a look?

regards Uwe


Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread leonid baranov
 No you don't. Leave all fonts at default setting. cm-super will select the
right glyphs 
 automatically for you. (The default are the different shapes of the Computer
modern fonts and 
 CM-super is their vector replacement.) 
...
 
 If you really want to use another font than Computer modern, then use ttf/otf
fonts via the docment 
 font settings option use-non TeX fonts. For more info abot this option, see
the LyX userGuide, 
 sec. 3.7 Fonts and Text Styles
... 
 All fonts that you can select via the document settings are installed. The
next LyX version supports 
 a few more fonts, but thanks to XeTeX you can use nowadays every font you like
as TTF or OTF font.


Uwe, thanks for clarifications.

But now I am wondering if I got you right on
the implications of your answers?

Suppose, a novice (as myself) wants to prepare an aesthetically
looking PDF, with vector fonts, of a multilingual document. He
leans to enjoy the conveniences of LyX/MiKTeX. Then he has at
least 3 options:

1.
Chose the TeX-fonts and rely on the wits of LyX/MiKTeX.
If, say, a Cyrillic script is in heavy presence, then install
'cmcyr'+'cm-super' font packages. That leaves a freedom to vary
the family (Serif|Sans|Typewriter) and many other attributes.
But not the design -- that part of look and feel which is not
captured by the above attributes. This locks the user within a
single font design -- CM (Computer Modern);

2.
Suppose there is a need to switch between several designs
(say, in order to convey a touch of other times and places).
  There is still an option to stay with the TeX-fonts.
For instance, a Cyrillic package PSCyr offers several designs
of Postscript fonts -- Academy, Handbook, College, Antiqua,
Lazurski, and a number of others.
  But then the author is all by himself, no lifeline from
LyX/MiKTeX. There is a hairball of issues revolving around the
font management infrastructure (NFSS ?) behind the TeX, LaTeX
and MiKTeX. The downsides:

  2.1. Tons of reading, learning and experimenting. Quite
   a feat of heavy-lifting for a novice;
  2.2. The entire idea does not sit well with the automation
   of MiKTeX. Hand-made changes in various files are useless
   for they will be wiped off come a next update on-the-fly;
  2.3. Will the PSCyr fonts coexist peacefully with CM and, possibly,
   yet another package within same document? That might require
   a local stand-apart font installation, at the very least.
   Perhaps, some non-trivial TeX-programming, too.

3.
Alternatively, one could opt to leave a scary tight underworld
of TeX-fonts. And step into a wide open sunny land of Open Type
Fonts available through XeTeX/LuaTeX. The gains:

  3.1. Plenty of beautiful OTF/TFF fonts preinstalled on Windows;
  3.2. Even more of mighty flexible fonts are available from other
   sources. Linux Libertine is a notable example (thanks, Maria).
  3.3. Switching between the different font designs any time any
   place is incredibly easy, just take a look at a sample at
   http://en.wikipedia.org/wiki/XeTeX#Example

4.
Given (1,2,3), what would be a compelling reason to prefer
the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

5.
More specifically, if one chooses to go with XeTeX  (or LuaTeX),

  5.1. Would that cost one any problems with typesetting a math?
  5.2. Would there be incompatibilities with the pre-XeTeX
   packages? Would one lose an access to some irreplaceable
   legacy code?

I would appreciate your insight and opinion.

Best regards,

Leonid




Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread Liviu Andronic
On Thu, Mar 14, 2013 at 7:06 AM, leonid baranov
leonidbaran...@gmail.com wrote:
 4.
 Given (1,2,3), what would be a compelling reason to prefer
 the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

Several thoughts:
- XeTeX typesetting is in my experience inferior to pdflatex typesetting
- For multilingual documents, TeX fonts encodings may quickly become a
nightmare. XeTeX/LuaTeX plays much nicer since they're natively
unicode
- I'm not sure what's the status of XeTeX/LuaTeX babel equivalent
(polyglossia, I think). Last time I tried I couldn't get it to work
- pdflatex is stable and has be around for ages, while XeTeX/LuaTeX
are quite new and may still be evolving
- Most TeX fonts available in LyX are high-quality, while with
XeTeX/LuaTeX you're free to choose as ugly a font as you will (tip:
try Comic Sans)

So it all really boils down to a trade-off, and a choice of what works
fine for you.

Liviu


Re: Max and Min in spanish

2013-03-14 Thread Guenter Milde
On 2013-03-13, Julio Rojas wrote:
 Dear all, I am working with Lyx 2.0.5.1 and MikTeX 2.9 on a Beamer
 presentation. In my Spanish formatted documents (article class, for
 example), \min and \max are produced upright and accented inside any
 math environment. On Beamer, these accents are not produced and the
 supposedly accented letters are overlapped by a  symbol. I have
 tried changing the font in the menu, with no better results.

I suppose this is because Beamer uses fonts in T1 (instead of OT1) font
encoding for \mathrm. You may be able to override this with a suitable
OT1-encoded upright font. You may try

\SetMathAlphabet{\mathrm}{normal}{OT1}{zavm}{m}{n}
\SetMathAlphabet{\mathrm}{bold}{OT1}{zavm}{bx}{n}

(untested).

Alternatvely, try with \text{max} \text{min} (of course in Spanish), but
this requires extra work if you want limits below.

Günter



Re: editing math in lyx

2013-03-14 Thread Guenter Milde
On 2013-03-13, Csikos Bela wrote:
 Hello:

 How can I edit text written in math mode in lyx?
 An example: I write a fraction using \textrm for both
 the numerator and the denominator. Then I decide to
 change these to sans serif (textsf). How can I apply
 the change to the fraction's numerator and denominator?
 (ie. change the code \textrm to \textsf)?

Third method: 

* select and cut the fraction
* paste into text - will appear as LaTeX macros
* edit
* cut and paste back to the formula

This also works for complete formulas. Then, alternatively, you can select
the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a
display formula).

Günter



Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread Guenter Milde
On 2013-03-14, Liviu Andronic wrote:
 On Thu, Mar 14, 2013 at 7:06 AM, leonid baranov
leonidbaran...@gmail.com wrote:
 4.
 Given (1,2,3), what would be a compelling reason to prefer
 the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

 Several thoughts:

- Multi-lingual multi-script documents are a niche - the majority of
  users write in one (or maybe two) languages, mainly just using Latin
  script. For them, 1,2,3 does not apply.

 - XeTeX typesetting is in my experience inferior to pdflatex typesetting

Do you mean the missing microtypography support? OTOH, microtypography is
not natively supported by LyX (you need to activate it in the LaTeX
preamble).

- Packages that play with Postscript no longer work (psfrag, pstricks etc).

 - For multilingual documents, TeX fonts encodings may quickly become a
 nightmare. XeTeX/LuaTeX plays much nicer since they're natively
 unicode

 - I'm not sure what's the status of XeTeX/LuaTeX babel equivalent
 (polyglossia, I think). Last time I tried I couldn't get it to work

  Polyglossia and its support in LyX work reasonably well nowadays.

  OTOH, there is work on babel to get it working with both
  traditional and Unicode-aware TeX engines.
  http://www.ctan.org/pkg/babel-beta

 - pdflatex is stable and has be around for ages, while XeTeX/LuaTeX
 are quite new and may still be evolving

  XeTeX is no longer supported, LuaLaTeX is still beta code.

- Speed. pdflatex is far faster

 - Most TeX fonts available in LyX are high-quality, while with
 XeTeX/LuaTeX you're free to choose as ugly a font as you will (tip:
 try Comic Sans)

- By default, also Xe- and LuaTeX use TeX fonts for maths. Mixing these with
  non-CM fonts may look bad.
  
  There is the experimental unicode-math package that can use OpenType
  math fonts (Microsofts Cambria and a small selection of OpenSource
  ones).  http://www.ctan.org/pkg/unicode-math

 So it all really boils down to a trade-off, and a choice of what works
 fine for you.

Günter



updating texlive package

2013-03-14 Thread Csikos Bela
Hello:

Not specific to lyx but related.
I have currently texlive 2012 and I don't want to update it to newest texlive 
2013 now. But I have a few outdated packages I would like to update.
Can it be done with texlive manager (tlmgr)? To update a texlive package from a 
local zip file downloaded from a site like ctan.

Thanks,

bcsikos



Re: editing math in lyx

2013-03-14 Thread Alex Vergara Gil
- Original Message - 
From: Guenter Milde mi...@users.sf.net

To: lyx-users@lists.lyx.org
Sent: Thursday, March 14, 2013 3:35 AM
Subject: Re: editing math in lyx



Third method:

* select and cut the fraction
* paste into text - will appear as LaTeX macros
* edit
* cut and paste back to the formula

This also works for complete formulas. Then, alternatively, you can select
the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for 
a

display formula).

Günter




Isn´t there a better way to do this inside LyX?
I think this is a good feature request for developers, is not that hard to 
put a button inside the math environment that switches between TeX and 
rendered math mode, and when exited you see only rendered. I don´t know if I 
am making myself clear, so I will explain this a little more.


1 Enter in math mode and add some equation/whatever.
2 Now I want to add some TeX code directly or edit what I have introduced, 
so I press the (requested) switch button and I could see all in TeX code.
3 I edit the TeX code  and when finished press the switch button again (or 
just leave math mode), the result should be the new rendered 
equation/whatever I have edited.


This feature would be great for middle to power users, off course one should 
only expect math code inside the math mode so it would be nice to clarify 
this in the manual if it is actually included.


I know I can do this in a ERT environment but then I need to copy to math 
but that´s not an optimal approach.


Regards

Alex 



Re: updating texlive package

2013-03-14 Thread Scott Kostyshak
On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 Not specific to lyx but related.
 I have currently texlive 2012 and I don't want to update it to newest texlive 
 2013 now. But I have a few outdated packages I would like to update.
 Can it be done with texlive manager (tlmgr)? To update a texlive package from 
 a local zip file downloaded from a site like ctan.

2013 is not released yet.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.

To update everything from the command line, do:
tlmgr update --self --all

You might have to use 'sudo'.

Scott


 Thanks,

 bcsikos



Re: updating texlive package

2013-03-14 Thread EK

  
  
Scott,
Your advice works for Windows, but in linux tex-live seem to hide
the package manager (to enforce unified package updating through the
linux package manager, I guess). 
I tried to find tlmgr in the ubuntu repositories but failed.

Yours,
Ehud


On 03/14/2013 11:26 AM, Scott Kostyshak
  wrote:


  On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela bcsikos...@freemail.hu wrote:

  
Hello:

Not specific to lyx but related.
I have currently texlive 2012 and I don't want to update it to newest texlive 2013 now. But I have a few outdated packages I would like to update.
Can it be done with texlive manager (tlmgr)? To update a texlive package from a local zip file downloaded from a site like ctan.

  
  
2013 is not released yet.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.

To update everything from the command line, do:
tlmgr update --self --all

You might have to use 'sudo'.

Scott


  

Thanks,

bcsikos


  


-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual  Computational
  Neuroscience
  Director, Center for Excellence in Computational 
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural 
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: updating texlive package

2013-03-14 Thread Scott Kostyshak
On Thu, Mar 14, 2013 at 12:42 PM, EK ehud.kap...@gmail.com wrote:
 Scott,
 Your advice works for Windows, but in linux tex-live seem to hide the
 package manager (to enforce unified package updating through the linux
 package manager, I guess).
 I tried to find tlmgr in the ubuntu repositories but failed.

Hi Ehud,

Good point. Because bcsikos mentioned tlmgr I assumed he had it
installed. In Linux the above works also, but you have to install TeX
Live manually instead of using the Ubuntu packages. I recently
transitioned from using the Ubuntu PPA to installing TeX Live manually
so if you would like some advice on this, let me know and I can write
up something. Maybe we could write a Wiki article for this. It's a
little tricky because if you don't use some workarounds, whenever you
try to install an Ubuntu package that depends on LaTeX, Ubuntu will
try to install TeX Live again because it doesn't know that you already
installed it.

Best,

Scott


Re: updating texlive package

2013-03-14 Thread Liviu Andronic
On Thu, Mar 14, 2013 at 7:00 PM, Scott Kostyshak skost...@princeton.edu wrote:
 On Thu, Mar 14, 2013 at 12:42 PM, EK ehud.kap...@gmail.com wrote:
 Scott,
 Your advice works for Windows, but in linux tex-live seem to hide the
 package manager (to enforce unified package updating through the linux
 package manager, I guess).
 I tried to find tlmgr in the ubuntu repositories but failed.

 Hi Ehud,

 Good point. Because bcsikos mentioned tlmgr I assumed he had it
 installed. In Linux the above works also, but you have to install TeX
 Live manually instead of using the Ubuntu packages. I recently
 transitioned from using the Ubuntu PPA to installing TeX Live manually
 so if you would like some advice on this, let me know and I can write
 up something. Maybe we could write a Wiki article for this. It's a

I think that would be great. If there are clear instructions on how
one should proceed, perhaps we may come up with a PPA that renders the
process straightforward.

Liviu


 little tricky because if you don't use some workarounds, whenever you
 try to install an Ubuntu package that depends on LaTeX, Ubuntu will
 try to install TeX Live again because it doesn't know that you already
 installed it.




 Best,

 Scott



-- 
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: updating texlive package

2013-03-14 Thread Csikos Bela
Scott Kostyshak skost...@princeton.edu írta:
On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 Not specific to lyx but related.
 I have currently texlive 2012 and I don't want to update it to newest 
 texlive 2013 now. But I have a few outdated packages I would like to update.
 Can it be done with texlive manager (tlmgr)? To update a texlive package 
 from a local zip file downloaded from a site like ctan.

2013 is not released yet.

Thanks, you're right.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.


I know how to start tlmgr gui.
What I don't know if I can use it to update a package from local zip file,
and if yes, how. This was my original question.

In the meantime I ran tlmgr and found that the package I am interested 
is installed, and the window shows the package name, and local rev .(ver).
But the remote rev. (ver.) column is empty.

Question:

How can I check the remote rev. (ver.) without installing/updating the given 
package? A want to update it only if I see that it (the remote rev. (ver.)) is 
the one I need. If I check the package checkbox and click update the package 
will be updated, what I don't want until I don't see version number. (I hope I 
made my question clear.)

Thanks,

bcsikos



Re: updating texlive package

2013-03-14 Thread Csikos Bela
stefano franchi stefano.fran...@gmail.com írta:
On Thu, Mar 14, 2013 at 1:52 PM, Csikos Bela bcsikos...@freemail.hu
 wrote:
I know how to start tlmgr gui.
What I don#39;t know if I can use it to update a package from local zip file,
and if yes, how. This was my original question.

If by quot;local zip filequot; you mean quot;a zipped file containing a 
TexLive packagequot;, then tlmgr help says:  install [option]... pkg...  
 Install each pkg given on the command line. By default this installs all 
packages on which the given pkgs are dependent, also.  Options:
   --file   Instead of fetching a package from the installation 
repository, use the packages files given on the command line. These files 
need to be proper TeX Live package files (with contained tlpobj file).

so: [sudo] tlmgr --file zipped-package.zip should do the trick

Yes, this is what I meant.

But I am not sure why you would want to download the package manually and 
then install it with tlmgr. Isn#39;t it simpler to install it from a remote 
repository and saving yourself one step? Or am I missing something?

It is sure simpler, but I have an outdated texlive installation (texlive 2011 I 
guess, I can not check it right now). It works for me well, and I don't want to 
update it. But I want update individual packages.

How can I check the remote rev. (ver.) without installing/updating the 
given package? A want to update it only if I see that it (the remote 
rev. (ver.)) is the one I need. If I check the package checkbox and 
click update the package will be updated, what I don#39;t want until I 
don#39;t see version number. (I hope I made my question clear.)

This is tlmgr#39;s standard behavior. As soon as you load a remote 
repository it will show you the version number of the locally installed 
versio next to the version number of the remote version
But you need to load a remote rep first.Cheers,Stefano-- 

Thanks, I found it. tlmgr-menu - load repository.

bcsikos



Re: [off-topic] LyX as a LaTeX table editor (and other selling advice)

2013-03-14 Thread Maria Gouskova
On Wed, Mar 13, 2013 at 10:25 AM, Liviu Andronic landronim...@gmail.comwrote:

 On Wed, Mar 13, 2013 at 2:45 PM, stefano franchi
 stefano.fran...@gmail.com wrote:
  Continuous spell-checking is a fairly common editor's feature nowadays.
  Linux's Kile (a Latex editor) has it, for instance, and it is based on
  standard KDE components. As much as I love Lyx's spellchecker (and I
  wouldn't be able to work without it), I would hesitate to sell Lyx over
  Latex on it.
 
 However if the LaTeX user is used to spell-checking, then selling LyX
 without stressing the feature would be a deal-breaker. :) Anyways, I'm
 not that familiar with LaTeX editors, and this specific colleague was
 using one without a spell-checking feature.

 Oh, one other point.. My pitch for selling LyX is that it is like
 Word for LaTeX. And then I start clicking around to show how
 intuitive all is, and display the source pane to show them what they
 would have had to type to get that specific construct (including
 math). I think this delivers the message rather well.

 Cheers,
 Liviu


I occasionally teach a How to use MS Word workshop in my department,
where I show grad students how to make use of the formatting styles
feature, automatic numbering, and cross-referencing. Then a grad student
and I will co-teach a workshop on LaTeX/LyX. We start with LaTeX proper,
explained by the grad student. Then I show how LyX combines the stability
and control of LaTeX with the gui-ness of Word, and I specifically mention
tables as a major difference.

Tables were the deal breaker for me wrt real LaTeX. I use tables all the
time, and LyX's table editor is not, frankly, as elegant as Word's (as I
remember Word from the year 2003 or so). But LyX's table editing features
are good enough for my usual needs, and it definitely has an advantage over
other LaTeX editors.

Maria


Re: updating texlive package

2013-03-14 Thread EK

  
  
What I have been doing instead of using tlmgr in (L)ubuntu is to get
the package I need from CTAN, copy it to where Lubuntu likes to
store packages, and run:
sudo texhash
If you then remember to reconfigure lyx, everything works.
Yours,
Ehud

On 03/14/2013 02:00 PM, Scott Kostyshak
  wrote:


  On Thu, Mar 14, 2013 at 12:42 PM, EK ehud.kap...@gmail.com wrote:

  
Scott,
Your advice works for Windows, but in linux tex-live seem to hide the
package manager (to enforce unified package updating through the linux
package manager, I guess).
I tried to find tlmgr in the ubuntu repositories but failed.

  
  
Hi Ehud,

Good point. Because bcsikos mentioned tlmgr I assumed he had it
installed. In Linux the above works also, but you have to install TeX
Live manually instead of using the Ubuntu packages. I recently
transitioned from using the Ubuntu PPA to installing TeX Live manually
so if you would like some advice on this, let me know and I can write
up something. Maybe we could write a Wiki article for this. It's a
little tricky because if you don't use some workarounds, whenever you
try to install an Ubuntu package that depends on LaTeX, Ubuntu will
try to install TeX Live again because it doesn't know that you already
installed it.

Best,

Scott



-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual  Computational
  Neuroscience
  Director, Center for Excellence in Computational 
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural 
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: problem with wrapfigure

2013-03-14 Thread Uwe Stöhr

Am 14.03.2013 19:41, schrieb Federico Rapuano:


When using wrapfigure with a language different from english you always end up with 
the word Figure
xy under the picture. This is due to the fact that the tex expansion of the 
wrap:Figure Lyx
instruction is:...


Could you please attach your LyX file that I can have a look?

regards Uwe


Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread leonid baranov
> No you don't. Leave all fonts at default setting. cm-super will select the
right glyphs 
> automatically for you. (The default are the different shapes of the Computer
modern fonts and 
> CM-super is their vector replacement.) 
...
> 
> If you really want to use another font than Computer modern, then use ttf/otf
fonts via the docment 
> font settings option "use-non TeX fonts". For more info abot this option, see
the LyX userGuide, 
> sec. 3.7 "Fonts and Text Styles"
... 
> All fonts that you can select via the document settings are installed. The
next LyX version supports 
> a few more fonts, but thanks to XeTeX you can use nowadays every font you like
as TTF or OTF font.


Uwe, thanks for clarifications.

But now I am wondering if I got you right on
the implications of your answers?

Suppose, a novice (as myself) wants to prepare an aesthetically
looking PDF, with vector fonts, of a multilingual document. He
leans to enjoy the conveniences of LyX/MiKTeX. Then he has at
least 3 options:

1.
Chose the "TeX"-fonts and rely on the wits of LyX/MiKTeX.
If, say, a Cyrillic script is in heavy presence, then install
'cmcyr'+'cm-super' font packages. That leaves a freedom to vary
the family (Serif|Sans|Typewriter) and many other attributes.
But not the "design" -- that part of "look and feel" which is not
captured by the above attributes. This locks the user within a
single font "design" -- CM (Computer Modern);

2.
Suppose there is a need to switch between several designs
(say, in order to convey a touch of other times and places).
  There is still an option to stay with the "TeX-fonts".
For instance, a Cyrillic package PSCyr offers several designs
of Postscript fonts -- Academy, Handbook, College, Antiqua,
Lazurski, and a number of others.
  But then the author is all by himself, no lifeline from
LyX/MiKTeX. There is a hairball of issues revolving around the
font management infrastructure (NFSS ?) behind the TeX, LaTeX
and MiKTeX. The downsides:

  2.1. Tons of reading, learning and experimenting. Quite
   a feat of heavy-lifting for a novice;
  2.2. The entire idea does not sit well with the automation
   of MiKTeX. Hand-made changes in various files are useless
   for they will be wiped off come a next update "on-the-fly";
  2.3. Will the PSCyr fonts coexist peacefully with CM and, possibly,
   yet another package within same document? That might require
   a local stand-apart font installation, at the very least.
   Perhaps, some non-trivial TeX-programming, too.

3.
Alternatively, one could opt to leave a scary tight underworld
of "TeX-fonts". And step into a wide open sunny land of Open Type
Fonts available through XeTeX/LuaTeX. The gains:

  3.1. Plenty of beautiful OTF/TFF fonts preinstalled on Windows;
  3.2. Even more of mighty flexible fonts are available from other
   sources. Linux Libertine is a notable example (thanks, Maria).
  3.3. Switching between the different font designs any time any
   place is incredibly easy, just take a look at a sample at
   http://en.wikipedia.org/wiki/XeTeX#Example

4.
Given (1,2,3), what would be a compelling reason to prefer
the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

5.
More specifically, if one chooses to go with XeTeX  (or LuaTeX),

  5.1. Would that cost one any problems with typesetting a math?
  5.2. Would there be incompatibilities with the "pre-XeTeX"
   packages? Would one lose an access to some irreplaceable
   legacy code?

I would appreciate your insight and opinion.

Best regards,

Leonid




Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread Liviu Andronic
On Thu, Mar 14, 2013 at 7:06 AM, leonid baranov
 wrote:
> 4.
> Given (1,2,3), what would be a compelling reason to prefer
> the Tex-fonts + pdfLatex over XeTeX/LuaTeX?
>
Several thoughts:
- XeTeX typesetting is in my experience inferior to pdflatex typesetting
- For multilingual documents, TeX fonts encodings may quickly become a
nightmare. XeTeX/LuaTeX plays much nicer since they're natively
unicode
- I'm not sure what's the status of XeTeX/LuaTeX "babel" equivalent
(polyglossia, I think). Last time I tried I couldn't get it to work
- pdflatex is stable and has be around for ages, while XeTeX/LuaTeX
are quite new and may still be evolving
- Most TeX fonts available in LyX are high-quality, while with
XeTeX/LuaTeX you're free to choose as ugly a font as you will (tip:
try Comic Sans)

So it all really boils down to a trade-off, and a choice of what works
fine for you.

Liviu


Re: Max and Min in spanish

2013-03-14 Thread Guenter Milde
On 2013-03-13, Julio Rojas wrote:
> Dear all, I am working with Lyx 2.0.5.1 and MikTeX 2.9 on a Beamer
> presentation. In my Spanish formatted documents (article class, for
> example), \min and \max are produced upright and accented inside any
> math environment. On Beamer, these accents are not produced and the
> supposedly accented letters are overlapped by a "<<" symbol. I have
> tried changing the font in the menu, with no better results.

I suppose this is because Beamer uses fonts in T1 (instead of OT1) font
encoding for \mathrm. You may be able to override this with a suitable
OT1-encoded upright font. You may try

\SetMathAlphabet{\mathrm}{normal}{OT1}{zavm}{m}{n}
\SetMathAlphabet{\mathrm}{bold}{OT1}{zavm}{bx}{n}

(untested).

Alternatvely, try with \text{max} \text{min} (of course in Spanish), but
this requires extra work if you want limits below.

Günter



Re: editing math in lyx

2013-03-14 Thread Guenter Milde
On 2013-03-13, Csikos Bela wrote:
> Hello:

> How can I edit text written in math mode in lyx?
> An example: I write a fraction using \textrm for both
> the numerator and the denominator. Then I decide to
> change these to sans serif (textsf). How can I apply
> the change to the fraction's numerator and denominator?
> (ie. change the code \textrm to \textsf)?

Third method: 

* select and cut the fraction
* paste into text - will appear as LaTeX macros
* edit
* cut and paste back to the formula

This also works for complete formulas. Then, alternatively, you can select
the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a
display formula).

Günter



Re: Vector Fonts for Russian-English LyX document

2013-03-14 Thread Guenter Milde
On 2013-03-14, Liviu Andronic wrote:
> On Thu, Mar 14, 2013 at 7:06 AM, leonid baranov
> wrote:
>> 4.
>> Given (1,2,3), what would be a compelling reason to prefer
>> the Tex-fonts + pdfLatex over XeTeX/LuaTeX?

> Several thoughts:

- Multi-lingual multi-script documents are a niche - the majority of
  users write in one (or maybe two) languages, mainly just using Latin
  script. For them, 1,2,3 does not apply.

> - XeTeX typesetting is in my experience inferior to pdflatex typesetting

Do you mean the missing microtypography support? OTOH, microtypography is
not natively supported by LyX (you need to activate it in the LaTeX
preamble).

- Packages that play with Postscript no longer work (psfrag, pstricks etc).

> - For multilingual documents, TeX fonts encodings may quickly become a
> nightmare. XeTeX/LuaTeX plays much nicer since they're natively
> unicode

> - I'm not sure what's the status of XeTeX/LuaTeX "babel" equivalent
> (polyglossia, I think). Last time I tried I couldn't get it to work

  Polyglossia and its support in LyX work reasonably well nowadays.

  OTOH, there is work on babel to get it working with both
  traditional and Unicode-aware TeX engines.
  http://www.ctan.org/pkg/babel-beta

> - pdflatex is stable and has be around for ages, while XeTeX/LuaTeX
> are quite new and may still be evolving

  XeTeX is no longer supported, LuaLaTeX is still beta code.

- Speed. pdflatex is far faster

> - Most TeX fonts available in LyX are high-quality, while with
> XeTeX/LuaTeX you're free to choose as ugly a font as you will (tip:
> try Comic Sans)

- By default, also Xe- and LuaTeX use TeX fonts for maths. Mixing these with
  non-CM fonts may look bad.
  
  There is the experimental unicode-math package that can use OpenType
  math fonts (Microsofts Cambria and a small selection of OpenSource
  ones).  http://www.ctan.org/pkg/unicode-math

> So it all really boils down to a trade-off, and a choice of what works
> fine for you.

Günter



updating texlive package

2013-03-14 Thread Csikos Bela
Hello:

Not specific to lyx but related.
I have currently texlive 2012 and I don't want to update it to newest texlive 
2013 now. But I have a few outdated packages I would like to update.
Can it be done with texlive manager (tlmgr)? To update a texlive package from a 
local zip file downloaded from a site like ctan.

Thanks,

bcsikos



Re: editing math in lyx

2013-03-14 Thread Alex Vergara Gil
- Original Message - 
From: "Guenter Milde" 

To: 
Sent: Thursday, March 14, 2013 3:35 AM
Subject: Re: editing math in lyx



Third method:

* select and cut the fraction
* paste into text - will appear as LaTeX macros
* edit
* cut and paste back to the formula

This also works for complete formulas. Then, alternatively, you can select
the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for 
a

display formula).

Günter




Isn´t there a better way to do this inside LyX?
I think this is a good feature request for developers, is not that hard to 
put a button inside the math environment that switches between TeX and 
rendered math mode, and when exited you see only rendered. I don´t know if I 
am making myself clear, so I will explain this a little more.


1 Enter in math mode and add some equation/whatever.
2 Now I want to add some TeX code directly or edit what I have introduced, 
so I press the (requested) switch button and I could see all in TeX code.
3 I edit the TeX code  and when finished press the switch button again (or 
just leave math mode), the result should be the new rendered 
equation/whatever I have edited.


This feature would be great for middle to power users, off course one should 
only expect math code inside the math mode so it would be nice to clarify 
this in the manual if it is actually included.


I know I can do this in a ERT environment but then I need to copy to math 
but that´s not an optimal approach.


Regards

Alex 



Re: updating texlive package

2013-03-14 Thread Scott Kostyshak
On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela  wrote:
> Hello:
>
> Not specific to lyx but related.
> I have currently texlive 2012 and I don't want to update it to newest texlive 
> 2013 now. But I have a few outdated packages I would like to update.
> Can it be done with texlive manager (tlmgr)? To update a texlive package from 
> a local zip file downloaded from a site like ctan.

2013 is not released yet.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.

To update everything from the command line, do:
tlmgr update --self --all

You might have to use 'sudo'.

Scott

>
> Thanks,
>
> bcsikos
>


Re: updating texlive package

2013-03-14 Thread EK

  
  
Scott,
Your advice works for Windows, but in linux tex-live seem to hide
the package manager (to enforce unified package updating through the
linux package manager, I guess). 
I tried to find tlmgr in the ubuntu repositories but failed.

Yours,
Ehud


On 03/14/2013 11:26 AM, Scott Kostyshak
  wrote:


  On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela  wrote:

  
Hello:

Not specific to lyx but related.
I have currently texlive 2012 and I don't want to update it to newest texlive 2013 now. But I have a few outdated packages I would like to update.
Can it be done with texlive manager (tlmgr)? To update a texlive package from a local zip file downloaded from a site like ctan.

  
  
2013 is not released yet.

You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
packages with TeX Live.
(note that you have to have the package perl-tk installed)
That will also download the package itself so you don't have to do it manually.

To update everything from the command line, do:
tlmgr update --self --all

You might have to use 'sudo'.

Scott


  

Thanks,

bcsikos


  


-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual & Computational
  Neuroscience
  Director, Center for Excellence in Computational &
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural &
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: updating texlive package

2013-03-14 Thread Scott Kostyshak
On Thu, Mar 14, 2013 at 12:42 PM, EK  wrote:
> Scott,
> Your advice works for Windows, but in linux tex-live seem to hide the
> package manager (to enforce unified package updating through the linux
> package manager, I guess).
> I tried to find tlmgr in the ubuntu repositories but failed.

Hi Ehud,

Good point. Because bcsikos mentioned tlmgr I assumed he had it
installed. In Linux the above works also, but you have to install TeX
Live manually instead of using the Ubuntu packages. I recently
transitioned from using the Ubuntu PPA to installing TeX Live manually
so if you would like some advice on this, let me know and I can write
up something. Maybe we could write a Wiki article for this. It's a
little tricky because if you don't use some workarounds, whenever you
try to install an Ubuntu package that depends on LaTeX, Ubuntu will
try to install TeX Live again because it doesn't know that you already
installed it.

Best,

Scott


Re: updating texlive package

2013-03-14 Thread Liviu Andronic
On Thu, Mar 14, 2013 at 7:00 PM, Scott Kostyshak  wrote:
> On Thu, Mar 14, 2013 at 12:42 PM, EK  wrote:
>> Scott,
>> Your advice works for Windows, but in linux tex-live seem to hide the
>> package manager (to enforce unified package updating through the linux
>> package manager, I guess).
>> I tried to find tlmgr in the ubuntu repositories but failed.
>
> Hi Ehud,
>
> Good point. Because bcsikos mentioned tlmgr I assumed he had it
> installed. In Linux the above works also, but you have to install TeX
> Live manually instead of using the Ubuntu packages. I recently
> transitioned from using the Ubuntu PPA to installing TeX Live manually
> so if you would like some advice on this, let me know and I can write
> up something. Maybe we could write a Wiki article for this. It's a
>
I think that would be great. If there are clear instructions on how
one should proceed, perhaps we may come up with a PPA that renders the
process straightforward.

Liviu


> little tricky because if you don't use some workarounds, whenever you
> try to install an Ubuntu package that depends on LaTeX, Ubuntu will
> try to install TeX Live again because it doesn't know that you already
> installed it.
>



> Best,
>
> Scott



-- 
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: updating texlive package

2013-03-14 Thread Csikos Bela
Scott Kostyshak  írta:
>On Thu, Mar 14, 2013 at 6:08 AM, Csikos Bela  wrote:
>> Hello:
>>
>> Not specific to lyx but related.
>> I have currently texlive 2012 and I don't want to update it to newest 
>> texlive 2013 now. But I have a few outdated packages I would like to update.
>> Can it be done with texlive manager (tlmgr)? To update a texlive package 
>> from a local zip file downloaded from a site like ctan.
>
>2013 is not released yet.

Thanks, you're right.

>You can run 'tlmgr --gui' to give you a GUI for updating LaTeX
>packages with TeX Live.
>(note that you have to have the package perl-tk installed)
>That will also download the package itself so you don't have to do it manually.


I know how to start tlmgr gui.
What I don't know if I can use it to update a package from local zip file,
and if yes, how. This was my original question.

In the meantime I ran tlmgr and found that the package I am interested 
is installed, and the window shows the package name, and local rev .(ver).
But the remote rev. (ver.) column is empty.

Question:

How can I check the remote rev. (ver.) without installing/updating the given 
package? A want to update it only if I see that it (the remote rev. (ver.)) is 
the one I need. If I check the package checkbox and click update the package 
will be updated, what I don't want until I don't see version number. (I hope I 
made my question clear.)

Thanks,

bcsikos



Re: updating texlive package

2013-03-14 Thread Csikos Bela
stefano franchi  írta:
>On Thu, Mar 14, 2013 at 1:52 PM, Csikos Bela bcsikos...@freemail.hu
> wrote:
>>I know how to start tlmgr gui.
>>What I dont know if I can use it to update a package from local zip file,
>>and if yes, how. This was my original question.

>If by local zip file you mean a zipped file containing a 
>>TexLive package, then tlmgr help says:  install [option]... pkg...  
> >Install each pkg given on the command line. By default this installs all 
>>packages on which the given pkgs are dependent, also.  Options:
>   --file   Instead of fetching a package from the installation 
>>repository, use the packages files given on the command line. These files 
>>need to be proper TeX Live package files (with contained tlpobj file).
>
>so: [sudo] tlmgr --file zipped-package.zip should do the trick

Yes, this is what I meant.

>But I am not sure why you would want to download the package manually >and 
>then install it with tlmgr. Isnt it simpler to install it from a >remote 
>repository and saving yourself one step? Or am I missing >something?

It is sure simpler, but I have an outdated texlive installation (texlive 2011 I 
guess, I can not check it right now). It works for me well, and I don't want to 
update it. But I want update individual packages.

>>How can I check the remote rev. (ver.) without installing/updating the 
>>given package? A want to update it only if I see that it (the remote 
>>rev. (ver.)) is >the one I need. If I check the package checkbox and 
>>click update the package will be updated, what I dont want until I 
>>dont see version number. (I >hope I made my question clear.)

>This is tlmgrs standard behavior. As soon as you load a remote 
>>repository it will show you the version number of the locally installed 
>versio >next to the version number of the remote version>
>But you need to load a remote rep first.Cheers,Stefano-- 

Thanks, I found it. tlmgr-menu -> load repository.

bcsikos



Re: [off-topic] LyX as a LaTeX table editor (and other selling advice)

2013-03-14 Thread Maria Gouskova
On Wed, Mar 13, 2013 at 10:25 AM, Liviu Andronic wrote:

> On Wed, Mar 13, 2013 at 2:45 PM, stefano franchi
>  wrote:
> > Continuous spell-checking is a fairly common editor's feature nowadays.
> > Linux's Kile (a Latex editor) has it, for instance, and it is based on
> > standard KDE components. As much as I love Lyx's spellchecker (and I
> > wouldn't be able to work without it), I would hesitate to sell Lyx over
> > Latex on it.
> >
> However if the LaTeX user is used to spell-checking, then selling LyX
> without stressing the feature would be a deal-breaker. :) Anyways, I'm
> not that familiar with LaTeX editors, and this specific colleague was
> using one without a spell-checking feature.
>
> Oh, one other point.. My pitch for selling LyX is that it is "like
> Word for LaTeX". And then I start clicking around to show how
> intuitive all is, and display the source pane to show them what they
> would have had to type to get that specific construct (including
> math). I think this delivers the message rather well.
>
> Cheers,
> Liviu
>

I occasionally teach a "How to use MS Word" workshop in my department,
where I show grad students how to make use of the formatting styles
feature, automatic numbering, and cross-referencing. Then a grad student
and I will co-teach a workshop on LaTeX/LyX. We start with LaTeX proper,
explained by the grad student. Then I show how LyX combines the stability
and control of LaTeX with the gui-ness of Word, and I specifically mention
tables as a major difference.

Tables were the deal breaker for me wrt "real LaTeX". I use tables all the
time, and LyX's table editor is not, frankly, as elegant as Word's (as I
remember Word from the year 2003 or so). But LyX's table editing features
are good enough for my usual needs, and it definitely has an advantage over
other LaTeX editors.

Maria


Re: updating texlive package

2013-03-14 Thread EK

  
  
What I have been doing instead of using tlmgr in (L)ubuntu is to get
the package I need from CTAN, copy it to where Lubuntu likes to
store packages, and run:
sudo texhash
If you then remember to reconfigure lyx, everything works.
Yours,
Ehud

On 03/14/2013 02:00 PM, Scott Kostyshak
  wrote:


  On Thu, Mar 14, 2013 at 12:42 PM, EK  wrote:

  
Scott,
Your advice works for Windows, but in linux tex-live seem to hide the
package manager (to enforce unified package updating through the linux
package manager, I guess).
I tried to find tlmgr in the ubuntu repositories but failed.

  
  
Hi Ehud,

Good point. Because bcsikos mentioned tlmgr I assumed he had it
installed. In Linux the above works also, but you have to install TeX
Live manually instead of using the Ubuntu packages. I recently
transitioned from using the Ubuntu PPA to installing TeX Live manually
so if you would like some advice on this, let me know and I can write
up something. Maybe we could write a Wiki article for this. It's a
little tricky because if you don't use some workarounds, whenever you
try to install an Ubuntu package that depends on LaTeX, Ubuntu will
try to install TeX Live again because it doesn't know that you already
installed it.

Best,

Scott



-- 
  
  Ehud Kaplan, Ph.D.
  Jules and Doris Stein Research to Prevent Blindness
  Professor
  Director, The laboratory of Visual & Computational
  Neuroscience
  Director, Center for Excellence in Computational &
  Systems Neuroscience
  Friedman Brain Institute
  Departments of Neuroscience, Ophthalmology, Structural &
  Chemical Biology,
  The Ichan school of medicine at Mount Sinai
  One Gustave Levy Place, 
  NY, NY, 10029 

  



Re: problem with wrapfigure

2013-03-14 Thread Uwe Stöhr

Am 14.03.2013 19:41, schrieb Federico Rapuano:


When using wrapfigure with a language different from english you always end up with 
the word "Figure
xy" under the picture. This is due to the fact that the tex expansion of the 
wrap:Figure Lyx
instruction is:...


Could you please attach your LyX file that I can have a look?

regards Uwe