Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Tue, 12 Feb 2013 22:36:55 -0800
Jane Shevtsov jane@gmail.com wrote:

 On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
 skost...@princeton.eduwrote:
 
  On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com
  wrote:
  
   On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org
   wrote:
  
  
   If what you want is for all the counters to reset even when you
   start an unnumbered section, then this will take a little bit of
   LaTeX magic,
  but is
   perfectly do-able.
  
  
   Yep, that's what I want. What LaTeX code do I need?
 
  Hi Jane, could you please send post a Minimum Working Example? See
  http://wiki.lyx.org/FAQ/MWE
 
 
 Here's an example of what's happening now.
 
 Best,
 Jane

Hi Jane,

I understand that you don't want problems to continue the numbering of
the previous section, but if you reset them, reset them to what? In
your example, if you reset the major number to 2, then numbered section
2 would be 3, which I doubt you want.

This isn't a technical issue so much as an issue of understandability. 

Personally, I'd have a different numbering system for lab sections, so
instead of environment Section *, I'd have an environment Lab
that has its own counter, and an environment Labproblem that acts the
same way as the Problem environment you currently use in environment
Section except is prints and increments the counter for Lab.

By the way, you did the right thing making your own Problem environment
instead of using Subsection. 

Let me go a step further. If I were writing this textbook, I would not
use Section or Section* at all in the interactive part of your book.
I'd make an environment called Situation or some such for what in
your example you use Section, and Lab for what in your example you
handle with Section*. That way:

1) You have complete control of behavior.

2) It much more faithfully adheres to what I call Styles-based layout,
and what a lot of LyX people called WYSIWYM.

What you're doing with Section and Section* right now are things those
environments were never intended to handle. Sure, you can get close,
but ultimately something will go wrong because those environments were
meant to handle normal document headings at the level just below
Chapter.

Also, the more experience I get, the more I hate any use of Section*.
In the long run, Section* always makes me cry.

I wrote some content on making your own list environments here:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

HTH,

SteveT



Re: configuring latex2rtf with LyX 2

2013-02-13 Thread Wilfried
Justin Wood wrote:
 
  Could the problem be that I'm using XeTeX rather than default LaTeX?
 
 I think I answered my own question there. It seems to come down to that issue:
 no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I 
 guess!

I have no answer to your original question (how to set up latex2rtf in
LyX), but want to point out that latex2rtf itself doesn't care whether
the document is designed for LaTeX of XeTeX -- I recently converted a
XeTeX document with latex2rtf. Successful conversion rather depends on
whether the document restricts to the packages supported by latex2rtf.

The only caveat is that the current distribution of latex2rtf can
convert equations of a document needing XeTeX to rtf (EQ fields) but not
to bitmaps or eps, because the script latex2png only tries latex or
pdflatex. I already modified the latex2png script so that it now also
tries xetex, but this is not yet in the latex2rtf distribution, only in
the svn branch on sourceforge.

Regards
-- 
Wilfried Hennings



OTish: Illustrator alternative to collect linked PDFs into single figure

2013-02-13 Thread Gregory Jefferis
Hello,

We currently used Adobe Illustrator to construct quite complex figures for 
Biological Science manuscripts. We save in PDF compatible format and then 
directly place these in my lyx document. Apart from being expensive, the main 
problem is that Illustrator always saves the absolute path to any linked file 
causing trouble when colleagues edit these files on different machines.

Our figures mostly consist of linked PDFs, some type e.g. for labels and a 
small amount of drawing for annotation. I would like to switch to a FOSS 
alternative that allows PDFs to be linked (not embedded). The detailed layout 
of the elements is important. The closest I have found so far is Inkscape, but 
this always embeds PDF on import. Likewise it does not yet seem to be able to 
support linked SVG files.

Would anyone have any suggestions? Many thanks,

Greg.

http://inkscape.org/

--
Gregory Jefferis Lab:  jefferis...@gmail.com
Division of Neurobiology   
MRC Laboratory of Molecular Biology,   
Hills Road,
Cambridge, CB2 0QH, UK.

http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
http://www.neuroscience.cam.ac.uk/directory/profile.php?gsxej2
http://flybrain.stanford.edu



Re: Exercise Numbering

2013-02-13 Thread Jane Shevtsov
On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt sl...@troubleshooters.comwrote:

 On Tue, 12 Feb 2013 22:36:55 -0800
 Jane Shevtsov jane@gmail.com wrote:

  On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
  skost...@princeton.eduwrote:
 
   On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com
   wrote:
   
On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org
wrote:
   
   
If what you want is for all the counters to reset even when you
start an unnumbered section, then this will take a little bit of
LaTeX magic,
   but is
perfectly do-able.
   
   
Yep, that's what I want. What LaTeX code do I need?
  
   Hi Jane, could you please send post a Minimum Working Example? See
   http://wiki.lyx.org/FAQ/MWE
  
  
  Here's an example of what's happening now.
 Hi Jane,

 I understand that you don't want problems to continue the numbering of
 the previous section, but if you reset them, reset them to what? In
 your example, if you reset the major number to 2, then numbered section
 2 would be 3, which I doubt you want.


I'm not sure what you mean. I just want problem numbers within each section
to start at 1.

Personally, I'd have a different numbering system for lab sections, so
 instead of environment Section *, I'd have an environment Lab
 that has its own counter, and an environment Labproblem that acts the
 same way as the Problem environment you currently use in environment
 Section except is prints and increments the counter for Lab.

 By the way, you did the right thing making your own Problem environment
 instead of using Subsection.


Thanks, but I actually didn't. That's a downloaded package. (I only use
Subsection for actual subsections of the text.)

How would you make a Lab or Labproblem environment?

What you're doing with Section and Section* right now are things those
 environments were never intended to handle. Sure, you can get close,
 but ultimately something will go wrong because those environments were
 meant to handle normal document headings at the level just below
 Chapter.


That's exactly how I'm using them. I didn't put a Chapter heading in the
minimal example, but the actual textbook has six chapters with several
sections in each.

Thanks,
Jane

-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

“Those who say it cannot be done should not interfere with those who are
doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others


Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Wed, 13 Feb 2013 00:46:00 -0500
Scott Kostyshak skost...@princeton.edu wrote:

 On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com
 wrote:
 
  On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org
  wrote:
 
 
  If what you want is for all the counters to reset even when you
  start an unnumbered section, then this will take a little bit of
  LaTeX magic, but is perfectly do-able.
 
 
  Yep, that's what I want. What LaTeX code do I need?
 
 Hi Jane, could you please send post a Minimum Working Example? See
 http://wiki.lyx.org/FAQ/MWE

That Wiki page is one of the coolest things I've run across. Eric
Raymond told us all to use MWEs, but really didn't tell us how or why.

I added two more reasons to the list of reasons on that page. Hope you
all like it.

SteveT


Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Wed, 13 Feb 2013 10:00:04 -0800
Jane Shevtsov jane@gmail.com wrote:

 On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
 sl...@troubleshooters.comwrote:
 
  On Tue, 12 Feb 2013 22:36:55 -0800
  Jane Shevtsov jane@gmail.com wrote:

  I understand that you don't want problems to continue the numbering
  of the previous section, but if you reset them, reset them to what?
  In your example, if you reset the major number to 2, then numbered
  section 2 would be 3, which I doubt you want.
 
 
 I'm not sure what you mean. I just want problem numbers within each
 section to start at 1.

Ah-ha!

Before we continue, I think you should send us a prototype of how you
*want* this to look. On prototype is worth a thousand words and is much
less prone to misunderstanding.

You could do it with a text editor, using spaces for indentation,
showing how you'd like your MWE to look.

 
 Personally, I'd have a different numbering system for lab sections, so
  instead of environment Section *, I'd have an environment Lab
  that has its own counter, and an environment Labproblem that acts
  the same way as the Problem environment you currently use in
  environment Section except is prints and increments the counter for
  Lab.
 
  By the way, you did the right thing making your own Problem
  environment instead of using Subsection.
 
 
 Thanks, but I actually didn't. That's a downloaded package. (I only
 use Subsection for actual subsections of the text.)

What package?

 How would you make a Lab or Labproblem environment?

Depending on your prior LaTeX experience, this might sound like
gobblety gook to you...

You'd make your own Document Class, based on the one you're using now,
using a layout file. Within the layout file, you'd add environments of
your own. Your environments for Lab and Labproblem would maintain their
own counters.

But first things first. I honestly don't know how you want this thing
to look, and I have a feeling few others on this list know that either.
A prototype would make that crystal clear. Once the enhancement is
defined, the rest is just a little LaTeX wizardry.

SteveT


Re: lyx in arabic or persian

2013-02-13 Thread Bob Merhebi
Hello all,

I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
some LyX so I guess I can help.

So far I have not used Arabic in LyX.

On 02/12/2013 10:09 PM, stefano franchi wrote:
 I have no knowledge of Arabic, unfortunately, but following the
 instructions on the wiki seems to work for me, including right-to-left
 typing:

Right-to-Left is not enough; Arabic is a complex language which requires
connecting letters and glyph formation. Here's an example from Scribus
which has been open for a long time  still not resolved (not sure why):
http://bugs.scribus.net/view.php?id=1079

 http://wiki.lyx.org/Windows/Arabic
 It requires:
 
 1. Setting the document class to Article(Arabic)

Doesn't exist in my installation:

LyX 2.0.5.1 (2012-11-03)
Ubuntu 12.04.2 LTS (x86_64)

 2. Choosing Arabic from DocumentSettingsLanguage, as Guy said
 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
 fine without them, them)
 
 If you do not have article[Arabic] in the DocumentSettings dropdown menu,
 there may be something missing in your latex installation.

The only relevant Arabic files I found are:

/usr/share/lyx/kbd/arabic.kmap
/usr/share/lyx/layouts/arab-article.layout
/usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
/usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
/usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld

Maybe the 2nd is relecant?

 The
 article(Arabic) option uses the arabart.cls document class, which, on my TL
 2012 linux system, lives in
 
 /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
 
Nothing of this sort!

It appears to be part of the package: texlive-langextra
which doesn't seem to be in Ubuntu

Running apt-cache search texlive results in finding:

texlive-lang-arabic - TeX Live: Arabic

Installing it didn't change anything in LyX. Still no Article[Arabic]!

I guess we need ArabTex:
http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm

In this I need help; I prefer to use Ubuntu's repositories unless it is
not possible at all.

 Try looking for a file called arabart.cls and see if you can find it in
 your system.
 Which platform are you on? Linux, Mac, Windows? Instructions for the
 installation of missing packages vary  depending on the platform.

Not sure what parastoo is using as his system but mine is as stated above.

 
 Cheers,
 
 Stefano
 
 
 On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg guyrutenb...@gmail.comwrote:
 
 Hi Parastoo,

 I've no experience using LyX with Arabic or Farsi, so I only guess. Have
 you set the language correctly in Document-Settings-Language? At least
 for Hebrew it's necessary.

 Regards,

 Guy


 On 31 January 2013 00:05, Parastoo Mojabi parastoo.moj...@gmail.comwrote:



 On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi 
 parastoo.moj...@gmail.com wrote:

 hi,

 hope you are doing great.

 I have difficulties making lyx in Farsi, I did as the internet saying,
 but article[arabic] is un available in my document class, I paste
 article-arabic.layout. every where but still doesnt work.
 now my document is left to right which i wanted to be right to left and
 the letters of arabic showing is wrong.

 please help me

 cheers


