Re: trouble including Optima font

2009-11-10 Thread Guenter Milde
On 2009-11-09, Liviu Andronic wrote:

 Any ideas on what I am doing wrong? Thank you

Guessing: did you set the sans-serif font to [Default] in LyX's document
font setting dialogue?

Günter



Re: Problems including a document

2009-11-10 Thread Guenter Milde
On 2009-11-09, Manolo Martí­nez wrote:


 AFAIK, this is LyX's default behaviour.

 Did you try with DocumentLaTeX log after a compilation already

 No! I was relying on the error messages that appear after a failed 
 compilation. Thanks, this is very useful.

 So, let me reforumulate my suggestion with this in mind: it would be 
 nice if the Latex errors message box that appears contained a line 
 reading ... for more information, see DocumentLaTeX log.

Could you file a bug (enhancement) report at
http://www.lyx.org/trac/wiki/BugTrackerHome ?

Günter



Re: URL wraping - someone got it working?

2009-11-10 Thread Sven Hoexter
On Sun, Nov 08, 2009 at 09:38:33PM +, Guenter Milde wrote:
 On 2009-11-06, Sven Hoexter wrote:

Hello Guenter,

  With this settings it works for me, but you need to use
  Insert-Hyperlink instead of Insert-URL.
 
 If you want to wrap a long URL at sensible break-points (like /),
 you need the support of the url.sty package (which is loaded
 implicitely by hyperref.sty). With lyx, this means that URLs inserted with
 InsertURL are wrapped (at e.g. / but not at -) while URLs inserted with
 InsertHyperlink are not!

Uwe was kind enough to explain it to me in private mail after I provided
him the sample in question. After all just some expected missunderstanding
on my/our side.

Thanks to both of you for explaining it. :)

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Re: trouble including Optima font

2009-11-10 Thread Liviu Andronic
On 11/10/09, Guenter Milde mi...@users.berlios.de wrote:
 Guessing: did you set the sans-serif font to [Default] in LyX's document
  font setting dialogue?

Yes. Roman is set to Palatino, and Sans to [Default]. It makes no
difference if I choose some other Roman font, say LM: Optima will
still not be loaded.
Liviu


Re: Problems including a document

2009-11-10 Thread Manolo Martí­nez

Done: http://www.lyx.org/trac/ticket/6313

Manolo
So, let me reforumulate my suggestion with this in mind: it would be 
nice if the Latex errors message box that appears contained a line 
reading ... for more information, see DocumentLaTeX log.



Could you file a bug (enhancement) report at
http://www.lyx.org/trac/wiki/BugTrackerHome ?

Günter


  




lyx and pdf fonts

2009-11-10 Thread ask2

Hi
I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunaltely that never is the
case.

So am I just stupid or is there a way to get really high quality pdf from
LYX?

Main purpose is to read on the computer so both images and text should be
suitable for that.
I gues it means that I need ttf or otf fonts in the pdf?

