RE: Black edge on images when using pdflatex

2007-05-04 Thread Sander Marechal
William Adams wrote:
 On May 3, 2007, at 11:51 AM, Sander Marechal wrote:

 I tried, but apparently the SVGs are too complicated for PDF. The  
 polygons that make up the graph don't floodfill correctly.

 No, the SVGs are too complex for the svg to pdf conversion tool  
 you're using.

In that case I used xsltproc and fop to go from DocBook XML with 
embedded SVG through XML-FO to PDF. After a couple of experiments
with DocBook I switched to LyX for the report templates and PDF
generator.

 What is making the SVGs in the first place? Can it go directly  
 to .pdf? Or some other format which can be easily made into a .pdf?  
 (.eps would be ideal, converting from .eps to .pdf is well understood)

The graphs are generated with the Image::Graph PHP-PEAR package.

-- 
Sander Marechal


Lyx opens Foxit 2.0 without loading PDF in it

2007-05-04 Thread Yegor Yefremov

Hi!

I use Lyx 1.5.0beta2 for Windows. At first I used Acrobat Reader 8.0. 
Because of the known bug I decided to install Foxit Reader 2.0 (I didn't 
uninstall Adobe Reader 8.0). It is now my default PDF-Viewer. When I 
export my Lyx-File to PDF I can open it with Foxit, but when I make 
View-PDF(pdflatex) I only got Foxit started without PDF in it. After 
reading this thread 
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg53679.html I 
added Foxit-path to PATH-prefix but without advancement. What am I doing 
wrong?


Best regards,

Yegor Yefrmov


Multiple document cross-reference problems?

2007-05-04 Thread Tim Holy
Hello,

I'm relatively new to using LyX. I'd played around with it a year or two ago, 
but (perhaps out of inertia more than anything else) returned to directly 
writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
say that I'm quite impressed. Thanks to the developers for some great work!

One of the many things that impressed me was the apparent ability to 
cross-reference between documents. (Our use case is to refer back and forth 
between the main text and supplementary information for a scientific 
paper.) While LyX makes it easy to insert the cross-document cross-reference, 
I have yet to figure out how to make that cross reference actually work in 
the PDF-exported document---it appears as ?? when the PDF is generated.

Attached are two small files that illustrate the problem. I open both files, 
verify that the cross-reference from doc1 points to a label in doc2, and then 
select View - PDF (pdflatex). An internal cross-reference works just fine, 
but the cross-document one does not.

Am I missing something, or is this a bug?

Thanks in advance for taking the time to look into this.

Best,
--Tim


doc1.lyx
Description: application/lyx


doc2.lyx
Description: application/lyx


downsampling in pdflatex output?

2007-05-04 Thread John Pye
Hi all

I would like to know if there's a way I can easily downsample (or
'degrade') images in my LyX document when creating output using
pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
PDF file is starting to become large and I'm sure there must be some
too-high resolution images in there. I found the graphics/degrade
package on CTAN but that seems to require that I use ERT for all my
images, which I'd rather avoid.

If it's not possible from within LyX, perhaps there's a post-processing
tool that someone can recommend: one that does the downsampling of a PDF
file, without killing my hyperlinks and bookmarks, would be what I'd want.

Any suggestions?

Cheers
JP




Re: Multiple document cross-reference problems?

2007-05-04 Thread Helge Hafting

Tim Holy wrote:

Hello,

I'm relatively new to using LyX. I'd played around with it a year or two ago, 
but (perhaps out of inertia more than anything else) returned to directly 
writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
say that I'm quite impressed. Thanks to the developers for some great work!


One of the many things that impressed me was the apparent ability to 
cross-reference between documents. (Our use case is to refer back and forth 
between the main text and supplementary information for a scientific 
paper.) While LyX makes it easy to insert the cross-document cross-reference, 
I have yet to figure out how to make that cross reference actually work in 
the PDF-exported document---it appears as ?? when the PDF is generated.


Attached are two small files that illustrate the problem. I open both files, 
verify that the cross-reference from doc1 points to a label in doc2, and then 
select View - PDF (pdflatex). An internal cross-reference works just fine, 
but the cross-document one does not.


Am I missing something, or is this a bug?
  

You are missing something. :-/
References from one file to another works only when the two files
are part of the same multi-file document.

Example: I wrote a book with one file per chapter. (And a master
document including all those chapters.) With this setup, I had no
problem making references from one chapter-file to another.

The page numbers or section numbers were resolved properly
only when printing the entire book - not if I printed just one chapterfile.


I believe this is the way latex work, I know no way to get correct
pagenumbers or section numbers for a document not part of the output.

That leaves the manual way, i.e. see section 'results' in document #2...

Helge Hafting






Re: downsampling in pdflatex output?

2007-05-04 Thread Helge Hafting

John Pye wrote:

Hi all

I would like to know if there's a way I can easily downsample (or
'degrade') images in my LyX document when creating output using
pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
PDF file is starting to become large and I'm sure there must be some
too-high resolution images in there. I found the graphics/degrade
package on CTAN but that seems to require that I use ERT for all my
images, which I'd rather avoid.

If it's not possible from within LyX, perhaps there's a post-processing
tool that someone can recommend: one that does the downsampling of a PDF
file, without killing my hyperlinks and bookmarks, would be what I'd want.

Any suggestions?
  

Just look at the size of your image files. Then, downsample
the biggest ones. If you want to keep the originals, make new
filenames for the downsampled files, and change the document
accordingly.

Helge Hafting


Re: 1.5.0 Beta 2 and XeTeX

2007-05-04 Thread Jürgen Spitzmüller
Philipp Reichmuth wrote:
 Would it be possible to add
 bare-bones UTF-8 output as an extra output encoding option (UTF-8 Raw
 or something)?

done (in revision 18198). The encoding is called utf8-plain.
Please test, if you find the time.

Jürgen


Re: Multiple document cross-reference problems?

2007-05-04 Thread John Pye
Tim Holy wrote:
 Hello,

 I'm relatively new to using LyX. I'd played around with it a year or two ago, 
 but (perhaps out of inertia more than anything else) returned to directly 
 writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
 say that I'm quite impressed. Thanks to the developers for some great work!

 One of the many things that impressed me was the apparent ability to 
 cross-reference between documents. (Our use case is to refer back and forth 
 between the main text and supplementary information for a scientific 
 paper.) While LyX makes it easy to insert the cross-document cross-reference, 
 I have yet to figure out how to make that cross reference actually work in 
 the PDF-exported document---it appears as ?? when the PDF is generated.

 Attached are two small files that illustrate the problem. I open both files, 
 verify that the cross-reference from doc1 points to a label in doc2, and then 
 select View - PDF (pdflatex). An internal cross-reference works just fine, 
 but the cross-document one does not.
   

I suggest that, as Helge suggested, you create a master document that
contains 'Input' tags for the two subdocuments. Then create your PDF by
calling pdflatex on the master document. Then, if you really want to
split the resulting sngle document back into separate PDFs, use 'pdftk'
as a post-processing step.

Cheers
JP


-- 
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



Docbook (sigh)

2007-05-04 Thread Trevor Nicholls
Hi

 

I'm looking at Lyx as a possible nice editing facility for an application
which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to a simple
schema which I suppose is close to being a small subset of Docbook, and we
could in fact create XSL stylesheets to take our files in and out of Docbook
if we wished to.

 

I realize that Lyx does not natively support XML source files, but I see
that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my documents
and produced a file.xml as per Docbook, so far so good. Now I want to import
it back into Lyx, but it seems that going in this direction is not possible.

 

As far as I can tell there was once a piece of software called 'db2lyx'
which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx development (I've
seen warnings against using newer versions, i.e. newer than 1.1!) and here
I am on 1.4.4, about to be 1.5.

 