-- 
Sincerely Yours,
Merhebi, Bob

TB


Re: lyx in arabic or persian

2013-02-13 Thread Ibrahim El Merehbi
Actually upon further investigation, I found out:

Tools  TeX Information  arabart.cls (is present)

I reconfigured LyX  restarted it  there it was: Article[Arabic]

BUT

the problem that Scribus has is present in LyX.

I am not sure which version it was, but I once tried writing in LyX in 
Arabic  it worked well. What I'm sure of is that it was running under 
Ubuntu 10.04 (x86)

What do you think?

On Wed 13 Feb 2013 11:25:54 PM EET, Bob Merhebi wrote:
 Hello all,

 I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
 some LyX so I guess I can help.

 So far I have not used Arabic in LyX.

 On 02/12/2013 10:09 PM, stefano franchi wrote:
 I have no knowledge of Arabic, unfortunately, but following the
 instructions on the wiki seems to work for me, including right-to-left
 typing:

 Right-to-Left is not enough; Arabic is a complex language which requires
 connecting letters and glyph formation. Here's an example from Scribus
 which has been open for a long time  still not resolved (not sure why):
 http://bugs.scribus.net/view.php?id=1079

 http://wiki.lyx.org/Windows/Arabic
 It requires:

 1. Setting the document class to Article(Arabic)

 Doesn't exist in my installation:

 LyX 2.0.5.1 (2012-11-03)
 Ubuntu 12.04.2 LTS (x86_64)

 2. Choosing Arabic from DocumentSettingsLanguage, as Guy said
 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
 fine without them, them)

 If you do not have article[Arabic] in the DocumentSettings dropdown menu,
 there may be something missing in your latex installation.

 The only relevant Arabic files I found are:

 /usr/share/lyx/kbd/arabic.kmap
 /usr/share/lyx/layouts/arab-article.layout
 /usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
 /usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
 /usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
 /usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
 /usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
 /usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld

 Maybe the 2nd is relecant?

  The
 article(Arabic) option uses the arabart.cls document class, which, on my TL
 2012 linux system, lives in

 /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls

 Nothing of this sort!

 It appears to be part of the package: texlive-langextra
 which doesn't seem to be in Ubuntu

 Running apt-cache search texlive results in finding:

 texlive-lang-arabic - TeX Live: Arabic

 Installing it didn't change anything in LyX. Still no Article[Arabic]!

 I guess we need ArabTex:
 http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm

 In this I need help; I prefer to use Ubuntu's repositories unless it is
 not possible at all.

 Try looking for a file called arabart.cls and see if you can find it in
 your system.
 Which platform are you on? Linux, Mac, Windows? Instructions for the
 installation of missing packages vary  depending on the platform.

 Not sure what parastoo is using as his system but mine is as stated above.


 Cheers,

 Stefano


 On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg guyrutenb...@gmail.comwrote:

 Hi Parastoo,

 I've no experience using LyX with Arabic or Farsi, so I only guess. Have
 you set the language correctly in Document-Settings-Language? At least
 for Hebrew it's necessary.

 Regards,

 Guy


 On 31 January 2013 00:05, Parastoo Mojabi parastoo.moj...@gmail.comwrote:



 On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi 
 parastoo.moj...@gmail.com wrote:

 hi,

 hope you are doing great.

 I have difficulties making lyx in Farsi, I did as the internet saying,
 but article[arabic] is un available in my document class, I paste
 article-arabic.layout. every where but still doesnt work.
 now my document is left to right which i wanted to be right to left and
 the letters of arabic showing is wrong.

 please help me

 cheers





--
Sincerely Yours,
El Merehbi, Ibrahim

TB



Re: Exercise Numbering

2013-02-13 Thread Jane Shevtsov
On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt sl...@troubleshooters.comwrote:

 On Wed, 13 Feb 2013 10:00:04 -0800
 Jane Shevtsov jane@gmail.com wrote:

  On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
  sl...@troubleshooters.comwrote:
 
   On Tue, 12 Feb 2013 22:36:55 -0800
   Jane Shevtsov jane@gmail.com wrote:

   I understand that you don't want problems to continue the numbering
   of the previous section, but if you reset them, reset them to what?
   In your example, if you reset the major number to 2, then numbered
   section 2 would be 3, which I doubt you want.
  
 
  I'm not sure what you mean. I just want problem numbers within each
  section to start at 1.

 Ah-ha!

 Before we continue, I think you should send us a prototype of how you
 *want* this to look. On prototype is worth a thousand words and is much
 less prone to misunderstanding.

 You could do it with a text editor, using spaces for indentation,
 showing how you'd like your MWE to look.


Good idea! An example is attached. In the actual text, I put the exercises
in boxes to get a shaded background, but the only issue right now is
numbering. In my prototype, labs are numbered continuously throughout the
book (Lab 1 rather than Lab 1.1); it would also be ok if they were numbered
within chapters.




   Personally, I'd have a different numbering system for lab sections, so
   instead of environment Section *, I'd have an environment Lab
   that has its own counter, and an environment Labproblem that acts
   the same way as the Problem environment you currently use in
   environment Section except is prints and increments the counter for
   Lab.
  
   By the way, you did the right thing making your own Problem
   environment instead of using Subsection.
  
 
  Thanks, but I actually didn't. That's a downloaded package. (I only
  use Subsection for actual subsections of the text.)

 What package?


I'm using the Theorems (AMS, Numbered by Type) and Theorems (Numbered by
Type Within Section) modules. I think they actually might be LyX built-ins.

Thanks,
Jane


layout prototype.pdf
Description: Adobe PDF document


Re: lyx in arabic or persian

2013-02-13 Thread stefano franchi
On Wed, Feb 13, 2013 at 3:25 PM, Bob Merhebi bobmerh...@gmail.com wrote:

 Hello all,

 I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
 some LyX so I guess I can help.

 So far I have not used Arabic in LyX.

 On 02/12/2013 10:09 PM, stefano franchi wrote:
  I have no knowledge of Arabic, unfortunately, but following the
  instructions on the wiki seems to work for me, including right-to-left
  typing:

 Right-to-Left is not enough; Arabic is a complex language which requires
 connecting letters and glyph formation. Here's an example from Scribus
 which has been open for a long time  still not resolved (not sure why):
 http://bugs.scribus.net/view.php?id=1079


Cannot help here. I'm aware of the complexities of Arabic script, but I
have no means to check if lyx (or, rather, Tex) gets it right. Sorry.


  http://wiki.lyx.org/Windows/Arabic
  It requires:
 
  1. Setting the document class to Article(Arabic)

 Doesn't exist in my installation:

 LyX 2.0.5.1 (2012-11-03)
 Ubuntu 12.04.2 LTS (x86_64)

 It appears to be part of the package: texlive-langextra
 which doesn't seem to be in Ubuntu

 Running apt-cache search texlive results in finding:

 texlive-lang-arabic - TeX Live: Arabic


This is a problem with Ubuntu (and Mint, which is Ubuntu based). In fact it
is a problem with all Debian-based distros, as far as I know. The problem
is that their packaged version of tex are:

(1) Broken up in several packages, and the user often does not know which
are required ofr the task at hand

(2) Often well behind officially distributed versions. (When I stopped
using Ubuntu it was 2 years behind.)

My, very personal, recommendation is to stop using the Ubuntu-packaged
version of tex and install manually Texlive instead. It used to be a
complicated to manage your own Tex installation. Now that Texlive comes
with its own distribution manager (called tlmgr --- tex live manager), it
is much simpler
However, I do understand that other users may have different preferences,



 Installing it didn't change anything in LyX. Still no Article[Arabic]!



Every time you install a new latex package you need to reconfigure Lyx and
restart it. Otherwise Lyx cannot use the newly installed package.



 I guess we need ArabTex:
 http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm



 In this I need help; I prefer to use Ubuntu's repositories unless it is
 not possible at all.



Arabtex should be in the package you installed:
texlive-lang-arabhttp://packages.ubuntu.com/hardy/texlive-lang-arab
.Otherwise, you can install it from CTAN:

http://www.ctan.org/tex-archive/language/arabtex

(Or with the tex manager I mentioned above if you switch to your own
texlive installation).

If you install it  manually, remember that you must run texhash as a
superuser afterwards. That is, you must open a terminal window and type the
command
sudo texhash


 Try looking for a file called arabart.cls and see if you can find it in
 your system.
 Which platform are you on? Linux, Mac, Windows? Instructions for the
 installation of missing packages vary  depending on the platform.

Not sure what parastoo is using as his system but mine is as stated above.


His system is Linux Mint, which is similar to Ubuntu. Hence he has the same
problem as your.


Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: lyx in arabic or persian

2013-02-13 Thread Parastoo Mojabi
Thank you all for helping

Yup, I installed the texlive-lang-arabic from mint package installer.
arabic-article appeared in document after that I did as
http://forums.fedoraforum.org/showthread.php?t=268654
but I got a error while exporting pdf(flatex)

Some characters of your document are probably not representable in the
chosen encoding.

Changing the document encoding to utf8 could help.


My document encoding is unicode(utif8)


what should I change?

and  for reporting this email to forum what should I do?



thanks again




On Thu, Feb 14, 2013 at 1:20 AM, Ibrahim El Merehbi bobmerh...@gmail.comwrote:

 Actually upon further investigation, I found out:

 Tools  TeX Information  arabart.cls (is present)

 I reconfigured LyX  restarted it  there it was: Article[Arabic]

 BUT

 the problem that Scribus has is present in LyX.

 I am not sure which version it was, but I once tried writing in LyX in
 Arabic  it worked well. What I'm sure of is that it was running under
 Ubuntu 10.04 (x86)

 What do you think?

 On Wed 13 Feb 2013 11:25:54 PM EET, Bob Merhebi wrote:
  Hello all,
 
  I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
  some LyX so I guess I can help.
 
  So far I have not used Arabic in LyX.
 
  On 02/12/2013 10:09 PM, stefano franchi wrote:
  I have no knowledge of Arabic, unfortunately, but following the
  instructions on the wiki seems to work for me, including right-to-left
  typing:
 
  Right-to-Left is not enough; Arabic is a complex language which requires
  connecting letters and glyph formation. Here's an example from Scribus
  which has been open for a long time  still not resolved (not sure why):
  http://bugs.scribus.net/view.php?id=1079
 
  http://wiki.lyx.org/Windows/Arabic
  It requires:
 
  1. Setting the document class to Article(Arabic)
 
  Doesn't exist in my installation:
 
  LyX 2.0.5.1 (2012-11-03)
  Ubuntu 12.04.2 LTS (x86_64)
 
  2. Choosing Arabic from DocumentSettingsLanguage, as Guy said
  3. Installing Arabic fonts for correct display in Lyx (the pdf would be
  fine without them, them)
 
  If you do not have article[Arabic] in the DocumentSettings dropdown
 menu,
  there may be something missing in your latex installation.
 
  The only relevant Arabic files I found are:
 
  /usr/share/lyx/kbd/arabic.kmap
  /usr/share/lyx/layouts/arab-article.layout
  /usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
  /usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
  /usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
  /usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
  /usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
  /usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld
 
  Maybe the 2nd is relecant?
 
   The
  article(Arabic) option uses the arabart.cls document class, which, on
 my TL
  2012 linux system, lives in
 
  /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
 
  Nothing of this sort!
 
  It appears to be part of the package: texlive-langextra
  which doesn't seem to be in Ubuntu
 
  Running apt-cache search texlive results in finding:
 
  texlive-lang-arabic - TeX Live: Arabic
 
  Installing it didn't change anything in LyX. Still no Article[Arabic]!
 
  I guess we need ArabTex:
  http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm
 
  In this I need help; I prefer to use Ubuntu's repositories unless it is
  not possible at all.
 
  Try looking for a file called arabart.cls and see if you can find it in
  your system.
  Which platform are you on? Linux, Mac, Windows? Instructions for the
  installation of missing packages vary  depending on the platform.
 
  Not sure what parastoo is using as his system but mine is as stated
 above.
 
 
  Cheers,
 
  Stefano
 
 
  On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg guyrutenb...@gmail.com
 wrote:
 
  Hi Parastoo,
 
  I've no experience using LyX with Arabic or Farsi, so I only guess.
 Have
  you set the language correctly in Document-Settings-Language? At
 least
  for Hebrew it's necessary.
 
  Regards,
 
  Guy
 
 
  On 31 January 2013 00:05, Parastoo Mojabi parastoo.moj...@gmail.com
 wrote:
 
 
 
  On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi 
  parastoo.moj...@gmail.com wrote:
 
  hi,
 
  hope you are doing great.
 
  I have difficulties making lyx in Farsi, I did as the internet
 saying,
  but article[arabic] is un available in my document class, I paste
  article-arabic.layout. every where but still doesnt work.
  now my document is left to right which i wanted to be right to left
 and
  the letters of arabic showing is wrong.
 
  please help me
 
  cheers
 
 



 --
 Sincerely Yours,
 El Merehbi, Ibrahim

 TB




