Re: Spacing around floats with centered figures - a suggestion

2009-02-23 Thread Jürgen Spitzmüller
Dave Hewitt wrote:
 So is it true that the float widgets must remain left-aligned in the LyX
 view in order not to cause problems?

No, it's not true.

Jürgen


Problem reading (import) Mathcad html file

2009-02-23 Thread Waluyo Adi Siswanto
Dear LyX Users
I have a document written in Mathcad. From Mathcad there is a facility to
save as *.html file.
When I import  this *.html using LyX , an message appears

An error occurred whilst running java -jar htmltolatex.jar -input
'try.html' -output

( note: try.html is the name of the file)

How can I import codes written in Mathcad to LyX.
(PS. I never use import in LyX, this is first time for me to try Import
html. I tried in two different OS: Ubuntu and WindowsXP, I got the same
error message)

Thank you in advance for any enlightening information or help.
Regards / Was


Exporting to DOC or RTF

2009-02-23 Thread Dotan Cohen
I need to export a document for a MS Office user. I do not see an
option to export as DOC or RTF in Lyx 1.6, and PDF will not do because
he needs to annotate the document. The best info online that I could
find is this tedious document:
http://ubuntuforums.org/showpost.php?p=2755091postcount=2

Is there not a better way?

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Problem reading (import) Mathcad html file

2009-02-23 Thread Richard Heck

Waluyo Adi Siswanto wrote:

Dear LyX Users
I have a document written in Mathcad. From Mathcad there is a facility to
save as *.html file.
When I import  this *.html using LyX , an message appears

An error occurred whilst running java -jar htmltolatex.jar -input
'try.html' -output

( note: try.html is the name of the file)

How can I import codes written in Mathcad to LyX.
(PS. I never use import in LyX, this is first time for me to try Import
html. I tried in two different OS: Ubuntu and WindowsXP, I got the same
error message)

  
The way to debug these things is always the same: Do it from outside 
LyX, meaning from the command line. LyX is just calling an external 
program, in this case htmltolatex, and that's what's failing. LyX has 
nothing to do with it.


I guess the first question is whether you have htmltolatex correctly 
installed and whether it will translate simpler HTML files.


Richard



Re: How can I get rid the headings out of some pages?

2009-02-23 Thread Uwe Stöhr

Nikos Alexandris schrieb:


You can use the ERT command \pagestyle{plain} before the list of
figures command.


It works :-). But it works for the whole document :D.


Because you used \pagestyle and not \thispagestyle wich affects only the current page. To get back 
to your original definition add a \pagestyle{headings} or \pagestyle{fancy}, resp..


regards Uwe


About Tables in LyX?

2009-02-23 Thread Hesham Kamel
Hi,
Please, I want to know if there is a way to merge two cells in a column
under each others?
In LyX, you can only merge two cells in a row but not in a column.
I am using xls2latex but it does not work for merged cells.
Thank you,
H


Re: Dimensions of figure wrap float

2009-02-23 Thread Uwe Stöhr

Hubert Christiaen schrieb:

I find Lyx a very sophisticated program, but I am deceived by the way it 
handles figure wrap floats. Without correction, I have between 50 to 100% 
excess white space below the figure.


Can you please post a _small_ example LyX file?

(Btw. have you read the section about wrap floats in the EmbeddedObjects manual that you find in 
LyX's Help menu? There are some important notes one should know, because wrap floats are in LaTeX in 
every case a difficult thing.)


regards Uwe


Re: How can I get rid the headings out of some pages?

2009-02-23 Thread Waluyo Adi Siswanto
I think the easiest way to make it automatically in every transition page is
by adding the following command in the preamble.
The result is very accurate to get a blank but counted in every transitional
page. This is discussed in fancyhdr.pdf (documentation of LaTeX packages
fancyhdr) chapter 15.

\def\cleardoublepage{\clearpage...@twoside \ifod...@page\else
\hbox{}
\thispagestyle{empty}
\newpage
\...@twocolumn\hbox{}\newpage\fi\fi\fi}


You can replace empty to plain if you still want the page number, not
completely blank.

Regards
was


On Sun, Feb 22, 2009 at 8:07 PM, Nikos Alexandris 
nikos.alexand...@felis.uni-freiburg.de wrote:

 Yago:
  You can use the ERT command \pagestyle{plain} before the list of
  figures command.

 It works :-). But it works for the whole document :D.
 How do I get them (the headings) back for the next chapters?






-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


Re: Problems importing Tex file

2009-02-23 Thread Dotan Cohen
 The Fine Manual. It is a common TLA in many mailing lists.

 OK, and what is a TLA?


Three Letter Acronym!

 I suppose that _that_ is the detail that was not clear to me. I did
 not know that I need to have LaTeX packages installed in my LaTeX
 distribution. I'm still not sure what that _means_, but I have enough
 keywords to google on!

 A LaTeX distribution is the same as a Linux distribution, but instead of
 programs like a Linux distro it is a compound of packages.


I see.

 Yes. So just open TeXLive and go there to its package manager (and install
 svjour if it is available there). How it works should be self-explanatory or
 have a look at its documentation. When svjour is not offered by the package
 manager, then do what I wrote in my initial mail.


Thanks, I think that I can take it from here. Steep learning curves
don't frighten me!

 Thank you for your patience with this noob!

 What is a noob, another TLA thing?

A new user. :)

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


htlatex exported html footnotes

2009-02-23 Thread jf7


In Preferences  File Handling  Converters  LaTeX - HTML  I've been  
successfully using htlatex to export html files. And it works great  
except for one thing:


My original problem was that footnotes were all placed in  
separately-linked html files. I didn't like that. So I found an  
addition to the parameters that solved that --- the ,fn-in addition  
solved that.


htlatex $$i xhtml,fn-in

But now all of the footnotes -- not in dvi's nor pdf's but in html  
files -- are in italics. And I really don't like it.


I failed to find the parameter change or addition to correct this.  
Does anyone here know the secret?


thanks much,

jamie faunt





Re: discussion in lyx, or lyx for wikis

2009-02-23 Thread Helge Hafting

David Romano wrote:
I'm teaching a math class where the students use lyx to write down their 
ideas and proofs, and it would be nice to have a way to use lyx to post 
to a discussion or write in a wiki.  Has anybody had any success in 
doing something along these lines?  Do people have suggestions about 
discussion-oriented software that integrates well with lyx?


LyX has a plain text export. It exports formulas at latex code, so you 
get stuff like: This is my formula: \frac{1+x}{1-x}


If the readers are ok with latex formulas, just use that. Note that such 
a latex formula can be pasted into LyX again. Highlight it and hit 
ctrl+m, and it is Lyx math again!


If not, there are some other options:
* html export can be set up to create formula images.
  Many wikis lets you post images.
* Screendump software can capture rendered formulas, from the LyX
  window or from a pdf preview. This can then be uploaded to the wiki.
* Create a new export format adapted to the particular wiki. Some work,
  but then it can be used with very little effort.
* Upload lyx documents or pdf files to the wiki. LyX documents only
  if every participant has LyX, obviously.

Helge Hafting


Re: How can I get rid the headings out of some pages?

2009-02-23 Thread Nikos Alexandris
On Mon, 2009-02-23 at 10:04 +0800, Waluyo Adi Siswanto wrote:
 I think the easiest way to make it automatically in every transition page is
 by adding the following command in the preamble.
 The result is very accurate to get a blank but counted in every transitional
 page. This is discussed in fancyhdr.pdf (documentation of LaTeX packages
 fancyhdr) chapter 15.
 
 \def\cleardoublepage{\clearpage...@twoside \ifod...@page\else
 \hbox{}
 \thispagestyle{empty}
 \newpage
 \...@twocolumn\hbox{}\newpage\fi\fi\fi}
 
 
 You can replace empty to plain if you still want the page number, not
 completely blank.
 
 Regards
 was

Thanks was. This looks like the proper way to go about it. I managed to
get it done by manually adding ERT's but, it's tedious to do so for all
chapters.

Kind regards, Nikos




conversion of vector images to PDF was: Re: Dimensions of figure wrap float

2009-02-23 Thread Uwe Stöhr

Hubert Christiaen schrieb:

I recently discoverd the tips at the end of the math manual. Ther are several 
things which are not completely wright according to those instrauctions, but 
it's hard to change it all now.


No problem, my annotations are only tips. Typography is only important when you 
plan to publish your
text as book or so. (As it seems to be a text for students, you can hire a 
student to do the
formatting for you - this is the usual way it work here at my university.)

Some figure where made with an vector graphics package, but most where made 
with a paint program. Does an export from vectorgraphics to PDF really 
conserve the 'elasticity' of the vector graphics?


A PDFimage can be both, pixel and vector format. When you create a PDF from a 
vector image, the
elasticity is preserved. So when you convert from SVG, WMF, EMF, AI, or EPS 
format to PDF you get
a vector image. For example the program Inkscape can convert from SVG to PDF, 
Acrobat, eps2pdf,
or Ghostscript can convert from EPS to PDF, Adobe Illustrator can convert 
from EPS and AI to
PDF, and via the program Metafile2eps (comes with LyX on Windows) in 
combination with an EPS to
PDF converter program you can convert WMF and EMF to PDF.

regards Uwe



Printing is weird... funny hash lines

2009-02-23 Thread Kenward Vaughan
Sorry, I don't know whether this is LyX or LaTeX.  When I print out
documents generated by LyX, I see weird marks on the paper not seen in
the screen copy. They are horizontal, very small, and seem to mark the
heights of (some of) the characters on the page. Those capitals which
have it are most apparent, but some other lowercase letters have this
line as well.