I think I asked this 5-6 years ago but it seems nothing has changed :(

S back to Microsoft Word again :(

Best Regards
J

ps Win XP lyx 1.6 , miktex 2.8

-- 
View this message in context: 
http://n2.nabble.com/lyx-and-pdf-fonts-tp3979159p3979159.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-10 Thread Sebastian Rockel

Hello,

Used that binary for quite some time now (on SL 10.6.1) with moderate  
file size (30 pages).
I set the autosave to 1 min and noticed no slowdown, in fact it worked  
flawlessly.


Great work!

Sebastian

Am 04.11.2009 um 17:15 schrieb rgheck:


OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report  
back.
Also please report whether the autosave slowdown is bearable, or any  
strange

behaviour that might occur.




Re: lyx and pdf fonts

2009-11-10 Thread Manveru
2009/11/10 ask2 joakim.askl...@gmail.com:

 Hi
 I try out LYX maybe once a year. What I am looking for when I try it is if
 the pdf files I can get is of high quality. Unfortunaltely that never is the
 case.

 So am I just stupid or is there a way to get really high quality pdf from
 LYX?

 Main purpose is to read on the computer so both images and text should be
 suitable for that.
 I gues it means that I need ttf or otf fonts in the pdf?

 I think I asked this 5-6 years ago but it seems nothing has changed :(

 S back to Microsoft Word again :(

 Best Regards
 J

 ps Win XP lyx 1.6 , miktex 2.8

Do not feel offended, but I think you are lazy man. To get really high
quality PDF from LaTeX, you need minimal study about LaTeX and vector
fonts, microtype and images/pictures. LyX is not guilty of PDF quality
as it is only editor using LaTeX to produce results. Your lack of
knowledge is guilty in this case.

If you would like to kindy ask for help on this list I am sure lot of
people would help you with that, and you would get documents much
better that from Word. So... please stick with Word and never return.
Thank You!

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


Re: Drawing tool for LyX

2009-11-10 Thread Helge Hafting

Rich Shepard wrote:


  However, some figures need to have lines that meet very precisely (no
overshoots or gaps between them) or be placed with high precision. While
this may well be possible and easy for those more skilled than I am, I 
found

my xfig and similar figures to look sloppy when enlarged. The solution for
this is to code the image as one would code LaTeX,


Xfig has snap to grid modes, for square and triangular grids. This 
yields lines, boxes and circles where lines don't overshoot. Consider 
circles where the radius is a multiple of 5. Such a circle has 12

points around the edge where lines can end exactly on the circle.
Most other circles only have 4 such points.

Helge Hafting


Re: trouble including Optima font

2009-11-10 Thread Liviu Andronic
On 11/9/09, Liviu Andronic landronim...@gmail.com wrote:
  Any ideas on what I am doing wrong?

Hmm, I start doubting that I have it installed. Since LyX produced no
errors when compiling, I assumed that I did. But I cannot find
classico.txt [1], although I should have.
li...@debian-liv:~$ locate classico
/home/liviu/.opera/temporary_downloads/urw-classico.pdf
/usr/share/texmf/tex4ht/ht-fonts/alias/vntex/classicovn
/usr/share/texmf/tex4ht/ht-fonts/alias/vntex/classicovn/uop.htf

Apparently TeXLive 2007 does not ship Optima because of license issues
but allows, however, for a very easy install [2].
getnonfreefonts-sys -h
getnonfreefonts-sys -l
getnonfreefonts-sys classico

Now it works like a sweet. From what I see, Optima is a great sans
match for Palatino (or Pagella). They are so very similar, although
one is ostensibly a serif, and the other a sans. I attach the .lyx
file, and post the .pdf here [3].

Best
Liviu

[1] http://mirror.ctan.org/fonts/urw/classico/uop.zip
[2] http://www.tug.org/pipermail/tex-live/2009-January/019767.html
[3] http://s000.tinyupload.com/index.php?file_id=96955359283928853260


newfile1-tex-gyre-pagella-optima.lyx
Description: Binary data


Re: lyx and pdf fonts

2009-11-10 Thread Helge Hafting

ask2 wrote:

Hi
I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunaltely that never is the
case.

So am I just stupid or is there a way to get really high quality pdf from
LYX?


Yes. Make sure the default font is not a bitmap font. Unfortunately, the
default font is a bitmap font. You must change it.

So, go Document-Settings-Fonts and choose something else instead of
standard. There is Latin Modern if you like the look of the
standard font on paper, but want nice pdf. Or select something else
like Times Roman, Palatino, . . .

To avoid making this change for every document, save it as the new default.


Main purpose is to read on the computer so both images and text should be
suitable for that.


That took care of the text, now for the images. What exactly is the
problem with your images?

If you draw something, make vector graphics rather than bitmaps, if 
possible. If you need screenshots, use png. Never jpeg, jpeg is only

for photos.


I gues it means that I need ttf or otf fonts in the pdf?

I think I asked this 5-6 years ago but it seems nothing has changed :(


Nothing much need to change. Have been making quality PDFs for more than 
5-6 years. All you need is to know a few things, such as changing from 
the default font. Most software has a few things you need to know, and 
you can find it out on this mailing list if you want to.





S back to Microsoft Word again :(


Whatever you like. You'll be harder pressed making quality PDFs with 
word though.



Helge Hafting


Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-10 Thread Johannes Knaus

Hello back again,

I have tested the SL build on a bigger document (around 120 pages) and  
have experienced no crashes so far.


Unfortunately, we have been informed about a bad side effect of this  
fix:

http://marc.info/?l=lyx-develm=125777684408838w=2

We have to investigate further. Please be careful while using the  
test binary.


Jürgen


Wow, indeed.

Never hit the spellcheck button.

I tried it, too. That's really crashing the whole MacOSX session. I  
get a blue screen and then my usual login-dialogue-window just as if I  
restarted my mac.


Johannes.



Re: Problem on Ubuntu x86_64

2009-11-10 Thread Stefano Franchi
On 11/09/09, 刘霄 asranzalas...@gmail.com wrote:
I've got the following problem on Ubuntu 9.10 x86_64 :
-


Looks like the same problem I had last week (in my case, Kubuntu 9.10 X86_64). 
The solution is to install the boost-dev library and configure with --without-
internal-boost

Stefano




__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: lyx and pdf fonts

2009-11-10 Thread Luca Carlon
ask2 joakim.askl...@... writes:
 Hi
 I try out LYX maybe once a year. What I am looking for when I try it is if
 the pdf files I can get is of high quality. Unfortunaltely that never is the
 case.
 
 So am I just stupid or is there a way to get really high quality pdf from
 LYX?
 
 Main purpose is to read on the computer so both images and text should be
 suitable for that.

Sorry, but what do you mean by high quality? As far as I can see, my documents
are perfect. I can zoom to whatever level and quality is perfect. I use eps
graphics, and it is highest possible quality as well. Could it be your PDF
reader the problem?

Luca



Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

ask2 schrieb:


I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunately that never is the
case.


See http://wiki.lyx.org/FAQ/PDF#toc5


Main purpose is to read on the computer so both images and text should be
suitable for that.
I gues it means that I need ttf or otf fonts in the pdf?


Yes, you need vector fonts. The above link describes how to do that.

Btw. the LyX documentation files (except of the Intro manual) you find in the Help menu also use 
vector fonts, when they look OK for you, your documents will look OK too.



I think I asked this 5-6 years ago but it seems nothing has changed :(

S back to Microsoft Word again :(


Wow, you're giving up before you've got a reply to you email.

regards Uwe


Re: Standard Open/Save-Dialogs in Mac OS X?

2009-11-10 Thread Jean-Marc Lasgouttes
Peter Kämpf peter.kae...@gmail.com writes:
 the Aqua version of LyX uses the QT toolkit to display the usual open and
 save file dialogs. Unfortunately, these are somehow modified and not the
 genuine Carbon or Cocoa dialogs of the OS. Is there some way to get
 enhancements like St. Clair Sofware's Default Folder X 
 (http://www.stclairsoft.com/DefaultFolderX/index.html), which hook into
 the standard dialogs and make them MUCH better, running in LyX?
 This bothers me since the first Aqua versions ... has anyone found a
 solution for that?

Qt has support for this, but does not allow us to define our own button.
Therefore we do not use them now. We know how to work around this
problem, but this requires some work.

JMarc


textcomp Error: symbol \textuparrow not provided by

2009-11-10 Thread Sam Liddicott
Having just added a symbol up-arrow, every time I build my PDF, Lyx 
gives this error:


textcomp Error: symbol \textuparrow not provided by

(by is the last word of the error)

althought the PDF displays the arrow just fine.

The arrow is in a LyxCode environment, but further testing shows that it 
just hates doing an up-arrow within \ttfamily


as it works anyway, any tips to stop it complaining?

Sam


Re: textcomp Error: symbol \textuparrow not provided by

2009-11-10 Thread Uwe Stöhr

Sam Liddicott schrieb:

Having just added a symbol up-arrow, every time I build my PDF, Lyx 
gives this error:


textcomp Error: symbol \textuparrow not provided by

(by is the last word of the error)


Can you please provide a _small_ LyX example file?

regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Steve Litt
Good information here Helge...

On Tuesday 10 November 2009 08:12:37 Helge Hafting wrote:
 ask2 wrote:
  Hi
  I try out LYX maybe once a year. What I am looking for when I try it is
  if the pdf files I can get is of high quality. Unfortunaltely that never
  is the case.
 
  So am I just stupid or is there a way to get really high quality pdf from
  LYX?

 Yes. Make sure the default font is not a bitmap font. Unfortunately, the
 default font is a bitmap font. You must change it.

 So, go Document-Settings-Fonts and choose something else instead of
 standard. There is Latin Modern if you like the look of the
 standard font on paper, but want nice pdf. Or select something else
 like Times Roman, Palatino, . . .

Helge -- I've been using Century Schoolbook, which shows up as one of the 
choices with LyX as it comes with Mandriva and Ubuntu. Is Century Schoolbook a 
vector font? I found  Latin Modern too light and stringy.

 To avoid making this change for every document, save it as the new default.

  Main purpose is to read on the computer so both images and text should be
  suitable for that.

 That took care of the text, now for the images. What exactly is the
 problem with your images?

 If you draw something, make vector graphics rather than bitmaps, if
 possible. If you need screenshots, use png. Never jpeg, jpeg is only
 for photos.

I didn't know .png is a vector graphic. I've been converting graphics to PDF 
before using them -- PDF *is* a vector format after all, and it seems to scale 
well. However, it would be soo much easier to use .png. Thanks for the 
tip.

As far as the original poster, I've found that the output quality depends as 
much on the PDF reader as anything else. I've had docs that were beautiful on 
Acroread and ugly on xpdf, and others that were ugly on Acroread and beautiful 
on xpdf. I hate to admit it, but if my eBooks look good on Acroread, that 
satisfies 95% of my potential readers so I let it go that way.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




Re: lyx and pdf fonts

2009-11-10 Thread Rich Shepard

On Tue, 10 Nov 2009, Steve Litt wrote:


I didn't know .png is a vector graphic.


  It's not. It's bit-mapped, or raster.

Rich


Re: lyx and pdf fonts

2009-11-10 Thread Florian Rubach

Steve Litt schrieb:

I didn't know .png is a vector graphic.
It isn't. As Helge said, it's pretty useful if you need some pixel 
graphics with relatively large areas of similar colors like screenshots. 
It is relatively small and has lossless compression. For Photos, jpeg is 
better but has lossy compression, tends to introduce artefacts.

SteveT


Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

Steve Litt schrieb:


If you draw something, make vector graphics rather than bitmaps, if
possible. If you need screenshots, use png. Never jpeg, jpeg is only
for photos.


This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the difference is inly the compression 
method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format but many EPS images are 
only wrapped bitmap images. You can check of an image is a vector graphics by zooming into the 
image. When it becomes pixeled, it is a bitmap.


regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Stefano Franchi
On 11/10/09, Uwe Stöhr uwesto...@web.de wrote:
Steve Litt schrieb:
 If you draw something, make vector graphics rather than bitmaps, if
 possible. If you need screenshots, use png. Never jpeg, jpeg is only
 for photos.

This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the difference
 is inly the compression method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format
 but many EPS images are only wrapped bitmap images. 

Isn't the same true for PDF? You can wrap bitmap files in it, I think (e.g. 
when scanner software offer a Save as pdf option). File format in itself is 
not necessarily an indication of bitmap vs. vector graphics. With the possible 
exception of SVG, perhaps (which I use but am pretty ignorant about)?

S.
   





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: lyx and pdf fonts

2009-11-10 Thread Anders Host-Madsen
I get great PDF output, that can be scaled to
any size. The only thing I did was to set the encoding
to OT1. If you don't use international characters, that
should enable LaTeX to use vector fonts.





LyX, PDF Output and Image Quality

2009-11-10 Thread Rob Oakes
Hi Stefano,

Since I've been playing with this for the past few days, I thought I would
offer my findings so far.

SVG can also be used to wrap bitmap images, but I wouldn't recommend it.

For the professional writing book, I've been experimenting with support for
the different formats and trying to see which one offers the best output
(for both screen and print).  (Since there's an entire chapter dedicated to
images and exchanging data between programs, I've had plenty of time to
play.)  So far, the leader seems to be PDF (with EPS running a close second
place), at least when using pdflatex.  I've experienced occasional weirdness
when processing with XeTeX and still haven't been able to determine why.

Unfortunately, SVG doesn't fare so well.  At least on my Ubuntu 9.10 box,
LyX has a hard time converting the images for preview and LaTeX will produce
all kinds of strange output.  Especially if the SVG makes use of unsupported
tags.

And of course, both Inkscape and Adobe Illustrator will produce SVG with
tags that other applications don't recognize.  (And just because it is SVG
doesn't mean that another SVG editor will be able to read it.  See
http://www.oak-tree.us/blog/index.php/2008/12/13/wpf-svg-xaml-part1 for
more.)  Luckily, however, Inkscape has FANTASTIC support for exporting to
PDF.  (I only discovered this the other day and Inkscape has now become my
new favorite program.)  It can import PDF files from Adobe CS3 and other
programs (while maintaining full support for text and other elements),
resize the document boundaries and then export back to PDF seamlessly.  It
also handles technical drawings created in Dia and Kivio (native file
formats for both programs).  I've even had good luck with material from
Visio (if it's first been exported to PDF).

For raster images, it seems like PNG works the best (though most of the
raster images I've been using are screenshots).  A friend who does
layout/design has suggested that I spend some time with PDF raster images,
but I haven't yet seen the need.

Hope this is of some help.

Cheers,

Rob Oakes

-Original Message-
From: Stefano Franchi [mailto:fran...@philosophy.tamu.edu] 
Sent: Tuesday, November 10, 2009 12:14 PM
To: lyx-users@lists.lyx.org
Subject: Re: lyx and pdf fonts

On 11/10/09, Uwe Stöhr uwesto...@web.de wrote:
Steve Litt schrieb:
 If you draw something, make vector graphics rather than bitmaps, if
 possible. If you need screenshots, use png. Never jpeg, jpeg is only
 for photos.

This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the
difference
 is inly the compression method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format
 but many EPS images are only wrapped bitmap images. 

Isn't the same true for PDF? You can wrap bitmap files in it, I think (e.g. 
when scanner software offer a Save as pdf option). File format in itself
is 
not necessarily an indication of bitmap vs. vector graphics. With the
possible 
exception of SVG, perhaps (which I use but am pretty ignorant about)?

S.
   





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

Stefano Franchi schrieb:


Only PDF and SVG are vector graphics. EPS is also a vector graphics format
but many EPS images are only wrapped bitmap images. 


Isn't the same true for PDF? You can wrap bitmap files in it, I think


Yes, it is the same but rather seldom used. So check that you have a 
real vector graphic, zoom into it.


regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Stefano Franchi
On 11/10/09, Uwe Stöhr uwesto...@web.de wrote:
Stefano Franchi schrieb:
 Only PDF and SVG are vector graphics. EPS is also a vector graphics
 format but many EPS images are only wrapped bitmap images.

 Isn't the same true for PDF? You can wrap bitmap files in it, I think

Yes, it is the same but rather seldom used. So check that you have a
real vector graphic, zoom into it.


Right. 
My (admittedly quite trivial) point was that people should not assume a PDF 
file is in vector graphic format when---thanks to the enormous popularity of 
the file format---some application software will offer to save bitmaps as pdf, 
thus (perhaps) misleading the user into thinking they have produced a vector 
graphics when that's not the case.

Cheers,

S. 





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


increase the tracking

2009-11-10 Thread Matthias Schmidt
Hello,

please can someone tell me, how to increase the tracking. I want to accentuate a
sentence this way.



-- 
Mit freundlichen Grüßen
Matthias Schmidt
mailto:gm_schm...@yahoo.de

Diese Nachricht ist mit Norton Internet Security geprüft




Re: increase the tracking

2009-11-10 Thread rgheck

On 11/10/2009 05:40 PM, Matthias Schmidt wrote:

Hello,

please can someone tell me, how to increase the tracking. I want to accentuate a
sentence this way.

   
This can be done using the soul package. With ERT, you could do it as: 
[ERT]\so{[\ERT]this will be spaced out[ERT]}[/ERT]. Alternatively, it 
would be very easy to make a module for this, by adapting the 
logicalmkup module, as below. It'd be nice to add some of the other 
commands, at least those not already supported by LyX.


rh

===

#\DeclareLyXModule{Soul}
#DescriptionBegin
#Defines some of the soul macros as char styles.
#DescriptionEnd

Format 11

InsetLayout CharStyle:LetterSpacing
LyxType   charstyle
LabelString   letterspace
LatexType command
LatexName so
Font
  Color  green
EndFont
Requires  soul
End



[announce] LyXWinInstaller for Windows 7

2009-11-10 Thread Uwe Stöhr

Hello LyXers,

a new version of the alternative Windows installer for LyX is available. This version comes with 
MiKTeX 2.8 and the latest Python and ImageMagick to be able to install LyX under Windows 7.


Moreover this version brings a new feature: It includes eLyXer, a LyX to HTML converter. After the 
installation of LyX you should be able to view and export your documents as HTML. If there are 
problems with the HTML export, please report them to elyxer-usersatnongnu.org.


Note: It is not necessary to touch your existing LyX installation! This version was primarily 
released to support Windows 7 and to test eLyXer. The included LyX 1.6.4 is exactly the same as 
included in the previous installer version. Therefore only use this version when you do a fresh LyX 
installation and when you want to test the new features.

-

The installer for this version can be downloaded from:
http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=16904
and soon also from
http://ftp.lyx.org/pub/lyx/bin/1.6.4/

(General infos about the installer can be found here:
 http://wiki.lyx.org/Windows/LyXWinInstaller )

Installer Changelog:
-
Version 4.21
- new converter to export LyX files as HTML:
  eLyXer 0.35 (http://www.nongnu.org/elyxer)
- updated to MiKTeX 2.8 (needed to run LyX under Windows 7)
- updated to ImageMagick 6.5.7-5
- updated to Python 2.6.4
- downgraded to Ghostscript 8.64 due to a regression bug
  with cropped PDF images
- fix bug that an installed Python 3.x was ignored
-

happy LyXing
Uwe


eBook to print book conversion script

2009-11-10 Thread Steve Litt
Hi all,

For the first time I must maintain a book as an eBook AND a pBook. You can't 
really use the same PDF for both...

The pBook must have gutter margins to make up for the binding, so the left and 
right margin will be different and switch places between even and odd pages. 
For best screen reading, the eBook margins should remain constant between even 
and odd pages.

The eBook has an integrated cover page, the pBook does not. The eBook footers 
are maroon background and contain the legend Prepared exclusively for John 
Customer, whereas for minimal toner usage the pBook is all white in that 
area.

I REALLY don't want to maintain two LyX documents, coordinating modifications  
between the two. So I maintain only the eBook LyX doc, and have a script that 
reads the eBook LyX and spits out a pBook PDF.

The perl script is a filter whose stdin is the eBook LyX doc, and whose output 
is the pBook LyX document. The perlscript is a state machine, with state 
defined by a variable called $skip.

Skip=0: Document preamble
Skip=1: Document body, cover page or back of cover page
Skip=2: Found start here marker inside LyX Note inset.
Skip=3: Found the end of that LyX Note inset
Skip=4: Passed the end of the inset, include everything else

Here is the e2b.pl perlscript:

==
#!/usr/bin/perl -w
use strict;

my $skip = 0;
my $line;
while(){
$line = $_;
chomp $line;
if($skip == 0){
if ($line =~ m/\\myfooter/){
$line = '';
}
elsif($line =~ m/\\begin_body/){
print $line . \n\n;
print \\begin_layout Standard\n;
$skip = 1;
}
elsif($line =~ m/\\leftmargin/){
$line = '\\leftmargin 2.3in';
}
elsif($line =~ m/\\rightmargin/){
$line = '\\rightmargin 1.3in';
}

}
elsif(($skip == 1)  ($line =~ m/start_of_print_version_here/)){
$skip = 2;
}
elsif(($skip == 2)  ($line =~ m/^\\end_inset$/)){
$skip = 3;
}
elsif($skip == 3){
$skip = 4;
}
if(($skip == 0) || ($skip == 4)){
print $line . \n;
}
}
==

There's also an e2b.sh that makes the pBook LyX a temporary file and compiles 
down to a PDF.

When $skip==0, I detect left and right margin and change them and I eliminate 
the footer (\myfooter).

All books are different, so your mileage may vary, but if you have a doc that's 
sometimes an eBook and sometimes a pBook, you can do something like this.

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




Re: trouble including Optima font

2009-11-10 Thread Guenter Milde
On 2009-11-09, Liviu Andronic wrote:

 Any ideas on what I am doing wrong? Thank you

Guessing: did you set the sans-serif font to [Default] in LyX's document
font setting dialogue?

Günter



Re: Problems including a document

2009-11-10 Thread Guenter Milde
On 2009-11-09, Manolo Martí­nez wrote:


 AFAIK, this is LyX's default behaviour.

 Did you try with DocumentLaTeX log after a compilation already

 No! I was relying on the error messages that appear after a failed 
 compilation. Thanks, this is very useful.

 So, let me reforumulate my suggestion with this in mind: it would be 
 nice if the Latex errors message box that appears contained a line 
 reading ... for more information, see DocumentLaTeX log.

Could you file a bug (enhancement) report at
http://www.lyx.org/trac/wiki/BugTrackerHome ?

Günter



Re: URL wraping - someone got it working?

2009-11-10 Thread Sven Hoexter
On Sun, Nov 08, 2009 at 09:38:33PM +, Guenter Milde wrote:
 On 2009-11-06, Sven Hoexter wrote:

Hello Guenter,

  With this settings it works for me, but you need to use
  Insert-Hyperlink instead of Insert-URL.
 
 If you want to wrap a long URL at sensible break-points (like /),
 you need the support of the url.sty package (which is loaded
 implicitely by hyperref.sty). With lyx, this means that URLs inserted with
 InsertURL are wrapped (at e.g. / but not at -) while URLs inserted with
 InsertHyperlink are not!

Uwe was kind enough to explain it to me in private mail after I provided
him the sample in question. After all just some expected missunderstanding
on my/our side.

Thanks to both of you for explaining it. :)

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Re: trouble including Optima font

2009-11-10 Thread Liviu Andronic
On 11/10/09, Guenter Milde mi...@users.berlios.de wrote:
 Guessing: did you set the sans-serif font to [Default] in LyX's document
  font setting dialogue?

Yes. Roman is set to Palatino, and Sans to [Default]. It makes no
difference if I choose some other Roman font, say LM: Optima will
still not be loaded.
Liviu


Re: Problems including a document

2009-11-10 Thread Manolo Martí­nez

Done: http://www.lyx.org/trac/ticket/6313

Manolo
So, let me reforumulate my suggestion with this in mind: it would be 
nice if the Latex errors message box that appears contained a line 
reading ... for more information, see DocumentLaTeX log.



Could you file a bug (enhancement) report at
http://www.lyx.org/trac/wiki/BugTrackerHome ?

Günter


  




lyx and pdf fonts

2009-11-10 Thread ask2

Hi
I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunaltely that never is the
case.

So am I just stupid or is there a way to get really high quality pdf from
LYX?

Main purpose is to read on the computer so both images and text should be
suitable for that.
I gues it means that I need ttf or otf fonts in the pdf?

I think I asked this 5-6 years ago but it seems nothing has changed :(

S back to Microsoft Word again :(

Best Regards
J

ps Win XP lyx 1.6 , miktex 2.8

-- 
View this message in context: 
http://n2.nabble.com/lyx-and-pdf-fonts-tp3979159p3979159.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-10 Thread Sebastian Rockel

Hello,

Used that binary for quite some time now (on SL 10.6.1) with moderate  
file size (30 pages).
I set the autosave to 1 min and noticed no slowdown, in fact it worked  
flawlessly.


Great work!

Sebastian

Am 04.11.2009 um 17:15 schrieb rgheck:


OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report  
back.
Also please report whether the autosave slowdown is bearable, or any  
strange

behaviour that might occur.




Re: Professional and Scientific Writing Book

2009-11-10 Thread Helge Hafting

Ralf wrote:



So, how about a section giving tips on how to (strategically  technically)
proceed with large figures (typically exceeding the page borders but still A4)
with the requirement that they should appear close the first reference ...

Figures larger than the page, as well as large amounts of figures, can 
go into a page of floats. That way, they don't mess up the text

formatting.

Now, if you need to position images exactly, consider not using floats. 
If you put them in the text, then they appear in the text where you put 
them. This can result in bad page breaking, and a need for some manual 
breaks though.


Helge Hafting


Re: lyx and pdf fonts

2009-11-10 Thread Manveru
2009/11/10 ask2 joakim.askl...@gmail.com:

 Hi
 I try out LYX maybe once a year. What I am looking for when I try it is if
 the pdf files I can get is of high quality. Unfortunaltely that never is the
 case.

 So am I just stupid or is there a way to get really high quality pdf from
 LYX?

 Main purpose is to read on the computer so both images and text should be
 suitable for that.
 I gues it means that I need ttf or otf fonts in the pdf?

 I think I asked this 5-6 years ago but it seems nothing has changed :(

 S back to Microsoft Word again :(

 Best Regards
 J

 ps Win XP lyx 1.6 , miktex 2.8

Do not feel offended, but I think you are lazy man. To get really high
quality PDF from LaTeX, you need minimal study about LaTeX and vector
fonts, microtype and images/pictures. LyX is not guilty of PDF quality
as it is only editor using LaTeX to produce results. Your lack of
knowledge is guilty in this case.

If you would like to kindy ask for help on this list I am sure lot of
people would help you with that, and you would get documents much
better that from Word. So... please stick with Word and never return.
Thank You!

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


Re: Drawing tool for LyX

2009-11-10 Thread Helge Hafting

Rich Shepard wrote:


  However, some figures need to have lines that meet very precisely (no
overshoots or gaps between them) or be placed with high precision. While
this may well be possible and easy for those more skilled than I am, I 
found

my xfig and similar figures to look sloppy when enlarged. The solution for
this is to code the image as one would code LaTeX,


Xfig has snap to grid modes, for square and triangular grids. This 
yields lines, boxes and circles where lines don't overshoot. Consider 
circles where the radius is a multiple of 5. Such a circle has 12

points around the edge where lines can end exactly on the circle.
Most other circles only have 4 such points.

Helge Hafting


Re: trouble including Optima font

2009-11-10 Thread Liviu Andronic
On 11/9/09, Liviu Andronic landronim...@gmail.com wrote:
  Any ideas on what I am doing wrong?

Hmm, I start doubting that I have it installed. Since LyX produced no
errors when compiling, I assumed that I did. But I cannot find
classico.txt [1], although I should have.
li...@debian-liv:~$ locate classico
/home/liviu/.opera/temporary_downloads/urw-classico.pdf
/usr/share/texmf/tex4ht/ht-fonts/alias/vntex/classicovn
/usr/share/texmf/tex4ht/ht-fonts/alias/vntex/classicovn/uop.htf

Apparently TeXLive 2007 does not ship Optima because of license issues
but allows, however, for a very easy install [2].
getnonfreefonts-sys -h
getnonfreefonts-sys -l
getnonfreefonts-sys classico

Now it works like a sweet. From what I see, Optima is a great sans
match for Palatino (or Pagella). They are so very similar, although
one is ostensibly a serif, and the other a sans. I attach the .lyx
file, and post the .pdf here [3].

Best
Liviu

[1] http://mirror.ctan.org/fonts/urw/classico/uop.zip
[2] http://www.tug.org/pipermail/tex-live/2009-January/019767.html
[3] http://s000.tinyupload.com/index.php?file_id=96955359283928853260


newfile1-tex-gyre-pagella-optima.lyx
Description: Binary data


Re: lyx and pdf fonts

2009-11-10 Thread Helge Hafting

ask2 wrote:

Hi
I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunaltely that never is the
case.

So am I just stupid or is there a way to get really high quality pdf from
LYX?


Yes. Make sure the default font is not a bitmap font. Unfortunately, the
default font is a bitmap font. You must change it.

So, go Document-Settings-Fonts and choose something else instead of
standard. There is Latin Modern if you like the look of the
standard font on paper, but want nice pdf. Or select something else
like Times Roman, Palatino, . . .

To avoid making this change for every document, save it as the new default.


Main purpose is to read on the computer so both images and text should be
suitable for that.


That took care of the text, now for the images. What exactly is the
problem with your images?

If you draw something, make vector graphics rather than bitmaps, if 
possible. If you need screenshots, use png. Never jpeg, jpeg is only

for photos.


I gues it means that I need ttf or otf fonts in the pdf?

I think I asked this 5-6 years ago but it seems nothing has changed :(


Nothing much need to change. Have been making quality PDFs for more than 
5-6 years. All you need is to know a few things, such as changing from 
the default font. Most software has a few things you need to know, and 
you can find it out on this mailing list if you want to.





S back to Microsoft Word again :(


Whatever you like. You'll be harder pressed making quality PDFs with 
word though.



Helge Hafting


Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-10 Thread Johannes Knaus

Hello back again,

I have tested the SL build on a bigger document (around 120 pages) and  
have experienced no crashes so far.


Unfortunately, we have been informed about a bad side effect of this  
fix:

http://marc.info/?l=lyx-develm=125777684408838w=2

We have to investigate further. Please be careful while using the  
test binary.


Jürgen


Wow, indeed.

Never hit the spellcheck button.

I tried it, too. That's really crashing the whole MacOSX session. I  
get a blue screen and then my usual login-dialogue-window just as if I  
restarted my mac.


Johannes.



Re: Problem on Ubuntu x86_64

2009-11-10 Thread Stefano Franchi
On 11/09/09, 刘霄 asranzalas...@gmail.com wrote:
I've got the following problem on Ubuntu 9.10 x86_64 :
-


Looks like the same problem I had last week (in my case, Kubuntu 9.10 X86_64). 
The solution is to install the boost-dev library and configure with --without-
internal-boost

Stefano




__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: lyx and pdf fonts

2009-11-10 Thread Luca Carlon
ask2 joakim.askl...@... writes:
 Hi
 I try out LYX maybe once a year. What I am looking for when I try it is if
 the pdf files I can get is of high quality. Unfortunaltely that never is the
 case.
 
 So am I just stupid or is there a way to get really high quality pdf from
 LYX?
 
 Main purpose is to read on the computer so both images and text should be
 suitable for that.

Sorry, but what do you mean by high quality? As far as I can see, my documents
are perfect. I can zoom to whatever level and quality is perfect. I use eps
graphics, and it is highest possible quality as well. Could it be your PDF
reader the problem?

Luca



Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

ask2 schrieb:


I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunately that never is the
case.


See http://wiki.lyx.org/FAQ/PDF#toc5


Main purpose is to read on the computer so both images and text should be
suitable for that.
I gues it means that I need ttf or otf fonts in the pdf?


Yes, you need vector fonts. The above link describes how to do that.

Btw. the LyX documentation files (except of the Intro manual) you find in the Help menu also use 
vector fonts, when they look OK for you, your documents will look OK too.



I think I asked this 5-6 years ago but it seems nothing has changed :(

S back to Microsoft Word again :(


Wow, you're giving up before you've got a reply to you email.

regards Uwe


Re: Standard Open/Save-Dialogs in Mac OS X?

2009-11-10 Thread Jean-Marc Lasgouttes
Peter Kämpf peter.kae...@gmail.com writes:
 the Aqua version of LyX uses the QT toolkit to display the usual open and
 save file dialogs. Unfortunately, these are somehow modified and not the
 genuine Carbon or Cocoa dialogs of the OS. Is there some way to get
 enhancements like St. Clair Sofware's Default Folder X 
 (http://www.stclairsoft.com/DefaultFolderX/index.html), which hook into
 the standard dialogs and make them MUCH better, running in LyX?
 This bothers me since the first Aqua versions ... has anyone found a
 solution for that?

Qt has support for this, but does not allow us to define our own button.
Therefore we do not use them now. We know how to work around this
problem, but this requires some work.

JMarc


textcomp Error: symbol \textuparrow not provided by

2009-11-10 Thread Sam Liddicott
Having just added a symbol up-arrow, every time I build my PDF, Lyx 
gives this error:


textcomp Error: symbol \textuparrow not provided by

(by is the last word of the error)

althought the PDF displays the arrow just fine.

The arrow is in a LyxCode environment, but further testing shows that it 
just hates doing an up-arrow within \ttfamily


as it works anyway, any tips to stop it complaining?

Sam


Re: textcomp Error: symbol \textuparrow not provided by

2009-11-10 Thread Uwe Stöhr

Sam Liddicott schrieb:

Having just added a symbol up-arrow, every time I build my PDF, Lyx 
gives this error:


textcomp Error: symbol \textuparrow not provided by

(by is the last word of the error)


Can you please provide a _small_ LyX example file?

regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Steve Litt
Good information here Helge...

On Tuesday 10 November 2009 08:12:37 Helge Hafting wrote:
 ask2 wrote:
  Hi
  I try out LYX maybe once a year. What I am looking for when I try it is
  if the pdf files I can get is of high quality. Unfortunaltely that never
  is the case.
 
  So am I just stupid or is there a way to get really high quality pdf from
  LYX?

 Yes. Make sure the default font is not a bitmap font. Unfortunately, the
 default font is a bitmap font. You must change it.

 So, go Document-Settings-Fonts and choose something else instead of
 standard. There is Latin Modern if you like the look of the
 standard font on paper, but want nice pdf. Or select something else
 like Times Roman, Palatino, . . .

Helge -- I've been using Century Schoolbook, which shows up as one of the 
choices with LyX as it comes with Mandriva and Ubuntu. Is Century Schoolbook a 
vector font? I found  Latin Modern too light and stringy.

 To avoid making this change for every document, save it as the new default.

  Main purpose is to read on the computer so both images and text should be
  suitable for that.

 That took care of the text, now for the images. What exactly is the
 problem with your images?

 If you draw something, make vector graphics rather than bitmaps, if
 possible. If you need screenshots, use png. Never jpeg, jpeg is only
 for photos.

I didn't know .png is a vector graphic. I've been converting graphics to PDF 
before using them -- PDF *is* a vector format after all, and it seems to scale 
well. However, it would be soo much easier to use .png. Thanks for the 
tip.

As far as the original poster, I've found that the output quality depends as 
much on the PDF reader as anything else. I've had docs that were beautiful on 
Acroread and ugly on xpdf, and others that were ugly on Acroread and beautiful 
on xpdf. I hate to admit it, but if my eBooks look good on Acroread, that 
satisfies 95% of my potential readers so I let it go that way.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




Re: lyx and pdf fonts

2009-11-10 Thread Rich Shepard

On Tue, 10 Nov 2009, Steve Litt wrote:


I didn't know .png is a vector graphic.


  It's not. It's bit-mapped, or raster.

Rich


Re: lyx and pdf fonts

2009-11-10 Thread Florian Rubach

Steve Litt schrieb:

I didn't know .png is a vector graphic.
It isn't. As Helge said, it's pretty useful if you need some pixel 
graphics with relatively large areas of similar colors like screenshots. 
It is relatively small and has lossless compression. For Photos, jpeg is 
better but has lossy compression, tends to introduce artefacts.

SteveT


Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

Steve Litt schrieb:


If you draw something, make vector graphics rather than bitmaps, if
possible. If you need screenshots, use png. Never jpeg, jpeg is only
for photos.


This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the difference is inly the compression 
method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format but many EPS images are 
only wrapped bitmap images. You can check of an image is a vector graphics by zooming into the 
image. When it becomes pixeled, it is a bitmap.


regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Stefano Franchi
On 11/10/09, Uwe Stöhr uwesto...@web.de wrote:
Steve Litt schrieb:
 If you draw something, make vector graphics rather than bitmaps, if
 possible. If you need screenshots, use png. Never jpeg, jpeg is only
 for photos.

This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the difference
 is inly the compression method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format
 but many EPS images are only wrapped bitmap images. 

Isn't the same true for PDF? You can wrap bitmap files in it, I think (e.g. 
when scanner software offer a Save as pdf option). File format in itself is 
not necessarily an indication of bitmap vs. vector graphics. With the possible 
exception of SVG, perhaps (which I use but am pretty ignorant about)?

S.
   





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: lyx and pdf fonts

2009-11-10 Thread Anders Host-Madsen
I get great PDF output, that can be scaled to
any size. The only thing I did was to set the encoding
to OT1. If you don't use international characters, that
should enable LaTeX to use vector fonts.





LyX, PDF Output and Image Quality

2009-11-10 Thread Rob Oakes
Hi Stefano,

Since I've been playing with this for the past few days, I thought I would
offer my findings so far.

SVG can also be used to wrap bitmap images, but I wouldn't recommend it.

For the professional writing book, I've been experimenting with support for
the different formats and trying to see which one offers the best output
(for both screen and print).  (Since there's an entire chapter dedicated to
images and exchanging data between programs, I've had plenty of time to
play.)  So far, the leader seems to be PDF (with EPS running a close second
place), at least when using pdflatex.  I've experienced occasional weirdness
when processing with XeTeX and still haven't been able to determine why.

Unfortunately, SVG doesn't fare so well.  At least on my Ubuntu 9.10 box,
LyX has a hard time converting the images for preview and LaTeX will produce
all kinds of strange output.  Especially if the SVG makes use of unsupported
tags.

And of course, both Inkscape and Adobe Illustrator will produce SVG with
tags that other applications don't recognize.  (And just because it is SVG
doesn't mean that another SVG editor will be able to read it.  See
http://www.oak-tree.us/blog/index.php/2008/12/13/wpf-svg-xaml-part1 for
more.)  Luckily, however, Inkscape has FANTASTIC support for exporting to
PDF.  (I only discovered this the other day and Inkscape has now become my
new favorite program.)  It can import PDF files from Adobe CS3 and other
programs (while maintaining full support for text and other elements),
resize the document boundaries and then export back to PDF seamlessly.  It
also handles technical drawings created in Dia and Kivio (native file
formats for both programs).  I've even had good luck with material from
Visio (if it's first been exported to PDF).

For raster images, it seems like PNG works the best (though most of the
raster images I've been using are screenshots).  A friend who does
layout/design has suggested that I spend some time with PDF raster images,
but I haven't yet seen the need.

Hope this is of some help.

Cheers,

Rob Oakes

-Original Message-
From: Stefano Franchi [mailto:fran...@philosophy.tamu.edu] 
Sent: Tuesday, November 10, 2009 12:14 PM
To: lyx-users@lists.lyx.org
Subject: Re: lyx and pdf fonts

On 11/10/09, Uwe Stöhr uwesto...@web.de wrote:
Steve Litt schrieb:
 If you draw something, make vector graphics rather than bitmaps, if
 possible. If you need screenshots, use png. Never jpeg, jpeg is only
 for photos.

This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the
difference
 is inly the compression method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format
 but many EPS images are only wrapped bitmap images. 

Isn't the same true for PDF? You can wrap bitmap files in it, I think (e.g. 
when scanner software offer a Save as pdf option). File format in itself
is 
not necessarily an indication of bitmap vs. vector graphics. With the
possible 
exception of SVG, perhaps (which I use but am pretty ignorant about)?

S.
   





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

Stefano Franchi schrieb:


Only PDF and SVG are vector graphics. EPS is also a vector graphics format
but many EPS images are only wrapped bitmap images. 


Isn't the same true for PDF? You can wrap bitmap files in it, I think


Yes, it is the same but rather seldom used. So check that you have a 
real vector graphic, zoom into it.


regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Stefano Franchi
On 11/10/09, Uwe Stöhr uwesto...@web.de wrote:
Stefano Franchi schrieb:
 Only PDF and SVG are vector graphics. EPS is also a vector graphics
 format but many EPS images are only wrapped bitmap images.

 Isn't the same true for PDF? You can wrap bitmap files in it, I think

Yes, it is the same but rather seldom used. So check that you have a
real vector graphic, zoom into it.


Right. 
My (admittedly quite trivial) point was that people should not assume a PDF 
file is in vector graphic format when---thanks to the enormous popularity of 
the file format---some application software will offer to save bitmaps as pdf, 
thus (perhaps) misleading the user into thinking they have produced a vector 
graphics when that's not the case.

Cheers,

S. 





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


increase the tracking

2009-11-10 Thread Matthias Schmidt
Hello,

please can someone tell me, how to increase the tracking. I want to accentuate a
sentence this way.



-- 
Mit freundlichen Grüßen
Matthias Schmidt
mailto:gm_schm...@yahoo.de

Diese Nachricht ist mit Norton Internet Security geprüft




Re: increase the tracking

2009-11-10 Thread rgheck

On 11/10/2009 05:40 PM, Matthias Schmidt wrote:

Hello,

please can someone tell me, how to increase the tracking. I want to accentuate a
sentence this way.

   
This can be done using the soul package. With ERT, you could do it as: 
[ERT]\so{[\ERT]this will be spaced out[ERT]}[/ERT]. Alternatively, it 
would be very easy to make a module for this, by adapting the 
logicalmkup module, as below. It'd be nice to add some of the other 
commands, at least those not already supported by LyX.


rh

===

#\DeclareLyXModule{Soul}
#DescriptionBegin
#Defines some of the soul macros as char styles.
#DescriptionEnd

Format 11

InsetLayout CharStyle:LetterSpacing
LyxType   charstyle
LabelString   letterspace
LatexType command
LatexName so
Font
  Color  green
EndFont
Requires  soul
End



Re: LyX, PDF Output and Image Quality

2009-11-10 Thread Liviu Andronic
Hello

On 11/10/09, Rob Oakes lyx-de...@oak-tree.us wrote:
  Since I've been playing with this for the past few days, I thought I would
  offer my findings so far.

This wiki page [1] discusses the various advantages and drawbacks of
different image formats. Although focused on R, there are many
pointers that could be of more general interest.

Regards
Liviu

[1] http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export


[announce] LyXWinInstaller for Windows 7

2009-11-10 Thread Uwe Stöhr

Hello LyXers,

a new version of the alternative Windows installer for LyX is available. This version comes with 
MiKTeX 2.8 and the latest Python and ImageMagick to be able to install LyX under Windows 7.


Moreover this version brings a new feature: It includes eLyXer, a LyX to HTML converter. After the 
installation of LyX you should be able to view and export your documents as HTML. If there are 
problems with the HTML export, please report them to elyxer-usersatnongnu.org.


Note: It is not necessary to touch your existing LyX installation! This version was primarily 
released to support Windows 7 and to test eLyXer. The included LyX 1.6.4 is exactly the same as 
included in the previous installer version. Therefore only use this version when you do a fresh LyX 
installation and when you want to test the new features.

-

The installer for this version can be downloaded from:
http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=16904
and soon also from
http://ftp.lyx.org/pub/lyx/bin/1.6.4/

(General infos about the installer can be found here:
 http://wiki.lyx.org/Windows/LyXWinInstaller )

Installer Changelog:
-
Version 4.21
- new converter to export LyX files as HTML:
  eLyXer 0.35 (http://www.nongnu.org/elyxer)
- updated to MiKTeX 2.8 (needed to run LyX under Windows 7)
- updated to ImageMagick 6.5.7-5
- updated to Python 2.6.4
- downgraded to Ghostscript 8.64 due to a regression bug
  with cropped PDF images
- fix bug that an installed Python 3.x was ignored
-

happy LyXing
Uwe


eBook to print book conversion script

2009-11-10 Thread Steve Litt
Hi all,

For the first time I must maintain a book as an eBook AND a pBook. You can't 
really use the same PDF for both...

The pBook must have gutter margins to make up for the binding, so the left and 
right margin will be different and switch places between even and odd pages. 
For best screen reading, the eBook margins should remain constant between even 
and odd pages.

The eBook has an integrated cover page, the pBook does not. The eBook footers 
are maroon background and contain the legend Prepared exclusively for John 
Customer, whereas for minimal toner usage the pBook is all white in that 
area.

I REALLY don't want to maintain two LyX documents, coordinating modifications  
between the two. So I maintain only the eBook LyX doc, and have a script that 
reads the eBook LyX and spits out a pBook PDF.

The perl script is a filter whose stdin is the eBook LyX doc, and whose output 
is the pBook LyX document. The perlscript is a state machine, with state 
defined by a variable called $skip.

Skip=0: Document preamble
Skip=1: Document body, cover page or back of cover page
Skip=2: Found start here marker inside LyX Note inset.
Skip=3: Found the end of that LyX Note inset
Skip=4: Passed the end of the inset, include everything else

Here is the e2b.pl perlscript:

==
#!/usr/bin/perl -w
use strict;

my $skip = 0;
my $line;
while(){
$line = $_;
chomp $line;
if($skip == 0){
if ($line =~ m/\\myfooter/){
$line = '';
}
elsif($line =~ m/\\begin_body/){
print $line . \n\n;
print \\begin_layout Standard\n;
$skip = 1;
}
elsif($line =~ m/\\leftmargin/){
$line = '\\leftmargin 2.3in';
}
elsif($line =~ m/\\rightmargin/){
$line = '\\rightmargin 1.3in';
}

}
elsif(($skip == 1)  ($line =~ m/start_of_print_version_here/)){
$skip = 2;
}
elsif(($skip == 2)  ($line =~ m/^\\end_inset$/)){
$skip = 3;
}
elsif($skip == 3){
$skip = 4;
}
if(($skip == 0) || ($skip == 4)){
print $line . \n;
}
}
==

There's also an e2b.sh that makes the pBook LyX a temporary file and compiles 
down to a PDF.

When $skip==0, I detect left and right margin and change them and I eliminate 
the footer (\myfooter).

All books are different, so your mileage may vary, but if you have a doc that's 
sometimes an eBook and sometimes a pBook, you can do something like this.

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




Re: trouble including Optima font

2009-11-10 Thread Guenter Milde
On 2009-11-09, Liviu Andronic wrote:

> Any ideas on what I am doing wrong? Thank you

Guessing: did you set the sans-serif font to [Default] in LyX's document
font setting dialogue?

Günter



Re: Problems including a document

2009-11-10 Thread Guenter Milde
On 2009-11-09, Manolo Martí­nez wrote:


>> AFAIK, this is LyX's default behaviour.

>> Did you try with Document>LaTeX log after a compilation already

> No! I was relying on the error messages that appear after a failed 
> compilation. Thanks, this is very useful.

> So, let me reforumulate my suggestion with this in mind: it would be 
> nice if the "Latex errors" message box that appears contained a line 
> reading "... for more information, see Document>LaTeX log".

Could you file a bug (enhancement) report at
http://www.lyx.org/trac/wiki/BugTrackerHome ?

Günter



Re: URL wraping - someone got it working?

2009-11-10 Thread Sven Hoexter
On Sun, Nov 08, 2009 at 09:38:33PM +, Guenter Milde wrote:
> On 2009-11-06, Sven Hoexter wrote:

Hello Guenter,

> >> With this settings it works for me, but you need to use
> >> Insert->Hyperlink instead of Insert->URL.
> 
> If you want to wrap a long URL at "sensible" break-points (like /),
> you need the support of the url.sty package (which is loaded
> implicitely by hyperref.sty). With lyx, this means that URLs inserted with
> Insert>URL are wrapped (at e.g. / but not at -) while URLs inserted with
> Insert>Hyperlink are not!

Uwe was kind enough to explain it to me in private mail after I provided
him the sample in question. After all just some expected missunderstanding
on my/our side.

Thanks to both of you for explaining it. :)

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]


Re: trouble including Optima font

2009-11-10 Thread Liviu Andronic
On 11/10/09, Guenter Milde  wrote:
> Guessing: did you set the sans-serif font to [Default] in LyX's document
>  font setting dialogue?
>
Yes. Roman is set to Palatino, and Sans to [Default]. It makes no
difference if I choose some other Roman font, say LM: Optima will
still not be loaded.
Liviu


Re: Problems including a document

2009-11-10 Thread Manolo Martí­nez

Done: http://www.lyx.org/trac/ticket/6313

Manolo
So, let me reforumulate my suggestion with this in mind: it would be 
nice if the "Latex errors" message box that appears contained a line 
reading "... for more information, see Document>LaTeX log".



Could you file a bug (enhancement) report at
http://www.lyx.org/trac/wiki/BugTrackerHome ?

Günter


  




lyx and pdf fonts

2009-11-10 Thread ask2

Hi
I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunaltely that never is the
case.

So am I just stupid or is there a way to get really high quality pdf from
LYX?

Main purpose is to read on the computer so both images and text should be
suitable for that.
I gues it means that I need ttf or otf fonts in the pdf?

I think I asked this 5-6 years ago but it seems nothing has changed :(

S back to Microsoft Word again :(

Best Regards
J

ps Win XP lyx 1.6 , miktex 2.8

-- 
View this message in context: 
http://n2.nabble.com/lyx-and-pdf-fonts-tp3979159p3979159.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-10 Thread Sebastian Rockel

Hello,

Used that binary for quite some time now (on SL 10.6.1) with moderate  
file size (<30 pages).
I set the autosave to 1 min and noticed no slowdown, in fact it worked  
flawlessly.


Great work!

Sebastian

Am 04.11.2009 um 17:15 schrieb rgheck:


OK, a binary for testing is now available here:
ftp://ftp.devel.lyx.org/pub/lyx/devel/LyX-1.6.5svn-Snow-Leopard-Test.app.zip

Please test if this fixes your problems on Snow Leopard and report  
back.
Also please report whether the autosave slowdown is bearable, or any  
strange

behaviour that might occur.




Re: Professional and Scientific Writing Book

2009-11-10 Thread Helge Hafting

Ralf wrote:



So, how about a section giving tips on how to (strategically & technically)
proceed with large figures (typically exceeding the page borders but still A4)
with the requirement that they should appear close the first reference ...

Figures larger than the page, as well as large amounts of figures, can 
go into a "page of floats". That way, they don't mess up the text

formatting.

Now, if you need to position images exactly, consider not using floats. 
If you put them in the text, then they appear in the text where you put 
them. This can result in bad page breaking, and a need for some manual 
breaks though.


Helge Hafting


Re: lyx and pdf fonts

2009-11-10 Thread Manveru
2009/11/10 ask2 :
>
> Hi
> I try out LYX maybe once a year. What I am looking for when I try it is if
> the pdf files I can get is of high quality. Unfortunaltely that never is the
> case.
>
> So am I just stupid or is there a way to get really high quality pdf from
> LYX?
>
> Main purpose is to read on the computer so both images and text should be
> suitable for that.
> I gues it means that I need ttf or otf fonts in the pdf?
>
> I think I asked this 5-6 years ago but it seems nothing has changed :(
>
> S back to Microsoft Word again :(
>
> Best Regards
> J
>
> ps Win XP lyx 1.6 , miktex 2.8

Do not feel offended, but I think you are lazy man. To get really high
quality PDF from LaTeX, you need minimal study about LaTeX and vector
fonts, microtype and images/pictures. LyX is not guilty of PDF quality
as it is only editor using LaTeX to produce results. Your lack of
knowledge is guilty in this case.

If you would like to kindy ask for help on this list I am sure lot of
people would help you with that, and you would get documents much
better that from Word. So... please stick with Word and never return.
Thank You!

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


Re: Drawing tool for LyX

2009-11-10 Thread Helge Hafting

Rich Shepard wrote:


  However, some figures need to have lines that meet very precisely (no
overshoots or gaps between them) or be placed with high precision. While
this may well be possible and easy for those more skilled than I am, I 
found

my xfig and similar figures to look sloppy when enlarged. The solution for
this is to code the image as one would code LaTeX,


Xfig has snap to grid modes, for square and triangular grids. This 
yields lines, boxes and circles where lines don't overshoot. Consider 
circles where the radius is a multiple of 5. Such a circle has 12

points around the edge where lines can end exactly on the circle.
Most other circles only have 4 such points.

Helge Hafting


Re: trouble including Optima font

2009-11-10 Thread Liviu Andronic
On 11/9/09, Liviu Andronic  wrote:
>  Any ideas on what I am doing wrong?
>
Hmm, I start doubting that I have it installed. Since LyX produced no
errors when compiling, I assumed that I did. But I cannot find
"classico.txt" [1], although I should have.
li...@debian-liv:~$ locate classico
/home/liviu/.opera/temporary_downloads/urw-classico.pdf
/usr/share/texmf/tex4ht/ht-fonts/alias/vntex/classicovn
/usr/share/texmf/tex4ht/ht-fonts/alias/vntex/classicovn/uop.htf

Apparently TeXLive 2007 does not ship Optima because of license issues
but allows, however, for a very easy install [2].
getnonfreefonts-sys -h
getnonfreefonts-sys -l
getnonfreefonts-sys classico

Now it works like a sweet. From what I see, Optima is a great sans
match for Palatino (or Pagella). They are so very similar, although
one is ostensibly a serif, and the other a sans. I attach the .lyx
file, and post the .pdf here [3].

Best
Liviu

[1] http://mirror.ctan.org/fonts/urw/classico/uop.zip
[2] http://www.tug.org/pipermail/tex-live/2009-January/019767.html
[3] http://s000.tinyupload.com/index.php?file_id=96955359283928853260


newfile1-tex-gyre-pagella-optima.lyx
Description: Binary data


Re: lyx and pdf fonts

2009-11-10 Thread Helge Hafting

ask2 wrote:

Hi
I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunaltely that never is the
case.

So am I just stupid or is there a way to get really high quality pdf from
LYX?


Yes. Make sure the default font is not a bitmap font. Unfortunately, the
default font is a bitmap font. You must change it.

So, go "Document->Settings->Fonts" and choose something else instead of
"standard". There is "Latin Modern" if you like the look of the
standard font on paper, but want nice pdf. Or select something else
like Times Roman, Palatino, . . .

To avoid making this change for every document, save it as the new default.


Main purpose is to read on the computer so both images and text should be
suitable for that.


That took care of the text, now for the images. What exactly is the
problem with your images?

If you draw something, make vector graphics rather than bitmaps, if 
possible. If you need screenshots, use png. Never jpeg, jpeg is only

for photos.


I gues it means that I need ttf or otf fonts in the pdf?

I think I asked this 5-6 years ago but it seems nothing has changed :(


Nothing much need to change. Have been making quality PDFs for more than 
5-6 years. All you need is to know a few things, such as changing from 
the default font. Most software has a few things you need to know, and 
you can find it out on this mailing list if you want to.





S back to Microsoft Word again :(


Whatever you like. You'll be harder pressed making quality PDFs with 
word though.



Helge Hafting


Re: Snow Leopard, Auto-save, Etc: Binary for Testing

2009-11-10 Thread Johannes Knaus

Hello back again,

I have tested the SL build on a bigger document (around 120 pages) and  
have experienced no crashes so far.


Unfortunately, we have been informed about a bad side effect of this  
fix:

http://marc.info/?l=lyx-devel=125777684408838=2

We have to investigate further. Please be careful while using the  
test binary.


Jürgen


Wow, indeed.

Never hit the spellcheck button.

I tried it, too. That's really crashing the whole MacOSX session. I  
get a blue screen and then my usual login-dialogue-window just as if I  
restarted my mac.


Johannes.



Re: Problem on Ubuntu x86_64

2009-11-10 Thread Stefano Franchi
On 11/09/09, 刘霄  wrote:
>I've got the following problem on Ubuntu 9.10 x86_64 :
>-


Looks like the same problem I had last week (in my case, Kubuntu 9.10 X86_64). 
The solution is to install the boost-dev library and configure with --without-
internal-boost

Stefano




__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: lyx and pdf fonts

2009-11-10 Thread Luca Carlon
ask2  writes:
> Hi
> I try out LYX maybe once a year. What I am looking for when I try it is if
> the pdf files I can get is of high quality. Unfortunaltely that never is the
> case.
> 
> So am I just stupid or is there a way to get really high quality pdf from
> LYX?
> 
> Main purpose is to read on the computer so both images and text should be
> suitable for that.

Sorry, but what do you mean by high quality? As far as I can see, my documents
are perfect. I can zoom to whatever level and quality is perfect. I use eps
graphics, and it is highest possible quality as well. Could it be your PDF
reader the problem?

Luca



Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

ask2 schrieb:


I try out LYX maybe once a year. What I am looking for when I try it is if
the pdf files I can get is of high quality. Unfortunately that never is the
case.


See http://wiki.lyx.org/FAQ/PDF#toc5


Main purpose is to read on the computer so both images and text should be
suitable for that.
I gues it means that I need ttf or otf fonts in the pdf?


Yes, you need vector fonts. The above link describes how to do that.

Btw. the LyX documentation files (except of the Intro manual) you find in the Help menu also use 
vector fonts, when they look OK for you, your documents will look OK too.



I think I asked this 5-6 years ago but it seems nothing has changed :(

S back to Microsoft Word again :(


Wow, you're giving up before you've got a reply to you email.

regards Uwe


Re: Standard Open/Save-Dialogs in Mac OS X?

2009-11-10 Thread Jean-Marc Lasgouttes
Peter Kämpf  writes:
> the Aqua version of LyX uses the QT toolkit to display the usual open and
> save file dialogs. Unfortunately, these are somehow modified and not the
> genuine Carbon or Cocoa dialogs of the OS. Is there some way to get
> enhancements like St. Clair Sofware's Default Folder X 
> (http://www.stclairsoft.com/DefaultFolderX/index.html), which hook into
> the standard dialogs and make them MUCH better, running in LyX?
> This bothers me since the first Aqua versions ... has anyone found a
> solution for that?

Qt has support for this, but does not allow us to define our own button.
Therefore we do not use them now. We know how to work around this
problem, but this requires some work.

JMarc


textcomp Error: symbol \textuparrow not provided by

2009-11-10 Thread Sam Liddicott
Having just added a symbol up-arrow, every time I build my PDF, Lyx 
gives this error:


textcomp Error: symbol \textuparrow not provided by

("by" is the last word of the error)

althought the PDF displays the arrow just fine.

The arrow is in a LyxCode environment, but further testing shows that it 
just hates doing an up-arrow within \ttfamily


as it works anyway, any tips to stop it complaining?

Sam


Re: textcomp Error: symbol \textuparrow not provided by

2009-11-10 Thread Uwe Stöhr

Sam Liddicott schrieb:

Having just added a symbol up-arrow, every time I build my PDF, Lyx 
gives this error:


textcomp Error: symbol \textuparrow not provided by

("by" is the last word of the error)


Can you please provide a _small_ LyX example file?

regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Steve Litt
Good information here Helge...

On Tuesday 10 November 2009 08:12:37 Helge Hafting wrote:
> ask2 wrote:
> > Hi
> > I try out LYX maybe once a year. What I am looking for when I try it is
> > if the pdf files I can get is of high quality. Unfortunaltely that never
> > is the case.
> >
> > So am I just stupid or is there a way to get really high quality pdf from
> > LYX?
>
> Yes. Make sure the default font is not a bitmap font. Unfortunately, the
> default font is a bitmap font. You must change it.
>
> So, go "Document->Settings->Fonts" and choose something else instead of
> "standard". There is "Latin Modern" if you like the look of the
> standard font on paper, but want nice pdf. Or select something else
> like Times Roman, Palatino, . . .

Helge -- I've been using Century Schoolbook, which shows up as one of the 
choices with LyX as it comes with Mandriva and Ubuntu. Is Century Schoolbook a 
vector font? I found  Latin Modern too light and stringy.
>
> To avoid making this change for every document, save it as the new default.
>
> > Main purpose is to read on the computer so both images and text should be
> > suitable for that.
>
> That took care of the text, now for the images. What exactly is the
> problem with your images?
>
> If you draw something, make vector graphics rather than bitmaps, if
> possible. If you need screenshots, use png. Never jpeg, jpeg is only
> for photos.

I didn't know .png is a vector graphic. I've been converting graphics to PDF 
before using them -- PDF *is* a vector format after all, and it seems to scale 
well. However, it would be soo much easier to use .png. Thanks for the 
tip.

As far as the original poster, I've found that the output quality depends as 
much on the PDF reader as anything else. I've had docs that were beautiful on 
Acroread and ugly on xpdf, and others that were ugly on Acroread and beautiful 
on xpdf. I hate to admit it, but if my eBooks look good on Acroread, that 
satisfies 95% of my potential readers so I let it go that way.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




Re: lyx and pdf fonts

2009-11-10 Thread Rich Shepard

On Tue, 10 Nov 2009, Steve Litt wrote:


I didn't know .png is a vector graphic.


  It's not. It's bit-mapped, or raster.

Rich


Re: lyx and pdf fonts

2009-11-10 Thread Florian Rubach

Steve Litt schrieb:

I didn't know .png is a vector graphic.
It isn't. As Helge said, it's pretty useful if you need some pixel 
graphics with relatively large areas of similar colors like screenshots. 
It is relatively small and has lossless compression. For Photos, jpeg is 
better but has lossy compression, tends to introduce artefacts.

SteveT


Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

Steve Litt schrieb:


If you draw something, make vector graphics rather than bitmaps, if
possible. If you need screenshots, use png. Never jpeg, jpeg is only
for photos.


This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the difference is inly the compression 
method.
Only PDF and SVG are vector graphics. EPS is also a vector graphics format but many EPS images are 
only wrapped bitmap images. You can check of an image is a vector graphics by zooming into the 
image. When it becomes pixeled, it is a bitmap.


regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Stefano Franchi
On 11/10/09, Uwe Stöhr  wrote:
>Steve Litt schrieb:
>>> If you draw something, make vector graphics rather than bitmaps, if
>>> possible. If you need screenshots, use png. Never jpeg, jpeg is only
>>> for photos.
>
>This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the difference
> is inly the compression method.
>Only PDF and SVG are vector graphics. EPS is also a vector graphics format
> but many EPS images are only wrapped bitmap images. 

Isn't the same true for PDF? You can wrap bitmap files in it, I think (e.g. 
when scanner software offer a "Save as pdf" option). File format in itself is 
not necessarily an indication of bitmap vs. vector graphics. With the possible 
exception of SVG, perhaps (which I use but am pretty ignorant about)?

S.
   





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: lyx and pdf fonts

2009-11-10 Thread Anders Host-Madsen
I get great PDF output, that can be scaled to
any size. The only thing I did was to set the encoding
to OT1. If you don't use international characters, that
should enable LaTeX to use vector fonts.





LyX, PDF Output and Image Quality

2009-11-10 Thread Rob Oakes
Hi Stefano,

Since I've been playing with this for the past few days, I thought I would
offer my findings so far.

SVG can also be used to wrap bitmap images, but I wouldn't recommend it.

For the professional writing book, I've been experimenting with support for
the different formats and trying to see which one offers the best output
(for both screen and print).  (Since there's an entire chapter dedicated to
images and exchanging data between programs, I've had plenty of time to
play.)  So far, the leader seems to be PDF (with EPS running a close second
place), at least when using pdflatex.  I've experienced occasional weirdness
when processing with XeTeX and still haven't been able to determine why.

Unfortunately, SVG doesn't fare so well.  At least on my Ubuntu 9.10 box,
LyX has a hard time converting the images for preview and LaTeX will produce
all kinds of strange output.  Especially if the SVG makes use of unsupported
tags.

And of course, both Inkscape and Adobe Illustrator will produce SVG with
tags that other applications don't recognize.  (And just because it is SVG
doesn't mean that another SVG editor will be able to read it.  See
http://www.oak-tree.us/blog/index.php/2008/12/13/wpf-svg-xaml-part1 for
more.)  Luckily, however, Inkscape has FANTASTIC support for exporting to
PDF.  (I only discovered this the other day and Inkscape has now become my
new favorite program.)  It can import PDF files from Adobe CS3 and other
programs (while maintaining full support for text and other elements),
resize the document boundaries and then export back to PDF seamlessly.  It
also handles technical drawings created in Dia and Kivio (native file
formats for both programs).  I've even had good luck with material from
Visio (if it's first been exported to PDF).

For raster images, it seems like PNG works the best (though most of the
raster images I've been using are screenshots).  A friend who does
layout/design has suggested that I spend some time with PDF raster images,
but I haven't yet seen the need.

Hope this is of some help.

Cheers,

Rob Oakes

-Original Message-
From: Stefano Franchi [mailto:fran...@philosophy.tamu.edu] 
Sent: Tuesday, November 10, 2009 12:14 PM
To: lyx-users@lists.lyx.org
Subject: Re: lyx and pdf fonts

On 11/10/09, Uwe Stöhr  wrote:
>Steve Litt schrieb:
>>> If you draw something, make vector graphics rather than bitmaps, if
>>> possible. If you need screenshots, use png. Never jpeg, jpeg is only
>>> for photos.
>
>This is wrong! PNG is as well as JPG or GIF a bitmap graphic. the
difference
> is inly the compression method.
>Only PDF and SVG are vector graphics. EPS is also a vector graphics format
> but many EPS images are only wrapped bitmap images. 

Isn't the same true for PDF? You can wrap bitmap files in it, I think (e.g. 
when scanner software offer a "Save as pdf" option). File format in itself
is 
not necessarily an indication of bitmap vs. vector graphics. With the
possible 
exception of SVG, perhaps (which I use but am pretty ignorant about)?

S.
   





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: lyx and pdf fonts

2009-11-10 Thread Uwe Stöhr

Stefano Franchi schrieb:


Only PDF and SVG are vector graphics. EPS is also a vector graphics format
but many EPS images are only wrapped bitmap images. 


Isn't the same true for PDF? You can wrap bitmap files in it, I think


Yes, it is the same but rather seldom used. So check that you have a 
real vector graphic, zoom into it.


regards Uwe


Re: lyx and pdf fonts

2009-11-10 Thread Stefano Franchi
On 11/10/09, Uwe Stöhr  wrote:
>Stefano Franchi schrieb:
>>> Only PDF and SVG are vector graphics. EPS is also a vector graphics
>>> format but many EPS images are only wrapped bitmap images.
>>
>> Isn't the same true for PDF? You can wrap bitmap files in it, I think
>
>Yes, it is the same but rather seldom used. So check that you have a
>real vector graphic, zoom into it.
>

Right. 
My (admittedly quite trivial) point was that people should not assume a PDF 
file is in vector graphic format when---thanks to the enormous popularity of 
the file format---some application software will offer to save bitmaps as pdf, 
thus (perhaps) misleading the user into thinking they have produced a vector 
graphics when that's not the case.

Cheers,

S. 





__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


increase the tracking

2009-11-10 Thread Matthias Schmidt
Hello,

please can someone tell me, how to increase the tracking. I want to accentuate a
sentence this way.



-- 
Mit freundlichen Grüßen
Matthias Schmidt
mailto:gm_schm...@yahoo.de

Diese Nachricht ist mit Norton Internet Security geprüft




Re: increase the tracking

2009-11-10 Thread rgheck

On 11/10/2009 05:40 PM, Matthias Schmidt wrote:

Hello,

please can someone tell me, how to increase the tracking. I want to accentuate a
sentence this way.

   
This can be done using the soul package. With ERT, you could do it as: 
[ERT]\so{[\ERT]this will be spaced out[ERT]}[/ERT]. Alternatively, it 
would be very easy to make a module for this, by adapting the 
logicalmkup module, as below. It'd be nice to add some of the other 
commands, at least those not already supported by LyX.


rh

===

#\DeclareLyXModule{Soul}
#DescriptionBegin
#Defines some of the soul macros as char styles.
#DescriptionEnd

Format 11

InsetLayout CharStyle:LetterSpacing
LyxType   charstyle
LabelString   letterspace
LatexType command
LatexName so
Font
  Color  green
EndFont
Requires  soul
End



Re: LyX, PDF Output and Image Quality

2009-11-10 Thread Liviu Andronic
Hello

On 11/10/09, Rob Oakes  wrote:
>  Since I've been playing with this for the past few days, I thought I would
>  offer my findings so far.
>
This wiki page [1] discusses the various advantages and drawbacks of
different image formats. Although focused on R, there are many
pointers that could be of more general interest.

Regards
Liviu

[1] http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export


[announce] LyXWinInstaller for Windows 7

2009-11-10 Thread Uwe Stöhr

Hello LyXers,

a new version of the alternative Windows installer for LyX is available. This version comes with 
MiKTeX 2.8 and the latest Python and ImageMagick to be able to install LyX under Windows 7.


Moreover this version brings a new feature: It includes eLyXer, a LyX to HTML converter. After the 
installation of LyX you should be able to view and export your documents as HTML. If there are 
problems with the HTML export, please report them to elyxer-usersnongnu.org.


Note: It is not necessary to touch your existing LyX installation! This version was primarily 
released to support Windows 7 and to test eLyXer. The included LyX 1.6.4 is exactly the same as 
included in the previous installer version. Therefore only use this version when you do a fresh LyX 
installation and when you want to test the new features.

-

The installer for this version can be downloaded from:
http://developer.berlios.de/project/showfiles.php?group_id=5117_id=16904
and soon also from
http://ftp.lyx.org/pub/lyx/bin/1.6.4/

(General infos about the installer can be found here:
 http://wiki.lyx.org/Windows/LyXWinInstaller )

Installer Changelog:
-
Version 4.21
- new converter to export LyX files as HTML:
  eLyXer 0.35 (http://www.nongnu.org/elyxer)
- updated to MiKTeX 2.8 (needed to run LyX under Windows 7)
- updated to ImageMagick 6.5.7-5
- updated to Python 2.6.4
- downgraded to Ghostscript 8.64 due to a regression bug
  with cropped PDF images
- fix bug that an installed Python 3.x was ignored
-

happy LyXing
Uwe


eBook to print book conversion script

2009-11-10 Thread Steve Litt
Hi all,

For the first time I must maintain a book as an eBook AND a pBook. You can't 
really use the same PDF for both...

The pBook must have gutter margins to make up for the binding, so the left and 
right margin will be different and switch places between even and odd pages. 
For best screen reading, the eBook margins should remain constant between even 
and odd pages.

The eBook has an integrated cover page, the pBook does not. The eBook footers 
are maroon background and contain the legend "Prepared exclusively for John 
Customer", whereas for minimal toner usage the pBook is all white in that 
area.

I REALLY don't want to maintain two LyX documents, coordinating modifications  
between the two. So I maintain only the eBook LyX doc, and have a script that 
reads the eBook LyX and spits out a pBook PDF.

The perl script is a filter whose stdin is the eBook LyX doc, and whose output 
is the pBook LyX document. The perlscript is a state machine, with state 
defined by a variable called $skip.

Skip=0: Document preamble
Skip=1: Document body, cover page or back of cover page
Skip=2: Found "start here" marker inside LyX Note inset.
Skip=3: Found the end of that LyX Note inset
Skip=4: Passed the end of the inset, include everything else

Here is the e2b.pl perlscript:

==
#!/usr/bin/perl -w
use strict;

my $skip = 0;
my $line;
while(<>){
$line = $_;
chomp $line;
if($skip == 0){
if ($line =~ m/\\myfooter/){
$line = '';
}
elsif($line =~ m/\\begin_body/){
print $line . "\n\n";
print "\\begin_layout Standard\n";
$skip = 1;
}
elsif($line =~ m/\\leftmargin/){
$line = '\\leftmargin 2.3in';
}
elsif($line =~ m/\\rightmargin/){
$line = '\\rightmargin 1.3in';
}

}
elsif(($skip == 1) && ($line =~ m/start_of_print_version_here/)){
$skip = 2;
}
elsif(($skip == 2) && ($line =~ m/^\\end_inset$/)){
$skip = 3;
}
elsif($skip == 3){
$skip = 4;
}
if(($skip == 0) || ($skip == 4)){
print $line . "\n";
}
}
==

There's also an e2b.sh that makes the pBook LyX a temporary file and compiles 
down to a PDF.

When $skip==0, I detect left and right margin and change them and I eliminate 
the footer (\myfooter).

All books are different, so your mileage may vary, but if you have a doc that's 
sometimes an eBook and sometimes a pBook, you can do something like this.

StevET

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt