Re: Re: configuring lyx to use an alternative Texlive version Solved

2012-04-29 Thread Kornel Benko
Am Sonntag, 29. April 2012 um 12:01:16, schrieb Alasdair Reed 
alasd...@iprimus.com.au
 On Sat, 28 Apr 2012 11:56:08 -0500
 stefano franchi stefano.fran...@gmail.com wrote:
 
  On Sat, Apr 28, 2012 at 9:50 AM, Alasdair Reed
  alasd...@iprimus.com.au wrote:
   On Sat, 28 Apr 2012 08:20:23 -0500
   stefano franchi stefano.fran...@gmail.com wrote:
  
   On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
   alasd...@iprimus.com.au wrote:
  
Is that right?  Which logfile should I check?  The
  
   You can check the Latex log by going to DocumentLatex Log
   The first line will tell you which version of of Texlive LyX is
   using
  
dialogue /documents/settings/fonts/use non-Tex fonts via
XeTex/LuaTex, is greyed out. The package fontspec needs to be
installed to use this dialogue box, it is installed in
TexLive2011
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
on my system, but the box is still greyed out. Do you need to
put \usepackage{fontspec} in the preamble of every document to
use XeTex ?
   
  
   ToolsTex information will tell you which Tex packages Lyx is
   Toolsaware.
   If you check the box
   called show path it will tell you where the packages are.
  
   the fontspec package should be loaded automatically if you choose
   non-TeX fonts. You can check if that's the case by choosing
   ViewSource, and checking the box Full source. Scroll back to
   Viewthe
   beginning of the source doc and you should be able to see the
   \fontspec command.
  
   Hope it helps,
  
   Stefano
  
  
  
   Thanks Stefano,
   Document  Latex Log is greyed out
  
  It won't be activated until you comiple something. Create a new Lyx
  file with just a word in in it and then do Viewpdflatex (for
  instance). After successful compilaiton you should be able to see the
  log file
  
  
   Tools  Tex with show path is showing packages
   from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
   so it would seem lyx is not aware of TexLive2011 in /usr/local/
  
  Right, I guess the problem is that lyx finds the ubuntu packages
  before it hits texlive.
  
  First of all: have you reconfigured Lyx (ToolsReconfigure)? It may
  be all you need.
  
  If that does not work, a couple of options:
  
  1. Uninstall the Ubuntu text-live package. This may not be feasible,
  though, because you probably have it as a dependence of Lyx and
  possibly other packages
  There is a way to replace Ubuntu's outdated texlive with a dummy
  package but I am afraid I forget how to do it. Other people on the
  list may know (I left Ubuntu some time ago).
  
  2. Check the order of your executable path in your $PATH environmental
  variable. In fact, open a terminal and do
  
  $which pdflatex
  
  you should get something like:
  /usr/local/texlive/2011/bin/x86_64-linux/pdflatex
  
  
  and then do something like:
  
  $kpsewhich fontspec.sty
  
  
  and you shoud get
  /usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
  
   If not, try
  
  $printenv $PATH
  
  Do you see the path to the texlive2011 installation occurring before
  the path to the Ubuntu installed executables?
  
  S.
  
  
 
 Hi, The paths are all correct,  Starting lyx from the terminal and
 reconfiguring did the trick as far as using TexLive2011 goes I just
 can't start Lyx from the desktop icon if I want to use TexLive2011,
 but I can live with that. It can be done but time is short . There are
 other problems but I will post separate question about them. \
 
 Alasdair

That may be because the desktop does not know your specific PATH setting. (Only 
your sh knows).
To set it for the desktop, create the file ~/.pam_environment. (This expands
the file /etc/security/pam_env.conf on your login. Should be there, but maybe 
is empty)

The syntax of this file is described in man pam_env. For examples look into 
/etc/security/pam_env.conf

Define the PATH like this (On my ubuntu):
PATH OVERRIDE=/usr/local/texlive/2011/bin/x86_64-linux:${PATH}

provided the path to your latex is the same

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Symbols in 2.0.3

2012-04-29 Thread Liviu Andronic
On Thu, Apr 26, 2012 at 7:42 PM, Sebastian Stein gebu...@gmx.net wrote:
 I tried to insert different symbols in an standard environment (not math 
 mode) within KOMA article using utf8.

Did you try the other 'utf8*' flavors? I always had more luck with
'utf8x' than with 'utf8'. Otherwise, as already suggested, try XeTeX
or LuaTeX.

Liviu


Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Cesko Voeten
Hello!

I'm very new to LaTeX, but as a linguist I am becoming more dependent on it
every day. However, my only very basic knowledge of LaTeX is preventing me
from solving this simple problem.

As a linguist, I included the Linguistics module in LyX. Now I have these
new 'Example' options in the top-left drop-down box, that I use for
selecting the style of a particular line. However, this 'Example' option
(which I need to use at this moment) isn't working! When I add an example,
LaTeX gives me the following error when I try to preview the file:

! LaTeX Error: Command \example already defined.
   Or name \end... illegal, see p.192 of the manual.

followed by a bunch more errors.

It appears that the problem is inside covington.sty, as that's the last
file mentioned before latex bails out.

I can export the LyX-generated LaTeX into an ordinary .tex file, which
reads:

%% LyX 2.0.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[dutch]{paper}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{covington}
\usepackage{babel}
\begin{document}
\begin{example}
test\end{example}

\end{document}

which is rejected by latex with the same error.

I'm using LyX version 2.0.3 on a Gentoo Linux system.

Can anyone help me with this problem? Searching the mailing list has
pointed to a conflict with the Theorem module, but as I don't use it
anywhere in my document I'm at a loss as to what's going on.

Thanks so much!


Re: Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Jürgen Spitzmüller
2012/4/29 Cesko Voeten cvoe...@gmail.com:
 ! LaTeX Error: Command \example already defined.
                Or name \end... illegal, see p.192 of the manual.

 followed by a bunch more errors.

I suspect the problem here is that the class you are using (paper.cls)
defines an example environment, and covington.sty tries to define
another one, which triggers the error.

The easiest solution is to use another class (such as article). Do you
have to use paper.cls?

Jürgen


Re: Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Cesko Voeten
2012/4/29 Jürgen Spitzmüller sp...@lyx.org

 2012/4/29 Cesko Voeten cvoe...@gmail.com:
  ! LaTeX Error: Command \example already defined.
 Or name \end... illegal, see p.192 of the manual.
 
  followed by a bunch more errors.

 I suspect the problem here is that the class you are using (paper.cls)
 defines an example environment, and covington.sty tries to define
 another one, which triggers the error.

 The easiest solution is to use another class (such as article). Do you
 have to use paper.cls?

 Jürgen


Ah, thank you! You are right - using a different document class fixes the
problem :-)

I really need to use the paper document class (I actually am writing a
paper and the other classes kind of suck for my purposes), but losing the
ability to use examples isn't worth it.

Thanks for pointing me to the problem.


Line break

2012-04-29 Thread Ahmed Halil

Hello,

I want to create a table as a float, but there's a problem I can't cope. 
I need to set a line break in a cell, because the table is quite to 
large for printing the page.


Can you help me?

Please, excuse my language.

Ahmed


--
Ahmed Halil

HTW Berlin - University of Applied Sciences
Microsystems Technology
mst.htw-berlin.de http://mst.htw-berlin.de/


Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

Sorry didn't sned here,  I have asked on my local lug too,  can you add
pagebreak before the table so it appears on the same page.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 21:21, Ahmed Halil wrote:
 Thanks a lot Paul, but I mean the width of the table.

 Ahmed

Ok i wonder if you can alter the page orientation for a single page so
for the page with the table on make it landscape

can anyone comment ?

Paul

 --
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

 Am 29.04.2012 20:43, schrieb paul sutton:
 On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/
 Can you add a pagebreak before the table so it appears on a page on its own

 Paul



-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



direct inkscape layer support in lyx

2012-04-29 Thread Qiqi Yan

Hi all,

I have a question regarding inkscape.

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

This way I can do animation with beamer for example.

Thanks!
Qiqi


Re: Columns in Beamer Lyx

2012-04-29 Thread Paul A . Rubin
s nedunuri nedunuri at cs.utexas.edu writes:

 
 I just tried it and I cannot get it to work. All that happens is that 
 the text [totalwidth=50mm] shows up in the 1st column. Yes I entered 
 it in TeX mode, right after where it says Columns (center aligned) in red.
 

You asked about the Columns environment before.  Columns (center aligned) is
different -- it does not seem to accept options.  As far as I can tell, Columns
(center aligned) is functionally the same as Columns (both center things
vertically), so Columns with the width argument should work for you.  You can
also add other options in ERT.  For instance, Columns with [b,totalwidth=60mm]
in ERT will bottom-align the columns while setting the combined width.

Paul



RE: direct inkscape layer support in lyx

2012-04-29 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of Qiqi Yan 
[yanq...@gmail.com]
Sent: Sunday, April 29, 2012 6:19 PM

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

With inkscape you can export specific objects. Would this accomplish what you 
want?
   -i ID, --export-id=ID
   For PNG, PS, EPS, and PDF export, the id attribute value of the
   object that you want to export from the document; all other
   objects are not exported.  By default the exported area is the
   bounding box of the object; you can override this using
   --export-area (PNG only) or --export-area-page.

If that would work for you, then look in the help  customization manual to see 
how to have this automated by LyX. You can go to preferences  file handling  
converters  SVG - PDF, for example, to see the command that is run.

Scott


Re: direct inkscape layer support in lyx

2012-04-29 Thread Qiqi Yan

Thanks!

 I'll probably use a shell script to get things done for the current 
deadline first.


But at some point, I'll delve into the customization manual, and be a 
real power user!


-Qiqi
On 04/29/2012 03:47 PM, Scott Kostyshak wrote:
*From:* lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of 
Qiqi Yan [yanq...@gmail.com]

*Sent:* Sunday, April 29, 2012 6:19 PM

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

With inkscape you can export specific objects. Would this accomplish 
what you want?

   -i ID, --export-id=ID
   For PNG, PS, EPS, and PDF export, the id attribute 
value of the

   object that you want to export from the document; all other
   objects are not exported.  By default the exported area 
is the

   bounding box of the object; you can override this using
   --export-area (PNG only) or --export-area-page.

If that would work for you, then look in the help  customization 
manual to see how to have this automated by LyX. You can go to 
preferences  file handling  converters  SVG - PDF, for example, to 
see the command that is run.


Scott




Cannot use XeTeX fonts and Theorems (AMS) module under Ubuntu 12.04

2012-04-29 Thread Alfredo Maldonado Guerra

Hello,

I'm using Lyx version 2.0.2 and I have just recently upgraded to Ubuntu 
12.04 (from 11.10). I'm now unable to create PDFs from Lyx documents 
that use XeTeX fonts and the Theorems (AMS) module. I get an Undefined 
control sequence error. This did not happen under Ubuntu 11.10, so I 
wonder if the upgrade broke something in LyX. I tried re-installing LyX, 
LaTex and XeTeX (via the Synaptic package manager).


These are the steps to reproduce this problem under Ubuntu 12.04:

1. Open LyX and create new document.
2. Go to Document - Settings - Modules. Add Theorems (AMS)
3. Change current 'style' from Standard to Theorem  (dropdown list 
at top-left corner)

4. Type whatever you want.
5. If you click on the 'eyes' button, your document will compile. No 
problem there.
6. Now, go to Document - Settings - Fonts. Check Use non-TeX fonts 
(via XeTeX/LuaTeX)
7. Go to Document - Settings - Output. Under Default Output Format 
select PDF (XeTeX)
8. Click the 'eyes' button and you'll get the Undefined control 
sequence error.


Another thing I noticed is that if you don't perform step 7, your 
document gets compiled, but LyX generates a HTML version of the document 
and not a PDF.


Thank you very much in advance for any help / tips you can give me. 
Please let me know if you need more information.


Thanks,
Alfredo



Re: Re: configuring lyx to use an alternative Texlive version Solved

2012-04-29 Thread Kornel Benko
Am Sonntag, 29. April 2012 um 12:01:16, schrieb Alasdair Reed 
alasd...@iprimus.com.au
 On Sat, 28 Apr 2012 11:56:08 -0500
 stefano franchi stefano.fran...@gmail.com wrote:
 
  On Sat, Apr 28, 2012 at 9:50 AM, Alasdair Reed
  alasd...@iprimus.com.au wrote:
   On Sat, 28 Apr 2012 08:20:23 -0500
   stefano franchi stefano.fran...@gmail.com wrote:
  
   On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
   alasd...@iprimus.com.au wrote:
  
Is that right?  Which logfile should I check?  The
  
   You can check the Latex log by going to DocumentLatex Log
   The first line will tell you which version of of Texlive LyX is
   using
  
dialogue /documents/settings/fonts/use non-Tex fonts via
XeTex/LuaTex, is greyed out. The package fontspec needs to be
installed to use this dialogue box, it is installed in
TexLive2011
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
on my system, but the box is still greyed out. Do you need to
put \usepackage{fontspec} in the preamble of every document to
use XeTex ?
   
  
   ToolsTex information will tell you which Tex packages Lyx is
   Toolsaware.
   If you check the box
   called show path it will tell you where the packages are.
  
   the fontspec package should be loaded automatically if you choose
   non-TeX fonts. You can check if that's the case by choosing
   ViewSource, and checking the box Full source. Scroll back to
   Viewthe
   beginning of the source doc and you should be able to see the
   \fontspec command.
  
   Hope it helps,
  
   Stefano
  
  
  
   Thanks Stefano,
   Document  Latex Log is greyed out
  
  It won't be activated until you comiple something. Create a new Lyx
  file with just a word in in it and then do Viewpdflatex (for
  instance). After successful compilaiton you should be able to see the
  log file
  
  
   Tools  Tex with show path is showing packages
   from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
   so it would seem lyx is not aware of TexLive2011 in /usr/local/
  
  Right, I guess the problem is that lyx finds the ubuntu packages
  before it hits texlive.
  
  First of all: have you reconfigured Lyx (ToolsReconfigure)? It may
  be all you need.
  
  If that does not work, a couple of options:
  
  1. Uninstall the Ubuntu text-live package. This may not be feasible,
  though, because you probably have it as a dependence of Lyx and
  possibly other packages
  There is a way to replace Ubuntu's outdated texlive with a dummy
  package but I am afraid I forget how to do it. Other people on the
  list may know (I left Ubuntu some time ago).
  
  2. Check the order of your executable path in your $PATH environmental
  variable. In fact, open a terminal and do
  
  $which pdflatex
  
  you should get something like:
  /usr/local/texlive/2011/bin/x86_64-linux/pdflatex
  
  
  and then do something like:
  
  $kpsewhich fontspec.sty
  
  
  and you shoud get
  /usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
  
   If not, try
  
  $printenv $PATH
  
  Do you see the path to the texlive2011 installation occurring before
  the path to the Ubuntu installed executables?
  
  S.
  
  
 
 Hi, The paths are all correct,  Starting lyx from the terminal and
 reconfiguring did the trick as far as using TexLive2011 goes I just
 can't start Lyx from the desktop icon if I want to use TexLive2011,
 but I can live with that. It can be done but time is short . There are
 other problems but I will post separate question about them. \
 
 Alasdair

That may be because the desktop does not know your specific PATH setting. (Only 
your sh knows).
To set it for the desktop, create the file ~/.pam_environment. (This expands
the file /etc/security/pam_env.conf on your login. Should be there, but maybe 
is empty)

The syntax of this file is described in man pam_env. For examples look into 
/etc/security/pam_env.conf

Define the PATH like this (On my ubuntu):
PATH OVERRIDE=/usr/local/texlive/2011/bin/x86_64-linux:${PATH}

provided the path to your latex is the same

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Symbols in 2.0.3

2012-04-29 Thread Liviu Andronic
On Thu, Apr 26, 2012 at 7:42 PM, Sebastian Stein gebu...@gmx.net wrote:
 I tried to insert different symbols in an standard environment (not math 
 mode) within KOMA article using utf8.

Did you try the other 'utf8*' flavors? I always had more luck with
'utf8x' than with 'utf8'. Otherwise, as already suggested, try XeTeX
or LuaTeX.

Liviu


Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Cesko Voeten
Hello!

I'm very new to LaTeX, but as a linguist I am becoming more dependent on it
every day. However, my only very basic knowledge of LaTeX is preventing me
from solving this simple problem.

As a linguist, I included the Linguistics module in LyX. Now I have these
new 'Example' options in the top-left drop-down box, that I use for
selecting the style of a particular line. However, this 'Example' option
(which I need to use at this moment) isn't working! When I add an example,
LaTeX gives me the following error when I try to preview the file:

! LaTeX Error: Command \example already defined.
   Or name \end... illegal, see p.192 of the manual.

followed by a bunch more errors.

It appears that the problem is inside covington.sty, as that's the last
file mentioned before latex bails out.

I can export the LyX-generated LaTeX into an ordinary .tex file, which
reads:

%% LyX 2.0.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[dutch]{paper}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{covington}
\usepackage{babel}
\begin{document}
\begin{example}
test\end{example}

\end{document}

which is rejected by latex with the same error.

I'm using LyX version 2.0.3 on a Gentoo Linux system.

Can anyone help me with this problem? Searching the mailing list has
pointed to a conflict with the Theorem module, but as I don't use it
anywhere in my document I'm at a loss as to what's going on.

Thanks so much!


Re: Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Jürgen Spitzmüller
2012/4/29 Cesko Voeten cvoe...@gmail.com:
 ! LaTeX Error: Command \example already defined.
                Or name \end... illegal, see p.192 of the manual.

 followed by a bunch more errors.

I suspect the problem here is that the class you are using (paper.cls)
defines an example environment, and covington.sty tries to define
another one, which triggers the error.

The easiest solution is to use another class (such as article). Do you
have to use paper.cls?

Jürgen


Re: Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Cesko Voeten
2012/4/29 Jürgen Spitzmüller sp...@lyx.org

 2012/4/29 Cesko Voeten cvoe...@gmail.com:
  ! LaTeX Error: Command \example already defined.
 Or name \end... illegal, see p.192 of the manual.
 
  followed by a bunch more errors.

 I suspect the problem here is that the class you are using (paper.cls)
 defines an example environment, and covington.sty tries to define
 another one, which triggers the error.

 The easiest solution is to use another class (such as article). Do you
 have to use paper.cls?

 Jürgen


Ah, thank you! You are right - using a different document class fixes the
problem :-)

I really need to use the paper document class (I actually am writing a
paper and the other classes kind of suck for my purposes), but losing the
ability to use examples isn't worth it.

Thanks for pointing me to the problem.


Line break

2012-04-29 Thread Ahmed Halil

Hello,

I want to create a table as a float, but there's a problem I can't cope. 
I need to set a line break in a cell, because the table is quite to 
large for printing the page.


Can you help me?

Please, excuse my language.

Ahmed


--
Ahmed Halil

HTW Berlin - University of Applied Sciences
Microsystems Technology
mst.htw-berlin.de http://mst.htw-berlin.de/


Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

Sorry didn't sned here,  I have asked on my local lug too,  can you add
pagebreak before the table so it appears on the same page.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 21:21, Ahmed Halil wrote:
 Thanks a lot Paul, but I mean the width of the table.

 Ahmed

Ok i wonder if you can alter the page orientation for a single page so
for the page with the table on make it landscape

can anyone comment ?

Paul

 --
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/

 Am 29.04.2012 20:43, schrieb paul sutton:
 On 29/04/12 19:23, Ahmed Halil wrote:
 Hello,

 I want to create a table as a float, but there's a problem I can't
 cope. I need to set a line break in a cell, because the table is quite
 to large for printing the page.

 Can you help me?

 Please, excuse my language.

 Ahmed


 -- 
 Ahmed Halil

 HTW Berlin - University of Applied Sciences
 Microsystems Technology
 mst.htw-berlin.de http://mst.htw-berlin.de/
 Can you add a pagebreak before the table so it appears on a page on its own

 Paul



-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



direct inkscape layer support in lyx

2012-04-29 Thread Qiqi Yan

Hi all,

I have a question regarding inkscape.

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

This way I can do animation with beamer for example.

Thanks!
Qiqi


Re: Columns in Beamer Lyx

2012-04-29 Thread Paul A . Rubin
s nedunuri nedunuri at cs.utexas.edu writes:

 
 I just tried it and I cannot get it to work. All that happens is that 
 the text [totalwidth=50mm] shows up in the 1st column. Yes I entered 
 it in TeX mode, right after where it says Columns (center aligned) in red.
 

You asked about the Columns environment before.  Columns (center aligned) is
different -- it does not seem to accept options.  As far as I can tell, Columns
(center aligned) is functionally the same as Columns (both center things
vertically), so Columns with the width argument should work for you.  You can
also add other options in ERT.  For instance, Columns with [b,totalwidth=60mm]
in ERT will bottom-align the columns while setting the combined width.

Paul



RE: direct inkscape layer support in lyx

2012-04-29 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of Qiqi Yan 
[yanq...@gmail.com]
Sent: Sunday, April 29, 2012 6:19 PM

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

With inkscape you can export specific objects. Would this accomplish what you 
want?
   -i ID, --export-id=ID
   For PNG, PS, EPS, and PDF export, the id attribute value of the
   object that you want to export from the document; all other
   objects are not exported.  By default the exported area is the
   bounding box of the object; you can override this using
   --export-area (PNG only) or --export-area-page.

If that would work for you, then look in the help  customization manual to see 
how to have this automated by LyX. You can go to preferences  file handling  
converters  SVG - PDF, for example, to see the command that is run.

Scott


Re: direct inkscape layer support in lyx

2012-04-29 Thread Qiqi Yan

Thanks!

 I'll probably use a shell script to get things done for the current 
deadline first.


But at some point, I'll delve into the customization manual, and be a 
real power user!


-Qiqi
On 04/29/2012 03:47 PM, Scott Kostyshak wrote:
*From:* lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of 
Qiqi Yan [yanq...@gmail.com]

*Sent:* Sunday, April 29, 2012 6:19 PM

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

With inkscape you can export specific objects. Would this accomplish 
what you want?

   -i ID, --export-id=ID
   For PNG, PS, EPS, and PDF export, the id attribute 
value of the

   object that you want to export from the document; all other
   objects are not exported.  By default the exported area 
is the

   bounding box of the object; you can override this using
   --export-area (PNG only) or --export-area-page.

If that would work for you, then look in the help  customization 
manual to see how to have this automated by LyX. You can go to 
preferences  file handling  converters  SVG - PDF, for example, to 
see the command that is run.


Scott




Cannot use XeTeX fonts and Theorems (AMS) module under Ubuntu 12.04

2012-04-29 Thread Alfredo Maldonado Guerra

Hello,

I'm using Lyx version 2.0.2 and I have just recently upgraded to Ubuntu 
12.04 (from 11.10). I'm now unable to create PDFs from Lyx documents 
that use XeTeX fonts and the Theorems (AMS) module. I get an Undefined 
control sequence error. This did not happen under Ubuntu 11.10, so I 
wonder if the upgrade broke something in LyX. I tried re-installing LyX, 
LaTex and XeTeX (via the Synaptic package manager).


These are the steps to reproduce this problem under Ubuntu 12.04:

1. Open LyX and create new document.
2. Go to Document - Settings - Modules. Add Theorems (AMS)
3. Change current 'style' from Standard to Theorem  (dropdown list 
at top-left corner)

4. Type whatever you want.
5. If you click on the 'eyes' button, your document will compile. No 
problem there.
6. Now, go to Document - Settings - Fonts. Check Use non-TeX fonts 
(via XeTeX/LuaTeX)
7. Go to Document - Settings - Output. Under Default Output Format 
select PDF (XeTeX)
8. Click the 'eyes' button and you'll get the Undefined control 
sequence error.