Re: lyx in arabic or persian

2013-02-13 Thread Parastoo Mojabi
Thank you so much Stefano, mine is working

I installed texlive-lang-arabic
reconfigured lyx
then
1. Start LyX, then in Tools -- Preferences go to Language Settings and
select Language. Change *Command start* to *\selectlanguage{arabic}*, and
change *Language package* to Custom, and enter*
\usepackage[farsi,arabic]{babel}* in the provided textfield.

2. Still in Tools -- Preferences, go to Output and select LaTeX, then
change *Use LaTeX font encoding* to *LAE,LFE* in the provided textfield.

3. Still in Tools -- Preferences, go to Editing and under Keyboard/Mouse
check the *Use keyboard map* option and for *First* select farsi from the
*.kmap files that are shown when hitting the Browse button.

4. Hit the Save button in the Preferences window then restart LyX.

5. Once you've re-opened LyX, open a new document then go to Document --
Settings, and under *Document Class* select *article (Arabic)* from the
list..

6. Still in Document -- Settings, go to Language and select *Arabic (Arab
TeX)* as the *Language*, then change *Encoding* to Other and select *Unicode
(utf8)* as the encoding, then select *None* for the*Language package*
 option.

7. Hit the Apply button then close the Document Settings window

8. Now enter text in your document (which should be going from right to
left now), save the file as a LyX file, then select File -- Export -- PDF
(pdflatex). You should get a PDF with Arabic in it.


and now its working.

Thank you so much.







On Thu, Feb 14, 2013 at 7:11 AM, stefano franchi
stefano.fran...@gmail.comwrote:




 On Wed, Feb 13, 2013 at 3:25 PM, Bob Merhebi bobmerh...@gmail.com wrote:

 Hello all,

 I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
 some LyX so I guess I can help.

 So far I have not used Arabic in LyX.

 On 02/12/2013 10:09 PM, stefano franchi wrote:
  I have no knowledge of Arabic, unfortunately, but following the
  instructions on the wiki seems to work for me, including right-to-left
  typing:

 Right-to-Left is not enough; Arabic is a complex language which requires
 connecting letters and glyph formation. Here's an example from Scribus
 which has been open for a long time  still not resolved (not sure why):
 http://bugs.scribus.net/view.php?id=1079


 Cannot help here. I'm aware of the complexities of Arabic script, but I
 have no means to check if lyx (or, rather, Tex) gets it right. Sorry.


  http://wiki.lyx.org/Windows/Arabic
  It requires:
 
  1. Setting the document class to Article(Arabic)

 Doesn't exist in my installation:

 LyX 2.0.5.1 (2012-11-03)
 Ubuntu 12.04.2 LTS (x86_64)

 It appears to be part of the package: texlive-langextra
 which doesn't seem to be in Ubuntu

 Running apt-cache search texlive results in finding:

 texlive-lang-arabic - TeX Live: Arabic


 This is a problem with Ubuntu (and Mint, which is Ubuntu based). In fact
 it is a problem with all Debian-based distros, as far as I know. The
 problem is that their packaged version of tex are:

 (1) Broken up in several packages, and the user often does not know which
 are required ofr the task at hand

 (2) Often well behind officially distributed versions. (When I stopped
 using Ubuntu it was 2 years behind.)

 My, very personal, recommendation is to stop using the Ubuntu-packaged
 version of tex and install manually Texlive instead. It used to be a
 complicated to manage your own Tex installation. Now that Texlive comes
 with its own distribution manager (called tlmgr --- tex live manager), it
 is much simpler
 However, I do understand that other users may have different preferences,



 Installing it didn't change anything in LyX. Still no Article[Arabic]!



 Every time you install a new latex package you need to reconfigure Lyx and
 restart it. Otherwise Lyx cannot use the newly installed package.



 I guess we need ArabTex:
 http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm



 In this I need help; I prefer to use Ubuntu's repositories unless it is
 not possible at all.



 Arabtex should be in the package you installed: 
 texlive-lang-arabhttp://packages.ubuntu.com/hardy/texlive-lang-arab
 .Otherwise, you can install it from CTAN:

 http://www.ctan.org/tex-archive/language/arabtex

 (Or with the tex manager I mentioned above if you switch to your own
 texlive installation).

 If you install it  manually, remember that you must run texhash as a
 superuser afterwards. That is, you must open a terminal window and type the
 command
 sudo texhash



  Try looking for a file called arabart.cls and see if you can find it in
  your system.
  Which platform are you on? Linux, Mac, Windows? Instructions for the
  installation of missing packages vary  depending on the platform.

 Not sure what parastoo is using as his system but mine is as stated above.


 His system is Linux Mint, which is similar to Ubuntu. Hence he has the
 same problem as your.


 Cheers,

 Stefano



 --
 __
 Stefano Franchi
 Associate 

Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Tue, 12 Feb 2013 22:36:55 -0800
Jane Shevtsov jane@gmail.com wrote:

 On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
 skost...@princeton.eduwrote:
 
  On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com
  wrote:
  
   On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org
   wrote:
  
  
   If what you want is for all the counters to reset even when you
   start an unnumbered section, then this will take a little bit of
   LaTeX magic,
  but is
   perfectly do-able.
  
  
   Yep, that's what I want. What LaTeX code do I need?
 
  Hi Jane, could you please send post a Minimum Working Example? See
  http://wiki.lyx.org/FAQ/MWE
 
 
 Here's an example of what's happening now.
 
 Best,
 Jane

Hi Jane,

I understand that you don't want problems to continue the numbering of
the previous section, but if you reset them, reset them to what? In
your example, if you reset the major number to 2, then numbered section
2 would be 3, which I doubt you want.

This isn't a technical issue so much as an issue of understandability. 

Personally, I'd have a different numbering system for lab sections, so
instead of environment Section *, I'd have an environment Lab
that has its own counter, and an environment Labproblem that acts the
same way as the Problem environment you currently use in environment
Section except is prints and increments the counter for Lab.

By the way, you did the right thing making your own Problem environment
instead of using Subsection. 

Let me go a step further. If I were writing this textbook, I would not
use Section or Section* at all in the interactive part of your book.
I'd make an environment called Situation or some such for what in
your example you use Section, and Lab for what in your example you
handle with Section*. That way:

1) You have complete control of behavior.

2) It much more faithfully adheres to what I call Styles-based layout,
and what a lot of LyX people called WYSIWYM.

What you're doing with Section and Section* right now are things those
environments were never intended to handle. Sure, you can get close,
but ultimately something will go wrong because those environments were
meant to handle normal document headings at the level just below
Chapter.

Also, the more experience I get, the more I hate any use of Section*.
In the long run, Section* always makes me cry.

I wrote some content on making your own list environments here:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

HTH,

SteveT



Re: configuring latex2rtf with LyX 2

2013-02-13 Thread Wilfried
Justin Wood wrote:
 
  Could the problem be that I'm using XeTeX rather than default LaTeX?
 
 I think I answered my own question there. It seems to come down to that issue:
 no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I 
 guess!

I have no answer to your original question (how to set up latex2rtf in
LyX), but want to point out that latex2rtf itself doesn't care whether
the document is designed for LaTeX of XeTeX -- I recently converted a
XeTeX document with latex2rtf. Successful conversion rather depends on
whether the document restricts to the packages supported by latex2rtf.

The only caveat is that the current distribution of latex2rtf can
convert equations of a document needing XeTeX to rtf (EQ fields) but not
to bitmaps or eps, because the script latex2png only tries latex or
pdflatex. I already modified the latex2png script so that it now also
tries xetex, but this is not yet in the latex2rtf distribution, only in
the svn branch on sourceforge.

Regards
-- 
Wilfried Hennings



OTish: Illustrator alternative to collect linked PDFs into single figure

2013-02-13 Thread Gregory Jefferis
Hello,

We currently used Adobe Illustrator to construct quite complex figures for 
Biological Science manuscripts. We save in PDF compatible format and then 
directly place these in my lyx document. Apart from being expensive, the main 
problem is that Illustrator always saves the absolute path to any linked file 
causing trouble when colleagues edit these files on different machines.

Our figures mostly consist of linked PDFs, some type e.g. for labels and a 
small amount of drawing for annotation. I would like to switch to a FOSS 
alternative that allows PDFs to be linked (not embedded). The detailed layout 
of the elements is important. The closest I have found so far is Inkscape, but 
this always embeds PDF on import. Likewise it does not yet seem to be able to 
support linked SVG files.

Would anyone have any suggestions? Many thanks,

Greg.

http://inkscape.org/

--
Gregory Jefferis Lab:  jefferis...@gmail.com
Division of Neurobiology   
MRC Laboratory of Molecular Biology,   
Hills Road,
Cambridge, CB2 0QH, UK.

http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
http://www.neuroscience.cam.ac.uk/directory/profile.php?gsxej2
http://flybrain.stanford.edu



Re: Exercise Numbering

2013-02-13 Thread Jane Shevtsov
On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt sl...@troubleshooters.comwrote:

 On Tue, 12 Feb 2013 22:36:55 -0800
 Jane Shevtsov jane@gmail.com wrote:

  On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
  skost...@princeton.eduwrote:
 
   On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com
   wrote:
   
On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org
wrote:
   
   
If what you want is for all the counters to reset even when you
start an unnumbered section, then this will take a little bit of
LaTeX magic,
   but is