If I can add a suitable command in the Conversions table I can see Docbook
as a valid format to import from; the trouble is I don't have a command that
works. Does anybody? Surely somebody is doing this!

 

Cheers

T

 



Re: downsampling in pdflatex output?

2007-05-04 Thread John Pye
Helge Hafting wrote:
 John Pye wrote:
 Hi all

 I would like to know if there's a way I can easily downsample (or
 'degrade') images in my LyX document when creating output using
 pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
 PDF file is starting to become large and I'm sure there must be some
 too-high resolution images in there. I found the graphics/degrade
 package on CTAN but that seems to require that I use ERT for all my
 images, which I'd rather avoid.

 If it's not possible from within LyX, perhaps there's a post-processing
 tool that someone can recommend: one that does the downsampling of a PDF
 file, without killing my hyperlinks and bookmarks, would be what I'd
 want.

 Any suggestions?
   
 Just look at the size of your image files. Then, downsample
 the biggest ones. If you want to keep the originals, make new
 filenames for the downsampled files, and change the document
 accordingly.

 Helge Hafting

Hi Helge,

I was really looking for an automated approach. For example on Windows,
there is 'PDF Factory' (although I haven't tried it with hyperlinks). So
I was hoping for something similar on Linux.

One reason why an automated approach would be good is that the file can
be big and appear big on the page: it /needs/ to be big. But if it's big
and appears /small/ on the page, then it needs to be downsampled.

Another reason: a LyX document can embed PDFs, SVGs, and I imagine other
'image' files, that can in turn embed bitmaps. One needs a tool that
examines the resulting PDF output, rather than the input files.

Cheers JP



Re: downsampling in pdflatex output?

2007-05-04 Thread Steve Litt
On Friday 04 May 2007 09:51, John Pye wrote:
 Helge Hafting wrote:
  John Pye wrote:
  Hi all
 
  I would like to know if there's a way I can easily downsample (or
  'degrade') images in my LyX document when creating output using
  pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
  PDF file is starting to become large and I'm sure there must be some
  too-high resolution images in there. I found the graphics/degrade
  package on CTAN but that seems to require that I use ERT for all my
  images, which I'd rather avoid.
 
  If it's not possible from within LyX, perhaps there's a post-processing
  tool that someone can recommend: one that does the downsampling of a PDF
  file, without killing my hyperlinks and bookmarks, would be what I'd
  want.
 
  Any suggestions?
 
  Just look at the size of your image files. Then, downsample
  the biggest ones. If you want to keep the originals, make new
  filenames for the downsampled files, and change the document
  accordingly.
 
  Helge Hafting

 Hi Helge,

 I was really looking for an automated approach. For example on Windows,
 there is 'PDF Factory' (although I haven't tried it with hyperlinks). So
 I was hoping for something similar on Linux.

 One reason why an automated approach would be good is that the file can
 be big and appear big on the page: it /needs/ to be big. But if it's big
 and appears /small/ on the page, then it needs to be downsampled.

 Another reason: a LyX document can embed PDFs, SVGs, and I imagine other
 'image' files, that can in turn embed bitmaps. One needs a tool that
 examines the resulting PDF output, rather than the input files.

 Cheers JP

If I needed to do this, I would write a program in Ruby, Python or Perl to do 
the following:

* Copy your original LyX to another filename. 
* Scan the new file for included pictures.
* For each picture:
1. Use imagemagic convert to create a lower resolution copy
2. Change the LyX source to point to the new picture copy
* Export to Latex
* Run pdflatex

Run one command, and your PDF is built with smaller pictures.

HTH

SteveT
 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/



Re: Multiple document cross-reference problems?

2007-05-04 Thread Tim Holy
Thanks to both Helge and John for clarifying the issues.

One small problem with the master document strategy is that the figure 
numbering, etc, will (by default) be wrong: when we refer to the first 
supplementary figure, unless we manually restart the figure counter, it will 
get rendered as Supp. Fig. n+1, where n is the number of figures in the main 
text. But we can work around this. In our case, the file sizes are not huge, 
so the motivation to split into two documents is simply that it's how we 
expect to have to submit the files. As you both say, there are several 
possible workarounds.

But I do think there is a way of getting this to work transparently, and maybe 
this would be of interest to the developers. Using the simple example files I 
sent in my last message, I just opened the doc2.aux file, copied the line:
\newlabel{sec:Results}{{1}{1}}
into doc1.aux, and then re-ran pdflatex on doc1. It worked like a charm.

In general, if LyX can keep track of the document referred to by the 
cross-references, then a simple
 grep newlabel file2.aux  file1.aux
would appear to solve the problem. The only issue I see here is that users 
might do some manual version control (having files named main_ver1.lyx, 
main_ver2.lyx, suppl_ver1.lyx, suppl_ver2.lyx, etc) and that might require 
some thought about how to migrate all the cross-references over to a file 
with a different name.

Best,
--Tim



On Friday 04 May 2007, John Pye wrote:
 Tim Holy wrote:
  Hello,
 
  I'm relatively new to using LyX. I'd played around with it a year or two
  ago, but (perhaps out of inertia more than anything else) returned to
  directly writing the latex with a text editor. Now I'm using LyX 1.4.3,
  and I have to say that I'm quite impressed. Thanks to the developers for
  some great work!
 
  One of the many things that impressed me was the apparent ability to
  cross-reference between documents. (Our use case is to refer back and
  forth between the main text and supplementary information for a
  scientific paper.) While LyX makes it easy to insert the cross-document
  cross-reference, I have yet to figure out how to make that cross
  reference actually work in the PDF-exported document---it appears as ??
  when the PDF is generated.
 
  Attached are two small files that illustrate the problem. I open both
  files, verify that the cross-reference from doc1 points to a label in
  doc2, and then select View - PDF (pdflatex). An internal cross-reference
  works just fine, but the cross-document one does not.

 I suggest that, as Helge suggested, you create a master document that
 contains 'Input' tags for the two subdocuments. Then create your PDF by
 calling pdflatex on the master document. Then, if you really want to
 split the resulting sngle document back into separate PDFs, use 'pdftk'
 as a post-processing step.

 Cheers
 JP




I need a distinctive character style for a specific word

2007-05-04 Thread Steve Litt
Hi all,

You know how there's a command to print LaTeX in a very decorative way? I need 
something similar to print the word ex so readers understand I'm speaking 
of the ex editor, and not an ex girlfriend or ex posto facto or something. I 
know how to use a character style and link it to a command -- I just need to 
know how to make something decorative within the LaTeX I have on my system (I 
think it's standard texmf).

I don't know how to incorporate the fonts in /usr/share/texmf/fonts into LyX. 
I have a feeling that a wierd, decorative font would do the trick.

In the meantime, so I can continue writing my book til I find out, I'm just 
gonna make the character style print ex big and black. When I get something 
more decorative I'll change the layout to change the appearance of every 
occurrence of ex (and that, my friends, is why I wanted character styles all 
these years :-)

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/



please help me

2007-05-04 Thread Jorge Mario

Hello

i am work with Lyx 1.5beta2,i have a problem  with  load  files

1) am make the file in Lyx 1.5beta2
2) go home
3) back to work  and i try load file 
and...exception  (0x4015)  in adress  
0x005b9531


Lyx  is been closed because of an unexpected  situation this is most 
likely  caused by a flaw in the software


please help me






Re: please help me

2007-05-04 Thread Abdelrazak Younes

Jorge Mario wrote:

Hello

i am work with Lyx 1.5beta2,i have a problem  with  load  files

1) am make the file in Lyx 1.5beta2
2) go home
3) back to work  and i try load file 
and...exception  (0x4015)  in adress  
0x005b9531