Now all the lowercase t's now have cute forward hat visors on them
(for lack of a better way to describe it). 

I've narrowed the problem down to the use of the default font.  If I
choose Roman or Sans Serif for the font family it goes away.

???  What's messed up?  Who should I complain to?  This is Debian Sid
(behaving appropriately at the moment... ;-)

Thanks for any help!


Kenward


Re: Generating lindex entries

2009-02-23 Thread Helge Hafting

BcBob wrote:

I am looking for open source tools to help generating index entries. I know
Lyx has an interface to the Latex makeindex utility but I am looking for
utilities to generate a list of the words, phrases etc to use in the index.
Something as simple as a utility to find all unique words in the index with
pointers back to the original location in the file would help a lot. 


Such a tool could be useful in some cases - and just wrong in some 
other. For many kinds of book, you do _not_ want to index every place 
some word is used. Only those places that have important information 
about the concept.


Entries like this is of little use:
concept  25, 26, 28, 39, 42, 57 ,66-73, 78, 89-92, 104

Because the reader is not going to look up all that, and many of these 
places only mentions concept briefly. For most books, something like 
this is preferred:

concept  28, 66, 89

My editor told me never to index the same word more than 3 times. So I 
had to pick the most important sites. And when a word occur over and 
over in a multi-page discussion, just index the first page. The reader 
will then read the entire discussion anyway.


Of course there are some kinds of book where you may need to index every
occurence - but this is definitiely not a generic way of doing it.

Once I had a word to index, I found the search  replace dialog useful
for finding the word in the text.

Helge Hafting


Re: About Tables in LyX?

2009-02-23 Thread James C. Sutherland


On Feb 23, 2009, at 7:48 AM, Hesham Kamel wrote:


Hi,
Please, I want to know if there is a way to merge two cells in a  
column

under each others?
In LyX, you can only merge two cells in a row but not in a column.
I am using xls2latex but it does not work for merged cells.
Thank you,
H


The user manual Embedded Objects describes how to do this.


Re: Problem reading (import) Mathcad html file

2009-02-23 Thread Waluyo Adi Siswanto

 I guess the first question is whether you have htmltolatex correctly 
 installed and whether it will translate simpler HTML files.
 
 Richard
 

Yes you are correct, after installing html2latex from my Ubuntu synaptic
package manager (I found gnuhtml2latex), it works now. But i still don't
know why when I import html, I lost all figures (png). LyX imports the
text (but messy ... ok I can re arrange). 
For your info, when I save Mathcad file as html, all equations are
converted to pictures (*png), so I need to import all of them into LyX
in a proper order.

Thank you for any information related to this matter.
---
was




Re: Howto downgrade LyX 1.6.1 documents to LyX 1.5.5 documents?

2009-02-23 Thread Helge Hafting

Lance Simmons wrote:

On Wed, Feb 18, 2009 at 11:36 AM, Richard Heck rgh...@bobjweil.com
wrote:

Better yet, upgrade to 1.5.7 (I think that's the number...last
1.5.x anyway), which can read 1.6. docs.


The reason the issue about 1.5.5 came up is my switching from Debian
unstable to Debian stable (now that there's a new stable Debian
release).  If I'm going to switch back to unstable Debian, or a
stable/non-stable mix, I might as well keep LyX 1.6.1.


You are aware that it is possibly to install LyX 1.6.1 (and perhaps
a _few_ dependant packages) from unstable, without pulling in everything
else that is new in unstable?

So it is possible to have LyX 1.6.1, and everything else from stable.

Helge Hafting



Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Sun, Feb 22, 2009 at 07:30:51PM +0200, Dotan Cohen wrote:
 I need to export a document for a MS Office user. I do not see an
 option to export as DOC or RTF in Lyx 1.6, and PDF will not do because
 he needs to annotate the document. The best info online that I could
 find is this tedious document:
 http://ubuntuforums.org/showpost.php?p=2755091postcount=2

I didn't read that URL, but the best way I find is to export to
OpenDocument, open it in OpenOffice.org, fix the right-hand border (at
least, I always have to), and save it as a Word .doc file.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


search and replace within latex-environment

2009-02-23 Thread Leo Gürtler

Dear lyx list,

is it possible to search and replace within a latex environments?
See example attached to this mail. e.g. I want to change the a in the 
latex-environment to A.
Trying so shows me that I can not do this with searchreplace in Lyx, 
because the replace-button is not available within a latex environment 
anymore.


thanks for any suggestions,
greetings
leo


test_searchandreplace.lyx
Description: application/lyx


Re: Cross-reference + name of chapter/section

2009-02-23 Thread rgheck

Monthadar Al Jaberi wrote:

Hi!

Thank you for your replies.

I still can't see the name of the section when I make a cross-reference.

I have LyX 1.6.1 on Windows 2000
Document class: book
I made a label on section 2 in chapter 2.

The formats that I have available = result:
reference = 2.2
(reference) = (2.2)
page = 5
on page page = on page 5
reference on page page = 2.2 on page 5
formatted reference = Section 2.2

So none of them writes out the name of the section.

  

That's right. LyX can't do that right now.


And I don't know how to write in ERT. Can you give me some guideness?

  
You'll need to put \usepackage{nameref} into your preamble, under 
DocumentSettings, and then do: \nameref(LABEL}, in ERT where you want it.



Thank you!

P.S. I don't know how to answer back to the mailing list without
making it a new thread.

  

Just hit reply to all.

rh



Re: Exporting to DOC or RTF

2009-02-23 Thread Dotan Cohen
 I didn't read that URL, but the best way I find is to export to
 OpenDocument, open it in OpenOffice.org, fix the right-hand border (at
 least, I always have to), and save it as a Word .doc file.


Thanks. I do not seem to have an option to export to ODT. Must I add something?

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: English appearing backwards

2009-02-23 Thread Guenter Milde
On 2009-02-20, Dotan Cohen wrote:

...

 I have several different keyboard layouts defined. I activate the
 different keyboard layout and just start typing. The application
 handles directionality. Many applications have directionality issues,
 but I've never come across one in Linux that displayed text backwards
 (in Hebrew or English).
...
 - How could LyX guess whether I write German vs. English, or Russian vs.
   Bulgarian or Hebrew vs. Jiddish?

 Here is where I think that the term language is important to _not_
 be used. It doesn't matter in what language I'm writing, 

For LyX (or LaTeX) it is important to know in what language you are
writing. Not only the directionality, but also font encoding (while LyX
uses Unicode by now, LaTeX does not) and hyphenation depend on this. 

 but different alphabets have different directionality. 


 - Write a script that does both, changing the system setting and passing
   language ... to the LyXserver.

 No, from the characters, as stated above.

Still, a keyboard switch hotkey could also be programmed to send a
language changing command to lyx via the lyxserver.


 ... I will ask on the Israeli Linux list about Lyx and LaTex in Hebrew.
 I will file the appropriate bugs.

Fine.

I remember that one Israeli user reported to use an English keyboard
setting on the system level together with the hebrew kmap in LyX, so
this might be a starting point...

Günter



Re: English appearing backwards

2009-02-23 Thread Guenter Milde
On 2009-02-20, Dotan Cohen wrote:
 According to Wikipedia, Lyx has substantial support for bidirectional
 writing. So the problem is most likely with me, not with Lyx.

Not really.

It's a problem of both of you. Like the Greek support, bidi support in
LaTeX predates the advent of Unicode and modern day Desktop applications.
Therefore, while LyX supports bidirectional writing, it does not
necessarily do it in the best possible way. Pepole (users as well as
developers) that are used to the current implementation and people
without need for bidirectional writing will not recognize any problem. 

The way out is interest the developers into the problem. Laying the
blame entirely either on yourself or on LyX (any other app does the
right thing) might not get you there. Looking into the problem and filing
bug reports sounds like a better approach (and I see you go this way in
your followup... :-).

Günter



xy-pic oddities

2009-02-23 Thread Pol
While the single arrow in command
\xymatrix{A \ar[r] B}
is displayed by lyx, three arrow graph in command
\xymatrix{   p,a  \\ p \ar[r] \ar[ur] \ar[dr]   p,n  \\   p,e  }
is undisplayed (yet correctly printed out)

Any ideas?
Any matrix or array specifications needed in the preamble?

thank you
---P



Re: why doesn't \numberwithin{equation}{section} work?

2009-02-23 Thread Guenter Milde
On 2009-02-21, Paul A. Rubin wrote:
 Erez Yerushalmi wrote:

 I've been using  \numberwithin{equation}{section}   in the preamble for 
 quite some time. 
 Every time I open a new template, it takes me some time until the PDF 
 output doesn't get jammed with a crash.

 In Document  Settings...  Math Options, uncheck Use AMS math package 
 automatically and check Use AMS math package instead, and it will work.

Alternatively, write in your preamble

\usepackage{amsmath}
\numberwithin{equation}{section}

so everything required is in one place.  

AFAIK, LyX does not load amsmath with options, so the second
\usepackage{amsmath} included by the LyX-automatism will be silently
ignored. (If you get a package already loaded with options ... error,
my knowledge is wrong.)

Günter



Re: listings package problem

2009-02-23 Thread Guenter Milde
On 2009-02-22, Nikos Alexandris wrote:

 I guess it's a font-specific issue. Too bad because Bera looks great.

 Any other recommendation? Kind regards, Nikos

Txtt:

Set the typewriter font to Default in the GUI and write in the preamble

\renewcommand{\ttdefault}{txtt}


Günter



Re: Problems importing Tex file