perfectly do-able.
   
   
Yep, that's what I want. What LaTeX code do I need?
  
   Hi Jane, could you please send post a Minimum Working Example? See
   http://wiki.lyx.org/FAQ/MWE
  
  
  Here's an example of what's happening now.
 Hi Jane,

 I understand that you don't want problems to continue the numbering of
 the previous section, but if you reset them, reset them to what? In
 your example, if you reset the major number to 2, then numbered section
 2 would be 3, which I doubt you want.


I'm not sure what you mean. I just want problem numbers within each section
to start at 1.

Personally, I'd have a different numbering system for lab sections, so
 instead of environment Section *, I'd have an environment Lab
 that has its own counter, and an environment Labproblem that acts the
 same way as the Problem environment you currently use in environment
 Section except is prints and increments the counter for Lab.

 By the way, you did the right thing making your own Problem environment
 instead of using Subsection.


Thanks, but I actually didn't. That's a downloaded package. (I only use
Subsection for actual subsections of the text.)

How would you make a Lab or Labproblem environment?

What you're doing with Section and Section* right now are things those
 environments were never intended to handle. Sure, you can get close,
 but ultimately something will go wrong because those environments were
 meant to handle normal document headings at the level just below
 Chapter.


That's exactly how I'm using them. I didn't put a Chapter heading in the
minimal example, but the actual textbook has six chapters with several
sections in each.

Thanks,
Jane

-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

“Those who say it cannot be done should not interfere with those who are
doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others


Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Wed, 13 Feb 2013 00:46:00 -0500
Scott Kostyshak skost...@princeton.edu wrote:

 On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov jane@gmail.com
 wrote:
 
  On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck rgh...@lyx.org
  wrote:
 
 
  If what you want is for all the counters to reset even when you
  start an unnumbered section, then this will take a little bit of
  LaTeX magic, but is perfectly do-able.
 
 
  Yep, that's what I want. What LaTeX code do I need?
 
 Hi Jane, could you please send post a Minimum Working Example? See
 http://wiki.lyx.org/FAQ/MWE

That Wiki page is one of the coolest things I've run across. Eric
Raymond told us all to use MWEs, but really didn't tell us how or why.

I added two more reasons to the list of reasons on that page. Hope you
all like it.

SteveT


Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Wed, 13 Feb 2013 10:00:04 -0800
Jane Shevtsov jane@gmail.com wrote:

 On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
 sl...@troubleshooters.comwrote:
 
  On Tue, 12 Feb 2013 22:36:55 -0800
  Jane Shevtsov jane@gmail.com wrote:

  I understand that you don't want problems to continue the numbering
  of the previous section, but if you reset them, reset them to what?
  In your example, if you reset the major number to 2, then numbered
  section 2 would be 3, which I doubt you want.
 
 
 I'm not sure what you mean. I just want problem numbers within each
 section to start at 1.

Ah-ha!

Before we continue, I think you should send us a prototype of how you
*want* this to look. On prototype is worth a thousand words and is much
less prone to misunderstanding.

You could do it with a text editor, using spaces for indentation,
showing how you'd like your MWE to look.

 
 Personally, I'd have a different numbering system for lab sections, so
  instead of environment Section *, I'd have an environment Lab
  that has its own counter, and an environment Labproblem that acts
  the same way as the Problem environment you currently use in
  environment Section except is prints and increments the counter for
  Lab.
 
  By the way, you did the right thing making your own Problem
  environment instead of using Subsection.
 
 
 Thanks, but I actually didn't. That's a downloaded package. (I only
 use Subsection for actual subsections of the text.)

What package?

 How would you make a Lab or Labproblem environment?

Depending on your prior LaTeX experience, this might sound like
gobblety gook to you...

You'd make your own Document Class, based on the one you're using now,
using a layout file. Within the layout file, you'd add environments of
your own. Your environments for Lab and Labproblem would maintain their
own counters.

But first things first. I honestly don't know how you want this thing
to look, and I have a feeling few others on this list know that either.
A prototype would make that crystal clear. Once the enhancement is
defined, the rest is just a little LaTeX wizardry.

SteveT


Re: lyx in arabic or persian

2013-02-13 Thread Bob Merhebi
Hello all,

I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
some LyX so I guess I can help.

So far I have not used Arabic in LyX.

On 02/12/2013 10:09 PM, stefano franchi wrote:
 I have no knowledge of Arabic, unfortunately, but following the
 instructions on the wiki seems to work for me, including right-to-left
 typing:

Right-to-Left is not enough; Arabic is a complex language which requires
connecting letters and glyph formation. Here's an example from Scribus
which has been open for a long time  still not resolved (not sure why):
http://bugs.scribus.net/view.php?id=1079

 http://wiki.lyx.org/Windows/Arabic
 It requires:
 
 1. Setting the document class to Article(Arabic)

Doesn't exist in my installation:

LyX 2.0.5.1 (2012-11-03)
Ubuntu 12.04.2 LTS (x86_64)

 2. Choosing Arabic from DocumentSettingsLanguage, as Guy said
 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
 fine without them, them)
 
 If you do not have article[Arabic] in the DocumentSettings dropdown menu,
 there may be something missing in your latex installation.

The only relevant Arabic files I found are:

/usr/share/lyx/kbd/arabic.kmap
/usr/share/lyx/layouts/arab-article.layout
/usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
/usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
/usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld

Maybe the 2nd is relecant?

 The
 article(Arabic) option uses the arabart.cls document class, which, on my TL
 2012 linux system, lives in
 
 /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
 
Nothing of this sort!

It appears to be part of the package: texlive-langextra
which doesn't seem to be in Ubuntu

Running apt-cache search texlive results in finding:

texlive-lang-arabic - TeX Live: Arabic

Installing it didn't change anything in LyX. Still no Article[Arabic]!

I guess we need ArabTex:
http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm

In this I need help; I prefer to use Ubuntu's repositories unless it is
not possible at all.

 Try looking for a file called arabart.cls and see if you can find it in
 your system.
 Which platform are you on? Linux, Mac, Windows? Instructions for the
 installation of missing packages vary  depending on the platform.

Not sure what parastoo is using as his system but mine is as stated above.

 
 Cheers,
 
 Stefano
 
 
 On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg guyrutenb...@gmail.comwrote:
 
 Hi Parastoo,

 I've no experience using LyX with Arabic or Farsi, so I only guess. Have
 you set the language correctly in Document-Settings-Language? At least
 for Hebrew it's necessary.

 Regards,

 Guy


 On 31 January 2013 00:05, Parastoo Mojabi parastoo.moj...@gmail.comwrote:



 On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi 
 parastoo.moj...@gmail.com wrote:

 hi,

 hope you are doing great.

 I have difficulties making lyx in Farsi, I did as the internet saying,
 but article[arabic] is un available in my document class, I paste
 article-arabic.layout. every where but still doesnt work.
 now my document is left to right which i wanted to be right to left and
 the letters of arabic showing is wrong.

 please help me

 cheers


-- 
Sincerely Yours,
Merhebi, Bob

TB


Re: lyx in arabic or persian

2013-02-13 Thread Ibrahim El Merehbi
Actually upon further investigation, I found out:

Tools  TeX Information  arabart.cls (is present)

I reconfigured LyX  restarted it  there it was: Article[Arabic]

BUT

the problem that Scribus has is present in LyX.

I am not sure which version it was, but I once tried writing in LyX in 
Arabic  it worked well. What I'm sure of is that it was running under 
Ubuntu 10.04 (x86)

What do you think?

On Wed 13 Feb 2013 11:25:54 PM EET, Bob Merhebi wrote:
 Hello all,

 I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
 some LyX so I guess I can help.

 So far I have not used Arabic in LyX.

 On 02/12/2013 10:09 PM, stefano franchi wrote:
 I have no knowledge of Arabic, unfortunately, but following the
 instructions on the wiki seems to work for me, including right-to-left
 typing:

 Right-to-Left is not enough; Arabic is a complex language which requires
 connecting letters and glyph formation. Here's an example from Scribus
 which has been open for a long time  still not resolved (not sure why):
 http://bugs.scribus.net/view.php?id=1079

 http://wiki.lyx.org/Windows/Arabic
 It requires:

 1. Setting the document class to Article(Arabic)

 Doesn't exist in my installation:

 LyX 2.0.5.1 (2012-11-03)
 Ubuntu 12.04.2 LTS (x86_64)

 2. Choosing Arabic from DocumentSettingsLanguage, as Guy said
 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
 fine without them, them)

 If you do not have article[Arabic] in the DocumentSettings dropdown menu,
 there may be something missing in your latex installation.

 The only relevant Arabic files I found are:

 /usr/share/lyx/kbd/arabic.kmap
 /usr/share/lyx/layouts/arab-article.layout
 /usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
 /usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
 /usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
 /usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
 /usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
 /usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld

 Maybe the 2nd is relecant?

  The
 article(Arabic) option uses the arabart.cls document class, which, on my TL
 2012 linux system, lives in

 /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls

 Nothing of this sort!

 It appears to be part of the package: texlive-langextra
 which doesn't seem to be in Ubuntu

 Running apt-cache search texlive results in finding:

 texlive-lang-arabic - TeX Live: Arabic

 Installing it didn't change anything in LyX. Still no Article[Arabic]!

 I guess we need ArabTex:
 http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm

 In this I need help; I prefer to use Ubuntu's repositories unless it is
 not possible at all.

 Try looking for a file called arabart.cls and see if you can find it in
 your system.
 Which platform are you on? Linux, Mac, Windows? Instructions for the
 installation of missing packages vary  depending on the platform.

 Not sure what parastoo is using as his system but mine is as stated above.


 Cheers,

 Stefano


 On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg guyrutenb...@gmail.comwrote:

 Hi Parastoo,

 I've no experience using LyX with Arabic or Farsi, so I only guess. Have
 you set the language correctly in Document-Settings-Language? At least
 for Hebrew it's necessary.

 Regards,

 Guy


 On 31 January 2013 00:05, Parastoo Mojabi parastoo.moj...@gmail.comwrote:



 On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi 
 parastoo.moj...@gmail.com wrote:

 hi,

 hope you are doing great.

 I have difficulties making lyx in Farsi, I did as the internet saying,
 but article[arabic] is un available in my document class, I paste
 article-arabic.layout. every where but still doesnt work.
 now my document is left to right which i wanted to be right to left and
 the letters of arabic showing is wrong.

 please help me

 cheers





--
Sincerely Yours,
El Merehbi, Ibrahim

TB



Re: Exercise Numbering

2013-02-13 Thread Jane Shevtsov
On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt sl...@troubleshooters.comwrote:

 On Wed, 13 Feb 2013 10:00:04 -0800
 Jane Shevtsov jane@gmail.com wrote:

  On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
  sl...@troubleshooters.comwrote:
 
   On Tue, 12 Feb 2013 22:36:55 -0800
   Jane Shevtsov jane@gmail.com wrote:

   I understand that you don't want problems to continue the numbering
   of the previous section, but if you reset them, reset them to what?
   In your example, if you reset the major number to 2, then numbered
   section 2 would be 3, which I doubt you want.
  
 
  I'm not sure what you mean. I just want problem numbers within each
  section to start at 1.

 Ah-ha!

 Before we continue, I think you should send us a prototype of how you
 *want* this to look. On prototype is worth a thousand words and is much
 less prone to misunderstanding.

 You could do it with a text editor, using spaces for indentation,
 showing how you'd like your MWE to look.