Another thing I noticed is that if you don't perform step 7, your 
document gets compiled, but LyX generates a HTML version of the document 
and not a PDF.


Thank you very much in advance for any help / tips you can give me. 
Please let me know if you need more information.


Thanks,
Alfredo



Re: Re: configuring lyx to use an alternative Texlive version Solved

2012-04-29 Thread Kornel Benko
Am Sonntag, 29. April 2012 um 12:01:16, schrieb Alasdair Reed 

> On Sat, 28 Apr 2012 11:56:08 -0500
> stefano franchi  wrote:
> 
> > On Sat, Apr 28, 2012 at 9:50 AM, Alasdair Reed
> >  wrote:
> > > On Sat, 28 Apr 2012 08:20:23 -0500
> > > stefano franchi  wrote:
> > >
> > >> On Sat, Apr 28, 2012 at 5:09 AM, Alasdair Reed
> > >>  wrote:
> > >>
> > >> > Is that right?  Which logfile should I check?  The
> > >>
> > >> You can check the Latex log by going to Document>>Latex Log
> > >> The first line will tell you which version of of Texlive LyX is
> > >> using
> > >>
> > >> > dialogue /documents/settings/fonts/use non-Tex fonts via
> > >> > XeTex/LuaTex, is greyed out. The package fontspec needs to be
> > >> > installed to use this dialogue box, it is installed in
> > >> > TexLive2011
> > >> > (/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty)
> > >> > on my system, but the box is still greyed out. Do you need to
> > >> > put \usepackage{fontspec} in the preamble of every document to
> > >> > use XeTex ?
> > >> >
> > >>
> > >> Tools>>Tex information will tell you which Tex packages Lyx is
> > >> Tools>>aware.
> > >> If you check the box
> > >> called "show path" it will tell you where the packages are.
> > >>
> > >> the fontspec package should be loaded automatically if you choose
> > >> non-TeX fonts. You can check if that's the case by choosing
> > >> View>>Source, and checking the box "Full source." Scroll back to
> > >> View>>the
> > >> beginning of the source doc and you should be able to see the
> > >> \fontspec command.
> > >>
> > >> Hope it helps,
> > >>
> > >> Stefano
> > >>
> > >>
> > >
> > > Thanks Stefano,
> > > Document >> Latex Log is greyed out
> > 
> > It won't be activated until you comiple something. Create a new Lyx
> > file with just a word in in it and then do View>>pdflatex (for
> > instance). After successful compilaiton you should be able to see the
> > log file
> > 
> > 
> > > Tools >> Tex with "show path" is showing packages
> > > from /usr/share/texmf-texlive/tex/generic/foo/foo.sty (for example)
> > > so it would seem lyx is not aware of TexLive2011 in /usr/local/
> > 
> > Right, I guess the problem is that lyx finds the ubuntu packages
> > before it hits texlive.
> > 
> > First of all: have you reconfigured Lyx (Tools>>Reconfigure)? It may
> > be all you need.
> > 
> > If that does not work, a couple of options:
> > 
> > 1. Uninstall the Ubuntu text-live package. This may not be feasible,
> > though, because you probably have it as a dependence of Lyx and
> > possibly other packages
> > There is a way to replace Ubuntu's outdated texlive with a "dummy"
> > package but I am afraid I forget how to do it. Other people on the
> > list may know (I left Ubuntu some time ago).
> > 
> > 2. Check the order of your executable path in your $PATH environmental
> > variable. In fact, open a terminal and do
> > 
> > $which pdflatex
> > 
> > you should get something like:
> > /usr/local/texlive/2011/bin/x86_64-linux/pdflatex
> > 
> > 
> > and then do something like:
> > 
> > $kpsewhich fontspec.sty
> > 
> > 
> > and you shoud get
> > /usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
> > 
> >  If not, try
> > 
> > $printenv $PATH
> > 
> > Do you see the path to the texlive2011 installation occurring before
> > the path to the Ubuntu installed executables?
> > 
> > S.
> > 
> > 
> 
> Hi, The paths are all correct,  Starting lyx from the terminal and
> reconfiguring did the trick as far as using TexLive2011 goes I just
> can't start Lyx from the desktop icon if I want to use TexLive2011,
> but I can live with that. It can be done but time is short . There are
> other problems but I will post separate question about them. \
> 
> Alasdair

That may be because the desktop does not know your specific PATH setting. (Only 
your sh knows).
To set it for the desktop, create the file "~/.pam_environment". (This expands
the file "/etc/security/pam_env.conf" on your login. Should be there, but maybe 
is empty)

The syntax of this file is described in "man pam_env". For examples look into 
"/etc/security/pam_env.conf"

Define the PATH like this (On my ubuntu):
PATH OVERRIDE=/usr/local/texlive/2011/bin/x86_64-linux:${PATH}

provided the path to your latex is the same

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Symbols in 2.0.3