2009-02-23 Thread Guenter Milde
On 2009-02-23, Uwe Stöhr wrote:
 Dotan Cohen schrieb:

 I suppose that _that_ is the detail that was not clear to me. I did
 not know that I need to have LaTeX packages installed in my LaTeX
 distribution. I'm still not sure what that _means_, but I have enough
 keywords to google on!

 A LaTeX distribution is the same as a Linux distribution, but instead
 of programs like a Linux distro it is a compound of packages.

However, a LaTeX distribution is usually a part of a Linux distribution.
Most modern day Linux distribution come with a re-packed TeXLive.

 Installing a LaTeX-package is easy when you use the package manager
 of your LaTeX distribution. 

Under Linux you should preferabely use the package manager of the
Linux distribution.

 As this is a Kubuntu system, should I assume that I am using TeXLive?

 Yes. So just open TeXLive and go there to its package manager ...

While I have a TeXLive based LaTeX installation on my Debian
GNU/Linux system, I cannot open TeXLive and the TeXLive package
manager is not part of my installation.

Under Debian (and I guess under the Debian-based Kubuntu too),
I will have to look for svjour with the Debian package manager (apt,
aptitude, synaptic, kpackage) or apt-file.

However, `apt-file find svjour` returned only:

lyx-common: /usr/share/lyx/layouts/svjour.inc
texmacs-common: /usr/share/texmacs/TeXmacs/styles/springer/svjour.ts

so it comes down to ...

 ... When svjour is not offered by the package manager, then do what I
 wrote in my initial mail.

Additional question: For latex, it is sufficient to have contributed
class and package files (like svjour.cls) in the work direc (pwd).
I understand that `lyx --configure` will only consider installed packages and
classes, but could tex2lyx be made aware of support files in the pwd?

Günter



Re: Removing languages

2009-02-23 Thread Guenter Milde
On 2009-02-22, Uwe Stöhr wrote:
 Dotan Cohen schrieb:

 When I write mixed Hebrew-English documents, I have to select the
 language for each span of text. There are tens of languages installed,
 how can I remove the unused languages from the dropdown list?

 This is not possible. 

Why not? Languages are defined in the languages config file that can be
copied to ~/.lyx/langauges and edited by any user. 

(I agree that this is not a supported feature and I do not know about
evil side-effects if I were to remove unwanted languages.)

 But why not defining a keyboard shortcut for the language change
 instead of using the dialog?

I agree that this is preferable.

IMO, there is room for a better UI than hiding language switching
under EditText-StyleCustom. 

Also, the apply last style button would become more useful if it would
not mix change of font size (or family) with change of language.

How about a separate toggle-language button? In most cases, a document
switches between at most 2 languages (native language and English, say). 

Günter



Re: missing fonts on ubuntu?

2009-02-23 Thread Guenter Milde
On 2009-02-20, Travis wrote:

 First, be aware that though I use lyx interactively to edit the
 document, I want to be able to generate the PDF and HTML versions from
 a script.  Basically I don't want to have to remember to export twice
 every time I make an update.

#! usb/bin/sh
lyx --export html FILENAME.lyx
lyx --export pdf FILENAME.lyx

Untested!!

Or bind a key to command sequence export pdf2; export html


 Besides, it turns out that my lyx file actually tickles a bug in older
 versions of tth.  The author has fixed the bug, and the latest version
 works fine.  However, this is not the version installed in the normal
 place on Ubuntu.  I considered updating the Debian package, but after
 looking at how much was involved in becoming a package maintainer I
 was put off.

 So basically I have to do it by hand; I call lyx to export in LaTeX,
 and then I call tth on the results.

Why not 

* uninstall the tth package and locally install tth and reconfigure LyX, or

* give the correct path to a locally installed tth in ToolsSettings ...
  Converters?
  

 The problem I have is that in both the PDF and HTML version, the table
 of contents isn't being updated.

Seems to be a followup of the font bug, so try to solve this first.

 I went back to try to call latex on the tex file, thinking that would
 regenerate the ToC (which is noticably out of date), but latex
 complains about missing fonts (see output below).


 Can anyone help me figure out a better way to do all this, or how to
 fix the specific problem?  I'm a little lost in all the cooperating
 files and programs here.

...

 (/usr/share/texmf-texlive/tex/latex/base/t1enc.def)kpathsea: Running mktextfm 
 ecrm1000
 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
 input ecrm1000
 This is METAFONT, Version 2.71828 (Web2C 7.5.6)
 kpathsea: Running mktexmf ecrm1000

mktextfm tries to generate a bitmap font

 ! I can't find file `ecrm1000'.
* ...ljfour; mag:=1; nonstopmode; input ecrm1000

and fails.

I would recommend a different font setting, e.g. DocumentSettingsFonts
  lmodern
  lmodern
  lmodern
  
  
Günter  



wiki upload password

2009-02-23 Thread Guenter Milde
could someone please mail me (in privat) the password for uploading content
to the lyx wiki? (Does this work for approving URLs too?)

Thanks,

Günter



Re: Problems importing Tex file

2009-02-23 Thread Abdelrazak Younes

Uwe Stöhr wrote:

Dotan Cohen schrieb:


What is TFM? Why are you unsure?


The Fine Manual. It is a common TLA in many mailing lists.


OK, and what is a TLA?


http://www.acronymfinder.com/TLA.html

Pickup your definition ;-)

Abdel.



Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Mon, Feb 23, 2009 at 05:41:27PM +0200, Dotan Cohen wrote:

 Thanks. I do not seem to have an option to export to ODT. Must I add
 something?

I think it's dependent on the version of LyX and LaTeX you have
installed.  It Just Works for me on the latest Debian stable.  I don't
know what's underpinning other releases (like Ubuntu).  I will note
that it seems completely broken on my Mac, but I think there's
something wrong with my LaTeX installation.

My Debian system is LyX v 1.5.5 and I have tex4ht (which is what does
the OOo conversion) 20080701-2.  Hope that helps.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Removing languages

2009-02-23 Thread Nikos Alexandris
On Mon, 2009-02-23 at 07:27 +, Guenter Milde wrote:
 On 2009-02-22, Uwe Stöhr wrote:
  Dotan Cohen schrieb:
 
  When I write mixed Hebrew-English documents, I have to select the
  language for each span of text. There are tens of languages installed,
  how can I remove the unused languages from the dropdown list?
 
  This is not possible. 
 
 Why not? Languages are defined in the languages config file that can be
 copied to ~/.lyx/langauges and edited by any user. 
 
 (I agree that this is not a supported feature and I do not know about
 evil side-effects if I were to remove unwanted languages.)
 
  But why not defining a keyboard shortcut for the language change
  instead of using the dialog?
 
 I agree that this is preferable.
 
 IMO, there is room for a better UI than hiding language switching
 under EditText-StyleCustom. 
 
 Also, the apply last style button would become more useful if it would
 not mix change of font size (or family) with change of language.
 
 How about a separate toggle-language button? In most cases, a document
 switches between at most 2 languages (native language and English, say). 
 
 Günter


+1 (from an end-user) for a separate _language_ button.

Nikos




Re: Problems importing Tex file

2009-02-23 Thread Dotan Cohen
2009/2/23 Guenter Milde mi...@users.berlios.de:
 On 2009-02-23, Uwe Stöhr wrote:
 Dotan Cohen schrieb:

 I suppose that _that_ is the detail that was not clear to me. I did
 not know that I need to have LaTeX packages installed in my LaTeX
 distribution. I'm still not sure what that _means_, but I have enough
 keywords to google on!

 A LaTeX distribution is the same as a Linux distribution, but instead
 of programs like a Linux distro it is a compound of packages.

 However, a LaTeX distribution is usually a part of a Linux distribution.
 Most modern day Linux distribution come with a re-packed TeXLive.

 Installing a LaTeX-package is easy when you use the package manager
 of your LaTeX distribution.

 Under Linux you should preferabely use the package manager of the
 Linux distribution.

 As this is a Kubuntu system, should I assume that I am using TeXLive?

 Yes. So just open TeXLive and go there to its package manager ...

 While I have a TeXLive based LaTeX installation on my Debian
 GNU/Linux system, I cannot open TeXLive and the TeXLive package
 manager is not part of my installation.

 Under Debian (and I guess under the Debian-based Kubuntu too),
 I will have to look for svjour with the Debian package manager (apt,
 aptitude, synaptic, kpackage) or apt-file.

 However, `apt-file find svjour` returned only:

 lyx-common: /usr/share/lyx/layouts/svjour.inc
 texmacs-common: /usr/share/texmacs/TeXmacs/styles/springer/svjour.ts


I was provided with a LaTeX Macro Package, with this content:

$ ls LaTeX_macro_package/pub/tex/latex/svjour3/global/
history.txt  svglov3.clo  template.tex  usrguid3.pdf
readme.txt   svjour3.cls  usrguid3.dvi

 so it comes down to ...

 ... When svjour is not offered by the package manager, then do what I
 wrote in my initial mail.

 Additional question: For latex, it is sufficient to have contributed
 class and package files (like svjour.cls) in the work direc (pwd).
 I understand that `lyx --configure` will only consider installed packages and
 classes, but could tex2lyx be made aware of support files in the pwd?


I did try putting the Olga_Lavrenteva.tex file in the same directory
as the .cls file, alas it did no good.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: wiki upload password

2009-02-23 Thread Christian Ridderström

On Mon, 23 Feb 2009, Guenter Milde wrote:

could someone please mail me (in privat) the password for uploading 
content to the lyx wiki? (Does this work for approving URLs too?)


I've sent him the passwords off-list.

/Christian

--
Christian Ridderström   Mobile: +46-70 687 39 44

Re: Exporting to DOC or RTF

2009-02-23 Thread Nikos Alexandris