Good idea! An example is attached. In the actual text, I put the exercises
in boxes to get a shaded background, but the only issue right now is
numbering. In my prototype, labs are numbered continuously throughout the
book (Lab 1 rather than Lab 1.1); it would also be ok if they were numbered
within chapters.




   Personally, I'd have a different numbering system for lab sections, so
   instead of environment Section *, I'd have an environment Lab
   that has its own counter, and an environment Labproblem that acts
   the same way as the Problem environment you currently use in
   environment Section except is prints and increments the counter for
   Lab.
  
   By the way, you did the right thing making your own Problem
   environment instead of using Subsection.
  
 
  Thanks, but I actually didn't. That's a downloaded package. (I only
  use Subsection for actual subsections of the text.)

 What package?


I'm using the Theorems (AMS, Numbered by Type) and Theorems (Numbered by
Type Within Section) modules. I think they actually might be LyX built-ins.

Thanks,
Jane


layout prototype.pdf
Description: Adobe PDF document


Re: lyx in arabic or persian

2013-02-13 Thread stefano franchi
On Wed, Feb 13, 2013 at 3:25 PM, Bob Merhebi bobmerh...@gmail.com wrote:

 Hello all,

 I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
 some LyX so I guess I can help.

 So far I have not used Arabic in LyX.

 On 02/12/2013 10:09 PM, stefano franchi wrote:
  I have no knowledge of Arabic, unfortunately, but following the
  instructions on the wiki seems to work for me, including right-to-left
  typing:

 Right-to-Left is not enough; Arabic is a complex language which requires
 connecting letters and glyph formation. Here's an example from Scribus
 which has been open for a long time  still not resolved (not sure why):
 http://bugs.scribus.net/view.php?id=1079


Cannot help here. I'm aware of the complexities of Arabic script, but I
have no means to check if lyx (or, rather, Tex) gets it right. Sorry.


  http://wiki.lyx.org/Windows/Arabic
  It requires:
 
  1. Setting the document class to Article(Arabic)

 Doesn't exist in my installation:

 LyX 2.0.5.1 (2012-11-03)
 Ubuntu 12.04.2 LTS (x86_64)

 It appears to be part of the package: texlive-langextra
 which doesn't seem to be in Ubuntu

 Running apt-cache search texlive results in finding:

 texlive-lang-arabic - TeX Live: Arabic


This is a problem with Ubuntu (and Mint, which is Ubuntu based). In fact it
is a problem with all Debian-based distros, as far as I know. The problem
is that their packaged version of tex are:

(1) Broken up in several packages, and the user often does not know which
are required ofr the task at hand

(2) Often well behind officially distributed versions. (When I stopped
using Ubuntu it was 2 years behind.)

My, very personal, recommendation is to stop using the Ubuntu-packaged
version of tex and install manually Texlive instead. It used to be a
complicated to manage your own Tex installation. Now that Texlive comes
with its own distribution manager (called tlmgr --- tex live manager), it
is much simpler
However, I do understand that other users may have different preferences,



 Installing it didn't change anything in LyX. Still no Article[Arabic]!



Every time you install a new latex package you need to reconfigure Lyx and
restart it. Otherwise Lyx cannot use the newly installed package.



 I guess we need ArabTex:
 http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm



 In this I need help; I prefer to use Ubuntu's repositories unless it is
 not possible at all.



Arabtex should be in the package you installed:
texlive-lang-arabhttp://packages.ubuntu.com/hardy/texlive-lang-arab
.Otherwise, you can install it from CTAN:

http://www.ctan.org/tex-archive/language/arabtex

(Or with the tex manager I mentioned above if you switch to your own
texlive installation).

If you install it  manually, remember that you must run texhash as a
superuser afterwards. That is, you must open a terminal window and type the
command
sudo texhash


 Try looking for a file called arabart.cls and see if you can find it in
 your system.
 Which platform are you on? Linux, Mac, Windows? Instructions for the
 installation of missing packages vary  depending on the platform.

Not sure what parastoo is using as his system but mine is as stated above.


His system is Linux Mint, which is similar to Ubuntu. Hence he has the same
problem as your.


Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: lyx in arabic or persian

2013-02-13 Thread Parastoo Mojabi
Thank you all for helping

Yup, I installed the texlive-lang-arabic from mint package installer.
arabic-article appeared in document after that I did as
http://forums.fedoraforum.org/showthread.php?t=268654
but I got a error while exporting pdf(flatex)

Some characters of your document are probably not representable in the
chosen encoding.

Changing the document encoding to utf8 could help.


My document encoding is unicode(utif8)


what should I change?

and  for reporting this email to forum what should I do?



thanks again




On Thu, Feb 14, 2013 at 1:20 AM, Ibrahim El Merehbi bobmerh...@gmail.comwrote:

 Actually upon further investigation, I found out:

 Tools  TeX Information  arabart.cls (is present)

 I reconfigured LyX  restarted it  there it was: Article[Arabic]

 BUT

 the problem that Scribus has is present in LyX.

 I am not sure which version it was, but I once tried writing in LyX in
 Arabic  it worked well. What I'm sure of is that it was running under
 Ubuntu 10.04 (x86)

 What do you think?

 On Wed 13 Feb 2013 11:25:54 PM EET, Bob Merhebi wrote:
  Hello all,
 
  I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
  some LyX so I guess I can help.
 
  So far I have not used Arabic in LyX.
 
  On 02/12/2013 10:09 PM, stefano franchi wrote:
  I have no knowledge of Arabic, unfortunately, but following the
  instructions on the wiki seems to work for me, including right-to-left
  typing:
 
  Right-to-Left is not enough; Arabic is a complex language which requires
  connecting letters and glyph formation. Here's an example from Scribus
  which has been open for a long time  still not resolved (not sure why):
  http://bugs.scribus.net/view.php?id=1079
 
  http://wiki.lyx.org/Windows/Arabic
  It requires:
 
  1. Setting the document class to Article(Arabic)
 
  Doesn't exist in my installation:
 
  LyX 2.0.5.1 (2012-11-03)
  Ubuntu 12.04.2 LTS (x86_64)
 
  2. Choosing Arabic from DocumentSettingsLanguage, as Guy said
  3. Installing Arabic fonts for correct display in Lyx (the pdf would be
  fine without them, them)
 
  If you do not have article[Arabic] in the DocumentSettings dropdown
 menu,
  there may be something missing in your latex installation.
 
  The only relevant Arabic files I found are:
 
  /usr/share/lyx/kbd/arabic.kmap
  /usr/share/lyx/layouts/arab-article.layout
  /usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
  /usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
  /usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
  /usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
  /usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
  /usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld
 
  Maybe the 2nd is relecant?
 
   The
  article(Arabic) option uses the arabart.cls document class, which, on
 my TL
  2012 linux system, lives in
 
  /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
 
  Nothing of this sort!
 
  It appears to be part of the package: texlive-langextra
  which doesn't seem to be in Ubuntu
 
  Running apt-cache search texlive results in finding:
 
  texlive-lang-arabic - TeX Live: Arabic
 
  Installing it didn't change anything in LyX. Still no Article[Arabic]!
 
  I guess we need ArabTex:
  http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm
 
  In this I need help; I prefer to use Ubuntu's repositories unless it is
  not possible at all.
 
  Try looking for a file called arabart.cls and see if you can find it in
  your system.
  Which platform are you on? Linux, Mac, Windows? Instructions for the
  installation of missing packages vary  depending on the platform.
 
  Not sure what parastoo is using as his system but mine is as stated
 above.
 
 
  Cheers,
 
  Stefano
 
 
  On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg guyrutenb...@gmail.com
 wrote:
 
  Hi Parastoo,
 
  I've no experience using LyX with Arabic or Farsi, so I only guess.
 Have
  you set the language correctly in Document-Settings-Language? At
 least
  for Hebrew it's necessary.
 
  Regards,
 
  Guy
 
 
  On 31 January 2013 00:05, Parastoo Mojabi parastoo.moj...@gmail.com
 wrote:
 
 
 
  On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi 
  parastoo.moj...@gmail.com wrote:
 
  hi,
 
  hope you are doing great.
 
  I have difficulties making lyx in Farsi, I did as the internet
 saying,
  but article[arabic] is un available in my document class, I paste
  article-arabic.layout. every where but still doesnt work.
  now my document is left to right which i wanted to be right to left
 and
  the letters of arabic showing is wrong.
 
  please help me
 
  cheers
 
 



 --
 Sincerely Yours,
 El Merehbi, Ibrahim

 TB




Re: lyx in arabic or persian

2013-02-13 Thread Parastoo Mojabi
Thank you so much Stefano, mine is working

I installed texlive-lang-arabic
reconfigured lyx
then
1. Start LyX, then in Tools -- Preferences go to Language Settings and
select Language. Change *Command start* to *\selectlanguage{arabic}*, and
change *Language package* to Custom, and enter*
\usepackage[farsi,arabic]{babel}* in the provided textfield.

2. Still in Tools -- Preferences, go to Output and select LaTeX, then
change *Use LaTeX font encoding* to *LAE,LFE* in the provided textfield.

3. Still in Tools -- Preferences, go to Editing and under Keyboard/Mouse
check the *Use keyboard map* option and for *First* select farsi from the
*.kmap files that are shown when hitting the Browse button.

4. Hit the Save button in the Preferences window then restart LyX.

5. Once you've re-opened LyX, open a new document then go to Document --
Settings, and under *Document Class* select *article (Arabic)* from the
list..

6. Still in Document -- Settings, go to Language and select *Arabic (Arab
TeX)* as the *Language*, then change *Encoding* to Other and select *Unicode
(utf8)* as the encoding, then select *None* for the*Language package*
 option.

7. Hit the Apply button then close the Document Settings window

8. Now enter text in your document (which should be going from right to
left now), save the file as a LyX file, then select File -- Export -- PDF
(pdflatex). You should get a PDF with Arabic in it.


and now its working.

Thank you so much.







