Re: eLyxer and (web) typography

2009-06-16 Thread Guenter Milde
On 2009-06-15, Alex Fernandez wrote:
...
> ... let us see if we can get constructive and get
> something out of this discussion.

> What we can actually do is: you, or someone else who has taken the
> trouble to make the output look good on their favorite platform, can
> send me your CSS files (or a patch against mine). Then I can try to
> blend those in and still keep the sane look on Debian. Probably we can
> find a combination of fonts and sizes that look good on the most
> popular platforms. We can do it; we have already got the character set
> mostly right thanks to a similar effort by another user. Now is time
> for good typography!

You could also set up a repository for user-contributed CSS styles.

Günter



Re: IEEEtrans.sty different outputs for LyX 1.5 and 1.6

2009-06-16 Thread Hauser Helmut


Uwe Stöhr wrote:

Hauser Helmut schrieb:

Thanks for your response. I have attached the two lyx files and the 
two resulting pdf files.


ThePDFs are absolute identical here. Another user sees the same as he 
reported you.


Yes you are right - strange. I have a printed copy in front of me with 
the described differences.
I tried to reproduce it today but I failed. Now it works  for me, 
strange but with a happy end.

The problem is to know where was the problem?
Could it be, that I got the difference using accidentally a different 
export like PDF (ps2pdf) ?



The version 1.6 lyx file I got by exporting the 1.5 lyx file to plain 
LaTeX (attached too) and importing it later

with Lyx 1.6.


Why that? Open the file that you created with LyX 1.5.x with LyX 1.6.3 
and it will work.


Well it did not work for me since I used a workaround for the subfigure 
using some ERT and the 1.6.x version did not accept the way I did it.


(I see that your 1.6.x version used English as document language 
instead of Swedish and that the document preamble is missing.)



regards Uwe


Thanks a lot for your effort,
Best regards,
- helmut

--

Helmut Hauser
Institute for Theoretical Computer Sciences
Technische Universitaet Graz
Inffeldgasse 16b, I
A-8010 Graz, Austria
---
helmut.hau...@igi.tugraz.at
Tel: + 43 316 873-5821
Fax: + 43 316 873-5805
http://www.igi.TUGraz.at/helmut/





Re: eLyxer and (web) typography

2009-06-16 Thread Olivier Ripoll

Tim Michelsen wrote:

Hello,
I have see recten posts about eLyxer and become curious.

I would like to suggest to edit the standard stylesheet provided by
http://www.nongnu.org/elyxer/lyx.css

The text from the example is very difficult to read.


"very difficult to read": you are exaggerating, which is not a good way 
to start a sane discussion.


To my humble opinion, the generated html should follow the tradition of 
Lyx in creating readable, user-friedly and accessible documents.


I have transformed several of my documents with elyxer, and I do not see 
any of those being as bad as the words you use suggest. Perhaps that's 
due to your browser: IE8 does not render the page as good as FF3.



Here are some examples for web pages (personal selection):
* http://www.nvpit.nl/cms/
* http://robcomm.net/
* http://www.swaroopch.com/notes/Python

some hints on web typography:
* 
http://www.smashingmagazine.com/2009/03/18/10-principles-for-readable-web-typography/


This one is a good reference.
Elyxer clearly satisfies points 1,2,4,6,8,9
Point 7 is not relevant: that the content of the text.
Point 3 could be tweaked (see below)
Point 5 could be tweaked, but looks satisfying to me
Point 10 is more related to web site itself. Typically, you will choose 
the margins with the CSS or include the article within a bigger page. 
But default could be indeed changed. Margins depend a lot on the browser 
window size, the screen size...


* http://www.csarven.ca/web-typography


This one is quite funny: It is "very difficult to read" with its jagged 
right-border (due to fonts too large with respect to the column width). 
It breaks the flow of reading, making each line "single" within one 
paragraph. It also lacks depth in its hierarchy: there seems to be only 
two types of text: standard and and H2/H3 type. Bad example.


Honestly, if you were to actually say _what_ you think is wrong, then 
perhaps Alex could change it:
For instance, in Firefox, increasing a little the spacing above/below 
displayed equations could make them pop out better. To a lesser extent, 
that could be done with figures, but they are already coming quite nice 
out-of the text thanks to the frame the frame.


Typography rules are more guidelines than rules anyway: Newspapers are 
written with different rules (and different fonts... serif ones). 
Scientific journals use yet another. Magazines, another. Theatre plays, 
another. Cinema scripts, another. Human science, another. All are on one 
media however: paper. "Rules" depend mostly on the content. The rules 
coming with elyxer look like the transcription to the web on scientific 
papers' rules. When you use elyxer to transcribe a paper with 30+ 
equations (not counting the inline ones), it looks "great" and "very 
easy to read" (on FF3 on XP at least). I say that because I have one now 
opened as I write.