Lyx  is been closed because of an unexpected  situation this is most 
likely  caused by a flaw in the software


please help me


If it is not confidential, send the file to the developer list. It if it 
you can send it privately to me.


Abdel.



How to detect current font size, shape, series and the like?

2007-05-04 Thread Steve Litt
Hi all,

Turns out I'll be using my Ex character style in body text and in several 
headings, which means I can't hardcode a size like \LARGE, but instead must 
find a way to *increase* the font size, which means I need to detect and 
store the current font size so I can increase it, probably with a bunch of 
if/then/else type stuff.

How do I detect and store the current font size?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


OO export

2007-05-04 Thread Julio Rojas

Hi, I'm trying to export a document to OpenOffice and the following
error is presented in the console:

Exception in thread main java.lang.NoClassDefFoundError: xtpipes
zip no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

The Exception error is shown in two batches like 20 times each one.
Btween the two batches, the zip error appears.

Any problem with the scripts? BTW, I'm running Vista.

--
-
Julio Rojas
[EMAIL PROTECTED]


Re: PDF quality

2007-05-04 Thread Julio Rojas

No it's not, they look jagged., but it's online on screen.

On 5/4/07, Steve Litt [EMAIL PROTECTED] wrote:

Hi all,

Does pdflatex produce a better on-screen appearance than latex filename;ps2pdf
filename? It seems to me when I do the latter, my normal body text fonts
have jaggies, but perhaps it's my imagination.

Is there a way to get rid of the jaggies if I continue to use latex
filename;ps2pdf filename?

Thanks

STeveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/




--
-
Julio Rojas
[EMAIL PROTECTED]


Re: PDF quality

2007-05-04 Thread Todd Denniston

Steve Litt wrote:

Hi all,

Does pdflatex produce a better on-screen appearance than latex filename;ps2pdf 
filename? It seems to me when I do the latter, my normal body text fonts 
have jaggies, but perhaps it's my imagination.


Is there a way to get rid of the jaggies if I continue to use latex 
filename;ps2pdf filename?


Thanks

STeveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/




Steve,
I thought you had been here for a while longer than me... does the following 
explain the problem you are seeing? And hopefully give you a good solution?


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

also as far as i can recall, the problem would exist in both ps2pdf and 
pdflatex, because it is a problem with the font.


--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Docbook (sigh)

2007-05-04 Thread Patrick De Visschere


On May 4, 2007, at 2:50 PM, Trevor Nicholls wrote:


Hi



I'm looking at Lyx as a possible nice editing facility for an  
application

which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to  
a simple
schema which I suppose is close to being a small subset of Docbook,  
and we
could in fact create XSL stylesheets to take our files in and out  
of Docbook

if we wished to.


I'm also making the transition from FrameMaker to LyX. I convert(ed)  
the xml-files exported from FrameMaker to latex or docbook with XSL  
stylesheets. The thoughest part were the equations.


I realize that Lyx does not natively support XML source files, but  
I see

that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my  
documents
and produced a file.xml as per Docbook, so far so good. Now I want  
to import
it back into Lyx, but it seems that going in this direction is not  
possible.




That's right but the last time I tried it there were still some  
problems with equations.


You may also have a look at some other packages for converting latex  
to xml (I didn't try any of them yet):

http://www-sop.inria.fr/miaou/tralics/
http://hermes.roua.org/
http://dlmf.nist.gov/LaTeXML/#get




As far as I can tell there was once a piece of software called  
'db2lyx'

which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx  
development (I've
seen warnings against using newer versions, i.e. newer than 1.1!)  
and here

I am on 1.4.4, about to be 1.5.




I don't expect db2lyx to work with the newer LyX versions.
I suppose you should use db2latex (from the same author). LyX can  
easlily import latex documents.
I have tried db2latex but sofar with no success but this has very  
probably to do with the equations. db2latex uses xsltml for  
converting mathml equations to latex. I use this package too but made  
a few changes to it. So I should modify db2latex to use the modified  
version of mathml ...





If I can add a suitable command in the Conversions table I can see  
Docbook
as a valid format to import from; the trouble is I don't have a  
command that

works. Does anybody? Surely somebody is doing this!




I'll stick with LyX for the time being. I would prefer to keep my  
documents in an xml-format but this seems not possible as far as I  
know. I feel comfortable right now with the idea that LyX can export  
its documents as docbook.


I suppose you know about:
http://www.karakas-online.de/mySGML/

but like db2lyx it won't work with the latest versions of lyx and it  
looks rather complicated.


Regards

Patrick De Visschere



Cheers

T







Multi-numbered equations

2007-05-04 Thread Hans Kunkell

Hi!

I have 3 equations that I want on a single line (not inline), and 
numbered individually, like this:


   1+1=2, F=ma, A=bh (2), (3), (4)

In LyX I can only set one label per equation so is it possible to 
achieve this? Or if I should use LaTeX/ERT does someone know which 
package is needed?


Thanks in advance!

Hans Kunkell


RE: Black edge on images when using pdflatex

2007-05-04 Thread Sander Marechal
William Adams wrote:
 On May 3, 2007, at 11:51 AM, Sander Marechal wrote:

 I tried, but apparently the SVGs are too complicated for PDF. The  
 polygons that make up the graph don't floodfill correctly.

 No, the SVGs are too complex for the svg to pdf conversion tool  
 you're using.

In that case I used xsltproc and fop to go from DocBook XML with 
embedded SVG through XML-FO to PDF. After a couple of experiments
with DocBook I switched to LyX for the report templates and PDF
generator.

 What is making the SVGs in the first place? Can it go directly  
 to .pdf? Or some other format which can be easily made into a .pdf?  
 (.eps would be ideal, converting from .eps to .pdf is well understood)

The graphs are generated with the Image::Graph PHP-PEAR package.

-- 
Sander Marechal


Lyx opens Foxit 2.0 without loading PDF in it

2007-05-04 Thread Yegor Yefremov

Hi!

I use Lyx 1.5.0beta2 for Windows. At first I used Acrobat Reader 8.0. 
Because of the known bug I decided to install Foxit Reader 2.0 (I didn't 
uninstall Adobe Reader 8.0). It is now my default PDF-Viewer. When I 
export my Lyx-File to PDF I can open it with Foxit, but when I make 
View-PDF(pdflatex) I only got Foxit started without PDF in it. After 
reading this thread 
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg53679.html I 
added Foxit-path to PATH-prefix but without advancement. What am I doing 
wrong?


Best regards,

Yegor Yefrmov


Multiple document cross-reference problems?

2007-05-04 Thread Tim Holy
Hello,

I'm relatively new to using LyX. I'd played around with it a year or two ago, 
but (perhaps out of inertia more than anything else) returned to directly 
writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
say that I'm quite impressed. Thanks to the developers for some great work!

One of the many things that impressed me was the apparent ability to 
cross-reference between documents. (Our use case is to refer back and forth 
between the main text and supplementary information for a scientific 
paper.) While LyX makes it easy to insert the cross-document cross-reference, 
I have yet to figure out how to make that cross reference actually work in 
the PDF-exported document---it appears as ?? when the PDF is generated.

Attached are two small files that illustrate the problem. I open both files, 
verify that the cross-reference from doc1 points to a label in doc2, and then 
select View - PDF (pdflatex). An internal cross-reference works just fine, 
but the cross-document one does not.

Am I missing something, or is this a bug?

Thanks in advance for taking the time to look into this.

Best,
--Tim


doc1.lyx
Description: application/lyx


doc2.lyx
Description: application/lyx


downsampling in pdflatex output?

2007-05-04 Thread John Pye
Hi all

I would like to know if there's a way I can easily downsample (or
'degrade') images in my LyX document when creating output using
pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
PDF file is starting to become large and I'm sure there must be some
too-high resolution images in there. I found the graphics/degrade
package on CTAN but that seems to require that I use ERT for all my
images, which I'd rather avoid.

If it's not possible from within LyX, perhaps there's a post-processing
tool that someone can recommend: one that does the downsampling of a PDF
file, without killing my hyperlinks and bookmarks, would be what I'd want.

Any suggestions?

Cheers
JP




Re: Multiple document cross-reference problems?

2007-05-04 Thread Helge Hafting

Tim Holy wrote:

Hello,

I'm relatively new to using LyX. I'd played around with it a year or two ago, 
but (perhaps out of inertia more than anything else) returned to directly 
writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
say that I'm quite impressed. Thanks to the developers for some great work!


One of the many things that impressed me was the apparent ability to 
cross-reference between documents. (Our use case is to refer back and forth 
between the main text and supplementary information for a scientific 
paper.) While LyX makes it easy to insert the cross-document cross-reference, 
I have yet to figure out how to make that cross reference actually work in 
the PDF-exported document---it appears as ?? when the PDF is generated.


Attached are two small files that illustrate the problem. I open both files, 
verify that the cross-reference from doc1 points to a label in doc2, and then 
select View - PDF (pdflatex). An internal cross-reference works just fine, 
but the cross-document one does not.


Am I missing something, or is this a bug?
  

You are missing something. :-/
References from one file to another works only when the two files
are part of the same multi-file document.

Example: I wrote a book with one file per chapter. (And a master
document including all those chapters.) With this setup, I had no
problem making references from one chapter-file to another.

The page numbers or section numbers were resolved properly
only when printing the entire book - not if I printed just one chapterfile.


I believe this is the way latex work, I know no way to get correct
pagenumbers or section numbers for a document not part of the output.

That leaves the manual way, i.e. see section 'results' in document #2...

Helge Hafting






Re: downsampling in pdflatex output?

2007-05-04 Thread Helge Hafting

John Pye wrote:

Hi all

I would like to know if there's a way I can easily downsample (or
'degrade') images in my LyX document when creating output using
pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
PDF file is starting to become large and I'm sure there must be some
too-high resolution images in there. I found the graphics/degrade
package on CTAN but that seems to require that I use ERT for all my
images, which I'd rather avoid.

If it's not possible from within LyX, perhaps there's a post-processing
tool that someone can recommend: one that does the downsampling of a PDF
file, without killing my hyperlinks and bookmarks, would be what I'd want.

Any suggestions?
  

Just look at the size of your image files. Then, downsample
the biggest ones. If you want to keep the originals, make new
filenames for the downsampled files, and change the document
accordingly.

Helge Hafting


Re: 1.5.0 Beta 2 and XeTeX

2007-05-04 Thread Jürgen Spitzmüller
Philipp Reichmuth wrote:
 Would it be possible to add
 bare-bones UTF-8 output as an extra output encoding option (UTF-8 Raw
 or something)?

done (in revision 18198). The encoding is called utf8-plain.
Please test, if you find the time.

Jürgen


Re: Multiple document cross-reference problems?

2007-05-04 Thread John Pye
Tim Holy wrote:
 Hello,

 I'm relatively new to using LyX. I'd played around with it a year or two ago, 
 but (perhaps out of inertia more than anything else) returned to directly 
 writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
 say that I'm quite impressed. Thanks to the developers for some great work!

 One of the many things that impressed me was the apparent ability to 
 cross-reference between documents. (Our use case is to refer back and forth 
 between the main text and supplementary information for a scientific 
 paper.) While LyX makes it easy to insert the cross-document cross-reference, 
 I have yet to figure out how to make that cross reference actually work in 
 the PDF-exported document---it appears as ?? when the PDF is generated.

 Attached are two small files that illustrate the problem. I open both files, 
 verify that the cross-reference from doc1 points to a label in doc2, and then 
 select View - PDF (pdflatex). An internal cross-reference works just fine, 
 but the cross-document one does not.
   

I suggest that, as Helge suggested, you create a master document that
contains 'Input' tags for the two subdocuments. Then create your PDF by
calling pdflatex on the master document. Then, if you really want to
split the resulting sngle document back into separate PDFs, use 'pdftk'
as a post-processing step.

Cheers
JP


-- 
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



Docbook (sigh)

2007-05-04 Thread Trevor Nicholls
Hi

 

I'm looking at Lyx as a possible nice editing facility for an application
which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to a simple
schema which I suppose is close to being a small subset of Docbook, and we
could in fact create XSL stylesheets to take our files in and out of Docbook
if we wished to.

 

I realize that Lyx does not natively support XML source files, but I see
that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my documents
and produced a file.xml as per Docbook, so far so good. Now I want to import
it back into Lyx, but it seems that going in this direction is not possible.

 

As far as I can tell there was once a piece of software called 'db2lyx'
which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx development (I've
seen warnings against using newer versions, i.e. newer than 1.1!) and here
I am on 1.4.4, about to be 1.5.

 

If I can add a suitable command in the Conversions table I can see Docbook
as a valid format to import from; the trouble is I don't have a command that
works. Does anybody? Surely somebody is doing this!

 

Cheers

T

 



Re: downsampling in pdflatex output?

2007-05-04 Thread John Pye
Helge Hafting wrote:
 John Pye wrote:
 Hi all

 I would like to know if there's a way I can easily downsample (or
 'degrade') images in my LyX document when creating output using
 pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
 PDF file is starting to become large and I'm sure there must be some
 too-high resolution images in there. I found the graphics/degrade
 package on CTAN but that seems to require that I use ERT for all my
 images, which I'd rather avoid.

 If it's not possible from within LyX, perhaps there's a post-processing
 tool that someone can recommend: one that does the downsampling of a PDF
 file, without killing my hyperlinks and bookmarks, would be what I'd
 want.

 Any suggestions?
   
 Just look at the size of your image files. Then, downsample
 the biggest ones. If you want to keep the originals, make new
 filenames for the downsampled files, and change the document
 accordingly.

 Helge Hafting

Hi Helge,

I was really looking for an automated approach. For example on Windows,
there is 'PDF Factory' (although I haven't tried it with hyperlinks). So
I was hoping for something similar on Linux.

One reason why an automated approach would be good is that the file can
be big and appear big on the page: it /needs/ to be big. But if it's big
and appears /small/ on the page, then it needs to be downsampled.

Another reason: a LyX document can embed PDFs, SVGs, and I imagine other
'image' files, that can in turn embed bitmaps. One needs a tool that
examines the resulting PDF output, rather than the input files.

Cheers JP



Re: downsampling in pdflatex output?

2007-05-04 Thread Steve Litt
On Friday 04 May 2007 09:51, John Pye wrote:
 Helge Hafting wrote:
  John Pye wrote:
  Hi all
 
  I would like to know if there's a way I can easily downsample (or
  'degrade') images in my LyX document when creating output using
  pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
  PDF file is starting to become large and I'm sure there must be some
  too-high resolution images in there. I found the graphics/degrade
  package on CTAN but that seems to require that I use ERT for all my
  images, which I'd rather avoid.
 
  If it's not possible from within LyX, perhaps there's a post-processing
  tool that someone can recommend: one that does the downsampling of a PDF
  file, without killing my hyperlinks and bookmarks, would be what I'd
  want.
 
  Any suggestions?
 
  Just look at the size of your image files. Then, downsample
  the biggest ones. If you want to keep the originals, make new
  filenames for the downsampled files, and change the document
  accordingly.
 
  Helge Hafting

 Hi Helge,

 I was really looking for an automated approach. For example on Windows,
 there is 'PDF Factory' (although I haven't tried it with hyperlinks). So
 I was hoping for something similar on Linux.

 One reason why an automated approach would be good is that the file can
 be big and appear big on the page: it /needs/ to be big. But if it's big
 and appears /small/ on the page, then it needs to be downsampled.

 Another reason: a LyX document can embed PDFs, SVGs, and I imagine other
 'image' files, that can in turn embed bitmaps. One needs a tool that
 examines the resulting PDF output, rather than the input files.

 Cheers JP

If I needed to do this, I would write a program in Ruby, Python or Perl to do 
the following:

* Copy your original LyX to another filename. 
* Scan the new file for included pictures.
* For each picture:
1. Use imagemagic convert to create a lower resolution copy
2. Change the LyX source to point to the new picture copy
* Export to Latex
* Run pdflatex

Run one command, and your PDF is built with smaller pictures.

HTH

SteveT
 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/



Re: Multiple document cross-reference problems?

2007-05-04 Thread Tim Holy
Thanks to both Helge and John for clarifying the issues.

One small problem with the master document strategy is that the figure 
numbering, etc, will (by default) be wrong: when we refer to the first 
supplementary figure, unless we manually restart the figure counter, it will 
get rendered as Supp. Fig. n+1, where n is the number of figures in the main 
text. But we can work around this. In our case, the file sizes are not huge, 
so the motivation to split into two documents is simply that it's how we 
expect to have to submit the files. As you both say, there are several 
possible workarounds.

But I do think there is a way of getting this to work transparently, and maybe 
this would be of interest to the developers. Using the simple example files I 
sent in my last message, I just opened the doc2.aux file, copied the line:
\newlabel{sec:Results}{{1}{1}}
into doc1.aux, and then re-ran pdflatex on doc1. It worked like a charm.

In general, if LyX can keep track of the document referred to by the 
cross-references, then a simple
 grep newlabel file2.aux  file1.aux
would appear to solve the problem. The only issue I see here is that users 
might do some manual version control (having files named main_ver1.lyx, 
main_ver2.lyx, suppl_ver1.lyx, suppl_ver2.lyx, etc) and that might require 
some thought about how to migrate all the cross-references over to a file 
with a different name.

Best,
--Tim



On Friday 04 May 2007, John Pye wrote:
 Tim Holy wrote:
  Hello,
 
  I'm relatively new to using LyX. I'd played around with it a year or two
  ago, but (perhaps out of inertia more than anything else) returned to
  directly writing the latex with a text editor. Now I'm using LyX 1.4.3,
  and I have to say that I'm quite impressed. Thanks to the developers for
  some great work!
 
  One of the many things that impressed me was the apparent ability to
  cross-reference between documents. (Our use case is to refer back and
  forth between the main text and supplementary information for a
  scientific paper.) While LyX makes it easy to insert the cross-document
  cross-reference, I have yet to figure out how to make that cross
  reference actually work in the PDF-exported document---it appears as ??
  when the PDF is generated.
 
  Attached are two small files that illustrate the problem. I open both
  files, verify that the cross-reference from doc1 points to a label in
  doc2, and then select View - PDF (pdflatex). An internal cross-reference
  works just fine, but the cross-document one does not.

 I suggest that, as Helge suggested, you create a master document that
 contains 'Input' tags for the two subdocuments. Then create your PDF by
 calling pdflatex on the master document. Then, if you really want to
 split the resulting sngle document back into separate PDFs, use 'pdftk'
 as a post-processing step.

 Cheers
 JP




I need a distinctive character style for a specific word

2007-05-04 Thread Steve Litt
Hi all,

You know how there's a command to print LaTeX in a very decorative way? I need 
something similar to print the word ex so readers understand I'm speaking 
of the ex editor, and not an ex girlfriend or ex posto facto or something. I 
know how to use a character style and link it to a command -- I just need to 
know how to make something decorative within the LaTeX I have on my system (I 
think it's standard texmf).

I don't know how to incorporate the fonts in /usr/share/texmf/fonts into LyX. 
I have a feeling that a wierd, decorative font would do the trick.

In the meantime, so I can continue writing my book til I find out, I'm just 
gonna make the character style print ex big and black. When I get something 
more decorative I'll change the layout to change the appearance of every 
occurrence of ex (and that, my friends, is why I wanted character styles all 
these years :-)

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/



please help me

2007-05-04 Thread Jorge Mario

Hello

i am work with Lyx 1.5beta2,i have a problem  with  load  files

1) am make the file in Lyx 1.5beta2
2) go home
3) back to work  and i try load file 
and...exception  (0x4015)  in adress  
0x005b9531


Lyx  is been closed because of an unexpected  situation this is most 
likely  caused by a flaw in the software


please help me






Re: please help me

2007-05-04 Thread Abdelrazak Younes

Jorge Mario wrote:

Hello

i am work with Lyx 1.5beta2,i have a problem  with  load  files

1) am make the file in Lyx 1.5beta2
2) go home
3) back to work  and i try load file 
and...exception  (0x4015)  in adress  
0x005b9531


Lyx  is been closed because of an unexpected  situation this is most 
likely  caused by a flaw in the software


please help me


If it is not confidential, send the file to the developer list. It if it 
you can send it privately to me.


Abdel.



How to detect current font size, shape, series and the like?

2007-05-04 Thread Steve Litt
Hi all,

Turns out I'll be using my Ex character style in body text and in several 
headings, which means I can't hardcode a size like \LARGE, but instead must 
find a way to *increase* the font size, which means I need to detect and 
store the current font size so I can increase it, probably with a bunch of 
if/then/else type stuff.

How do I detect and store the current font size?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


OO export

2007-05-04 Thread Julio Rojas

Hi, I'm trying to export a document to OpenOffice and the following
error is presented in the console:

Exception in thread main java.lang.NoClassDefFoundError: xtpipes
zip no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

The Exception error is shown in two batches like 20 times each one.
Btween the two batches, the zip error appears.

Any problem with the scripts? BTW, I'm running Vista.

--
-
Julio Rojas
[EMAIL PROTECTED]


Re: PDF quality

2007-05-04 Thread Julio Rojas

No it's not, they look jagged., but it's online on screen.

On 5/4/07, Steve Litt [EMAIL PROTECTED] wrote:

Hi all,

Does pdflatex produce a better on-screen appearance than latex filename;ps2pdf
filename? It seems to me when I do the latter, my normal body text fonts
have jaggies, but perhaps it's my imagination.

Is there a way to get rid of the jaggies if I continue to use latex
filename;ps2pdf filename?

Thanks

STeveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/




--
-
Julio Rojas
[EMAIL PROTECTED]


Re: PDF quality

2007-05-04 Thread Todd Denniston

Steve Litt wrote:

Hi all,

Does pdflatex produce a better on-screen appearance than latex filename;ps2pdf 
filename? It seems to me when I do the latter, my normal body text fonts 
have jaggies, but perhaps it's my imagination.


Is there a way to get rid of the jaggies if I continue to use latex 
filename;ps2pdf filename?


Thanks

STeveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/




Steve,
I thought you had been here for a while longer than me... does the following 
explain the problem you are seeing? And hopefully give you a good solution?


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

also as far as i can recall, the problem would exist in both ps2pdf and 
pdflatex, because it is a problem with the font.


--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Docbook (sigh)

2007-05-04 Thread Patrick De Visschere


On May 4, 2007, at 2:50 PM, Trevor Nicholls wrote:


Hi



I'm looking at Lyx as a possible nice editing facility for an  
application

which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to  
a simple
schema which I suppose is close to being a small subset of Docbook,  
and we
could in fact create XSL stylesheets to take our files in and out  
of Docbook

if we wished to.


I'm also making the transition from FrameMaker to LyX. I convert(ed)  
the xml-files exported from FrameMaker to latex or docbook with XSL  
stylesheets. The thoughest part were the equations.


I realize that Lyx does not natively support XML source files, but  
I see