2012-04-29 Thread Liviu Andronic
On Thu, Apr 26, 2012 at 7:42 PM, Sebastian Stein  wrote:
> I tried to insert different symbols in an standard environment (not math 
> mode) within KOMA article using utf8.
>
Did you try the other 'utf8*' flavors? I always had more luck with
'utf8x' than with 'utf8'. Otherwise, as already suggested, try XeTeX
or LuaTeX.

Liviu


Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Cesko Voeten
Hello!

I'm very new to LaTeX, but as a linguist I am becoming more dependent on it
every day. However, my only very basic knowledge of LaTeX is preventing me
from solving this simple problem.

As a linguist, I included the Linguistics module in LyX. Now I have these
new 'Example' options in the top-left drop-down box, that I use for
selecting the style of a particular line. However, this 'Example' option
(which I need to use at this moment) isn't working! When I add an example,
LaTeX gives me the following error when I try to preview the file:

! LaTeX Error: Command \example already defined.
   Or name \end... illegal, see p.192 of the manual.

followed by a bunch more errors.

It appears that the problem is inside covington.sty, as that's the last
file mentioned before latex bails out.

I can export the LyX-generated LaTeX into an ordinary .tex file, which
reads:

%% LyX 2.0.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[dutch]{paper}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{covington}
\usepackage{babel}
\begin{document}
\begin{example}
test\end{example}

\end{document}

which is rejected by latex with the same error.

I'm using LyX version 2.0.3 on a Gentoo Linux system.

Can anyone help me with this problem? Searching the mailing list has
pointed to a conflict with the Theorem module, but as I don't use it
anywhere in my document I'm at a loss as to what's going on.

Thanks so much!


Re: Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Jürgen Spitzmüller
2012/4/29 Cesko Voeten :
> ! LaTeX Error: Command \example already defined.
>                Or name \end... illegal, see p.192 of the manual.
>
> followed by a bunch more errors.

I suspect the problem here is that the class you are using (paper.cls)
defines an example environment, and covington.sty tries to define
another one, which triggers the error.

The easiest solution is to use another class (such as article). Do you
have to use paper.cls?

Jürgen


Re: Newbie needs some help with covington: 'command \example already defined'

2012-04-29 Thread Cesko Voeten
2012/4/29 Jürgen Spitzmüller 

> 2012/4/29 Cesko Voeten :
> > ! LaTeX Error: Command \example already defined.
> >Or name \end... illegal, see p.192 of the manual.
> >
> > followed by a bunch more errors.
>
> I suspect the problem here is that the class you are using (paper.cls)
> defines an example environment, and covington.sty tries to define
> another one, which triggers the error.
>
> The easiest solution is to use another class (such as article). Do you
> have to use paper.cls?
>
> Jürgen
>

Ah, thank you! You are right - using a different document class fixes the
problem :-)

I really need to use the paper document class (I actually am writing a
paper and the other classes kind of suck for my purposes), but losing the
ability to use examples isn't worth it.

Thanks for pointing me to the problem.


Line break

2012-04-29 Thread Ahmed Halil

Hello,

I want to create a table as a float, but there's a problem I can't cope. 
I need to set a line break in a cell, because the table is quite to 
large for printing the page.


Can you help me?

Please, excuse my language.

Ahmed


--
Ahmed Halil

HTW Berlin - University of Applied Sciences
Microsystems Technology
mst.htw-berlin.de 


Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 19:23, Ahmed Halil wrote:
> Hello,
>
> I want to create a table as a float, but there's a problem I can't
> cope. I need to set a line break in a cell, because the table is quite
> to large for printing the page.
>
> Can you help me?
>
> Please, excuse my language.
>
> Ahmed
>
>
> -- 
> Ahmed Halil
>
> HTW Berlin - University of Applied Sciences
> Microsystems Technology
> mst.htw-berlin.de 

Sorry didn't sned here,  I have asked on my local lug too,  can you add
pagebreak before the table so it appears on the same page.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Line break

2012-04-29 Thread paul sutton
On 29/04/12 21:21, Ahmed Halil wrote:
> Thanks a lot Paul, but I mean the width of the table.
>
> Ahmed
>
Ok i wonder if you can alter the page orientation for a single page so
for the page with the table on make it landscape

can anyone comment ?

Paul

> --
> Ahmed Halil
>
> HTW Berlin - University of Applied Sciences
> Microsystems Technology
> mst.htw-berlin.de 
>
> Am 29.04.2012 20:43, schrieb paul sutton:
>> On 29/04/12 19:23, Ahmed Halil wrote:
>>> Hello,
>>>
>>> I want to create a table as a float, but there's a problem I can't
>>> cope. I need to set a line break in a cell, because the table is quite
>>> to large for printing the page.
>>>
>>> Can you help me?
>>>
>>> Please, excuse my language.
>>>
>>> Ahmed
>>>
>>>
>>> -- 
>>> Ahmed Halil
>>>
>>> HTW Berlin - University of Applied Sciences
>>> Microsystems Technology
>>> mst.htw-berlin.de 
>> Can you add a pagebreak before the table so it appears on a page on its own
>>
>> Paul
>>