Best regards,

Olivier




lyx-users@lists.lyx.org

2009-06-16 Thread Matthias Bußjäger
Hello,
I have a question to Lyx 1.6.2 / 1.6.3 used on Windows XP.

If I type a text in Lyx there's a delay of approximately half a second to
one second between typing a character and the illustration in the display.
This is really annoying when writing a text speedy.
I also use Lyx on Debian. There it's in real-time and a pleasure to write!

So, can anyone tell me, what's the problem using Lyx on Windows XP ?

I found no bug report, is this problem only in my case?

Thanks


Re: lyx-users@lists.lyx.org

2009-06-16 Thread Pavel Sanda
Matthias Bußjäger wrote:
> Hello,
> I have a question to Lyx 1.6.2 / 1.6.3 used on Windows XP.
> 
> If I type a text in Lyx there's a delay of approximately half a second to
> one second between typing a character and the illustration in the display.
> This is really annoying when writing a text speedy.
> I also use Lyx on Debian. There it's in real-time and a pleasure to write!
> 
> So, can anyone tell me, what's the problem using Lyx on Windows XP ?
> 
> I found no bug report, is this problem only in my case?

from time to time somebody report this on a different platforms and its
usually problem to pinpoint where is the problem. which processes take
most cpu time when you type fastly in the task manager? there was problem
with speed on 1.6.2 and many child documents in 1.6.2, fixed in 1.6.3.
are your .lyx files placed on some net or usb device?

pavel


Re: eLyxer and (web) typography

2009-06-16 Thread Guenter Milde
On 2009-06-16, Olivier Ripoll wrote:

> "very difficult to read": you are exaggerating, which is not a good way 
> to start a sane discussion.

Agreed.

>> http://www.smashingmagazine.com/2009/03/18/10-principles-for-readable-web-typography/

> This one is a good reference.

...

>> * http://www.csarven.ca/web-typography

> This one is quite funny: It is "very difficult to read" with its jagged 
> right-border (due to fonts too large with respect to the column width). 
> It breaks the flow of reading, making each line "single" within one 
> paragraph. 

In my browser, this reference is shown with a larger column size
(in letters/line) than the smashingmagazine.

The collumn width changes with the size of the browser window, so
enlarging the window (or closing the bookmarks side bar) should solve
this issue for you too:

> ... Margins depend a lot on the browser 
> window size, the screen size...

The jagged right border (raggedright instead of block alignment) is actually
recommended in web design (and also used in example one).


> It also lacks depth in its hierarchy: there seems to be only 
> two types of text: standard and and H2/H3 type. 

Title + one section level seems appropriate for an article of this size
for me.

> Bad example.

Dont't think so. Rather an example to show that taste and perception
differs a lot.

> "Rules" depend mostly on the content. The rules coming with elyxer look
> like the transcription to the web on scientific papers' rules. When you
> use elyxer to transcribe a paper with 30+ equations (not counting the
> inline ones), it looks "great" and "very easy to read" (on FF3 on XP at
> least). 

Agreed.

regards

Günter



Re: eLyxer and (web) typography

2009-06-16 Thread Tim Michelsen
Dear all and especially Alex!

> > "very difficult to read": you are exaggerating, which is not a good way 
> > to start a sane discussion.
> 
> Agreed.
I deeply appologize for my strong words. They were not intended to offence.
You surely put a considerable amount of time into this.
Sorry.

I may coment more later on.

Best regards,
Timmie



Re: How to make table/figure not to span columns?

2009-06-16 Thread Uwe Stöhr

李猛 schrieb:


If I don't set the option  "span colums", I get the pdf without any
table/figure(using xelatex). Do your need the tex or output pdf file?


I need the LyX file.

regards Uwe


decreasing size of figure (.eps)

2009-06-16 Thread Wolfgang Engelmann
slightly off topic:
I have an eps formatted figure which is too large (45MB) which should go in a 
lyx document. Viewing it with kghostview shows it in the center of an about 
10 times larger field. 
I tried to reduce the size of the figure by exporting it in gimp to a .jpg 
format. However, this shrinks it to a few kb. What is the best way to get a 
resonable size (200-300 kb) and perhaps additionally to get rid of the large 
borders?

Wolfgang


Re: eLyxer and (web) typography