that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my  
documents
and produced a file.xml as per Docbook, so far so good. Now I want  
to import
it back into Lyx, but it seems that going in this direction is not  
possible.




That's right but the last time I tried it there were still some  
problems with equations.


You may also have a look at some other packages for converting latex  
to xml (I didn't try any of them yet):

http://www-sop.inria.fr/miaou/tralics/
http://hermes.roua.org/
http://dlmf.nist.gov/LaTeXML/#get




As far as I can tell there was once a piece of software called  
'db2lyx'

which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx  
development (I've
seen warnings against using newer versions, i.e. newer than 1.1!)  
and here

I am on 1.4.4, about to be 1.5.




I don't expect db2lyx to work with the newer LyX versions.
I suppose you should use db2latex (from the same author). LyX can  
easlily import latex documents.
I have tried db2latex but sofar with no success but this has very  
probably to do with the equations. db2latex uses xsltml for  
converting mathml equations to latex. I use this package too but made  
a few changes to it. So I should modify db2latex to use the modified  
version of mathml ...





If I can add a suitable command in the Conversions table I can see  
Docbook
as a valid format to import from; the trouble is I don't have a  
command that

works. Does anybody? Surely somebody is doing this!




I'll stick with LyX for the time being. I would prefer to keep my  
documents in an xml-format but this seems not possible as far as I  
know. I feel comfortable right now with the idea that LyX can export  
its documents as docbook.


I suppose you know about:
http://www.karakas-online.de/mySGML/

but like db2lyx it won't work with the latest versions of lyx and it  
looks rather complicated.


Regards

Patrick De Visschere



Cheers

T







Multi-numbered equations

2007-05-04 Thread Hans Kunkell

Hi!

I have 3 equations that I want on a single line (not inline), and 
numbered individually, like this:


   1+1=2, F=ma, A=bh (2), (3), (4)

In LyX I can only set one label per equation so is it possible to 
achieve this? Or if I should use LaTeX/ERT does someone know which 
package is needed?


Thanks in advance!

Hans Kunkell


RE: Black edge on images when using pdflatex

2007-05-04 Thread Sander Marechal
William Adams wrote:
> On May 3, 2007, at 11:51 AM, Sander Marechal wrote:
>
>> I tried, but apparently the SVGs are too complicated for PDF. The  
>> polygons that make up the graph don't floodfill correctly.
>
> No, the SVGs are too complex for the svg to pdf conversion tool  
> you're using.

In that case I used xsltproc and fop to go from DocBook XML with 
embedded SVG through XML-FO to PDF. After a couple of experiments
with DocBook I switched to LyX for the report templates and PDF
generator.

> What is making the SVGs in the first place? Can it go directly  
> to .pdf? Or some other format which can be easily made into a .pdf?  
> (.eps would be ideal, converting from .eps to .pdf is well understood)

The graphs are generated with the Image::Graph PHP-PEAR package.

-- 
Sander Marechal


Lyx opens Foxit 2.0 without loading PDF in it

2007-05-04 Thread Yegor Yefremov

Hi!

I use Lyx 1.5.0beta2 for Windows. At first I used Acrobat Reader 8.0. 
Because of the known bug I decided to install Foxit Reader 2.0 (I didn't 
uninstall Adobe Reader 8.0). It is now my default PDF-Viewer. When I 
export my Lyx-File to PDF I can open it with Foxit, but when I make 
View->PDF(pdflatex) I only got Foxit started without PDF in it. After 
reading this thread 
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg53679.html I 
added Foxit-path to PATH-prefix but without advancement. What am I doing 
wrong?


Best regards,

Yegor Yefrmov


Multiple document cross-reference problems?

2007-05-04 Thread Tim Holy
Hello,

I'm relatively new to using LyX. I'd played around with it a year or two ago, 
but (perhaps out of inertia more than anything else) returned to directly 
writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
say that I'm quite impressed. Thanks to the developers for some great work!

One of the many things that impressed me was the apparent ability to 
cross-reference between documents. (Our use case is to refer back and forth 
between the "main text" and "supplementary information" for a scientific 
paper.) While LyX makes it easy to insert the cross-document cross-reference, 
I have yet to figure out how to make that cross reference actually work in 
the PDF-exported document---it appears as "??" when the PDF is generated.

Attached are two small files that illustrate the problem. I open both files, 
verify that the cross-reference from doc1 points to a label in doc2, and then 
select View -> PDF (pdflatex). An internal cross-reference works just fine, 
but the cross-document one does not.

Am I missing something, or is this a bug?

Thanks in advance for taking the time to look into this.

Best,
--Tim


doc1.lyx
Description: application/lyx


doc2.lyx
Description: application/lyx


downsampling in pdflatex output?

2007-05-04 Thread John Pye
Hi all

I would like to know if there's a way I can easily downsample (or
'degrade') images in my LyX document when creating output using
pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
PDF file is starting to become large and I'm sure there must be some
too-high resolution images in there. I found the graphics/degrade
package on CTAN but that seems to require that I use ERT for all my
images, which I'd rather avoid.

If it's not possible from within LyX, perhaps there's a post-processing
tool that someone can recommend: one that does the downsampling of a PDF
file, without killing my hyperlinks and bookmarks, would be what I'd want.

Any suggestions?

Cheers
JP




Re: Multiple document cross-reference problems?

2007-05-04 Thread Helge Hafting

Tim Holy wrote:

Hello,

I'm relatively new to using LyX. I'd played around with it a year or two ago, 
but (perhaps out of inertia more than anything else) returned to directly 
writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
say that I'm quite impressed. Thanks to the developers for some great work!


One of the many things that impressed me was the apparent ability to 
cross-reference between documents. (Our use case is to refer back and forth 
between the "main text" and "supplementary information" for a scientific 
paper.) While LyX makes it easy to insert the cross-document cross-reference, 
I have yet to figure out how to make that cross reference actually work in 
the PDF-exported document---it appears as "??" when the PDF is generated.


Attached are two small files that illustrate the problem. I open both files, 
verify that the cross-reference from doc1 points to a label in doc2, and then 
select View -> PDF (pdflatex). An internal cross-reference works just fine, 
but the cross-document one does not.


Am I missing something, or is this a bug?
  

You are missing something. :-/
References from one file to another works only when the two files
are part of the same multi-file document.

Example: I wrote a book with one file per chapter. (And a master
document including all those chapters.) With this setup, I had no
problem making references from one chapter-file to another.

The page numbers or section numbers were resolved properly
only when printing the entire book - not if I printed just one chapterfile.


I believe this is the way latex work, I know no way to get correct
pagenumbers or section numbers for a document not part of the output.

That leaves the manual way, i.e. "see section 'results' in document #2"...

Helge Hafting






Re: downsampling in pdflatex output?

2007-05-04 Thread Helge Hafting

John Pye wrote:

Hi all

I would like to know if there's a way I can easily downsample (or
'degrade') images in my LyX document when creating output using
pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
PDF file is starting to become large and I'm sure there must be some
too-high resolution images in there. I found the graphics/degrade
package on CTAN but that seems to require that I use ERT for all my
images, which I'd rather avoid.

If it's not possible from within LyX, perhaps there's a post-processing
tool that someone can recommend: one that does the downsampling of a PDF
file, without killing my hyperlinks and bookmarks, would be what I'd want.

Any suggestions?
  

Just look at the size of your image files. Then, downsample
the biggest ones. If you want to keep the originals, make new
filenames for the downsampled files, and change the document
accordingly.

Helge Hafting


Re: 1.5.0 Beta 2 and XeTeX

2007-05-04 Thread Jürgen Spitzmüller
Philipp Reichmuth wrote:
> Would it be possible to add
> bare-bones UTF-8 output as an extra output encoding option ("UTF-8 Raw"
> or something)?

done (in revision 18198). The encoding is called utf8-plain.
Please test, if you find the time.

Jürgen


Re: Multiple document cross-reference problems?

2007-05-04 Thread John Pye
Tim Holy wrote:
> Hello,
>
> I'm relatively new to using LyX. I'd played around with it a year or two ago, 
> but (perhaps out of inertia more than anything else) returned to directly 
> writing the latex with a text editor. Now I'm using LyX 1.4.3, and I have to 
> say that I'm quite impressed. Thanks to the developers for some great work!
>
> One of the many things that impressed me was the apparent ability to 
> cross-reference between documents. (Our use case is to refer back and forth 
> between the "main text" and "supplementary information" for a scientific 
> paper.) While LyX makes it easy to insert the cross-document cross-reference, 
> I have yet to figure out how to make that cross reference actually work in 
> the PDF-exported document---it appears as "??" when the PDF is generated.
>
> Attached are two small files that illustrate the problem. I open both files, 
> verify that the cross-reference from doc1 points to a label in doc2, and then 
> select View -> PDF (pdflatex). An internal cross-reference works just fine, 
> but the cross-document one does not.
>   

I suggest that, as Helge suggested, you create a master document that
contains 'Input' tags for the two subdocuments. Then create your PDF by
calling pdflatex on the master document. Then, if you really want to
split the resulting sngle document back into separate PDFs, use 'pdftk'
as a post-processing step.

Cheers
JP


-- 
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



Docbook (sigh)

2007-05-04 Thread Trevor Nicholls
Hi

 

I'm looking at Lyx as a possible "nice" editing facility for an application
which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to a simple
schema which I suppose is close to being a small subset of Docbook, and we
could in fact create XSL stylesheets to take our files in and out of Docbook
if we wished to.

 

I realize that Lyx does not natively support XML source files, but I see
that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my documents
and produced a file.xml as per Docbook, so far so good. Now I want to import
it back into Lyx, but it seems that going in this direction is not possible.

 

As far as I can tell there was once a piece of software called 'db2lyx'
which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx development (I've
seen warnings against using "newer" versions, i.e. newer than 1.1!) and here
I am on 1.4.4, about to be 1.5.

 

If I can add a suitable command in the Conversions table I can see Docbook
as a valid format to import from; the trouble is I don't have a command that
works. Does anybody? Surely somebody is doing this!

 

Cheers

T

 



Re: downsampling in pdflatex output?

2007-05-04 Thread John Pye
Helge Hafting wrote:
> John Pye wrote:
>> Hi all
>>
>> I would like to know if there's a way I can easily downsample (or
>> 'degrade') images in my LyX document when creating output using
>> pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
>> PDF file is starting to become large and I'm sure there must be some
>> too-high resolution images in there. I found the graphics/degrade
>> package on CTAN but that seems to require that I use ERT for all my
>> images, which I'd rather avoid.
>>
>> If it's not possible from within LyX, perhaps there's a post-processing
>> tool that someone can recommend: one that does the downsampling of a PDF
>> file, without killing my hyperlinks and bookmarks, would be what I'd
>> want.
>>
>> Any suggestions?
>>   
> Just look at the size of your image files. Then, downsample
> the biggest ones. If you want to keep the originals, make new
> filenames for the downsampled files, and change the document
> accordingly.
>
> Helge Hafting

Hi Helge,

I was really looking for an automated approach. For example on Windows,
there is 'PDF Factory' (although I haven't tried it with hyperlinks). So
I was hoping for something similar on Linux.

One reason why an automated approach would be good is that the file can
be big and appear big on the page: it /needs/ to be big. But if it's big
and appears /small/ on the page, then it needs to be downsampled.

Another reason: a LyX document can embed PDFs, SVGs, and I imagine other
'image' files, that can in turn embed bitmaps. One needs a tool that
examines the resulting PDF output, rather than the input files.

Cheers JP



Re: downsampling in pdflatex output?

2007-05-04 Thread Steve Litt
On Friday 04 May 2007 09:51, John Pye wrote:
> Helge Hafting wrote:
> > John Pye wrote:
> >> Hi all
> >>
> >> I would like to know if there's a way I can easily downsample (or
> >> 'degrade') images in my LyX document when creating output using
> >> pdflatex. I have a mix of PNGs, PDFs, EPS and JPG in my document, but my
> >> PDF file is starting to become large and I'm sure there must be some
> >> too-high resolution images in there. I found the graphics/degrade
> >> package on CTAN but that seems to require that I use ERT for all my
> >> images, which I'd rather avoid.
> >>
> >> If it's not possible from within LyX, perhaps there's a post-processing
> >> tool that someone can recommend: one that does the downsampling of a PDF
> >> file, without killing my hyperlinks and bookmarks, would be what I'd
> >> want.
> >>
> >> Any suggestions?
> >
> > Just look at the size of your image files. Then, downsample
> > the biggest ones. If you want to keep the originals, make new
> > filenames for the downsampled files, and change the document
> > accordingly.
> >
> > Helge Hafting
>
> Hi Helge,
>
> I was really looking for an automated approach. For example on Windows,
> there is 'PDF Factory' (although I haven't tried it with hyperlinks). So
> I was hoping for something similar on Linux.
>
> One reason why an automated approach would be good is that the file can
> be big and appear big on the page: it /needs/ to be big. But if it's big
> and appears /small/ on the page, then it needs to be downsampled.
>
> Another reason: a LyX document can embed PDFs, SVGs, and I imagine other
> 'image' files, that can in turn embed bitmaps. One needs a tool that
> examines the resulting PDF output, rather than the input files.
>
> Cheers JP

If I needed to do this, I would write a program in Ruby, Python or Perl to do 
the following:

* Copy your original LyX to another filename. 
* Scan the new file for included pictures.
* For each picture:
1. Use imagemagic convert to create a lower resolution copy
2. Change the LyX source to point to the new picture copy
* Export to Latex
* Run pdflatex

Run one command, and your PDF is built with smaller pictures.

HTH

SteveT
 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/



Re: Multiple document cross-reference problems?

2007-05-04 Thread Tim Holy
Thanks to both Helge and John for clarifying the issues.

One small problem with the "master document" strategy is that the figure 
numbering, etc, will (by default) be wrong: when we refer to the first 
supplementary figure, unless we manually restart the figure counter, it will 
get rendered as Supp. Fig. n+1, where n is the number of figures in the main 
text. But we can work around this. In our case, the file sizes are not huge, 
so the motivation to split into two documents is simply that it's how we 
expect to have to submit the files. As you both say, there are several 
possible workarounds.

But I do think there is a way of getting this to work transparently, and maybe 
this would be of interest to the developers. Using the simple example files I 
sent in my last message, I just opened the doc2.aux file, copied the line:
\newlabel{sec:Results}{{1}{1}}
into doc1.aux, and then re-ran pdflatex on doc1. It worked like a charm.

In general, if LyX can keep track of the document referred to by the 
cross-references, then a simple
 grep newlabel file2.aux >> file1.aux
would appear to solve the problem. The only issue I see here is that users 
might do some manual version control (having files named main_ver1.lyx, 
main_ver2.lyx, suppl_ver1.lyx, suppl_ver2.lyx, etc) and that might require 
some thought about how to migrate all the cross-references over to a file 
with a different name.

Best,
--Tim



On Friday 04 May 2007, John Pye wrote:
> Tim Holy wrote:
> > Hello,
> >
> > I'm relatively new to using LyX. I'd played around with it a year or two
> > ago, but (perhaps out of inertia more than anything else) returned to
> > directly writing the latex with a text editor. Now I'm using LyX 1.4.3,
> > and I have to say that I'm quite impressed. Thanks to the developers for
> > some great work!
> >
> > One of the many things that impressed me was the apparent ability to
> > cross-reference between documents. (Our use case is to refer back and
> > forth between the "main text" and "supplementary information" for a
> > scientific paper.) While LyX makes it easy to insert the cross-document
> > cross-reference, I have yet to figure out how to make that cross
> > reference actually work in the PDF-exported document---it appears as "??"
> > when the PDF is generated.
> >
> > Attached are two small files that illustrate the problem. I open both
> > files, verify that the cross-reference from doc1 points to a label in
> > doc2, and then select View -> PDF (pdflatex). An internal cross-reference
> > works just fine, but the cross-document one does not.
>
> I suggest that, as Helge suggested, you create a master document that
> contains 'Input' tags for the two subdocuments. Then create your PDF by
> calling pdflatex on the master document. Then, if you really want to
> split the resulting sngle document back into separate PDFs, use 'pdftk'
> as a post-processing step.
>
> Cheers
> JP




I need a distinctive character style for a specific word

2007-05-04 Thread Steve Litt
Hi all,

You know how there's a command to print LaTeX in a very decorative way? I need 
something similar to print the word "ex" so readers understand I'm speaking 
of the ex editor, and not an ex girlfriend or ex posto facto or something. I 
know how to use a character style and link it to a command -- I just need to 
know how to make something decorative within the LaTeX I have on my system (I 
think it's standard texmf).

I don't know how to incorporate the fonts in /usr/share/texmf/fonts into LyX. 
I have a feeling that a wierd, decorative font would do the trick.

In the meantime, so I can continue writing my book til I find out, I'm just 
gonna make the character style print ex big and black. When I get something 
more decorative I'll change the layout to change the appearance of every 
occurrence of ex (and that, my friends, is why I wanted character styles all 
these years :-)

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/



please help me

2007-05-04 Thread Jorge Mario

Hello

i am work with Lyx 1.5beta2,i have a problem  with  load  files

1) am make the file in Lyx 1.5beta2
2) go home
3) back to work  and i try load file 
and...exception  (0x4015)  in adress  
0x005b9531