Dotan:
  Thanks. I do not seem to have an option to export to ODT. Must I add
  something?


Andrew:
 I think it's dependent on the version of LyX and LaTeX you have
 installed.  It Just Works for me on the latest Debian stable.  I don't
 know what's underpinning other releases (like Ubuntu).  I will note
 that it seems completely broken on my Mac, but I think there's
 something wrong with my LaTeX installation.
 
 My Debian system is LyX v 1.5.5 and I have tex4ht (which is what does
 the OOo conversion) 20080701-2.  Hope that helps.


You mean you just hit the export to ODT and voila... you open the ODT
and see the file you prepared with LyX (even if it needs corrctions
concerning appearance/structure etc.) ??

FWIW, I never managet to get any export besides some RTF once.
Kind regards, Nikos




Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Mon, Feb 23, 2009 at 05:28:14PM +0100, Nikos Alexandris wrote:

 You mean you just hit the export to ODT and voila... you open the ODT
 and see the file you prepared with LyX (even if it needs corrctions
 concerning appearance/structure etc.) ??

Yep.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Removing languages

2009-02-23 Thread Dotan Cohen
 How about a separate toggle-language button? In most cases, a document
 switches between at most 2 languages (native language and English, say).


++votes

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Mon, Feb 23, 2009 at 06:30:04PM +0200, Dotan Cohen wrote:
 Thanks, I am on Lyx 1.6.x on Kubuntu 8.04. I will install tex2ht and
 see how it goes.

I have 1.6.1 on my Mac, and while I have the menu item I have never
managed to get the export to work directly.  As I say, however, I
think it has something to do with my LaTeX installation.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: why doesn't \numberwithin{equation}{section} work?

2009-02-23 Thread Erez Yerushalmi
Thanks, that is useful!

I prefer keeping it organized in the preamble.

Erez



On Mon, Feb 23, 2009 at 7:34 AM, Guenter Milde mi...@users.berlios.dewrote:

 On 2009-02-21, Paul A. Rubin wrote:
  Erez Yerushalmi wrote:

  I've been using  \numberwithin{equation}{section}   in the preamble for
  quite some time.
  Every time I open a new template, it takes me some time until the PDF
  output doesn't get jammed with a crash.

  In Document  Settings...  Math Options, uncheck Use AMS math package
  automatically and check Use AMS math package instead, and it will
 work.

 Alternatively, write in your preamble

 \usepackage{amsmath}
 \numberwithin{equation}{section}

 so everything required is in one place.

 AFAIK, LyX does not load amsmath with options, so the second
 \usepackage{amsmath} included by the LyX-automatism will be silently
 ignored. (If you get a package already loaded with options ... error,
 my knowledge is wrong.)

 Günter




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


Re: listings package problem

2009-02-23 Thread Manveru
2009/2/22 Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de:
 [ I am posting a listing-related problem here instead of starting a new
 thread. ]

 I now realise how powerful is the listing package. I used some R code
 and setting the fonts to BeraMono gives a very nice and highlighted code
 in the output.

 There is only one *important* problem though: usually the _backticks_
 (used in *nix-like OSes to execute a command within, let's say, from
 another command) appear as to have a top-left to bottom-right direction.
 With my current setting (Typewriter font set to BeraMono and language
 set to _bash_) the _backticks_ look very similar to the... well, the
 _ticks_!

 I guess it's a font-specific issue. Too bad because Bera looks great.

 Any other recommendation? Kind regards, Nikos

If you use bash, there is another form of commands substitution other
than `backticks`. It is $(command) form. It may solve problems with
formatting and become more recognizable in your code examples.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: search and replace within latex-environment

2009-02-23 Thread Richard Heck

Leo Gürtler wrote:

Dear lyx list,

is it possible to search and replace within a latex environments?
See example attached to this mail. e.g. I want to change the a in 
the latex-environment to A.
Trying so shows me that I can not do this with searchreplace in Lyx, 
because the replace-button is not available within a latex environment 
anymore.


First, backup the LyX file. Then open it in a text editor. Then search 
and replace {a} with {A.}, or whatever you want.


More complicated cases may require more complex methods, e.g., a simple 
perl filter.


rh



Re: Exporting to DOC or RTF

2009-02-23 Thread Nikos Alexandris

Nikos:
  You mean you just hit the export to ODT and voila... you open the ODT
  and see the file you prepared with LyX (even if it needs corrctions
  concerning appearance/structure etc.) ??


Andrew:
 Yep.
 A


I have tex4ht installed under Ubuntu II / 64-bit. But no way to get it
working. Do you mind sharing you preferences (under File Handling)?
Cheers, Nikos



Re: English appearing backwards

2009-02-23 Thread Dotan Cohen
 For LyX (or LaTeX) it is important to know in what language you are
 writing. Not only the directionality, but also font encoding (while LyX
 uses Unicode by now, LaTeX does not) and hyphenation depend on this.


I see, I did not realize that LaTeX does not support unicode. I
suppose that it never will, from what I've been reading the past few
days it looks like there will be no new features added.

In any case, my language does not support hyphenation! Maybe that is
the reason that I hate reading hyphenated documents in English.

 No, from the characters, as stated above.

 Still, a keyboard switch hotkey could also be programmed to send a
 language changing command to lyx via the lyxserver.


I would very much like to know how to do that.

 ... I will ask on the Israeli Linux list about Lyx and LaTex in Hebrew.
 I will file the appropriate bugs.

 Fine.


No answers yet! But I will persist.

 I remember that one Israeli user reported to use an English keyboard
 setting on the system level together with the hebrew kmap in LyX, so
 this might be a starting point...


Would you happen to know his name, email address, or a text snippet
that I could google to find his post?

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Spacing around floats with centered figures - a suggestion

2009-02-23 Thread David Hewitt
  So is it true that the float widgets must remain left-aligned in the LyX
  view in order not to cause problems?
 
 No, it's not true.
 
 Jürgen

So how can we center those widgets without creating a space in the document
where they are located (when the float moves in the output)?





Re: Spacing around floats with centered figures - a suggestion

2009-02-23 Thread Jürgen Spitzmüller
David Hewitt wrote:
 So how can we center those widgets without creating a space in the document
 where they are located (when the float moves in the output)?

Reading your question again, it appears to me that I misread ot the first 
time. The float itself should not be aligned, that's correct. However, the 
float _content_ (e.g. images, tables) can be aligned by means of the paragraph 
dialog.

Jürgen


Re: Exporting to DOC or RTF

2009-02-23 Thread Richard Heck

Nikos Alexandris wrote:

Nikos:
  

You mean you just hit the export to ODT and voila... you open the ODT
and see the file you prepared with LyX (even if it needs corrctions
concerning appearance/structure etc.) ??
  



Andrew:
  

Yep.
A




I have tex4ht installed under Ubuntu II / 64-bit. But no way to get it
working. Do you mind sharing you preferences (under File Handling)?

  

Did you reconfigure? LyX should do this automatically.

rh



Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Mon, Feb 23, 2009 at 05:57:38PM +0100, Nikos Alexandris wrote:
 I have tex4ht installed under Ubuntu II / 64-bit. But no way to get it
 working. Do you mind sharing you preferences (under File Handling)?

I presume you mean Preferences/Converters (which is all I have here).  The 
LaTeX(plain)-OpenDocument converter is

htlatex $$I 'xhtml,ooffice' 'ooffice/! -cmozhtf' '-coo' '-cvalidate'

and an extra flag

needaux

This produces an opendoc file with no right margin.  It also does not
produce the Redlining from tracking changes (but I have a feeling
that's not implemented), and it makes an utter mess of
cross-references.  It's good enough for sharing with Wordies, though,
if you are prepared to reintegrate their changes manually.  

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Exporting to DOC or RTF

2009-02-23 Thread Nikos Alexandris
On Mon, 2009-02-23 at 12:23 -0500, Richard Heck wrote:
 Nikos Alexandris wrote:
  Nikos:

  You mean you just hit the export to ODT and voila... you open the ODT
  and see the file you prepared with LyX (even if it needs corrctions
  concerning appearance/structure etc.) ??

 
 
  Andrew:

  Yep.
  A
  
 
 
  I have tex4ht installed under Ubuntu II / 64-bit. But no way to get it
  working. Do you mind sharing you preferences (under File Handling)?
 

 Did you reconfigure? LyX should do this automatically.
 
 rh
 

Yes, I have installed the tex4ht package long ago. And never had luck
nor for odt export neither for html export.

Nikos



Re: listings package problem

2009-02-23 Thread Nikos Alexandris
On Mon, 2009-02-23 at 08:12 +, Guenter Milde wrote:
 On 2009-02-22, Nikos Alexandris wrote:
 
  I guess it's a font-specific issue. Too bad because Bera looks great.
 
  Any other recommendation? Kind regards, Nikos
 
 Txtt:
 
 Set the typewriter font to Default in the GUI and write in the preamble
 
 \renewcommand{\ttdefault}{txtt}
 
 
 Günter
 

Not bad (the font in general). Yet:

i. the backticks still look like ticks
ii. I loose the scale option which is there in the gui (I suppose I
can scale all typewriter fonts through the preamble as well)

Thanks, Nikos



Re: Exporting to DOC or RTF

2009-02-23 Thread Nikos Alexandris
On Mon, 2009-02-23 at 12:28 -0500, Andrew Sullivan wrote:
 On Mon, Feb 23, 2009 at 05:57:38PM +0100, Nikos Alexandris wrote:
  I have tex4ht installed under Ubuntu II / 64-bit. But no way to get it
  working. Do you mind sharing you preferences (under File Handling)?
 
 I presume you mean Preferences/Converters (which is all I have here).  The 
 LaTeX(plain)-OpenDocument converter is
 
 htlatex $$I 'xhtml,ooffice' 'ooffice/! -cmozhtf' '-coo' '-cvalidate'
 
 and an extra flag
 
 needaux
 
 This produces an opendoc file with no right margin.  It also does not
 produce the Redlining from tracking changes (but I have a feeling
 that's not implemented), and it makes an utter mess of
 cross-references.  It's good enough for sharing with Wordies, though,
 if you are prepared to reintegrate their changes manually.  
 
 A
 

Thank you for your time Andrew. Unfortunately it does not work for me.
Cheers, Nikos



Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Mon, Feb 23, 2009 at 06:52:32PM +0100, Nikos Alexandris wrote:
 
 Thank you for your time Andrew. Unfortunately it does not work for me.
 Cheers, Nikos

Hrm.  I wonder what's different about the environments, then.  Maybe
someone can suggest to us how to tell whether the same bits are
installed.

BTW, I was mistaken about it being Debian stable -- this is lenny.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Caption for Algorithm?

2009-02-23 Thread bigblop

When I insert and algorithm float the text in the caption appears as the
title (in the top) of the algorithm. I like having this title but would also
like to have a caption. Is it possible to get both the title at the top and
a caption in the bottom?
-- 
View this message in context: 
http://n2.nabble.com/Caption-for-Algorithm--tp2371057p2371057.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Apostrophe vs. Single quotation mark

2009-02-23 Thread mario m
Hi,

I am trying to type some PHP code (within a listing command). 
On a pdflatex output, I get a Single quotation mark when I type an
Apostrophe.
Where should I  look at to fix it?
Thanks 
Regards
mario

ps (bad cutpaste)
http://unicode.org/charts/PDF/U.pdf 
0027APOSTROPHE
   '
   = apostrophe-quote (1.0)
   = APL quote
   • neutral (vertical) glyph with mixed
usage  
   • 2019 ’ is preferred for apostrophe
   • preferred characters in English for paired
 quotation marks are 2018 ‘  2019 ’
   → 02B9 ʹ modifier letter prime
   → 02BC ʼ modifier letter apostrophe
   → 02C8 ˈ modifier letter vertical line
   → 0301 $́ combining acute accent
   → 2032 ′ prime
   → A78C ꞌ latin small letter saltillo

http://unicode.org/charts/PDF/U2000.pdf
2018   LEFT SINGLE QUOTATION MARK




Re: Exporting to DOC or RTF

2009-02-23 Thread Typhoon
On Mon, 23 Feb 2009 12:59:23 -0500
Andrew Sullivan a...@shinkuro.com wrote:

 On Mon, Feb 23, 2009 at 06:52:32PM +0100, Nikos Alexandris wrote:
  
  Thank you for your time Andrew. Unfortunately it does not work for
  me. Cheers, Nikos
 
 Hrm.  I wonder what's different about the environments, then.  Maybe
 someone can suggest to us how to tell whether the same bits are
 installed.
 
 BTW, I was mistaken about it being Debian stable -- this is lenny.

Also works for me on Debian Lenny with 1.6.1 compiled by hand.

tex4ht has a conversion script, oolatex. On my installation, that was
located at /usr/share/tex4ht/oolatex which was not on my execution
path. I made a symbolic link: 
ln -s /usr/share/tex4ht/oolatex /usr/local/bin/oolatex

I don't know if that is relevant for the LyX export function, but it is
helpful for converting plain latex files.

Alan
 
 A
 
 -- 
 Andrew Sullivan
 a...@shinkuro.com
 Shinkuro, Inc.
 


Re: xy-pic oddities

2009-02-23 Thread Pavel Sanda
Pol wrote:
 While the single arrow in command
 \xymatrix{A \ar[r] B}
 is displayed by lyx, three arrow graph in command
 \xymatrix{   p,a  \\ p \ar[r] \ar[ur] \ar[dr]   p,n  \\   p,e  }
 is undisplayed (yet correctly printed out)

i just tried to put your example into mathed and it works without any
additional tweaks (the only difference may be that i use 1.6svn  
version which will become 1.6.3 soon, so you can recheck).

pavel


Re: Apostrophe vs. Single quotation mark

2009-02-23 Thread Doug Laidlaw
On a keyboard, they are the same character.  If the code is HTML within your 
PHP, perhaps you should be using a ***; symbol.  Otherwise, I have never 
known it to matter.

Doug.

On Tuesday 24 February 2009 9:23:16 am mario m wrote:
 Hi,

 I am trying to type some PHP code (within a listing command).
 On a pdflatex output, I get a Single quotation mark when I type an
 Apostrophe.
 Where should I  look at to fix it?
 Thanks
 Regards
 mario

 ps (bad cutpaste)
 http://unicode.org/charts/PDF/U.pdf
 0027APOSTROPHE
'
= apostrophe-quote (1.0)
= APL quote
• neutral (vertical) glyph with mixed
 usage
• 2019 ’ is preferred for apostrophe
• preferred characters in English for paired
  quotation marks are 2018 ‘  2019 ’
→ 02B9 ʹ modifier letter prime
→ 02BC ʼ modifier letter apostrophe
→ 02C8 ˈ modifier letter vertical line
→ 0301 $́ combining acute accent
→ 2032 ′ prime
→ A78C ꞌ latin small letter saltillo

 http://unicode.org/charts/PDF/U2000.pdf
 2018   LEFT SINGLE QUOTATION MARK




Re: Problem reading (import) Mathcad html file

2009-02-23 Thread Waluyo Adi Siswanto
 Is there no possibility of exporting the Mathcad files to Tex? or to the 
 syntax of some algebraic package which is close to Tex and could be easily 
 converted?  It's not so interesting to have all formulas as PNG pictures in 
 Lyx.
 
 Sincerely,
 Hubert
 
As far as I know i could not see to save as TeX or MathML .. there are
some other formats but I think they are other mathcad formats: xmcd, or
to different mathcad older versions (version 12, 11)
Importing png pictures is so tiring and I have to arrange them in LyX,
but this is the only way (for the time being) to work in LyX.
I keep on searching a better way to convert mathcad to latex then
imported to LyX. So if anyone knows ..please 
---
was



Re: Apostrophe vs. Single quotation mark

2009-02-23 Thread Doug Laidlaw
Alternatively to what I just wrote (which is still going through the system):

There is a distinction between typewriter characters (what you type) and 
typographical characters (what you see.)  On my US keyboard, I have only one 
key for both opening and closing quotes.  Lyx, OpenOffice and Microsoft 
Office will display an opening quote correctly, but it is the same ASCII 
character in each case.  Apparently there are different Unicode characters, 
but LateX probably relies on ASCII.

If that is so, there is nothing that you can do about it.  However it prints, 
the code should work, anyway.

Doug.

On Tuesday 24 February 2009 9:23:16 am mario m wrote:
 Hi,

 I am trying to type some PHP code (within a listing command).
 On a pdflatex output, I get a Single quotation mark when I type an
 Apostrophe.
 Where should I  look at to fix it?
 Thanks
 Regards
 mario

 ps (bad cutpaste)
 http://unicode.org/charts/PDF/U.pdf
 0027APOSTROPHE
'
= apostrophe-quote (1.0)
= APL quote
• neutral (vertical) glyph with mixed
 usage
• 2019 ’ is preferred for apostrophe
• preferred characters in English for paired
  quotation marks are 2018 ‘  2019 ’
→ 02B9 ʹ modifier letter prime
→ 02BC ʼ modifier letter apostrophe
→ 02C8 ˈ modifier letter vertical line
→ 0301 $́ combining acute accent
→ 2032 ′ prime
→ A78C ꞌ latin small letter saltillo

 http://unicode.org/charts/PDF/U2000.pdf
 2018   LEFT SINGLE QUOTATION MARK




Re: Caption for Algorithm?

2009-02-23 Thread Uwe Stöhr

bigblop schrieb:


When I insert and algorithm float the text in the caption appears as the
title (in the top) of the algorithm. I like having this title but would also
like to have a caption. Is it possible to get both the title at the top and
a caption in the bottom?


The thing you call title is already the caption, it only looks a bit different than other captions. 
For an alternative, have a look at the program code listing feature that is described in chapter 7 
of the EmbeddedObjects manual that you find in the Help menu. These listings can also have a caption.


regards Uwe


Re: search and replace within latex-environment

2009-02-23 Thread Uwe Stöhr

Leo Gürtler schrieb:


is it possible to search and replace within a latex environments?


Not yet, but in the next major LyX version, see
http://wiki.lyx.org/LyX/NewInLyX20
For now you can open your LyX file with a text editor and then replace.

regards Uwe


Re: Exporting to DOC or RTF

2009-02-23 Thread Waluyo Adi Siswanto


 Yes, I have installed the tex4ht package long ago. And never had luck
 nor for odt export neither for html export.

 Nikos

 I am in Ubuntu 8.04, I just know from this forum that LyX can export to
OpenDocument, with the help of LaTeX package tex4ht. I then installed
text4ht from Synaptic and it requires the dependent text4ht-common.
Perhaps you need to double check whether you installed  this common file,
not only tex4ht.
Now It works for me (after reconfigure LyX).. I can see File  Export 
OpenDocument. I tested ... yes it creates odt file which I can open in
OpenOffice 3.
---
was


Re: Exporting to DOC or RTF

2009-02-23 Thread Nikos Alexandris
On Tue, 2009-02-24 at 09:10 +0800, Waluyo Adi Siswanto wrote:
 
 
  Yes, I have installed the tex4ht package long ago. And never had luck
  nor for odt export neither for html export.
 
  Nikos
 
  I am in Ubuntu 8.04, I just know from this forum that LyX can export to
 OpenDocument, with the help of LaTeX package tex4ht. I then installed
 text4ht from Synaptic and it requires the dependent text4ht-common.
 Perhaps you need to double check whether you installed  this common file,
 not only tex4ht.
 Now It works for me (after reconfigure LyX).. I can see File  Export 
 OpenDocument. I tested ... yes it creates odt file which I can open in
 OpenOffice 3.
 ---
 was

Hi was!

Both tex4ht and -common installed. Also the entry OpenDocument is there
since long ago. Nothing works unfortunately. I don't have the time to
try tracing the problem currently.

Cheers, Nikos



Re: Exporting to DOC or RTF

2009-02-23 Thread rgheck

Typhoon wrote:

On Mon, 23 Feb 2009 12:59:23 -0500
Andrew Sullivan a...@shinkuro.com wrote:

  

On Mon, Feb 23, 2009 at 06:52:32PM +0100, Nikos Alexandris wrote:


Thank you for your time Andrew. Unfortunately it does not work for
me. Cheers, Nikos
  

Hrm.  I wonder what's different about the environments, then.  Maybe
someone can suggest to us how to tell whether the same bits are
installed.

BTW, I was mistaken about it being Debian stable -- this is lenny.



Also works for me on Debian Lenny with 1.6.1 compiled by hand.

tex4ht has a conversion script, oolatex. On my installation, that was
located at /usr/share/tex4ht/oolatex which was not on my execution
path. I made a symbolic link: 
ln -s /usr/share/tex4ht/oolatex /usr/local/bin/oolatex


I don't know if that is relevant for the LyX export function, but it is
helpful for converting plain latex files.

  

Absolutely relevant: If the program isn't in your path, LyX can't find it.

rh



Re: Exporting to DOC or RTF

2009-02-23 Thread rgheck

Nikos Alexandris wrote:

On Tue, 2009-02-24 at 09:10 +0800, Waluyo Adi Siswanto wrote:
  

Yes, I have installed the tex4ht package long ago. And never had luck
nor for odt export neither for html export.

Nikos

I am in Ubuntu 8.04, I just know from this forum that LyX can export to
  

OpenDocument, with the help of LaTeX package tex4ht. I then installed
text4ht from Synaptic and it requires the dependent text4ht-common.
Perhaps you need to double check whether you installed  this common file,
not only tex4ht.
Now It works for me (after reconfigure LyX).. I can see File  Export 
OpenDocument. I tested ... yes it creates odt file which I can open in
OpenOffice 3.
---
was



Hi was!

Both tex4ht and -common installed. Also the entry OpenDocument is there
since long ago. Nothing works unfortunately. I don't have the time to
try tracing the problem currently.

  
And you're sure it's in your path? Basically, the short version here is: 
Make sure it works from the command line; if not, it won't work in LyX; 
if yes, it should.


rh



How to get a modified Enumerate style?

2009-02-23 Thread Laser Yuan
Hi,

I need to write an description for an algorithm in my paper, which includes
several steps . Basically the Enumerate style will fit my purpose. Except
that I want a sequence like this:

Step 1 ...
   ...
Step 2
   ...

instead of

1. .
...
2. .
...

Any method could achieve this style? Thanks in advance!


Re: How to get a modified Enumerate style?

2009-02-23 Thread Florian Rubach


Laser Yuan schrieb:

Hi,

I need to write an description for an algorithm in my paper, which includes
several steps . Basically the Enumerate style will fit my purpose. Except
that I want a sequence like this:

Step 1 ...
   ...
Step 2
   ...

instead of

1. .
...
2. .
...

Any method could achieve this style? Thanks in advance!

Here's a way to do it:

-Put the statement \usepackage{enumerate} in your 
document-settings-LaTeX-Preamble (of course without quotation marks)


-At any point you want to start your enumeration do not use enumerate 
style, simply add some TeX-Code (Crtl+L): \begin{enumerate}[Step 1]. 
The statement in squared brackets is a prototype for your enumeration 
item, for other options google the docs of the enumerate package.


-In front of every item you want to enumerate, add again some TeX-Code: 
\item  (the blank character is needed)


-At the end of your customized enumeration, add in TeX-Code: 
\end{enumerate}


I don't know if there are simpler ways, but this should work...

Florian


Re: Spacing around floats with centered figures - a suggestion

2009-02-23 Thread Jürgen Spitzmüller
Dave Hewitt wrote:
 So is it true that the float widgets must remain left-aligned in the LyX
 view in order not to cause problems?

No, it's not true.

Jürgen


Problem reading (import) Mathcad html file

2009-02-23 Thread Waluyo Adi Siswanto
Dear LyX Users
I have a document written in Mathcad. From Mathcad there is a facility to
save as *.html file.
When I import  this *.html using LyX , an message appears

An error occurred whilst running java -jar htmltolatex.jar -input
'try.html' -output

( note: try.html is the name of the file)

How can I import codes written in Mathcad to LyX.
(PS. I never use import in LyX, this is first time for me to try Import
html. I tried in two different OS: Ubuntu and WindowsXP, I got the same
error message)

Thank you in advance for any enlightening information or help.
Regards / Was


Exporting to DOC or RTF

2009-02-23 Thread Dotan Cohen
I need to export a document for a MS Office user. I do not see an
option to export as DOC or RTF in Lyx 1.6, and PDF will not do because
he needs to annotate the document. The best info online that I could
find is this tedious document:
http://ubuntuforums.org/showpost.php?p=2755091postcount=2

Is there not a better way?

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: Problem reading (import) Mathcad html file

2009-02-23 Thread Richard Heck

Waluyo Adi Siswanto wrote:

Dear LyX Users
I have a document written in Mathcad. From Mathcad there is a facility to
save as *.html file.
When I import  this *.html using LyX , an message appears

An error occurred whilst running java -jar htmltolatex.jar -input
'try.html' -output

( note: try.html is the name of the file)

How can I import codes written in Mathcad to LyX.
(PS. I never use import in LyX, this is first time for me to try Import
html. I tried in two different OS: Ubuntu and WindowsXP, I got the same
error message)

  
The way to debug these things is always the same: Do it from outside 
LyX, meaning from the command line. LyX is just calling an external 
program, in this case htmltolatex, and that's what's failing. LyX has 
nothing to do with it.


I guess the first question is whether you have htmltolatex correctly 
installed and whether it will translate simpler HTML files.


Richard



Re: How can I get rid the headings out of some pages?

2009-02-23 Thread Uwe Stöhr

Nikos Alexandris schrieb:


You can use the ERT command \pagestyle{plain} before the list of
figures command.


It works :-). But it works for the whole document :D.


Because you used \pagestyle and not \thispagestyle wich affects only the current page. To get back 
to your original definition add a \pagestyle{headings} or \pagestyle{fancy}, resp..


regards Uwe


About Tables in LyX?

2009-02-23 Thread Hesham Kamel
Hi,
Please, I want to know if there is a way to merge two cells in a column
under each others?
In LyX, you can only merge two cells in a row but not in a column.
I am using xls2latex but it does not work for merged cells.
Thank you,
H


Re: Dimensions of figure wrap float

2009-02-23 Thread Uwe Stöhr

Hubert Christiaen schrieb:

I find Lyx a very sophisticated program, but I am deceived by the way it 
handles figure wrap floats. Without correction, I have between 50 to 100% 
excess white space below the figure.


Can you please post a _small_ example LyX file?

(Btw. have you read the section about wrap floats in the EmbeddedObjects manual that you find in 
LyX's Help menu? There are some important notes one should know, because wrap floats are in LaTeX in 
every case a difficult thing.)


regards Uwe


Re: How can I get rid the headings out of some pages?

2009-02-23 Thread Waluyo Adi Siswanto
I think the easiest way to make it automatically in every transition page is
by adding the following command in the preamble.
The result is very accurate to get a blank but counted in every transitional
page. This is discussed in fancyhdr.pdf (documentation of LaTeX packages
fancyhdr) chapter 15.

\def\cleardoublepage{\clearpage...@twoside \ifod...@page\else
\hbox{}
\thispagestyle{empty}
\newpage
\...@twocolumn\hbox{}\newpage\fi\fi\fi}


You can replace empty to plain if you still want the page number, not
completely blank.

Regards
was


On Sun, Feb 22, 2009 at 8:07 PM, Nikos Alexandris 
nikos.alexand...@felis.uni-freiburg.de wrote:

 Yago:
  You can use the ERT command \pagestyle{plain} before the list of
  figures command.

 It works :-). But it works for the whole document :D.
 How do I get them (the headings) back for the next chapters?






-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


Re: Problems importing Tex file

2009-02-23 Thread Dotan Cohen
 The Fine Manual. It is a common TLA in many mailing lists.

 OK, and what is a TLA?


Three Letter Acronym!

 I suppose that _that_ is the detail that was not clear to me. I did
 not know that I need to have LaTeX packages installed in my LaTeX
 distribution. I'm still not sure what that _means_, but I have enough
 keywords to google on!

 A LaTeX distribution is the same as a Linux distribution, but instead of
 programs like a Linux distro it is a compound of packages.


I see.

 Yes. So just open TeXLive and go there to its package manager (and install
 svjour if it is available there). How it works should be self-explanatory or
 have a look at its documentation. When svjour is not offered by the package
 manager, then do what I wrote in my initial mail.


Thanks, I think that I can take it from here. Steep learning curves
don't frighten me!

 Thank you for your patience with this noob!

 What is a noob, another TLA thing?

A new user. :)

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


htlatex exported html footnotes

2009-02-23 Thread jf7


In Preferences  File Handling  Converters  LaTeX - HTML  I've been  
successfully using htlatex to export html files. And it works great  
except for one thing:


My original problem was that footnotes were all placed in  
separately-linked html files. I didn't like that. So I found an  
addition to the parameters that solved that --- the ,fn-in addition  
solved that.


htlatex $$i xhtml,fn-in

But now all of the footnotes -- not in dvi's nor pdf's but in html  
files -- are in italics. And I really don't like it.


I failed to find the parameter change or addition to correct this.  
Does anyone here know the secret?


thanks much,

jamie faunt





Re: discussion in lyx, or lyx for wikis

2009-02-23 Thread Helge Hafting

David Romano wrote:
I'm teaching a math class where the students use lyx to write down their 
ideas and proofs, and it would be nice to have a way to use lyx to post 
to a discussion or write in a wiki.  Has anybody had any success in 
doing something along these lines?  Do people have suggestions about 
discussion-oriented software that integrates well with lyx?


LyX has a plain text export. It exports formulas at latex code, so you 
get stuff like: This is my formula: \frac{1+x}{1-x}


If the readers are ok with latex formulas, just use that. Note that such 
a latex formula can be pasted into LyX again. Highlight it and hit 
ctrl+m, and it is Lyx math again!


If not, there are some other options:
* html export can be set up to create formula images.
  Many wikis lets you post images.
* Screendump software can capture rendered formulas, from the LyX
  window or from a pdf preview. This can then be uploaded to the wiki.
* Create a new export format adapted to the particular wiki. Some work,
  but then it can be used with very little effort.
* Upload lyx documents or pdf files to the wiki. LyX documents only
  if every participant has LyX, obviously.

Helge Hafting


Re: How can I get rid the headings out of some pages?

2009-02-23 Thread Nikos Alexandris
On Mon, 2009-02-23 at 10:04 +0800, Waluyo Adi Siswanto wrote:
 I think the easiest way to make it automatically in every transition page is
 by adding the following command in the preamble.
 The result is very accurate to get a blank but counted in every transitional
 page. This is discussed in fancyhdr.pdf (documentation of LaTeX packages
 fancyhdr) chapter 15.
 
 \def\cleardoublepage{\clearpage...@twoside \ifod...@page\else
 \hbox{}
 \thispagestyle{empty}
 \newpage
 \...@twocolumn\hbox{}\newpage\fi\fi\fi}
 
 
 You can replace empty to plain if you still want the page number, not
 completely blank.
 
 Regards
 was

Thanks was. This looks like the proper way to go about it. I managed to
get it done by manually adding ERT's but, it's tedious to do so for all
chapters.

Kind regards, Nikos




conversion of vector images to PDF was: Re: Dimensions of figure wrap float

2009-02-23 Thread Uwe Stöhr

Hubert Christiaen schrieb:

I recently discoverd the tips at the end of the math manual. Ther are several 
things which are not completely wright according to those instrauctions, but 
it's hard to change it all now.


No problem, my annotations are only tips. Typography is only important when you 
plan to publish your
text as book or so. (As it seems to be a text for students, you can hire a 
student to do the
formatting for you - this is the usual way it work here at my university.)

Some figure where made with an vector graphics package, but most where made 
with a paint program. Does an export from vectorgraphics to PDF really 
conserve the 'elasticity' of the vector graphics?


A PDFimage can be both, pixel and vector format. When you create a PDF from a 
vector image, the
elasticity is preserved. So when you convert from SVG, WMF, EMF, AI, or EPS 
format to PDF you get
a vector image. For example the program Inkscape can convert from SVG to PDF, 
Acrobat, eps2pdf,
or Ghostscript can convert from EPS to PDF, Adobe Illustrator can convert 
from EPS and AI to
PDF, and via the program Metafile2eps (comes with LyX on Windows) in 
combination with an EPS to
PDF converter program you can convert WMF and EMF to PDF.

regards Uwe



Printing is weird... funny hash lines

2009-02-23 Thread Kenward Vaughan
Sorry, I don't know whether this is LyX or LaTeX.  When I print out
documents generated by LyX, I see weird marks on the paper not seen in
the screen copy. They are horizontal, very small, and seem to mark the
heights of (some of) the characters on the page. Those capitals which
have it are most apparent, but some other lowercase letters have this
line as well.

Now all the lowercase t's now have cute forward hat visors on them
(for lack of a better way to describe it). 

I've narrowed the problem down to the use of the default font.  If I
choose Roman or Sans Serif for the font family it goes away.

???  What's messed up?  Who should I complain to?  This is Debian Sid
(behaving appropriately at the moment... ;-)

Thanks for any help!


Kenward


Re: Generating lindex entries

2009-02-23 Thread Helge Hafting

BcBob wrote:

I am looking for open source tools to help generating index entries. I know
Lyx has an interface to the Latex makeindex utility but I am looking for
utilities to generate a list of the words, phrases etc to use in the index.
Something as simple as a utility to find all unique words in the index with
pointers back to the original location in the file would help a lot. 


Such a tool could be useful in some cases - and just wrong in some 
other. For many kinds of book, you do _not_ want to index every place 
some word is used. Only those places that have important information 
about the concept.


Entries like this is of little use:
concept  25, 26, 28, 39, 42, 57 ,66-73, 78, 89-92, 104

Because the reader is not going to look up all that, and many of these 
places only mentions concept briefly. For most books, something like 
this is preferred:

concept  28, 66, 89

My editor told me never to index the same word more than 3 times. So I 
had to pick the most important sites. And when a word occur over and 
over in a multi-page discussion, just index the first page. The reader 
will then read the entire discussion anyway.


Of course there are some kinds of book where you may need to index every
occurence - but this is definitiely not a generic way of doing it.

Once I had a word to index, I found the search  replace dialog useful
for finding the word in the text.

Helge Hafting


Re: About Tables in LyX?

2009-02-23 Thread James C. Sutherland


On Feb 23, 2009, at 7:48 AM, Hesham Kamel wrote:


Hi,
Please, I want to know if there is a way to merge two cells in a  
column

under each others?
In LyX, you can only merge two cells in a row but not in a column.
I am using xls2latex but it does not work for merged cells.
Thank you,
H


The user manual Embedded Objects describes how to do this.


Re: Problem reading (import) Mathcad html file

2009-02-23 Thread Waluyo Adi Siswanto

 I guess the first question is whether you have htmltolatex correctly 
 installed and whether it will translate simpler HTML files.
 
 Richard
 

Yes you are correct, after installing html2latex from my Ubuntu synaptic
package manager (I found gnuhtml2latex), it works now. But i still don't
know why when I import html, I lost all figures (png). LyX imports the
text (but messy ... ok I can re arrange). 
For your info, when I save Mathcad file as html, all equations are
converted to pictures (*png), so I need to import all of them into LyX
in a proper order.

Thank you for any information related to this matter.
---
was




Re: Howto downgrade LyX 1.6.1 documents to LyX 1.5.5 documents?

2009-02-23 Thread Helge Hafting

Lance Simmons wrote:

On Wed, Feb 18, 2009 at 11:36 AM, Richard Heck rgh...@bobjweil.com
wrote:

Better yet, upgrade to 1.5.7 (I think that's the number...last
1.5.x anyway), which can read 1.6. docs.


The reason the issue about 1.5.5 came up is my switching from Debian
unstable to Debian stable (now that there's a new stable Debian
release).  If I'm going to switch back to unstable Debian, or a
stable/non-stable mix, I might as well keep LyX 1.6.1.


You are aware that it is possibly to install LyX 1.6.1 (and perhaps
a _few_ dependant packages) from unstable, without pulling in everything
else that is new in unstable?

So it is possible to have LyX 1.6.1, and everything else from stable.

Helge Hafting



Re: Exporting to DOC or RTF

2009-02-23 Thread Andrew Sullivan
On Sun, Feb 22, 2009 at 07:30:51PM +0200, Dotan Cohen wrote:
 I need to export a document for a MS Office user. I do not see an
 option to export as DOC or RTF in Lyx 1.6, and PDF will not do because
 he needs to annotate the document. The best info online that I could
 find is this tedious document:
 http://ubuntuforums.org/showpost.php?p=2755091postcount=2

I didn't read that URL, but the best way I find is to export to
OpenDocument, open it in OpenOffice.org, fix the right-hand border (at
least, I always have to), and save it as a Word .doc file.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


search and replace within latex-environment

2009-02-23 Thread Leo Gürtler

Dear lyx list,

is it possible to search and replace within a latex environments?
See example attached to this mail. e.g. I want to change the a in the 
latex-environment to A.
Trying so shows me that I can not do this with searchreplace in Lyx, 
because the replace-button is not available within a latex environment 
anymore.


thanks for any suggestions,
greetings
leo


test_searchandreplace.lyx
Description: application/lyx


Re: Cross-reference + name of chapter/section

2009-02-23 Thread rgheck

Monthadar Al Jaberi wrote:

Hi!

Thank you for your replies.

I still can't see the name of the section when I make a cross-reference.

I have LyX 1.6.1 on Windows 2000
Document class: book
I made a label on section 2 in chapter 2.

The formats that I have available = result:
reference = 2.2
(reference) = (2.2)
page = 5
on page page = on page 5
reference on page page = 2.2 on page 5
formatted reference = Section 2.2

So none of them writes out the name of the section.

  

That's right. LyX can't do that right now.


And I don't know how to write in ERT. Can you give me some guideness?

  
You'll need to put \usepackage{nameref} into your preamble, under 
DocumentSettings, and then do: \nameref(LABEL}, in ERT where you want it.