On Thu, Feb 14, 2013 at 7:11 AM, stefano franchi
stefano.fran...@gmail.comwrote:




 On Wed, Feb 13, 2013 at 3:25 PM, Bob Merhebi bobmerh...@gmail.com wrote:

 Hello all,

 I'm joining you guys regarding writing Arabic in LyX. I know Arabic 
 some LyX so I guess I can help.

 So far I have not used Arabic in LyX.

 On 02/12/2013 10:09 PM, stefano franchi wrote:
  I have no knowledge of Arabic, unfortunately, but following the
  instructions on the wiki seems to work for me, including right-to-left
  typing:

 Right-to-Left is not enough; Arabic is a complex language which requires
 connecting letters and glyph formation. Here's an example from Scribus
 which has been open for a long time  still not resolved (not sure why):
 http://bugs.scribus.net/view.php?id=1079


 Cannot help here. I'm aware of the complexities of Arabic script, but I
 have no means to check if lyx (or, rather, Tex) gets it right. Sorry.


  http://wiki.lyx.org/Windows/Arabic
  It requires:
 
  1. Setting the document class to Article(Arabic)

 Doesn't exist in my installation:

 LyX 2.0.5.1 (2012-11-03)
 Ubuntu 12.04.2 LTS (x86_64)

 It appears to be part of the package: texlive-langextra
 which doesn't seem to be in Ubuntu

 Running apt-cache search texlive results in finding:

 texlive-lang-arabic - TeX Live: Arabic


 This is a problem with Ubuntu (and Mint, which is Ubuntu based). In fact
 it is a problem with all Debian-based distros, as far as I know. The
 problem is that their packaged version of tex are:

 (1) Broken up in several packages, and the user often does not know which
 are required ofr the task at hand

 (2) Often well behind officially distributed versions. (When I stopped
 using Ubuntu it was 2 years behind.)

 My, very personal, recommendation is to stop using the Ubuntu-packaged
 version of tex and install manually Texlive instead. It used to be a
 complicated to manage your own Tex installation. Now that Texlive comes
 with its own distribution manager (called tlmgr --- tex live manager), it
 is much simpler
 However, I do understand that other users may have different preferences,



 Installing it didn't change anything in LyX. Still no Article[Arabic]!



 Every time you install a new latex package you need to reconfigure Lyx and
 restart it. Otherwise Lyx cannot use the newly installed package.



 I guess we need ArabTex:
 http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm



 In this I need help; I prefer to use Ubuntu's repositories unless it is
 not possible at all.



 Arabtex should be in the package you installed: 
 texlive-lang-arabhttp://packages.ubuntu.com/hardy/texlive-lang-arab
 .Otherwise, you can install it from CTAN:

 http://www.ctan.org/tex-archive/language/arabtex

 (Or with the tex manager I mentioned above if you switch to your own
 texlive installation).

 If you install it  manually, remember that you must run texhash as a
 superuser afterwards. That is, you must open a terminal window and type the
 command
 sudo texhash



  Try looking for a file called arabart.cls and see if you can find it in
  your system.
  Which platform are you on? Linux, Mac, Windows? Instructions for the
  installation of missing packages vary  depending on the platform.

 Not sure what parastoo is using as his system but mine is as stated above.


 His system is Linux Mint, which is similar to Ubuntu. Hence he has the
 same problem as your.


 Cheers,

 Stefano



 --
 __
 Stefano Franchi
 Associate 

Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Tue, 12 Feb 2013 22:36:55 -0800
Jane Shevtsov  wrote:

> On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
> wrote:
> 
> > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov 
> > wrote:
> > >
> > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck 
> > > wrote:
> > >>
> > >>
> > >> If what you want is for all the counters to reset even when you
> > >> start an unnumbered section, then this will take a little bit of
> > >> LaTeX magic,
> > but is
> > >> perfectly do-able.
> > >
> > >
> > > Yep, that's what I want. What LaTeX code do I need?
> >
> > Hi Jane, could you please send post a Minimum Working Example? See
> > http://wiki.lyx.org/FAQ/MWE
> >
> >
> Here's an example of what's happening now.
> 
> Best,
> Jane

Hi Jane,

I understand that you don't want problems to continue the numbering of
the previous section, but if you reset them, reset them to what? In
your example, if you reset the major number to 2, then numbered section
2 would be 3, which I doubt you want.

This isn't a technical issue so much as an issue of understandability. 

Personally, I'd have a different numbering system for lab sections, so
instead of environment Section *, I'd have an environment Lab
that has its own counter, and an environment Labproblem that acts the
same way as the Problem environment you currently use in environment
Section except is prints and increments the counter for Lab.

By the way, you did the right thing making your own Problem environment
instead of using Subsection. 

Let me go a step further. If I were writing this textbook, I would not
use Section or Section* at all in the interactive part of your book.
I'd make an environment called "Situation" or some such for what in
your example you use Section, and Lab for what in your example you
handle with Section*. That way:

1) You have complete control of behavior.

2) It much more faithfully adheres to what I call Styles-based layout,
and what a lot of LyX people called WYSIWYM.

What you're doing with Section and Section* right now are things those
environments were never intended to handle. Sure, you can get close,
but ultimately something will go wrong because those environments were
meant to handle normal document headings at the level just below
"Chapter".

Also, the more experience I get, the more I hate any use of Section*.
In the long run, Section* always makes me cry.

I wrote some content on making your own list environments here:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

HTH,

SteveT



Re: configuring latex2rtf with LyX 2

2013-02-13 Thread Wilfried
Justin Wood wrote:
 
> > Could the problem be that I'm using XeTeX rather than default LaTeX?
> 
> I think I answered my own question there. It seems to come down to that issue:
> no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I 
> guess!

I have no answer to your original question (how to set up latex2rtf in
LyX), but want to point out that latex2rtf itself doesn't care whether
the document is designed for LaTeX of XeTeX -- I recently converted a
XeTeX document with latex2rtf. Successful conversion rather depends on
whether the document restricts to the packages supported by latex2rtf.

The only caveat is that the current distribution of latex2rtf can
convert equations of a document needing XeTeX to rtf (EQ fields) but not
to bitmaps or eps, because the script latex2png only tries latex or
pdflatex. I already modified the latex2png script so that it now also
tries xetex, but this is not yet in the latex2rtf distribution, only in
the svn branch on sourceforge.

Regards
-- 
Wilfried Hennings



OTish: Illustrator alternative to collect linked PDFs into single figure

2013-02-13 Thread Gregory Jefferis
Hello,

We currently used Adobe Illustrator to construct quite complex figures for 
Biological Science manuscripts. We save in PDF compatible format and then 
directly place these in my lyx document. Apart from being expensive, the main 
problem is that Illustrator always saves the absolute path to any linked file 
causing trouble when colleagues edit these files on different machines.

Our figures mostly consist of linked PDFs, some type e.g. for labels and a 
small amount of drawing for annotation. I would like to switch to a FOSS 
alternative that allows PDFs to be linked (not embedded). The detailed layout 
of the elements is important. The closest I have found so far is Inkscape, but 
this always embeds PDF on import. Likewise it does not yet seem to be able to 
support linked SVG files.

Would anyone have any suggestions? Many thanks,

Greg.

http://inkscape.org/

--
Gregory Jefferis Lab:  jefferis...@gmail.com
Division of Neurobiology   
MRC Laboratory of Molecular Biology,   
Hills Road,
Cambridge, CB2 0QH, UK.

http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
http://www.neuroscience.cam.ac.uk/directory/profile.php?gsxej2
http://flybrain.stanford.edu



Re: Exercise Numbering

2013-02-13 Thread Jane Shevtsov
On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt wrote:

> On Tue, 12 Feb 2013 22:36:55 -0800
> Jane Shevtsov  wrote:
>
> > On Tue, Feb 12, 2013 at 9:46 PM, Scott Kostyshak
> > wrote:
> >
> > > On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov 
> > > wrote:
> > > >
> > > > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck 
> > > > wrote:
> > > >>
> > > >>
> > > >> If what you want is for all the counters to reset even when you
> > > >> start an unnumbered section, then this will take a little bit of
> > > >> LaTeX magic,
> > > but is
> > > >> perfectly do-able.
> > > >
> > > >
> > > > Yep, that's what I want. What LaTeX code do I need?
> > >
> > > Hi Jane, could you please send post a Minimum Working Example? See
> > > http://wiki.lyx.org/FAQ/MWE
> > >
> > >
> > Here's an example of what's happening now.
> Hi Jane,
>
> I understand that you don't want problems to continue the numbering of
> the previous section, but if you reset them, reset them to what? In
> your example, if you reset the major number to 2, then numbered section
> 2 would be 3, which I doubt you want.
>

I'm not sure what you mean. I just want problem numbers within each section
to start at 1.

Personally, I'd have a different numbering system for lab sections, so
> instead of environment Section *, I'd have an environment Lab
> that has its own counter, and an environment Labproblem that acts the
> same way as the Problem environment you currently use in environment
> Section except is prints and increments the counter for Lab.
>
> By the way, you did the right thing making your own Problem environment
> instead of using Subsection.
>

Thanks, but I actually didn't. That's a downloaded package. (I only use
Subsection for actual subsections of the text.)

How would you make a Lab or Labproblem environment?

What you're doing with Section and Section* right now are things those
> environments were never intended to handle. Sure, you can get close,
> but ultimately something will go wrong because those environments were
> meant to handle normal document headings at the level just below
> "Chapter".
>

That's exactly how I'm using them. I didn't put a Chapter heading in the
minimal example, but the actual textbook has six chapters with several
sections in each.

Thanks,
Jane

-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

“Those who say it cannot be done should not interfere with those who are
doing it.” --attributed to Robert Heinlein, George Bernard Shaw and others


Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Wed, 13 Feb 2013 00:46:00 -0500
Scott Kostyshak  wrote:

> On Tue, Feb 12, 2013 at 9:28 PM, Jane Shevtsov 
> wrote:
> >
> > On Tue, Feb 12, 2013 at 6:09 PM, Richard Heck 
> > wrote:
> >>
> >>
> >> If what you want is for all the counters to reset even when you
> >> start an unnumbered section, then this will take a little bit of
> >> LaTeX magic, but is perfectly do-able.
> >
> >
> > Yep, that's what I want. What LaTeX code do I need?
> 
> Hi Jane, could you please send post a Minimum Working Example? See
> http://wiki.lyx.org/FAQ/MWE

That Wiki page is one of the coolest things I've run across. Eric
Raymond told us all to use MWEs, but really didn't tell us how or why.

I added two more reasons to the list of reasons on that page. Hope you
all like it.

SteveT


Re: Exercise Numbering

2013-02-13 Thread Steve Litt
On Wed, 13 Feb 2013 10:00:04 -0800
Jane Shevtsov  wrote:

> On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
> wrote:
> 
> > On Tue, 12 Feb 2013 22:36:55 -0800
> > Jane Shevtsov  wrote:

> > I understand that you don't want problems to continue the numbering
> > of the previous section, but if you reset them, reset them to what?
> > In your example, if you reset the major number to 2, then numbered
> > section 2 would be 3, which I doubt you want.
> >
> 
> I'm not sure what you mean. I just want problem numbers within each
> section to start at 1.

Ah-ha!

Before we continue, I think you should send us a prototype of how you
*want* this to look. On prototype is worth a thousand words and is much
less prone to misunderstanding.

You could do it with a text editor, using spaces for indentation,
showing how you'd like your MWE to look.

> 
> Personally, I'd have a different numbering system for lab sections, so
> > instead of environment Section *, I'd have an environment Lab
> > that has its own counter, and an environment Labproblem that acts
> > the same way as the Problem environment you currently use in
> > environment Section except is prints and increments the counter for
> > Lab.
> >
> > By the way, you did the right thing making your own Problem
> > environment instead of using Subsection.
> >
> 
> Thanks, but I actually didn't. That's a downloaded package. (I only
> use Subsection for actual subsections of the text.)

What package?

> How would you make a Lab or Labproblem environment?

Depending on your prior LaTeX experience, this might sound like
gobblety gook to you...

You'd make your own Document Class, based on the one you're using now,
using a layout file. Within the layout file, you'd add environments of
your own. Your environments for Lab and Labproblem would maintain their
own counters.

But first things first. I honestly don't know how you want this thing
to look, and I have a feeling few others on this list know that either.
A prototype would make that crystal clear. Once the enhancement is
defined, the rest is just a little LaTeX wizardry.

SteveT


Re: lyx in arabic or persian

2013-02-13 Thread Bob Merhebi
Hello all,