Lyx  is been closed because of an unexpected  situation this is most 
likely  caused by a flaw in the software


please help me






Re: please help me

2007-05-04 Thread Abdelrazak Younes

Jorge Mario wrote:

Hello

i am work with Lyx 1.5beta2,i have a problem  with  load  files

1) am make the file in Lyx 1.5beta2
2) go home
3) back to work  and i try load file 
and...exception  (0x4015)  in adress  
0x005b9531


Lyx  is been closed because of an unexpected  situation this is most 
likely  caused by a flaw in the software


please help me


If it is not confidential, send the file to the developer list. It if it 
you can send it privately to me.


Abdel.



How to detect current font size, shape, series and the like?

2007-05-04 Thread Steve Litt
Hi all,

Turns out I'll be using my Ex character style in body text and in several 
headings, which means I can't hardcode a size like \LARGE, but instead must 
find a way to *increase* the font size, which means I need to detect and 
store the current font size so I can increase it, probably with a bunch of 
if/then/else type stuff.

How do I detect and store the current font size?

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


OO export

2007-05-04 Thread Julio Rojas

Hi, I'm trying to export a document to OpenOffice and the following
error is presented in the console:

Exception in thread "main" java.lang.NoClassDefFoundError: xtpipes
"zip" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

The "Exception" error is shown in two batches like 20 times each one.
Btween the two batches, the "zip" error appears.

Any problem with the scripts? BTW, I'm running Vista.

--
-
Julio Rojas
[EMAIL PROTECTED]


Re: PDF quality

2007-05-04 Thread Julio Rojas

No it's not, they look jagged., but it's online on screen.

On 5/4/07, Steve Litt <[EMAIL PROTECTED]> wrote:

Hi all,

Does pdflatex produce a better on-screen appearance than latex filename;ps2pdf
filename? It seems to me when I do the latter, my normal body text fonts
have "jaggies", but perhaps it's my imagination.

Is there a way to get rid of the "jaggies" if I continue to use latex
filename;ps2pdf filename?

Thanks

STeveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/




--
-
Julio Rojas
[EMAIL PROTECTED]


Re: PDF quality

2007-05-04 Thread Todd Denniston

Steve Litt wrote:

Hi all,

Does pdflatex produce a better on-screen appearance than latex filename;ps2pdf 
filename? It seems to me when I do the latter, my normal body text fonts 
have "jaggies", but perhaps it's my imagination.


Is there a way to get rid of the "jaggies" if I continue to use latex 
filename;ps2pdf filename?


Thanks

STeveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/




Steve,
I thought you had been here for a while longer than me... does the following 
explain the problem you are seeing? And hopefully give you a good solution?


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

also as far as i can recall, the problem would exist in both ps2pdf and 
pdflatex, because it is a problem with the font.


--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Docbook (sigh)

2007-05-04 Thread Patrick De Visschere


On May 4, 2007, at 2:50 PM, Trevor Nicholls wrote:


Hi



I'm looking at Lyx as a possible "nice" editing facility for an  
application

which is currently using FrameMaker to do that job, with our source
documents saved as XML files. The document files are constrained to  
a simple
schema which I suppose is close to being a small subset of Docbook,  
and we
could in fact create XSL stylesheets to take our files in and out  
of Docbook

if we wished to.


I'm also making the transition from FrameMaker to LyX. I convert(ed)  
the xml-files exported from FrameMaker to latex or docbook with XSL  
stylesheets. The thoughest part were the equations.


I realize that Lyx does not natively support XML source files, but  
I see

that it is possible to export a Lyx document to Docbook format. I have
knocked up a sample Lyx file which looks like (part of) one of my  
documents
and produced a file.xml as per Docbook, so far so good. Now I want  
to import
it back into Lyx, but it seems that going in this direction is not  
possible.




That's right but the last time I tried it there were still some  
problems with equations.


You may also have a look at some other packages for converting latex  
to xml (I didn't try any of them yet):

http://www-sop.inria.fr/miaou/tralics/
http://hermes.roua.org/
http://dlmf.nist.gov/LaTeXML/#get




As far as I can tell there was once a piece of software called  
'db2lyx'

which appears to have enabled this, but it seems to have fallen by the
wayside and not kept pace with the last few years of Lyx  
development (I've
seen warnings against using "newer" versions, i.e. newer than 1.1!)  
and here

I am on 1.4.4, about to be 1.5.




I don't expect db2lyx to work with the newer LyX versions.
I suppose you should use db2latex (from the same author). LyX can  
easlily import latex documents.
I have tried db2latex but sofar with no success but this has very  
probably to do with the equations. db2latex uses xsltml for  
converting mathml equations to latex. I use this package too but made  
a few changes to it. So I should modify db2latex to use the modified  
version of mathml ...





If I can add a suitable command in the Conversions table I can see  
Docbook
as a valid format to import from; the trouble is I don't have a  
command that

works. Does anybody? Surely somebody is doing this!




I'll stick with LyX for the time being. I would prefer to keep my  
documents in an xml-format but this seems not possible as far as I  
know. I feel comfortable right now with the idea that LyX can export  
its documents as docbook.


I suppose you know about:
http://www.karakas-online.de/mySGML/

but like db2lyx it won't work with the latest versions of lyx and it  
looks rather complicated.


Regards

Patrick De Visschere



Cheers

T







Multi-numbered equations

2007-05-04 Thread Hans Kunkell

Hi!

I have 3 equations that I want on a single line (not inline), and 
numbered individually, like this:


   1+1=2, F=ma, A=bh (2), (3), (4)

In LyX I can only set one label per equation so is it possible to 
achieve this? Or if I should use LaTeX/ERT does someone know which 
package is needed?


Thanks in advance!

Hans Kunkell