-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



direct inkscape layer support in lyx

2012-04-29 Thread Qiqi Yan

Hi all,

I have a question regarding inkscape.

Let's say I have an inkscape drawing with multiple layers.

When I import the svg into lyx, can I specify the layers that get shown?

This way I can do animation with beamer for example.

Thanks!
Qiqi


Re: "Columns" in Beamer Lyx

2012-04-29 Thread Paul A . Rubin
s nedunuri  cs.utexas.edu> writes:

> 
> I just tried it and I cannot get it to work. All that happens is that 
> the text "[totalwidth=50mm]" shows up in the 1st column. Yes I entered 
> it in TeX mode, right after where it says "Columns (center aligned)" in red.
> 

You asked about the Columns environment before.  Columns (center aligned) is
different -- it does not seem to accept options.  As far as I can tell, Columns
(center aligned) is functionally the same as Columns (both center things
vertically), so Columns with the width argument should work for you.  You can
also add other options in ERT.  For instance, Columns with [b,totalwidth=60mm]
in ERT will bottom-align the columns while setting the combined width.

Paul



RE: direct inkscape layer support in lyx

2012-04-29 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of Qiqi Yan 
[yanq...@gmail.com]
Sent: Sunday, April 29, 2012 6:19 PM

>Let's say I have an inkscape drawing with multiple layers.

>When I import the svg into lyx, can I specify the layers that get shown?

With inkscape you can export specific objects. Would this accomplish what you 
want?
   -i ID, --export-id=ID
   For PNG, PS, EPS, and PDF export, the id attribute value of the
   object that you want to export from the document; all other
   objects are not exported.  By default the exported area is the
   bounding box of the object; you can override this using
   --export-area (PNG only) or --export-area-page.

If that would work for you, then look in the help > customization manual to see 
how to have this automated by LyX. You can go to preferences > file handling > 
converters > SVG -> PDF, for example, to see the command that is run.

Scott


Re: direct inkscape layer support in lyx

2012-04-29 Thread Qiqi Yan

Thanks!

 I'll probably use a shell script to get things done for the current 
deadline first.


But at some point, I'll delve into the customization manual, and be a 
real power user!


-Qiqi
On 04/29/2012 03:47 PM, Scott Kostyshak wrote:
*From:* lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of 
Qiqi Yan [yanq...@gmail.com]

*Sent:* Sunday, April 29, 2012 6:19 PM

>Let's say I have an inkscape drawing with multiple layers.

>When I import the svg into lyx, can I specify the layers that get shown?

With inkscape you can export specific objects. Would this accomplish 
what you want?

   -i ID, --export-id=ID
   For PNG, PS, EPS, and PDF export, the id attribute 
value of the

   object that you want to export from the document; all other
   objects are not exported.  By default the exported area 
is the

   bounding box of the object; you can override this using
   --export-area (PNG only) or --export-area-page.

If that would work for you, then look in the help > customization 
manual to see how to have this automated by LyX. You can go to 
preferences > file handling > converters > SVG -> PDF, for example, to 
see the command that is run.


Scott




Cannot use XeTeX fonts and Theorems (AMS) module under Ubuntu 12.04

2012-04-29 Thread Alfredo Maldonado Guerra

Hello,

I'm using Lyx version 2.0.2 and I have just recently upgraded to Ubuntu 
12.04 (from 11.10). I'm now unable to create PDFs from Lyx documents 
that use XeTeX fonts and the Theorems (AMS) module. I get an "Undefined 
control sequence" error. This did not happen under Ubuntu 11.10, so I 
wonder if the upgrade broke something in LyX. I tried re-installing LyX, 
LaTex and XeTeX (via the Synaptic package manager).


These are the steps to reproduce this problem under Ubuntu 12.04:

1. Open LyX and create new document.
2. Go to Document -> Settings -> Modules. Add "Theorems (AMS)"
3. Change current 'style' from "Standard" to "Theorem"  (dropdown list 
at top-left corner)

4. Type whatever you want.
5. If you click on the 'eyes' button, your document will compile. No 
problem there.
6. Now, go to Document -> Settings -> Fonts. Check "Use non-TeX fonts 
(via XeTeX/LuaTeX)"
7. Go to Document -> Settings -> Output. Under Default Output Format 
select "PDF (XeTeX)"
8. Click the 'eyes' button and you'll get the "Undefined control 
sequence" error.


Another thing I noticed is that if you don't perform step 7, your 
document gets compiled, but LyX generates a HTML version of the document 
and not a PDF.


Thank you very much in advance for any help / tips you can give me. 
Please let me know if you need more information.


Thanks,
Alfredo