I'm joining you guys regarding writing Arabic in LyX. I know Arabic &
some LyX so I guess I can help.

So far I have not used Arabic in LyX.

On 02/12/2013 10:09 PM, stefano franchi wrote:
> I have no knowledge of Arabic, unfortunately, but following the
> instructions on the wiki seems to work for me, including right-to-left
> typing:

Right-to-Left is not enough; Arabic is a complex language which requires
connecting letters and glyph formation. Here's an example from Scribus
which has been open for a long time & still not resolved (not sure why):
http://bugs.scribus.net/view.php?id=1079

> http://wiki.lyx.org/Windows/Arabic
> It requires:
> 
> 1. Setting the document class to Article(Arabic)

Doesn't exist in my installation:

LyX 2.0.5.1 (2012-11-03)
Ubuntu 12.04.2 LTS (x86_64)

> 2. Choosing "Arabic" from Document>>Settings>>Language, as Guy said
> 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
> fine without them, them)
> 
> If you do not have article[Arabic] in the Document>>Settings dropdown menu,
> there may be something missing in your latex installation.

The only relevant Arabic files I found are:

/usr/share/lyx/kbd/arabic.kmap
/usr/share/lyx/layouts/arab-article.layout
/usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
/usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
/usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
/usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld

Maybe the 2nd is relecant?

 The
> article(Arabic) option uses the arabart.cls document class, which, on my TL
> 2012 linux system, lives in
> 
> /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
> 
Nothing of this sort!

It appears to be part of the package: texlive-langextra
which doesn't seem to be in Ubuntu

Running "apt-cache search texlive" results in finding:

texlive-lang-arabic - TeX Live: Arabic

Installing it didn't change anything in LyX. Still no Article[Arabic]!

I guess we need ArabTex:
http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm

In this I need help; I prefer to use Ubuntu's repositories unless it is
not possible at all.

> Try looking for a file called arabart.cls and see if you can find it in
> your system.
> Which platform are you on? Linux, Mac, Windows? Instructions for the
> installation of missing packages vary  depending on the platform.

Not sure what parastoo is using as his system but mine is as stated above.

> 
> Cheers,
> 
> Stefano
> 
> 
> On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg wrote:
> 
>> Hi Parastoo,
>>
>> I've no experience using LyX with Arabic or Farsi, so I only guess. Have
>> you set the language correctly in Document->Settings->Language? At least
>> for Hebrew it's necessary.
>>
>> Regards,
>>
>> Guy
>>
>>
>> On 31 January 2013 00:05, Parastoo Mojabi wrote:
>>
>>>
>>>
>>> On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi <
>>> parastoo.moj...@gmail.com> wrote:
>>>
 hi,

 hope you are doing great.

 I have difficulties making lyx in Farsi, I did as the internet saying,
 but article[arabic] is un available in my document class, I paste
 article-arabic.layout. every where but still doesnt work.
 now my document is left to right which i wanted to be right to left and
 the letters of arabic showing is wrong.

 please help me

 cheers


-- 
Sincerely Yours,
Merhebi, Bob

TB


Re: lyx in arabic or persian

2013-02-13 Thread Ibrahim El Merehbi
Actually upon further investigation, I found out:

Tools > TeX Information > arabart.cls (is present)

I "reconfigured" LyX & restarted it & there it was: Article[Arabic]

BUT

the problem that Scribus has is present in LyX.

I am not sure which version it was, but I once tried writing in LyX in 
Arabic & it worked well. What I'm sure of is that it was running under 
Ubuntu 10.04 (x86)

What do you think?

On Wed 13 Feb 2013 11:25:54 PM EET, Bob Merhebi wrote:
> Hello all,
>
> I'm joining you guys regarding writing Arabic in LyX. I know Arabic &
> some LyX so I guess I can help.
>
> So far I have not used Arabic in LyX.
>
> On 02/12/2013 10:09 PM, stefano franchi wrote:
>> I have no knowledge of Arabic, unfortunately, but following the
>> instructions on the wiki seems to work for me, including right-to-left
>> typing:
>
> Right-to-Left is not enough; Arabic is a complex language which requires
> connecting letters and glyph formation. Here's an example from Scribus
> which has been open for a long time & still not resolved (not sure why):
> http://bugs.scribus.net/view.php?id=1079
>
>> http://wiki.lyx.org/Windows/Arabic
>> It requires:
>>
>> 1. Setting the document class to Article(Arabic)
>
> Doesn't exist in my installation:
>
> LyX 2.0.5.1 (2012-11-03)
> Ubuntu 12.04.2 LTS (x86_64)
>
>> 2. Choosing "Arabic" from Document>>Settings>>Language, as Guy said
>> 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
>> fine without them, them)
>>
>> If you do not have article[Arabic] in the Document>>Settings dropdown menu,
>> there may be something missing in your latex installation.
>
> The only relevant Arabic files I found are:
>
> /usr/share/lyx/kbd/arabic.kmap
> /usr/share/lyx/layouts/arab-article.layout
> /usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
> /usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
> /usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
> /usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
> /usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
> /usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld
>
> Maybe the 2nd is relecant?
>
>  The
>> article(Arabic) option uses the arabart.cls document class, which, on my TL
>> 2012 linux system, lives in
>>
>> /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
>>
> Nothing of this sort!
>
> It appears to be part of the package: texlive-langextra
> which doesn't seem to be in Ubuntu
>
> Running "apt-cache search texlive" results in finding:
>
> texlive-lang-arabic - TeX Live: Arabic
>
> Installing it didn't change anything in LyX. Still no Article[Arabic]!
>
> I guess we need ArabTex:
> http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm
>
> In this I need help; I prefer to use Ubuntu's repositories unless it is
> not possible at all.
>
>> Try looking for a file called arabart.cls and see if you can find it in
>> your system.
>> Which platform are you on? Linux, Mac, Windows? Instructions for the
>> installation of missing packages vary  depending on the platform.
>
> Not sure what parastoo is using as his system but mine is as stated above.
>
>>
>> Cheers,
>>
>> Stefano
>>
>>
>> On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg wrote:
>>
>>> Hi Parastoo,
>>>
>>> I've no experience using LyX with Arabic or Farsi, so I only guess. Have
>>> you set the language correctly in Document->Settings->Language? At least
>>> for Hebrew it's necessary.
>>>
>>> Regards,
>>>
>>> Guy
>>>
>>>
>>> On 31 January 2013 00:05, Parastoo Mojabi wrote:
>>>


 On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi <
 parastoo.moj...@gmail.com> wrote:

> hi,
>
> hope you are doing great.
>
> I have difficulties making lyx in Farsi, I did as the internet saying,
> but article[arabic] is un available in my document class, I paste
> article-arabic.layout. every where but still doesnt work.
> now my document is left to right which i wanted to be right to left and
> the letters of arabic showing is wrong.
>
> please help me
>
> cheers
>
>



--
Sincerely Yours,
El Merehbi, Ibrahim

TB



Re: Exercise Numbering

2013-02-13 Thread Jane Shevtsov
On Wed, Feb 13, 2013 at 12:01 PM, Steve Litt wrote:

> On Wed, 13 Feb 2013 10:00:04 -0800
> Jane Shevtsov  wrote:
>
> > On Wed, Feb 13, 2013 at 1:35 AM, Steve Litt
> > wrote:
> >
> > > On Tue, 12 Feb 2013 22:36:55 -0800
> > > Jane Shevtsov  wrote:
>
> > > I understand that you don't want problems to continue the numbering
> > > of the previous section, but if you reset them, reset them to what?
> > > In your example, if you reset the major number to 2, then numbered
> > > section 2 would be 3, which I doubt you want.
> > >
> >
> > I'm not sure what you mean. I just want problem numbers within each
> > section to start at 1.
>
> Ah-ha!
>
> Before we continue, I think you should send us a prototype of how you
> *want* this to look. On prototype is worth a thousand words and is much
> less prone to misunderstanding.
>
> You could do it with a text editor, using spaces for indentation,
> showing how you'd like your MWE to look.
>

Good idea! An example is attached. In the actual text, I put the exercises
in boxes to get a shaded background, but the only issue right now is
numbering. In my prototype, labs are numbered continuously throughout the
book (Lab 1 rather than Lab 1.1); it would also be ok if they were numbered
within chapters.



>
> > > Personally, I'd have a different numbering system for lab sections, so
> > > instead of environment Section *, I'd have an environment Lab
> > > that has its own counter, and an environment Labproblem that acts
> > > the same way as the Problem environment you currently use in
> > > environment Section except is prints and increments the counter for
> > > Lab.
> > >
> > > By the way, you did the right thing making your own Problem
> > > environment instead of using Subsection.
> > >
> >
> > Thanks, but I actually didn't. That's a downloaded package. (I only
> > use Subsection for actual subsections of the text.)
>
> What package?
>

I'm using the "Theorems (AMS, Numbered by Type)" and "Theorems (Numbered by
Type Within Section)" modules. I think they actually might be LyX built-ins.

Thanks,
Jane


layout prototype.pdf
Description: Adobe PDF document


Re: lyx in arabic or persian

2013-02-13 Thread stefano franchi
On Wed, Feb 13, 2013 at 3:25 PM, Bob Merhebi  wrote:

> Hello all,
>
> I'm joining you guys regarding writing Arabic in LyX. I know Arabic &
> some LyX so I guess I can help.
>
> So far I have not used Arabic in LyX.
>
> On 02/12/2013 10:09 PM, stefano franchi wrote:
> > I have no knowledge of Arabic, unfortunately, but following the
> > instructions on the wiki seems to work for me, including right-to-left
> > typing:
>
> Right-to-Left is not enough; Arabic is a complex language which requires
> connecting letters and glyph formation. Here's an example from Scribus
> which has been open for a long time & still not resolved (not sure why):
> http://bugs.scribus.net/view.php?id=1079
>
>
Cannot help here. I'm aware of the complexities of Arabic script, but I
have no means to check if lyx (or, rather, Tex) gets it right. Sorry.


> > http://wiki.lyx.org/Windows/Arabic
> > It requires:
> >
> > 1. Setting the document class to Article(Arabic)
>
> Doesn't exist in my installation:
>
> LyX 2.0.5.1 (2012-11-03)
> Ubuntu 12.04.2 LTS (x86_64)
>
> It appears to be part of the package: texlive-langextra
> which doesn't seem to be in Ubuntu
>
> Running "apt-cache search texlive" results in finding:
>
> texlive-lang-arabic - TeX Live: Arabic
>
>
This is a problem with Ubuntu (and Mint, which is Ubuntu based). In fact it
is a problem with all Debian-based distros, as far as I know. The problem
is that their packaged version of tex are:

(1) Broken up in several packages, and the user often does not know which
are required ofr the task at hand

(2) Often well behind officially distributed versions. (When I stopped
using Ubuntu it was 2 years behind.)

My, very personal, recommendation is to stop using the Ubuntu-packaged
version of tex and install manually Texlive instead. It used to be a
complicated to manage your own Tex installation. Now that Texlive comes
with its own distribution manager (called tlmgr --- tex live manager), it
is much simpler
However, I do understand that other users may have different preferences,



> Installing it didn't change anything in LyX. Still no Article[Arabic]!
>


Every time you install a new latex package you need to reconfigure Lyx and
restart it. Otherwise Lyx cannot use the newly installed package.