Thank you!

P.S. I don't know how to answer back to the mailing list without
making it a new thread.

  

Just hit reply to all.

rh



Re: Exporting to DOC or RTF

2009-02-23 Thread Dotan Cohen
 I didn't read that URL, but the best way I find is to export to
 OpenDocument, open it in OpenOffice.org, fix the right-hand border (at
 least, I always have to), and save it as a Word .doc file.


Thanks. I do not seem to have an option to export to ODT. Must I add something?

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Re: English appearing backwards

2009-02-23 Thread Guenter Milde
On 2009-02-20, Dotan Cohen wrote:

...

 I have several different keyboard layouts defined. I activate the
 different keyboard layout and just start typing. The application
 handles directionality. Many applications have directionality issues,
 but I've never come across one in Linux that displayed text backwards
 (in Hebrew or English).
...
 - How could LyX guess whether I write German vs. English, or Russian vs.
   Bulgarian or Hebrew vs. Jiddish?

 Here is where I think that the term language is important to _not_
 be used. It doesn't matter in what language I'm writing, 

For LyX (or LaTeX) it is important to know in what language you are
writing. Not only the directionality, but also font encoding (while LyX
uses Unicode by now, LaTeX does not) and hyphenation depend on this. 

 but different alphabets have different directionality. 


 - Write a script that does both, changing the system setting and passing
   language ... to the LyXserver.

 No, from the characters, as stated above.

Still, a keyboard switch hotkey could also be programmed to send a
language changing command to lyx via the lyxserver.


 ... I will ask on the Israeli Linux list about Lyx and LaTex in Hebrew.
 I will file the appropriate bugs.

Fine.

I remember that one Israeli user reported to use an English keyboard
setting on the system level together with the hebrew kmap in LyX, so
this might be a starting point...

Günter



Re: English appearing backwards

2009-02-23 Thread Guenter Milde
On 2009-02-20, Dotan Cohen wrote:
 According to Wikipedia, Lyx has substantial support for bidirectional
 writing. So the problem is most likely with me, not with Lyx.

Not really.

It's a problem of both of you. Like the Greek support, bidi support in
LaTeX predates the advent of Unicode and modern day Desktop applications.
Therefore, while LyX supports bidirectional writing, it does not
necessarily do it in the best possible way. Pepole (users as well as
developers) that are used to the current implementation and people
without need for bidirectional writing will not recognize any problem. 

The way out is interest the developers into the problem. Laying the
blame entirely either on yourself or on LyX (any other app does the
right thing) might not get you there. Looking into the problem and filing
bug reports sounds like a better approach (and I see you go this way in
your followup... :-).

Günter



xy-pic oddities

2009-02-23 Thread Pol
While the single arrow in command
\xymatrix{A \ar[r] B}
is displayed by lyx, three arrow graph in command
\xymatrix{   p,a  \\ p \ar[r] \ar[ur] \ar[dr]   p,n  \\   p,e  }
is undisplayed (yet correctly printed out)

Any ideas?
Any matrix or array specifications needed in the preamble?

thank you
---P



Re: why doesn't \numberwithin{equation}{section} work?

2009-02-23 Thread Guenter Milde
On 2009-02-21, Paul A. Rubin wrote:
 Erez Yerushalmi wrote:

 I've been using  \numberwithin{equation}{section}   in the preamble for 
 quite some time. 
 Every time I open a new template, it takes me some time until the PDF 
 output doesn't get jammed with a crash.

 In Document  Settings...  Math Options, uncheck Use AMS math package 
 automatically and check Use AMS math package instead, and it will work.

Alternatively, write in your preamble

\usepackage{amsmath}
\numberwithin{equation}{section}

so everything required is in one place.  

AFAIK, LyX does not load amsmath with options, so the second
\usepackage{amsmath} included by the LyX-automatism will be silently
ignored. (If you get a package already loaded with options ... error,
my knowledge is wrong.)

Günter



Re: listings package problem

2009-02-23 Thread Guenter Milde
On 2009-02-22, Nikos Alexandris wrote:

 I guess it's a font-specific issue. Too bad because Bera looks great.

 Any other recommendation? Kind regards, Nikos

Txtt:

Set the typewriter font to Default in the GUI and write in the preamble

\renewcommand{\ttdefault}{txtt}


Günter



Re: Problems importing Tex file

2009-02-23 Thread Guenter Milde
On 2009-02-23, Uwe Stöhr wrote:
 Dotan Cohen schrieb:

 I suppose that _that_ is the detail that was not clear to me. I did
 not know that I need to have LaTeX packages installed in my LaTeX
 distribution. I'm still not sure what that _means_, but I have enough
 keywords to google on!

 A LaTeX distribution is the same as a Linux distribution, but instead
 of programs like a Linux distro it is a compound of packages.

However, a LaTeX distribution is usually a part of a Linux distribution.
Most modern day Linux distribution come with a re-packed TeXLive.

 Installing a LaTeX-package is easy when you use the package manager
 of your LaTeX distribution. 

Under Linux you should preferabely use the package manager of the
Linux distribution.

 As this is a Kubuntu system, should I assume that I am using TeXLive?

 Yes. So just open TeXLive and go there to its package manager ...

While I have a TeXLive based LaTeX installation on my Debian
GNU/Linux system, I cannot open TeXLive and the TeXLive package
manager is not part of my installation.

Under Debian (and I guess under the Debian-based Kubuntu too),
I will have to look for svjour with the Debian package manager (apt,
aptitude, synaptic, kpackage) or apt-file.

However, `apt-file find svjour` returned only:

lyx-common: /usr/share/lyx/layouts/svjour.inc
texmacs-common: /usr/share/texmacs/TeXmacs/styles/springer/svjour.ts

so it comes down to ...

 ... When svjour is not offered by the package manager, then do what I
 wrote in my initial mail.

Additional question: For latex, it is sufficient to have contributed
class and package files (like svjour.cls) in the work direc (pwd).
I understand that `lyx --configure` will only consider installed packages and
classes, but could tex2lyx be made aware of support files in the pwd?

Günter



Re: Removing languages

2009-02-23 Thread Guenter Milde
On 2009-02-22, Uwe Stöhr wrote:
 Dotan Cohen schrieb:

 When I write mixed Hebrew-English documents, I have to select the
 language for each span of text. There are tens of languages installed,
 how can I remove the unused languages from the dropdown list?

 This is not possible. 

Why not? Languages are defined in the languages config file that can be
copied to ~/.lyx/langauges and edited by any user. 

(I agree that this is not a supported feature and I do not know about
evil side-effects if I were to remove unwanted languages.)

 But why not defining a keyboard shortcut for the language change
 instead of using the dialog?

I agree that this is preferable.

IMO, there is room for a better UI than hiding language switching
under EditText-StyleCustom. 

Also, the apply last style button would become more useful if it would
not mix change of font size (or family) with change of language.

How about a separate toggle-language button? In most cases, a document
switches between at most 2 languages (native language and English, say). 

Günter



Re: missing fonts on ubuntu?

2009-02-23 Thread Guenter Milde
On 2009-02-20, Travis wrote:

 First, be aware that though I use lyx interactively to edit the
 document, I want to be able to generate the PDF and HTML versions from
 a script.  Basically I don't want to have to remember to export twice
 every time I make an update.

#! usb/bin/sh
lyx --export html FILENAME.lyx
lyx --export pdf FILENAME.lyx

Untested!!

Or bind a key to command sequence export pdf2; export html


 Besides, it turns out that my lyx file actually tickles a bug in older
 versions of tth.  The author has fixed the bug, and the latest version
 works fine.  However, this is not the version installed in the normal
 place on Ubuntu.  I considered updating the Debian package, but after
 looking at how much was involved in becoming a package maintainer I
 was put off.

 So basically I have to do it by hand; I call lyx to export in LaTeX,
 and then I call tth on the results.

Why not 

* uninstall the tth package and locally install tth and reconfigure LyX, or

* give the correct path to a locally installed tth in ToolsSettings ...
  Converters?
  

 The problem I have is that in both the PDF and HTML version, the table
 of contents isn't being updated.

Seems to be a followup of the font bug, so try to solve this first.

 I went back to try to call latex on the tex file, thinking that would
 regenerate the ToC (which is noticably out of date), but latex
 complains about missing fonts (see output below).


 Can anyone help me figure out a better way to do all this, or how to
 fix the specific problem?  I'm a little lost in all the cooperating
 files and programs here.

...

 (/usr/share/texmf-texlive/tex/latex/base/t1enc.def)kpathsea: Running mktextfm 
 ecrm1000
 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
 input ecrm1000
 This is METAFONT, Version 2.71828 (Web2C 7.5.6)
 kpathsea: Running mktexmf ecrm1000

mktextfm tries to generate a bitmap font

 ! I can't find file `ecrm1000'.
* ...ljfour; mag:=1; nonstopmode; input ecrm1000

and fails.

I would recommend a different font setting, e.g. DocumentSettingsFonts
  lmodern
  lmodern
  lmodern
  
  
Günter  



wiki upload password

2009-02-23 Thread Guenter Milde
could someone please mail me (in privat) the password for uploading content
to the lyx wiki? (Does this work for approving URLs too?)

Thanks,

Günter



Re: Problems importing Tex file

2009-02-23 Thread Abdelrazak Younes

Uwe Stöhr wrote:

Dotan Cohen schrieb:


What is TFM? Why are you unsure?


The Fine Manual. It is a common TLA in many mailing lists.


OK, and what is a TLA?


http://www.acronymfinder.com/TLA.html

Pickup your definition ;-)

Abdel.



  1   2   3   >