2009-06-16 Thread Olivier Ripoll

Guenter Milde wrote:

On 2009-06-15, Alex Fernandez wrote:
...

... let us see if we can get constructive and get
something out of this discussion.



What we can actually do is: you, or someone else who has taken the
trouble to make the output look good on their favorite platform, can
send me your CSS files (or a patch against mine). Then I can try to
blend those in and still keep the sane look on Debian. Probably we can
find a combination of fonts and sizes that look good on the most
popular platforms. We can do it; we have already got the character set
mostly right thanks to a similar effort by another user. Now is time
for good typography!


You could also set up a repository for user-contributed CSS styles.


It seems my previous post got lost, so I am reposting (with little 
changes), but without attaching the CSS file.


As example, by modifying line 5 of lyx.css from
font: x-small serif;
to
font: small sans-serif;

and then adding the line
font-family: serif;
to ".formula", the text is more web-styled (i.e. it uses sans-serif 
fonts (formulas stay in serif) and fonts are a little larger.


Best regards,

Olivier

PS: For windows users without python installed, modify the lyx->html 
line (see recent discussions)

from:
python $$s/scripts/elyxer.py $$i $$o
to:
python $$s/scripts/elyxer.py --css=lyx_sans.css $$i $$o

and drop the modified CSS (saved here as "lyx_sans.css") with the html file.



Re: Problem with Bibliography author-year style in document class

2009-06-16 Thread Tim Michelsen
> I do not know why the name of the author (Aiginger) is repeated so
remove that particular entry from the bib file.
Does it work then?
 
> I tried different encodings when I exported my references from citavi
> to bibtex (UTF-8, US-ASCII, Western European (ISO), ...) but nothing
> changed. Is there a specific encoding I should use?
I think that ISO should do.



Re: decreasing size of figure (.eps)

2009-06-16 Thread Uwe Stöhr

Wolfgang Engelmann schrieb:


slightly off topic:
I have an eps formatted figure which is too large (45MB) which should go in a 
lyx document.


Then you have a bitmap image that has only a header to be an EPS. Therefore I fear that a conversion 
to PDF wouldn't help.


I tried to reduce the size of the figure by exporting it in gimp to a .jpg 
format. However, this shrinks it to a few kb.


Start from this JPEG and use a program of your choice to resize it to e.g. 1024x768 Pixels. Finally 
save it as 8bit PNG.


regards Uwe


Bibliography format

2009-06-16 Thread Hesham Kamel
Hello,

Please, I am writing my thesis and
I want to have the word "pages" either to appear in the journal paper or
to disappear in the conferences because what happens right now is:

Conferences paper:
---
R. Happee, A. Janssen, E. Fraterman, J. Monster, and R. Happee. Application
of
MADYMO Occupant Models in LS-DYNA/MADYMO Coupling. In 4th European
LS-DYNA Users Conference, pages 3-10, 2003.

Journal paper:
---
P. N. Koch, T. W. Simpson, J. K. Allen, and F. Mistree. Statistical
approximations
for multidisciplinary design optimization: The problem of size. Journal of
Aircraft,
36(1):275-286, 1999.


Thank you,
Hesham


Re: Bibliography format

2009-06-16 Thread K. Elo
Hi!

Hesham Kamel wrote:
> Hello,
> 
> Please, I am writing my thesis and
> I want to have the word "pages" either to appear in the journal paper or
> to disappear in the conferences

Two suggestions:

1) Use another BibTex-style suitable for Your needs (e.g. Harvard).

2) Modify the existing BibTex-style You are using to modify the
formatting of references.

HTH,
Kimmo

P.S. Why not just delete the pages-fiels in every
conference-BibTex-entry -> pages are not included in the references...




Re: Need Verdana font for the PDF generated from Lyx

2009-06-16 Thread Parul Bali
Hi Ingar, Guenter,

Thanks very much for your inputs.

I finally used Xelatex to generate the PDF with Verdana font. It works very
well, except that it does not support the  `attachfile' package that I use
to attach files to the PDF document. Do you know of any other packages that
Xelatex supports, that can be used to attach files to the PDF.

I first generated a tex file from my Lyx file, and then added the following
lines to the tex file before running the Xelatex command to generate the
PDF.
*\usepackage{fontspec}
\setmainfont{Verdana}*


I got the following warning (however, the PDF got generated without any
attachments) -
"Package attachfile Warning: attachfile works _only_ with pdfLaTeX and
_only_ in

(attachfile)PDF-generating mode. For this run, placeholders
wil
l
(attachfile)be substituted for all attachfile commands.."



Many thanks in advance,

Parul

On Sat, Jun 13, 2009 at 8:16 PM, Guenter Milde wrote:

> If you really need Verdana, you must use XeTeX. This is not officially
> supported (yet) but there are workarounds. Search for XeTeX at the wiki
> (http://wiki.lyx.org).
>
> On 2009-06-13, Richard Talley wrote:
>
> > It can be hard to find typefaces that look excellent on paper and on
> > screen (and on both Windows and OS X). Sometimes I'll reset a document
> > in a different typeface when I print it out. The technical documents
> > I'm producing right now I'm putting in Bera (based on Vera Bitstream,
> > realist family) as a reasonable compromise.
>
> Bitstream Vera (or the extended version DejaVy) is the font used by
> OpenOffice: like Verdana it is designed for good appearance in both
> on-screen and printed documents. It is supported in LaTeX by the two
> packages 'bera' (Vera serif) and 'arev' (sans serif with math support).
>
> Günter
>
>


Re: decreasing size of figure (.eps)

2009-06-16 Thread Wolfgang Engelmann
Am Tuesday 16 June 2009 14:08:43 schrieben Sie:

Thanks Uwe,

but do you know why the 575kb sized jpg becomes after
convertion to .png 2.8MB?
(i used convert)

Wolfgang


> Wolfgang Engelmann schrieb:
> > slightly off topic:
> > I have an eps formatted figure which is too large (45MB) which should go
> > in a lyx document.
>
> Then you have a bitmap image that has only a header to be an EPS. Therefore
> I fear that a conversion to PDF wouldn't help.
>
> > I tried to reduce the size of the figure by exporting it in gimp to a
> > .jpg format. However, this shrinks it to a few kb.
>
> Start from this JPEG and use a program of your choice to resize it to e.g.
> 1024x768 Pixels. Finally save it as 8bit PNG.
>
> regards Uwe



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: decreasing size of figure (.eps)

2009-06-16 Thread Olivier Ripoll

Wolfgang Engelmann wrote:

Am Tuesday 16 June 2009 14:08:43 schrieben Sie:

Thanks Uwe,

but do you know why the 575kb sized jpg becomes after
convertion to .png 2.8MB?
(i used convert)


Hi,

jpeg is more aggressive than png: It compresses more, but destroys the 
image a little. png does not produce any artefact. You have no interest 
to convert a jpg to a png, because the png image will have the jpeg 
artefacts.

You could try to convert your eps to png.

- if your eps is a vectorial image, then it should not be so big and you 
could use it directly or convert it to pdf.

- if your eps contains an photo, then use jpeg.
- if your eps contains an picture, but not a photo (i.e. a non-vectorial 
drawing), you may prefer png to avoid jpeg artefacts.


Best regards,

Olivier



Re: decreasing size of figure (.eps)

2009-06-16 Thread Wolfgang Engelmann
Am Tuesday 16 June 2009 16:00:05 schrieb Olivier Ripoll:

Thanks, Oliver, for clarifying this

Wolfgang

> Wolfgang Engelmann wrote:
> > Am Tuesday 16 June 2009 14:08:43 schrieben Sie:
> >
> > Thanks Uwe,
> >
> > but do you know why the 575kb sized jpg becomes after
> > convertion to .png 2.8MB?
> > (i used convert)
>
> Hi,
>
> jpeg is more aggressive than png: It compresses more, but destroys the
> image a little. png does not produce any artefact. You have no interest
> to convert a jpg to a png, because the png image will have the jpeg
> artefacts.
> You could try to convert your eps to png.
>
> - if your eps is a vectorial image, then it should not be so big and you
> could use it directly or convert it to pdf.
> - if your eps contains an photo, then use jpeg.
> - if your eps contains an picture, but not a photo (i.e. a non-vectorial
> drawing), you may prefer png to avoid jpeg artefacts.
>
> Best regards,
>
> Olivier



-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Bibliography format

2009-06-16 Thread Vincent van Ravesteijn

Hesham Kamel schreef:

Hello,

Please, I am writing my thesis and
I want to have the word "pages" either to appear in the journal paper or
to disappear in the conferences because what happens right now is:

Conferences paper:
---
R. Happee, A. Janssen, E. Fraterman, J. Monster, and R. Happee. Application
of
MADYMO Occupant Models in LS-DYNA/MADYMO Coupling. In 4th European
LS-DYNA Users Conference, pages 3-10, 2003.
  


At least it is nice of you to cite my colleagues :).

Vincent


Re: eLyxer and (web) typography

2009-06-16 Thread rgheck

Olivier Ripoll wrote:

Tim Michelsen wrote:

Hello,
I have see recten posts about eLyxer and become curious.

I would like to suggest to edit the standard stylesheet provided by
http://www.nongnu.org/elyxer/lyx.css

The text from the example is very difficult to read.


"very difficult to read": you are exaggerating, which is not a good 
way to start a sane discussion.


Nor is starting a flame war a good way to continue one. Please try to 
keep this list civil.


Richard



Re: lyx-users@lists.lyx.org

2009-06-16 Thread Matthias Bußjäger

Pavel Sanda schrieb:

Matthias Bußjäger wrote:
  

Hello,
I have a question to Lyx 1.6.2 / 1.6.3 used on Windows XP.

If I type a text in Lyx there's a delay of approximately half a second to
one second between typing a character and the illustration in the display.
This is really annoying when writing a text speedy.
I also use Lyx on Debian. There it's in real-time and a pleasure to write!

So, can anyone tell me, what's the problem using Lyx on Windows XP ?

I found no bug report, is this problem only in my case?



from time to time somebody report this on a different platforms and its
usually problem to pinpoint where is the problem. which processes take
most cpu time when you type fastly in the task manager? there was problem
with speed on 1.6.2 and many child documents in 1.6.2, fixed in 1.6.3.
are your .lyx files placed on some net or usb device?

pavel
  


I just tried it again with a new document on my internal hdd in Lyx 1.6.3.
If I just type lots of characters in really short time, lyx needs longer 
to illustrate the text in the display (I can watch the illustration of 
characters after stop typing). During this time Lyx needs 99% of the cpu 
time, so I don't wonder about this fact!

It's much better than in Lyx 1.6.2, but not as perfect as on Linux.
My system is a Thinkpad X41 with 1,5Gb Ram and 1,6GHz Pentium M CPU, 
this should be enough...


Matthias



Re: lyx-users@lists.lyx.org

2009-06-16 Thread Florian Rubach

Matthias Bußjäger schrieb:

Hello,
I have a question to Lyx 1.6.2 / 1.6.3 used on Windows XP.

If I type a text in Lyx there's a delay of approximately half a second to
one second between typing a character and the illustration in the display.
This is really annoying when writing a text speedy.
I also use Lyx on Debian. There it's in real-time and a pleasure to write!

So, can anyone tell me, what's the problem using Lyx on Windows XP ?

I found no bug report, is this problem only in my case?

Thanks


I experienced typing delay when I had the Latex-Source-windoe opened and 
both checkboxes activated (complete source and auto-update). Maybe you 
have unchecked the "complete source" on your debian machine.


Regards,
Florian


Re: lyx-users@lists.lyx.org

2009-06-16 Thread Matthias Bußjäger

Florian Rubach wrote:

Matthias Bußjäger schrieb:

Hello,
I have a question to Lyx 1.6.2 / 1.6.3 used on Windows XP.

If I type a text in Lyx there's a delay of approximately half a 
second to
one second between typing a character and the illustration in the 
display.

This is really annoying when writing a text speedy.
I also use Lyx on Debian. There it's in real-time and a pleasure to 
write!


So, can anyone tell me, what's the problem using Lyx on Windows XP ?

I found no bug report, is this problem only in my case?

Thanks


I experienced typing delay when I had the Latex-Source-windoe opened 
and both checkboxes activated (complete source and auto-update). Maybe 
you have unchecked the "complete source" on your debian machine.


Regards,
Florian
Thanks for answering, I already tried this without a change of behaviour 
(in Lyx 1.6.2 this was a big change in behaviour).
I really would like to use Lyx only on Linux, but at work there's only 
Windows XP where I can write my Thesis.

Perhaps I should write it in Word and import the text at home on Linux...

Regards,
Matthias



Re: lyx-us...@...

2009-06-16 Thread Jworkerbee
Matthias Bußjäger  writes:
> Perhaps I should write it in Word and import the text at home on Linux...


Not sure this discovery of mine is relevant, but this note might be useful to
those that do not have access to a good working lyx on *all* machines...Perhaps
 use any plain text editor with use of PANDOC format.  

Pandoc, a variant of markdown syntax, is a quick way to make plain text to tex
file to a larger lyx document on your main machine.  Pandoc can accept headings,
links, and other key formatting you need when making a draft. Plus it can accept
latex/ERT in the body of text, etc.  I use it on systems that I do not have lyx
installed on (linux servers without X, temporary PCs, etc,)

Also for short documents, one can use it to --in one command--go from
text to nicely formatted pdfs via latex underneath. One can output text to many
other formats. 

http://johnmacfarlane.net/pandoc/



Re: lyx-users@lists.lyx.org

2009-06-16 Thread Pavel Sanda
Matthias Bußjäger wrote:
> characters after stop typing). During this time Lyx needs 99% of the cpu 
> time, so I don't wonder about this fact!

it is exactly the lyx.exe process right?

> My system is a Thinkpad X41 with 1,5Gb Ram and 1,6GHz Pentium M CPU, this 
> should be enough...

i think 1.6ghz pentium should be enough. when happens if you make the lyx
screen half-sized?

(outliner is switched too i suppose...)
pavel


Sweave+Linux+Ubuntu 9.04 setting up

2009-06-16 Thread Graham Smith
Having got Sweave working on my Mac, I am now trying to get to work on 
Ubuntu.


I have followed the instructions on the Lyx Wiki, but...

I am getting an error "An error occurred whilst running Rweave 'newfile1.nw'

So this leads me to a couple of questions:

The instructions from the Wiki says to save Rweave  in "your path" . I 
assumed that dropping this into  my home directory would be enough, but 
maybe I need advice as to where to put this.


Setting up the converter, the Wiki says to set up noweb ->latex, but 
there is no latex. I have chosen latex(plain) but is this correct.


Many thanks,

Graham


Re: Sweave+Linux+Ubuntu 9.04 setting up

2009-06-16 Thread Graham Smith

To reply to myself.  I copied the Rweave file into usr/bin and all is well.

If this wasn't the right thing to do, I will still appreciate some advice.

Also the PDF compile doesn't work, it does on the Mac. Should I set up a 
converter for noweb->pdflatex as well, or will that not work.


Thanks,

Graham

Graham Smith wrote:
Having got Sweave working on my Mac, I am now trying to get to work on 
Ubuntu.


I have followed the instructions on the Lyx Wiki, but...

I am getting an error "An error occurred whilst running Rweave 
'newfile1.nw'


So this leads me to a couple of questions:

The instructions from the Wiki says to save Rweave  in "your path" . I 
assumed that dropping this into  my home directory would be enough, 
but maybe I need advice as to where to put this.


Setting up the converter, the Wiki says to set up noweb ->latex, but 
there is no latex. I have chosen latex(plain) but is this correct.


Many thanks,

Graham


--
Graham M Smith
graham.sm...@myotis.co.uk

Station Cottage, Station Road
Binegar, Somerset
BA3 4UQ




RE: Need Verdana font for the PDF generated from Lyx

2009-06-16 Thread Ingar Pareliussen

Hi

Sorry, I have not used Xetex yet, so I do not know. But
maybe you can use http://www.accesspdf.com/pdftk/
to fix your attachments in a post process?

However, I haven't used that either, so how 
good a fit it is I do not know.

Ingar


Re: eLyxer and (web) typography

2009-06-16 Thread Alex Fernandez
Hi again,

On Tue, Jun 16, 2009 at 11:57 AM, Tim
Michelsen wrote:
> Dear all and especially Alex!
> I deeply appologize for my strong words. They were not intended to offence.

No need to apologize, they were taken in good sport. You are obviously
not trying to offend anyone but to improve eLyXer. A good shake-up was
probably needed to improve typography, which on some browsers is
indeed lacking. You tried to help with your links too; the only
missing piece was perhaps some (CSS) code accompanying your words and
showing your ideas. But Olivier was kind enough to supply that.

> You surely put a considerable amount of time into this.
> Sorry.

Do not worry, I (and surely the rest) have a lot of fun using and
developing eLyXer. My ultimate goal is that people (me included) find
it useful, so I would just encourage you to contribute any further
ideas you have.

Alex.


Re: Sweave+Linux+Ubuntu 9.04 setting up

2009-06-16 Thread Liviu Andronic
Hello Graham,

On Tue, Jun 16, 2009 at 8:26 PM, Graham Smith wrote:
> Having got Sweave working on my Mac, I am now trying to get to work on
> Ubuntu.
>
> I have followed the instructions on the Lyx Wiki, but...
>
I would tend to believe that nowadays the preferred approach to get
LyX working with Sweave is Gregor Gorjanc's [1]; make sure to read his
article in Rnews. For pointers to other approaches please check the
documentation of Rcmdr.Export [2]. From recent ML discussions, there
are plans to introduce out of the box support for Sweave via LyX'
modules. It might be coming any time soon.
Best,
Liviu

[1] http://gregor.gorjanc.googlepages.com/lyx-sweave
[2] 
http://cran.r-project.org/web/packages/RcmdrPlugin.Export/RcmdrPlugin.Export.pdf


Re: eLyxer and (web) typography

2009-06-16 Thread Tim Michelsen
It seems my previous post got lost, so I am reposting (with little 
changes), but without attaching the CSS file.


As example, by modifying line 5 of lyx.css from
font: x-small serif;
to
font: small sans-serif;

and then adding the line
font-family: serif;
to ".formula", the text is more web-styled (i.e. it uses sans-serif 
fonts (formulas stay in serif) and fonts are a little larger.

Yes,
This kind of modifications incorporate more screen-friendly display.

Compare it to the beamer output versus beamer notes.



Re: Sweave+Linux+Ubuntu 9.04 setting up

2009-06-16 Thread Graham Smith

Thanks,

The irony is that I have just gone through those instructions setting 
Sweave up on my Mac.  I will have a relook at these and maybe undo what 
I have done.


Graham

Liviu Andronic wrote:

Hello Graham,

On Tue, Jun 16, 2009 at 8:26 PM, Graham Smith wrote:
  

Having got Sweave working on my Mac, I am now trying to get to work on
Ubuntu.

I have followed the instructions on the Lyx Wiki, but...



I would tend to believe that nowadays the preferred approach to get
LyX working with Sweave is Gregor Gorjanc's [1]; make sure to read his
article in Rnews. For pointers to other approaches please check the
documentation of Rcmdr.Export [2]. From recent ML discussions, there
are plans to introduce out of the box support for Sweave via LyX'
modules. It might be coming any time soon.
Best,
Liviu

[1] http://gregor.gorjanc.googlepages.com/lyx-sweave
[2] 
http://cran.r-project.org/web/packages/RcmdrPlugin.Export/RcmdrPlugin.Export.pdf
  


--
Graham M Smith
graham.sm...@myotis.co.uk

Station Cottage, Station Road
Binegar, Somerset
BA3 4UQ




Re: eLyxer and (web) typography

2009-06-16 Thread Alex Fernandez
Hi,

On Wed, Jun 17, 2009 at 12:19 AM, Tim
Michelsen wrote:
>> As example, by modifying line 5 of lyx.css from
>>    font: x-small serif;
>> to
>>    font: small sans-serif;
>>
>> and then adding the line
>>    font-family: serif;
>> to ".formula", the text is more web-styled (i.e. it uses sans-serif fonts
>> (formulas stay in serif) and fonts are a little larger.
>
> Yes,
> This kind of modifications incorporate more screen-friendly display.

I have updated the CSS file in version 0.27 following Olivier's suggestions:
  http://www.nongnu.org/elyxer/

Please let me know if you like the changes:
  http://www.nongnu.org/elyxer/math.html

Thanks,

Alex.


lmodern pdfs not sharp on-screen

2009-06-16 Thread Barankay, Iwan
Hi,
I am using the latest Lyx and chose lmodern (Latin Modern) as my default font. 
When I generate pdfs the font looks just not sharp on screen. It prints fine 
but I want it to look sharp on screen. I hunted through the mailing list but 
could not find a solution (e.g. adding lmodern to the preamble does not help). 
When I use Times the pdfs look sharp on screen but I would really like to keep 
the Latin Modern or something that looks like it.
Any suggestions?

Thanks,

Iwan


Re: lmodern pdfs not sharp on-screen

2009-06-16 Thread Guenter Milde
On 2009-06-17, Barankay, Iwan wrote:

> I am using the latest Lyx and chose lmodern (Latin Modern) as my default fo=
> nt. When I generate pdfs the font looks just not sharp on screen. It prints=
>  fine but I want it to look sharp on screen. I hunted through the mailing l=
> ist but could not find a solution (e.g. adding lmodern to the preamble does=
>  not help). When I use Times the pdfs look sharp on screen but I would real=
> ly like to keep the Latin Modern or something that looks like it.
> Any suggestions?

Latin Modern is not "screen optimized" but designed for print.

Have a look at the PDF examples in the TeX Font Catalogue and select a font
that suits your needs.

http://www.tug.dk/FontCatalogue/

Günter



Re: eLyxer and (web) typography

2009-06-16 Thread Guenter Milde
On 2009-06-17, Alex Fernandez wrote:

> I have updated the CSS file in version 0.27 following Olivier's suggestions:
>   http://www.nongnu.org/elyxer/

> Please let me know if you like the changes:

>   http://www.nongnu.org/elyxer/math.html

I like the changes.

But there are problems with the math:

Greek Symbols:
  are needed in roman (upright) and italic shapes
  (available as "Mathematical Alphanumeric Symbols" or via font-change)
  and in some cases (tensor symbols) sans-serif.

Spaces:
  Separate value and unit by a small space: 1-> 1/2 en
-en
2
Fonts:

  The Unicode block mathematical alphanumeric symbols provides style
  variants for Latin and Greek letters and digits. It is "to be used for
  mathematical variables where style variations are important
  semantically".
  
  However, only a few fonts support this Unicode Block. Maybe the
  --unicode option could switch to use of Unicode Math symbols
  generally and not only for the spaces.
  
  See [tr25].

  
  "Regular text is shown italicized. Variable: length, µ, Speed."
  
  While the statement is true and the behaviour right, the example is
  misleading: 
  
Variables should be one-letter symbols. Using full words like length
and Speed as variables is not recommended.
  
If full words are used as index (s_in, s_out), they should be set
upright (s_\mathrem{in}).

  See [fonts-for-symbols] and [typefaces]

SI units:
  Units must be set upright (and separated from the value by a space).
  Whether they use the math- or text font is not mandated (57 \mathrm{km}
  or or 57 \textrm{km} or 57 \text{km} or \siunit{57}{km}).
  
  See [SI-brochure].
  
Fractions:
  Would it be possible to have a smaller font size for inline fractions?
  
Arrays:
  The brackets are too small. You might use the "extendable" brackets
  provided by unicode block Miscellaneous Technical (which also
  provides big sum and integral symbols):
  
   ⎡1 2⎤
   ⎢3 4⎥
   ⎣5 6⎦
 
A more comprehensive test case would be the LyX Math Guide.

Günter

References:

[isomath] `isomath: Math for scientists`
ftp://dante.ctan.org/tex-archive/macros/latex/contrib/isomath/isomath.sty.html
ftp://dante.ctan.org/tex-archive/macros/latex/contrib/isomath/isomath.sty.pdf

[typefaces] `Typefaces for Symbols in Scientific Manuscripts`:
http://physics.nist.gov/Document/typefaces.pdf

[fonts-for-symbols] `On the use of italic and roman fonts for symbols in
scientific text`, (Revised December 1999):
http://old.iupac.org/standing/idcns/fonts_for_symbols.html

[SI-brochure] `The International System of Units (SI)`:
http://www.bipm.org/en/si/si_brochure/

[tr25] `Unicode Support for Mathematics`, Unicode Technical Report #25:
http://www.unicode.org/reports/tr25/





Re: eLyxer and (web) typography

2009-06-16 Thread Olivier Ripoll

Alex Fernandez wrote:

Hi,

On Wed, Jun 17, 2009 at 12:19 AM, Tim
Michelsen wrote:

As example, by modifying line 5 of lyx.css from
   font: x-small serif;
to
   font: small sans-serif;

and then adding the line
   font-family: serif;
to ".formula", the text is more web-styled (i.e. it uses sans-serif fonts
(formulas stay in serif) and fonts are a little larger.

Yes,
This kind of modifications incorporate more screen-friendly display.


I have updated the CSS file in version 0.27 following Olivier's suggestions:
  http://www.nongnu.org/elyxer/


Actually, I think you could do even better (more challenges) ;-). I 
haven't touched CSS for years, so there might be innacuracies in the 
following ideas.


The LyX user can choose its font-family in the documents settings. I'm 
not sure, but I think it's in the .lyx at the line:


\font_default_family sfdefault

It would be nice if elyxer could somehow parse that. I see several ways 
to do so:


1- maintain 2-3 CSS (one for sans, one for serif, perhaps one for 
monospace) and link to the relevant one.


2- use a CSS with things in common and another one with just the 
differences (in this case, the font-family attribute of the body element).


3- use a CSS for the common stuff (i.e. do not specify the font-family 
in the body element), and have elyxer add to the head

  
  body {
font-family: sans-serif;}
  

with the font-family mentionned in the lyx file.

I think solution 3 is by far the most elegant one. And it work on FF3 
and IE8.


It is then also possible to imagine elyxer parsing other attributes:
\paperfontsize 10
is most likely the line for the "base size", usually 10, 11 and 12 in 
the settings. That could help setting the base size (x-small, small, 
etc.) However, it might not be that good an idea...


What do you think ?

Best regards,

Olivier

PS: Of course, the .formula change should stay: equations never look 
good with a monospace or a sasn-serif font.




Please let me know if you like the changes:
  http://www.nongnu.org/elyxer/math.html

Thanks,

Alex.