> I guess we need ArabTex:
> http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm
>


> In this I need help; I prefer to use Ubuntu's repositories unless it is
> not possible at all.
>


Arabtex should be in the package you installed:
texlive-lang-arab
.Otherwise, you can install it from CTAN:

http://www.ctan.org/tex-archive/language/arabtex

(Or with the tex manager I mentioned above if you switch to your own
texlive installation).

If you install it  manually, remember that you must run texhash as a
superuser afterwards. That is, you must open a terminal window and type the
command
sudo texhash


> Try looking for a file called arabart.cls and see if you can find it in
> your system.
> Which platform are you on? Linux, Mac, Windows? Instructions for the
> installation of missing packages vary  depending on the platform.

Not sure what parastoo is using as his system but mine is as stated above.
>
>
His system is Linux Mint, which is similar to Ubuntu. Hence he has the same
problem as your.


Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: lyx in arabic or persian

2013-02-13 Thread Parastoo Mojabi
Thank you all for helping

Yup, I installed the texlive-lang-arabic from mint package installer.
arabic-article appeared in document after that I did as
http://forums.fedoraforum.org/showthread.php?t=268654
but I got a error while exporting pdf(flatex)

Some characters of your document are probably not representable in the
chosen encoding.

Changing the document encoding to utf8 could help.


My document encoding is unicode(utif8)


what should I change?

and  for reporting this email to forum what should I do?



thanks again




On Thu, Feb 14, 2013 at 1:20 AM, Ibrahim El Merehbi wrote:

> Actually upon further investigation, I found out:
>
> Tools > TeX Information > arabart.cls (is present)
>
> I "reconfigured" LyX & restarted it & there it was: Article[Arabic]
>
> BUT
>
> the problem that Scribus has is present in LyX.
>
> I am not sure which version it was, but I once tried writing in LyX in
> Arabic & it worked well. What I'm sure of is that it was running under
> Ubuntu 10.04 (x86)
>
> What do you think?
>
> On Wed 13 Feb 2013 11:25:54 PM EET, Bob Merhebi wrote:
> > Hello all,
> >
> > I'm joining you guys regarding writing Arabic in LyX. I know Arabic &
> > some LyX so I guess I can help.
> >
> > So far I have not used Arabic in LyX.
> >
> > On 02/12/2013 10:09 PM, stefano franchi wrote:
> >> I have no knowledge of Arabic, unfortunately, but following the
> >> instructions on the wiki seems to work for me, including right-to-left
> >> typing:
> >
> > Right-to-Left is not enough; Arabic is a complex language which requires
> > connecting letters and glyph formation. Here's an example from Scribus
> > which has been open for a long time & still not resolved (not sure why):
> > http://bugs.scribus.net/view.php?id=1079
> >
> >> http://wiki.lyx.org/Windows/Arabic
> >> It requires:
> >>
> >> 1. Setting the document class to Article(Arabic)
> >
> > Doesn't exist in my installation:
> >
> > LyX 2.0.5.1 (2012-11-03)
> > Ubuntu 12.04.2 LTS (x86_64)
> >
> >> 2. Choosing "Arabic" from Document>>Settings>>Language, as Guy said
> >> 3. Installing Arabic fonts for correct display in Lyx (the pdf would be
> >> fine without them, them)
> >>
> >> If you do not have article[Arabic] in the Document>>Settings dropdown
> menu,
> >> there may be something missing in your latex installation.
> >
> > The only relevant Arabic files I found are:
> >
> > /usr/share/lyx/kbd/arabic.kmap
> > /usr/share/lyx/layouts/arab-article.layout
> > /usr/share/texmf-texlive/tex/generic/genmisc/arabic.tex
> > /usr/share/texmf-texlive/tex/latex/bezos/arabicfront.sty
> > /usr/share/texmf-texlive/tex/latex/minitoc/arab.mld
> > /usr/share/texmf-texlive/tex/latex/minitoc/arab2.mld
> > /usr/share/texmf-texlive/tex/latex/minitoc/arabi.mld
> > /usr/share/texmf-texlive/tex/latex/minitoc/arabic.mld
> >
> > Maybe the 2nd is relecant?
> >
> >  The
> >> article(Arabic) option uses the arabart.cls document class, which, on
> my TL
> >> 2012 linux system, lives in
> >>
> >> /usr/local/texlive/2012/texmf-dist/tex/latex/arabtex/arabart.cls
> >>
> > Nothing of this sort!
> >
> > It appears to be part of the package: texlive-langextra
> > which doesn't seem to be in Ubuntu
> >
> > Running "apt-cache search texlive" results in finding:
> >
> > texlive-lang-arabic - TeX Live: Arabic
> >
> > Installing it didn't change anything in LyX. Still no Article[Arabic]!
> >
> > I guess we need ArabTex:
> > http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm
> >
> > In this I need help; I prefer to use Ubuntu's repositories unless it is
> > not possible at all.
> >
> >> Try looking for a file called arabart.cls and see if you can find it in
> >> your system.
> >> Which platform are you on? Linux, Mac, Windows? Instructions for the
> >> installation of missing packages vary  depending on the platform.
> >
> > Not sure what parastoo is using as his system but mine is as stated
> above.
> >
> >>
> >> Cheers,
> >>
> >> Stefano
> >>
> >>
> >> On Tue, Feb 12, 2013 at 1:07 PM, Guy Rutenberg  >wrote:
> >>
> >>> Hi Parastoo,
> >>>
> >>> I've no experience using LyX with Arabic or Farsi, so I only guess.
> Have
> >>> you set the language correctly in Document->Settings->Language? At
> least
> >>> for Hebrew it's necessary.
> >>>
> >>> Regards,
> >>>
> >>> Guy
> >>>
> >>>
> >>> On 31 January 2013 00:05, Parastoo Mojabi  >wrote:
> >>>
> 
> 
>  On Wed, Jan 30, 2013 at 1:50 PM, Parastoo Mojabi <
>  parastoo.moj...@gmail.com> wrote:
> 
> > hi,
> >
> > hope you are doing great.
> >
> > I have difficulties making lyx in Farsi, I did as the internet
> saying,
> > but article[arabic] is un available in my document class, I paste
> > article-arabic.layout. every where but still doesnt work.
> > now my document is left to right which i wanted to be right to left
> and
> > the letters of arabic showing is wrong.
> >
> > please help me
> >

Re: lyx in arabic or persian

2013-02-13 Thread Parastoo Mojabi
Thank you so much Stefano, mine is working

I installed texlive-lang-arabic
reconfigured lyx
then
1. Start LyX, then in Tools --> Preferences go to Language Settings and
select Language. Change *Command start* to *\selectlanguage{arabic}*, and
change *Language package* to Custom, and enter*
\usepackage[farsi,arabic]{babel}* in the provided textfield.

2. Still in Tools --> Preferences, go to Output and select LaTeX, then
change *Use LaTeX font encoding* to *LAE,LFE* in the provided textfield.

3. Still in Tools --> Preferences, go to Editing and under Keyboard/Mouse
check the *Use keyboard map* option and for *First* select farsi from the
*.kmap files that are shown when hitting the Browse button.

4. Hit the Save button in the Preferences window then restart LyX.

5. Once you've re-opened LyX, open a new document then go to Document -->
Settings, and under *Document Class* select *article (Arabic)* from the
list..

6. Still in Document --> Settings, go to Language and select *Arabic (Arab
TeX)* as the *Language*, then change *Encoding* to Other and select *Unicode
(utf8)* as the encoding, then select *None* for the*Language package*
 option.

7. Hit the Apply button then close the Document Settings window

8. Now enter text in your document (which should be going from right to
left now), save the file as a LyX file, then select File --> Export --> PDF
(pdflatex). You should get a PDF with Arabic in it.


and now its working.

Thank you so much.







On Thu, Feb 14, 2013 at 7:11 AM, stefano franchi
wrote:

>
>
>
> On Wed, Feb 13, 2013 at 3:25 PM, Bob Merhebi  wrote:
>
>> Hello all,
>>
>> I'm joining you guys regarding writing Arabic in LyX. I know Arabic &
>> some LyX so I guess I can help.
>>
>> So far I have not used Arabic in LyX.
>>
>> On 02/12/2013 10:09 PM, stefano franchi wrote:
>> > I have no knowledge of Arabic, unfortunately, but following the
>> > instructions on the wiki seems to work for me, including right-to-left
>> > typing:
>>
>> Right-to-Left is not enough; Arabic is a complex language which requires
>> connecting letters and glyph formation. Here's an example from Scribus
>> which has been open for a long time & still not resolved (not sure why):
>> http://bugs.scribus.net/view.php?id=1079
>>
>>
> Cannot help here. I'm aware of the complexities of Arabic script, but I
> have no means to check if lyx (or, rather, Tex) gets it right. Sorry.
>
>
>> > http://wiki.lyx.org/Windows/Arabic
>> > It requires:
>> >
>> > 1. Setting the document class to Article(Arabic)
>>
>> Doesn't exist in my installation:
>>
>> LyX 2.0.5.1 (2012-11-03)
>> Ubuntu 12.04.2 LTS (x86_64)
>>
>> It appears to be part of the package: texlive-langextra
>> which doesn't seem to be in Ubuntu
>>
>> Running "apt-cache search texlive" results in finding:
>>
>> texlive-lang-arabic - TeX Live: Arabic
>>
>>
> This is a problem with Ubuntu (and Mint, which is Ubuntu based). In fact
> it is a problem with all Debian-based distros, as far as I know. The
> problem is that their packaged version of tex are:
>
> (1) Broken up in several packages, and the user often does not know which
> are required ofr the task at hand
>
> (2) Often well behind officially distributed versions. (When I stopped
> using Ubuntu it was 2 years behind.)
>
> My, very personal, recommendation is to stop using the Ubuntu-packaged
> version of tex and install manually Texlive instead. It used to be a
> complicated to manage your own Tex installation. Now that Texlive comes
> with its own distribution manager (called tlmgr --- tex live manager), it
> is much simpler
> However, I do understand that other users may have different preferences,
>
>
>
>> Installing it didn't change anything in LyX. Still no Article[Arabic]!
>>
>
>
> Every time you install a new latex package you need to reconfigure Lyx and
> restart it. Otherwise Lyx cannot use the newly installed package.
>
>
>
>> I guess we need ArabTex:
>> http://www2.informatik.uni-stuttgart.de/ivi/bs/research/arab_e.htm
>>
>
>
>> In this I need help; I prefer to use Ubuntu's repositories unless it is
>> not possible at all.
>>
>
>
> Arabtex should be in the package you installed: 
> texlive-lang-arab
> .Otherwise, you can install it from CTAN:
>
> http://www.ctan.org/tex-archive/language/arabtex
>
> (Or with the tex manager I mentioned above if you switch to your own
> texlive installation).
>
> If you install it  manually, remember that you must run texhash as a
> superuser afterwards. That is, you must open a terminal window and type the
> command
> sudo texhash
>
>
>
> > Try looking for a file called arabart.cls and see if you can find it in
> > your system.
> > Which platform are you on? Linux, Mac, Windows? Instructions for the
> > installation of missing packages vary  depending on the platform.
>
> Not sure what parastoo is using as his system but mine is as stated above.
>>
>>
> His system is Linux