Re: Template for external gnuplots and converter scripts for LyX [was: Re: Help with gnuplot xtemplate needed]

2024-04-24 Thread Pavel Sanda
On Wed, Apr 24, 2024 at 04:07:51PM +0200, Tobias Hilbricht wrote:
> > Apart from that, I could upload your scripts into wiki upload section
> > if you want to just link them.
> 
> Yes, that would be good, that makes it easier to install and use.

Ok, it is now at: https://wiki.lyx.org/uploads/Examples/gnuplot.xtemplate/
you can link to the file from wiki via 
uploads:/Examples/gnuplot.xtemplate/file...

> > And we could also mention in in our
> > manuals if you send me the pach :) Up to you.
> 
> What do you mean here?

We have some mention of .gp files in user guide of lyx 2.5:
https://www.lyx.org/trac/export/f3c5ff9cb72c5231f1e1e81452e67d6f12dadecb/lyxgit/lib/doc/UserGuide.lyx

You can edit the footnote about gnuplot (with lyx 2.4 if you have it) to 
mention the
template in wiki page and its advantage - then send the update of the UG to me, 
I'll commit it.

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Template for external gnuplots and converter scripts for LyX [was: Re: Help with gnuplot xtemplate needed]

2024-04-24 Thread Tobias Hilbricht
Am Dienstag, dem 23.04.2024 um 11:01 +0200 schrieb Pavel Sanda:
> On Mon, Apr 22, 2024 at 08:10:15PM +0200, Tobias Hilbricht wrote:
> > 
> > With gnuplots as external material (gnuplot.xtemplate) something
> > similar to the inkscape.xtemplate and the xfig.xtemplate happens:
> > Labels and numbers appear in the document font, which looks way
> > better
> > and is less confusing than having different fonts in the plot. And
> > LaTeX math input is rendered.

> Ok, I see. I think it would be good to put this explanation in the
> wiki.

I have put the explanation into the wiki.

> Apart from that, I could upload your scripts into wiki upload section
> if you want to just link them.

Yes, that would be good, that makes it easier to install and use.

> And we could also mention in in our
> manuals if you send me the pach :) Up to you.

What do you mean here?

> I could even see something like that landing as part of lyx 2.5,
> if there is demand (or/and some active dev who would review/use
> this stuff).

Yes, it would be good if it gets tested on other systems (It works here
nicely on Ubuntu 22.04.4 with LyX 2.4.0~RC4 and gnuplot 5.4 patchlevel
2).

Tobias

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Template for external gnuplots and converter scripts for LyX [was: Re: Help with gnuplot xtemplate needed]

2024-04-23 Thread Pavel Sanda
On Mon, Apr 22, 2024 at 08:10:15PM +0200, Tobias Hilbricht wrote:
> thank you for asking. When just using .gp filename directly as graphics
> inset the fonts in the plot are not the same as document fonts. E. g.
> in default settings you have CM fonts in the document and Helvetica in
> the gnuplot. Furthermore, direct graphic insets do not render LaTeX
> math in a gnuplot.
> With gnuplots as external material (gnuplot.xtemplate) something
> similar to the inkscape.xtemplate and the xfig.xtemplate happens:
> Labels and numbers appear in the document font, which looks way better
> and is less confusing than having different fonts in the plot. And
> LaTeX math input is rendered.
> I have attached a PDF showing the difference and a sample another-
> gnuplot-example.gp which contains LaTeX math.

Ok, I see. I think it would be good to put this explanation in the
wiki.

Apart from that, I could upload your scripts into wiki upload section
if you want to just link them. And we could also mention in in our
manuals if you send me the pach :) Up to you.

I could even see something like that landing as part of lyx 2.5,
if there is demand (or/and some active dev who would review/use
this stuff).

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Template for external gnuplots and converter scripts for LyX [was: Re: Help with gnuplot xtemplate needed]

2024-04-21 Thread Pavel Sanda
On Sun, Apr 21, 2024 at 03:03:15PM +0200, Tobias Hilbricht wrote:
> I copied gnuplot.xtemplate and the converter scripts in Python along
> with instructions for setup and configuration on? in? the LyX wiki:
> 
> https://wiki.lyx.org/Tools/GnuplotInLyX

What is the advantage here compared to just using .gp filename directly
in graphics inset?

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Template for external gnuplots and converter scripts for LyX [was: Re: Help with gnuplot xtemplate needed]

2024-04-21 Thread Tobias Hilbricht
I copied gnuplot.xtemplate and the converter scripts in Python along
with instructions for setup and configuration on? in? the LyX wiki:

https://wiki.lyx.org/Tools/GnuplotInLyX

Tobias
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Error while exporting format: \converter

2024-01-07 Thread Hal Kierstead via lyx-users


> On Jan 6, 2024, at 6:36 PM, Steve Litt  wrote:
> 
> Hal Kierstead via lyx-users said on Sat, 6 Jan 2024 08:14:34 -0700
> 
>> All -
>> 
>> I got this message,  "Error while exporting format: \converter”, when
>> trying to view a master document. It has happened in the past, but I
>> forget how to correct it. Can someone help?
> 
> Your first step is to copy the document and reduce it to an MWE. An MWE
> is the tiniest possible document that still reproduces the symptom.
> Armed with the MWE, you can either troubleshoot it yourself or actually
> get help.
> 
> HTH,
> 
> SteveT
> 
> Steve Litt 
> 
Steve -
Pauls’s comment was enough for me to fix the problem. It had nothing to do with 
MWE’s:
> What format are you using to view the document, and do you have a converter 
> set up for that format?
Hal
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Error while exporting format: \converter

2024-01-06 Thread Steve Litt
Hal Kierstead via lyx-users said on Sat, 6 Jan 2024 08:14:34 -0700

>All -
>
>I got this message,  "Error while exporting format: \converter”, when
>trying to view a master document. It has happened in the past, but I
>forget how to correct it. Can someone help?

Your first step is to copy the document and reduce it to an MWE. An MWE
is the tiniest possible document that still reproduces the symptom.
Armed with the MWE, you can either troubleshoot it yourself or actually
get help.

HTH,

SteveT

Steve Litt 

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Error while exporting format: \converter----Thanks

2024-01-06 Thread Hal Kierstead via lyx-users
Paul -

Many thanks; your question was enough for me to find the problem. For some 
reason, the Default Output Format with tex fonts was blank—I fixed this. I have 
no idea how this happened all of a sudden. Anyway it works now.

Hal

> On Jan 6, 2024, at 9:20 AM, Paul Rubin  wrote:
> 
> 
> 
> On 1/6/24 10:14, Hal Kierstead via lyx-users wrote:
>> All -
>> 
>> I got this message,  "Error while exporting format: \converter”, when trying 
>> to view a master document. It has happened in the past, but I forget how to 
>> correct it. Can someone help?
>> 
>> I am using Lyx 2.3.7 on with MacOS: 11.7.10.
>> 
>> Thanks,
>> 
>> Hal
> What format are you using to view the document, and do you have a converter 
> set up for that format?
> 
> Paul
> 
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Error while exporting format: \converter

2024-01-06 Thread Paul Rubin



On 1/6/24 10:14, Hal Kierstead via lyx-users wrote:

All -

I got this message,  "Error while exporting format: \converter”, when trying to 
view a master document. It has happened in the past, but I forget how to correct it. 
Can someone help?

I am using Lyx 2.3.7 on with MacOS: 11.7.10.

Thanks,

Hal
What format are you using to view the document, and do you have a 
converter set up for that format?


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Error while exporting format: \converter

2024-01-06 Thread Hal Kierstead via lyx-users
All -

I got this message,  "Error while exporting format: \converter”, when trying to 
view a master document. It has happened in the past, but I forget how to 
correct it. Can someone help?

I am using Lyx 2.3.7 on with MacOS: 11.7.10.

Thanks,

Hal
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: converter

2023-03-24 Thread Herbert Voss




Am 24.03.23 um 19:56 schrieb Patrick Dupre:



why do you need the dvi output?

Because !!!
1) need to get the tex file,
run latex on the file
and
make a dvips -dALLOWPSTRANSPARENCY

This is only option that I have to make it works properly.


My question was _why_ do you need it. Nowadays nearly all documents
can be run with pdflatex/xelatex/lualatex or as plain pdftex/luatex/xetex

Herbert




Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: converter

2023-03-24 Thread Patrick Dupre



> Sent: Friday, March 24, 2023 at 7:48 PM
> From: "Herbert Voss" 
> To: lyx-users@lists.lyx.org
> Subject: Re: converter
>
> 
> 
> Am 24.03.23 um 18:05 schrieb Patrick Dupre:
> > Hello,
> >
> >> Can I create a file converter command (File Handling)
> >> latex -> pdf with a triple command
> >> "export latex (plain) $o"; latex $o; dvipdf -d-dALLOWPSTRANSPARENCY $o.dvi
> >> ?
> > I think that I making something wrong
> >   
> > in File Format, I put
> > Format Tkpdf
> > in short name tkpdf
> > in Extension pdf
> >   
> > In converter
> > Latex (plain) -> Tkpdf
> > from format:
> > Latex (plain)
> > to format:
> > Tkpdf
> > Converter:
> > dvipdf   $$i $$o
> 
> why do you need the dvi output?
Because !!!
1) need to get the tex file,
run latex on the file
and
make a dvips -dALLOWPSTRANSPARENCY

This is only option that I have to make it works properly.

> 
> Herbert
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
> 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: converter

2023-03-24 Thread Herbert Voss




Am 24.03.23 um 18:05 schrieb Patrick Dupre:

Hello,


Can I create a file converter command (File Handling)
latex -> pdf with a triple command
"export latex (plain) $o"; latex $o; dvipdf -d-dALLOWPSTRANSPARENCY $o.dvi
?

I think that I making something wrong
  
in File Format, I put

Format Tkpdf
in short name tkpdf
in Extension pdf
  
In converter

Latex (plain) -> Tkpdf
from format:
Latex (plain)
to format:
Tkpdf
Converter:
dvipdf   $$i $$o


why do you need the dvi output?

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


converter

2023-03-24 Thread Patrick Dupre
Hello,

> Can I create a file converter command (File Handling)
> latex -> pdf with a triple command
> "export latex (plain) $o"; latex $o; dvipdf -d-dALLOWPSTRANSPARENCY $o.dvi
> ?

I think that I making something wrong
 
in File Format, I put
Format Tkpdf
in short name tkpdf
in Extension pdf
 
In converter
Latex (plain) -> Tkpdf
from format:
Latex (plain)
to format:
Tkpdf
Converter:
dvipdf   $$i $$o
 
 
But neither tex or dvi files are generated.
 
 
In the pdf file I get
%PDF-1.7
%�쏢
%%Invocation: gs -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=? 
-sOutputFile=? -
5 0 obj
<>
stream
x�+T0�3T0A(5Ieendstream
endobj
6 0 obj
23
 
and
dvips: ! Bad DVI file: first byte not preamble

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988| | Room# D114A
===

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Converter

2023-03-23 Thread Patrick Dupre
Hello,

Can I create a file converter command (File Handling)
latex -> pdf with a triple command
"export latex (plain) $o"; latex $o; dvipdf -d-dALLOWPSTRANSPARENCY $o.dvi
?

Thank

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988| | Room# D114A
===

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-25 Thread Steve Litt via lyx-users
Steve Litt via lyx-users said on Fri, 25 Mar 2022 18:09:56 -0400


>And please make the output well-formed XML as well as HTML5. HTML5 can,
>but doesn't have to be, well formed XML. It's a couple orders of
>magnitude easier to deal with if the exported HTML has all opening tags
>accompanied by closing tags, and for tags that both open and close
>( for instance), be sure to put the trailing slash.

The following simple Python3 program checks to make sure the file that
is its argument is well-formed XML. It's also attached as an
attachment. By using this program on LyX' HTML exports, you can verify
that the HTML is also well formed XML.

==
#!/usr/bin/python3

# Copyright 2017 by Steve Litt
# Expat license: https://directory.fsf.org/wiki/License:Expat

import sys
import re
import xml.etree.ElementTree as ET

fname = sys.argv[1]
print('\nTesting for well formedness {} ...\n'.format(fname))
try:
tree = ET.parse(fname)
except ET.ParseError as err:
(line, col) = err.position
code = str(err.code)
errmsg = 'ERROR: {}'.format(str(err))
print(errmsg)
if re.search(' ', errmsg):
print('Replace all   with   to solve problem.')
print('\n')
sys.exit(1)
else:
print('Congrats, {} is well formed!'.format(fname))
print('')

==

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
#!/usr/bin/python3

# Copyright 2017 by Steve Litt
# Expat license: https://directory.fsf.org/wiki/License:Expat

import sys
import re
import xml.etree.ElementTree as ET

fname = sys.argv[1]
print('\nTesting for well formedness {} ...\n'.format(fname))
try:
tree = ET.parse(fname)
except ET.ParseError as err:
(line, col) = err.position
code = str(err.code)
errmsg = 'ERROR: {}'.format(str(err))
print(errmsg)
if re.search(' ', errmsg):
print('Replace all   with   to solve problem.')
print('\n')
sys.exit(1)
else:
print('Congrats, {} is well formed!'.format(fname))
print('')
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-25 Thread Steve Litt via lyx-users
Pavel Sanda via lyx-users said on Fri, 25 Mar 2022 09:20:15 +0100


>That said, the unfortunate news is that speedy prototyping in external
>python script is probably going to share the fate of other scripts of
>this sort (elyxer being last but not the only one): cool and perhaps
>better than the output we currently have, but in long-term
>uncompatible and abandoned, because it does not internally share the
>codebase with LyX itself.

Or, the LyX project could fulfill their goal of making LyX' native
format an XML dialect, and then any developer could convert a LyX doc
to any other format quite easily.

The trouble is, in the early 00's, the LyX project decided to make the
LyX native format an XML dialect, which greatly increased the
difficulty of parsing a LyX file, but did not carry through in making
LyX files well formed XML. If they'd carried through with making it
XML, converting it to anything else would be relatively simple. As of
now, it's the worst of both worlds: Difficult parsing because of some
XMLisms, but not parsable by an XML parser because it's not well formed
XML.

One more thing. In my opinion LyX' HTML export suffers not from
technical deficiencies, but from deficiencies of specification. Please,
don't do us the "favor" of adding appearances to the HTML. Instead,
just pass the styles through as-is, and let people like Ken Kopelson
and me handle conversion of style to appearance, which is done simply
with CSS. When you pass appearances instead of styles into the HTML,
you're doing extra work, and sabotaging us.

And please make the output well-formed XML as well as HTML5. HTML5 can,
but doesn't have to be, well formed XML. It's a couple orders of
magnitude easier to deal with if the exported HTML has all opening tags
accompanied by closing tags, and for tags that both open and close
( for instance), be sure to put the trailing slash.

Also, please either give the output file an XML DTD/schema that defines
HTML characters like   , or else just output their numeric
equivalents, eg.   . Ken Kopelson, do you agree with this
paragraph?

If you want to go the extra mile in making things easier for people
writing LyXHTML to ePub converters, a nice but by no means necessary
favor you could do us is to output a CSS file listing all the styles in
the document, and perhaps giving some best-guess appearances for each.
Or else make them all big and red, so the self-published author can
easily specify each later on. But please, please, PLEASE, do not throw
in an all-possible-styles CSS file that bloats up our books and is
extremely difficult to deal with. I'd rather personally write an XML
parser that looks at the XHTML5 file and outputs the CSS.

All previous attempts have considered the exported HTML to be the final
file for reading. This is clearly false: It's an intermediate file, and
as such, should be very easy to parse (do the slight extra work to make
it well-formed XML), and pass ONLY styles into it, no appearances.

And this thing where standard paragraph environment translated to two
different , one for the first line and one for all the rest so that
the first line isn't indented, please don't. This is easily done in CSS,
and even if it weren't, we converter makers could easily write a
converter program to change it to two different , AT THE VERY LAST
PASS before outputting the file intended for the reader.

And please, don't throw in all sorts of extraneous  elements like
previous attempts have done. If fifteen consecutive paragraphs are in
the, let's say for example, "story" environment, just begin each
paragraph of the output with  instead of putting them
all in a . I've seen past LyXHTML go several levels
deep in unnecessary  elements. Life shouldn't be that difficult.

Once again, all past attempts at LyXHTML have unnecessarily bitten off
way more than they could chew. Just pass us the styles, and we'll take
care of the style to appearance translation, *at the right time*!

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-25 Thread Pavel Sanda via lyx-users
On Sun, Mar 06, 2022 at 07:24:02PM -0800, Ken Kopelson via lyx-users wrote:
> Hi Jürgen,
> Thank you for the message. As for my time usage, I have already built the
> external converter, because I have books that are on a publishing schedule,
> and they need to get out there. My question is where I go from here. I'm
> not sure if the LyX team realizes just how many self-publishing authors are
> out there in the world. It is a very large number. When I joined the
> Self-Publishing School (with thousands of students all writing books), I
> found that nobody even knew about LyX. I think authors should be using LyX,
> but it needs to be easier, and EPUB/Kindle is absolutely mandatory.
> 
> I am willing to talk with the guy who is writing the EPUB output, and help
> him make it better. Even if only to serve as a consultant, since a) I'm a
> developer with decades of experience, b) I'm a published book author, and
> c) I've written a fully-working external converter from LyXHTML to EPUB.
> Given all of that, I think I can be of service to the LyX project, at least
> in some capacity. Can you please put me in touch with the individual that I
> should speak with?

As Juergen wrote the best would be to join lyx-devel list, Thibaut Cuvelier
who rewrote docbook output and provided ebook on top of that is actively 
present there.

I think he would grateful for feedback about the bugs of the current LyX 2.4
epub output.

That said, the unfortunate news is that speedy prototyping in external python
script is probably going to share the fate of other scripts of this sort
(elyxer being last but not the only one): cool and perhaps better than
the output we currently have, but in long-term uncompatible and abandoned,
because it does not internally share the codebase with LyX itself.

If there was a way how to include your knowledge into improving internal LyX
code that would be win-situation for us, but it would mean that your python
scripting won't be used in the end, which might be hard pill to swallow...

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-09 Thread Dr Eberhard Lisse via lyx-users

Perl is your friend :-)-O or Python, Lua or whatever language you prefer.

el

On 2022-03-09 06:41 , Tom Goldring via lyx-users wrote:

Is there a substitute for \thinspace that will not generate an error in elxyer?



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-08 Thread Tom Goldring via lyx-users
Is there a substitute for \thinspace that will not generate an error in 
elxyer?

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-07 Thread Guenter Milde via lyx-users
On 2022-03-07, Murat Yildizoglu via lyx-users wrote:

> When I have contacted Alex last year when I was converting my book, I
> have understood that he is not continuing to work on this project
> anymore. Fortunately, ElyXer continues to be functional with LyX. But I
> have met some quirks during the translation. I had to correct them by
> custom scripts that I execute ex-post, after the first conversion. It
> is a pity because Elyxer continues to give the most beautiful output to
> my taste. For example, math is beautifully converted using Mathjax.

elyxer was last updated at the time LyX 2.1.n was the stable release,
hence it fails with features in the lyx file format that are more recent.

I was able to fix some/most issues by adapting the settings:

In Tools>Settings>File Handling>Converter I set up a converter

from: LyX 2.1.x
to:   HTML (elyxer)
converter: elyxer --nofooter --html --directory $$r $$i $$o

Now, file>export>HTML (elyxer) uses the route LyX > LyX 2.1.x > HTML
automatically.





-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-07 Thread Murat Yildizoglu via lyx-users
When I have contacted Alex last year when I was converting my book, I have 
understood that he is not continuing to work on this project anymore. 
Fortunately, ElyXer continues to be functional with LyX. But I have met some 
quirks during the translation. I had to correct them by custom scripts that I 
execute ex-post, after the first conversion.
It is a pity because Elyxer continues to give the most beautiful output to my 
taste. For example, math is beautifully converted using Mathjax.

--
Prof. Murat Yildizoglu

Université de Bordeaux
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

murat.yildizo...@u-bordeaux.fr

http://yildizoglu.fr

http://www.twitter.com/yildizoglu
Le 7 mars 2022 à 19:02 +0700, Dr Eberhard Lisse via lyx-users 
, a écrit :
>
> Ken
>
> there is a mailing list/news group for elyxer (last traffic 2017)
>
> elyxer-us...@nongnu.org
> gmane.editors.lyx.elyxer
>
> el
>
>
> On 2022-03-07 04:35 , Ken Kopelson via lyx-users wrote:
> [...]
> > Speaking of which, I did run into a problem with the LyXHTML export
> > from LyX. The other HTML exports from LyX all include the output
> > contained in Tex Code insets, while the LyXHTML export does not. This
> > creates a problem for using any kind of /lettrine or "initials"
> > functionality in your book, which is quite a problem.
> >
> > What I did to fix the problem is include a configurable table in the
> > converter that automatically includes the starting text for each
> > paragraph. Anytime I would change the first words of a paragraph, I
> > would have to make a change in the converter's configuration file,
> > changing the text there also. This is obviously extremely hacky, but
> > it does get the job done. If only the LyX team would fix the LyXHTML
> > export so it includes any text in a Tex Code block, ideally executing
> > the Tex Code so it properly adjusts the text size, that would be
> > ideal. The regular HTML export does this, so it should be easy to
> > just port that code over to the LyXHTML export. At least, one would
> > hope so.
> [...]
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-07 Thread Dr Eberhard Lisse via lyx-users



Ken

there is a mailing list/news group for elyxer (last traffic 2017)

elyxer-us...@nongnu.org
gmane.editors.lyx.elyxer

el


On 2022-03-07 04:35 , Ken Kopelson via lyx-users wrote:
[...]

Speaking of which, I did run into a problem with the LyXHTML export
from LyX. The other HTML exports from LyX all include the output
contained in Tex Code insets, while the LyXHTML export does not.  This
creates a problem for using any kind of /lettrine or "initials"
functionality in your book, which is quite a problem.

What I did to fix the problem is include a configurable table in the
converter that automatically includes the starting text for each
paragraph.  Anytime I would change the first words of a paragraph, I
would have to make a change in the converter's configuration file,
changing the text there also.  This is obviously extremely hacky, but
it does get the job done.  If only the LyX team would fix the LyXHTML
export so it includes any text in a Tex Code block, ideally executing
the Tex Code so it properly adjusts the text size, that would be
ideal.  The regular HTML export does this, so it should be easy to
just port that code over to the LyXHTML export.  At least, one would
hope so.

[...]

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-06 Thread Ken Kopelson via lyx-users
Hi Jürgen,
Thank you for the message. As for my time usage, I have already built the
external converter, because I have books that are on a publishing schedule,
and they need to get out there. My question is where I go from here. I'm
not sure if the LyX team realizes just how many self-publishing authors are
out there in the world. It is a very large number. When I joined the
Self-Publishing School (with thousands of students all writing books), I
found that nobody even knew about LyX. I think authors should be using LyX,
but it needs to be easier, and EPUB/Kindle is absolutely mandatory.

I am willing to talk with the guy who is writing the EPUB output, and help
him make it better. Even if only to serve as a consultant, since a) I'm a
developer with decades of experience, b) I'm a published book author, and
c) I've written a fully-working external converter from LyXHTML to EPUB.
Given all of that, I think I can be of service to the LyX project, at least
in some capacity. Can you please put me in touch with the individual that I
should speak with?

Many thanks,
*Ken Kopelson*
(619) 733-3374



On Sun, Mar 6, 2022 at 1:09 AM Jürgen Spitzmüller via lyx-users <
lyx-users@lists.lyx.org> wrote:

> Am Samstag, dem 05.03.2022 um 12:47 -0800 schrieb Ken Kopelson via lyx-
> users:
> > Does anyone know how I can get in touch with the people who are
> > working on the EPUB export in version 2.4?
>
> Via the lyx-devel list. EPUB is Thibaut's field who has re-implemented
> DocBook support completely for 2.4.0, and epub on top of that.
>
> > I want to gauge if it will be worth it for me to put my converter
> > out. This will depend on:
> >
> > 1) When 2.4 will be released
>
> Nobody can answer this seriously at the moment. 2.4 is basically done,
> but there is no release schedule yet and many developers are busy with
> their real lifes.
>
> > 2) How good the EPUB export will be
>
> I suggest you checkout LyX 2.4.x from the repository yourself, try and
> report back. I don't think it has been heavily tested except by the
> person you implemented it.
>
> Generally I'd say your time would be better invested in helping to
> improve LyX's own EPUB output than building an external converter. And
> feedback on how to improve the epub output is certainly most welcome.
>
> Best,
> Jürgen
>
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-06 Thread Ken Kopelson via lyx-users
Well, regardless of any other issues, I have a fully working LyXHTML =>
EPUB/Kindle converter. It was written in Python because a) it was fast to
develop, b) it runs plenty fast, and c) Python had the perfect libraries
for parsing HTML and generating EPUB. Item (c) then led to FAST TO DEVELOP.
I have books to publish, and I can't sit around waiting for some ideal,
perfect solution.

Speaking of which, I did run into a problem with the LyXHTML export from
LyX. The other HTML exports from LyX all include the output contained in
Tex Code insets, while the LyXHTML export does not. This creates a problem
for using any kind of /lettrine or "initials" functionality in your book,
which is quite a problem.

What I did to fix the problem is include a configurable table in the
converter that automatically includes the starting text for each
paragraph.  Anytime I would change the first words of a paragraph, I would
have to make a change in the converter's configuration file, changing the
text there also. This is obviously extremely hacky, but it does get the job
done. If only the LyX team would fix the LyXHTML export so it includes any
text in a Tex Code block, ideally executing the Tex Code so it properly
adjusts the text size, that would be ideal. The regular HTML export does
this, so it should be easy to just port that code over to the LyXHTML
export. At least, one would hope so.

*Ken Kopelson*
(619) 733-3374



On Sun, Mar 6, 2022 at 5:31 PM Steve Litt via lyx-users <
lyx-users@lists.lyx.org> wrote:

> Dr Eberhard Lisse via lyx-users said on Sun, 6 Mar 2022 21:24:57 +0200
>
> >Steve,
> >
> >Since it such a schlepp, why don't you participate in the development
> >or support the developers?
>
> LyX is great software by a great project. Great projects can be very bad
> in certain respects, and that doesn't prevent them from being great
> projects. As you read my response to your question, please keep in mind
> that I'm very grateful to LyX for being the tool that created at least
> 8 of the books I currently offer. My responses merely point out how
> LyX could be much better in the area of exports. Here are, my answers
> are enumerated below.
>
> 1) The converter must be semantic. It must keep styles as styles til
>the very end, not prematurely convert to appearance. The LyX native
>format is hostile to that goal, and since 2007 the LyX devs have
>shown little interest in that goal.
>
> 2) File conversion software has no business being written in C++ plus
>Qt. Python, Lua, Ruby, Perl or *maybe* simple C are the right way to
>go, at least for version 1. If performance became a problem, and I
>doubt it would, it could be rewritten in C. Years ago I stopped
>using both C++ and Java because, in my opinion, they both suck.
>
> 3) Simplicity is an asset. Conceptually all that need be done is create
>Xhtml5 tags with the same names as the environments and insets. But
>that's not what I've seen from the LyX (X)HTML exports in the past
>decade. Simplicity is an asset: The conversion software should be
>separate and distinct from LyX, with a very thin interface.
>
>   3.1: Content in semantic Xhtml5 can be converted to anything.
>
> 4) If I had time to help the LyX devs, I'd have time to singlehandedly
>create a Markdown=>Xhtml=>ePub and Markdown=>Xhtml=>PlainTeX=>PDF
>software stack. The QOwnNotes software is already a great typing
>front end for Markdown, which is why I chose Markdown. With the
>Markdown based converter done, I could turn around and easily create
>an Asciidoc version.
>
> 5) I could have, offered to, and would have written the converter for
>the LyX project, if only they had followed through with their mid
>00's plan of making LyX an XML dialect. They refused to do so.
>
> Bottom line, in my opinion, the LyX project is the wrong project to
> build the LyX to ePub (or to (X)HTML) converter. Alex Fernandez was
> right about that when he built eLyXer, and IMHO eLyXer was better than
> the native LyX converter at that time, but eLyXer was only half
> semantic.
>
> If the LyX project can export to some completely semantic XML, I'll be
> glad to join the team who does the conversion from there.
>
>
> >Never mind that LyX seems to predate the Kindle, this is a LaTeX issue
> >rather than a LyX one (which, after all, just a front end).
>
> Tragically, you've just uncovered the main problem. As long as LyX is
> considered a front end to *LaTeX*, there will never be a good, robust
> LyX=>ePub. Only when LyX is considered a front end to *everything*
> will semantic ePub, as well as conversions to formats we haven't yet
> dreamed of, be

Re: EPUB converter

2022-03-06 Thread Steve Litt via lyx-users
Dr Eberhard Lisse via lyx-users said on Sun, 6 Mar 2022 21:24:57 +0200

>Steve,
>
>Since it such a schlepp, why don't you participate in the development
>or support the developers?

LyX is great software by a great project. Great projects can be very bad
in certain respects, and that doesn't prevent them from being great
projects. As you read my response to your question, please keep in mind
that I'm very grateful to LyX for being the tool that created at least
8 of the books I currently offer. My responses merely point out how
LyX could be much better in the area of exports. Here are, my answers
are enumerated below.

1) The converter must be semantic. It must keep styles as styles til
   the very end, not prematurely convert to appearance. The LyX native
   format is hostile to that goal, and since 2007 the LyX devs have
   shown little interest in that goal.

2) File conversion software has no business being written in C++ plus
   Qt. Python, Lua, Ruby, Perl or *maybe* simple C are the right way to
   go, at least for version 1. If performance became a problem, and I
   doubt it would, it could be rewritten in C. Years ago I stopped
   using both C++ and Java because, in my opinion, they both suck.

3) Simplicity is an asset. Conceptually all that need be done is create
   Xhtml5 tags with the same names as the environments and insets. But
   that's not what I've seen from the LyX (X)HTML exports in the past
   decade. Simplicity is an asset: The conversion software should be
   separate and distinct from LyX, with a very thin interface.

  3.1: Content in semantic Xhtml5 can be converted to anything.

4) If I had time to help the LyX devs, I'd have time to singlehandedly
   create a Markdown=>Xhtml=>ePub and Markdown=>Xhtml=>PlainTeX=>PDF
   software stack. The QOwnNotes software is already a great typing
   front end for Markdown, which is why I chose Markdown. With the
   Markdown based converter done, I could turn around and easily create
   an Asciidoc version.

5) I could have, offered to, and would have written the converter for
   the LyX project, if only they had followed through with their mid
   00's plan of making LyX an XML dialect. They refused to do so.

Bottom line, in my opinion, the LyX project is the wrong project to
build the LyX to ePub (or to (X)HTML) converter. Alex Fernandez was
right about that when he built eLyXer, and IMHO eLyXer was better than
the native LyX converter at that time, but eLyXer was only half
semantic.

If the LyX project can export to some completely semantic XML, I'll be
glad to join the team who does the conversion from there.


>Never mind that LyX seems to predate the Kindle, this is a LaTeX issue
>rather than a LyX one (which, after all, just a front end).

Tragically, you've just uncovered the main problem. As long as LyX is
considered a front end to *LaTeX*, there will never be a good, robust
LyX=>ePub. Only when LyX is considered a front end to *everything*
will semantic ePub, as well as conversions to formats we haven't yet
dreamed of, be possible.

>As written numerous times I am very keen on on the new DocBook format
>but since I use LyX in production in my practice, I can't use two
>different formats, and my staff can't cope with alpha software.

If it's DocBook *xml* as opposed to sgml, and if the DocBook XML is
merely a representation of the environments and insets of LyX, that's a
perfect point of demarkation between LyX and (HTML | ePub | other).
You'd probably use Pandoc for DocBook=>ePub, I'd probably write my own,
but either way, it could work if DocBook *XML* and styles are kept as
styles.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-06 Thread Dr Eberhard Lisse via lyx-users



Steve,

Since it such a schlepp, why don't you participate in the development or
support the developers?

Never mind that LyX seems to predate the Kindle, this is a LaTeX issue
rather than a LyX one (which, after all, just a front end).

As written numerous times I am very keen on on the new DocBook format
but since I use LyX in production in my practice, I can't use two
different formats, and my staff can't cope with alpha software.

So patience is a virtue on the one hand but trying out stuff like this
is interesting.

el

On 2022-03-06 04:09 , Steve Litt via lyx-users wrote:

Hi Ken,

I suggest you put it out.  The LyX project has a 15 year history of
outputting pidgeon HTML incapable of building a *semantic* ePub,
claiming what they've done is good enough, and treating with hostility
my observations that they're prematurely converting style to
appearance.

The LyX project is the wrong project to do LyX=>ePub; ePub isn't in
their DNA, and until I'm shown otherwise, I'm treating any LyX=>ePub
capabilities from the LyX project as vaporware.

Where can I download your converter with instructions?

Thanks,

SteveT

[...]

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-06 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 05.03.2022 um 12:47 -0800 schrieb Ken Kopelson via lyx-
users:
> Does anyone know how I can get in touch with the people who are
> working on the EPUB export in version 2.4? 

Via the lyx-devel list. EPUB is Thibaut's field who has re-implemented
DocBook support completely for 2.4.0, and epub on top of that. 

> I want to gauge if it will be worth it for me to put my converter
> out. This will depend on:
> 
> 1) When 2.4 will be released

Nobody can answer this seriously at the moment. 2.4 is basically done,
but there is no release schedule yet and many developers are busy with
their real lifes.

> 2) How good the EPUB export will be

I suggest you checkout LyX 2.4.x from the repository yourself, try and
report back. I don't think it has been heavily tested except by the
person you implemented it.

Generally I'd say your time would be better invested in helping to
improve LyX's own EPUB output than building an external converter. And
feedback on how to improve the epub output is certainly most welcome.

Best,
Jürgen




signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-05 Thread Murat Yildizoglu via lyx-users
Hi Steve,

I think that not every one of us has the same kind of needs as you. For 
example, for a basic user like me, a “good enough” converter that gives me the 
ability to easily create reasonable ePub and Kindle books would definitely be 
useful. Sometimes PDF is not the most convenient format.  

I agree that HTML export from LyX is not perfect (even without entering the 
strict semantical markup area, since I do not have needs that yet pushed me in 
there, I understand that it is your case) and I had to write a full set of 
scripts to tweak the output to make it beautiful enough to my eyes and correct 
some errors generated by Elyxer (I prefer the output by Elyxer to the native 
one because its author had a keen sense of esthetics and it is beautiful out of 
the box in my case). I nevertheless use LyX as my main editing platform because 
it is a fantastic tool and I am sincerely grateful to all the people who have 
contributed to its development. 

Consequently, I would be happy to test any ePUB output system to check if it is 
“good enough” for me.

Thank you for your efforts Ken. I think that the lyx-devel list would be a good 
place to start. Unfortunately, it is a closed list as far as I know. But they 
also listed to lyx-users and probably some of the developers could give you 
good pointers towards people in charge of this part of the conversion tools.

Best regards,

Murat



> On 6 March 2022, at 09:09, Steve Litt via lyx-users  
> wrote:
> 
> Hi Ken,
> 
> I suggest you put it out. The LyX project has a 15 year history of
> outputting pidgeon HTML incapable of building a *semantic* ePub,
> claiming what they've done is good enough, and treating with hostility
> my observations that they're prematurely converting style to appearance.
> 
> The LyX project is the wrong project to do LyX=>ePub; ePub isn't in
> their DNA, and until I'm shown otherwise, I'm treating any LyX=>ePub
> capabilities from the LyX project as vaporware.
> 
> Where can I download your converter with instructions?
> 
> Thanks,
> 
> SteveT
> 
> 
> Ken Kopelson via lyx-users said on Sat, 5 Mar 2022 12:47:52 -0800
> 
>> Does anyone know how I can get in touch with the people who are
>> working
>> on the EPUB export in version 2.4? I want to gauge if it will be worth
>> it for me to put my converter out. This will depend on:
>> 
>> 1) When 2.4 will be released
>> 2) How good the EPUB export will be
>> 
>> Any help on this would be appreciated. Even telling who I can contact
>> about this.
>> 
>> Many thanks,
>> *Ken Kopelson*
>> (619) 733-3374
>> 
>> 
>> On Thu, Mar 3, 2022 at 5:29 AM Dr Eberhard Lisse via lyx-users <
>> lyx-users@lists.lyx.org> wrote:
>> 
>>> Ken,
>>> 
>>> where is the missing link :-)-O?
>>> 
>>> 
>>> This is great news.
>>> 
>>> I am actually waiting for 2.4 and DocBook to convert my 859
>>> page "handbook" to EPUB so my staff and I can carry it around on our
>>> Kindles (App on iPad actually).
>>> 
>>> But, I would be very keen to see how your package works.
>>> 
>>> My little handbook doesn't really need anything fancier than a few
>>> images (JPG, PNG and PDF).
>>> 
>>> I also use (in one (common) "include.tex") something like
>>> 
>>> \usepackage{etoolbox}
>>> \newbool{business}
>>> \boolfalse{business}
>>> \newbool{private}
>>> \booltrue{private}
>>> 
>>> but if that (see your below remark) were not to work I can address
>>> that via a Makefile and different include (front matter) files as
>>> you seem to be doing.
>>> 
>>> Maybe you can look into that, because then you can have a single
>>> include file by putting something like this into a Makefile
>>> 
>>> bus:
>>> @perl -i -p \
>>>  -e
>>> 's/\\boolfalse\{business\}/\\booltrue\{business\}/g;' \
>>>  -e
>>> 's/\\booltrue\{private\}/\\boolfalse\{private\}/g;' \ include.tex
>>> @lyx -f -e pdf5 handbook.lyx
>>> 
>>> priv:
>>> @perl -i -p \
>>>  -e
>>> 's/\\booltrue\{business\}/\\boolfalse\{business\}/g;' \
>>>  -e
>>> 's/\\boolfalse\{private\}/\\booltrue\{private\}/g;' \ include.tex
>>> @lyx -f -e pdf5 handbook.lyx
>>> 
>>> and then use something like
>>> 
>>> \ifbool{business}{}{\include{b

Re: EPUB converter

2022-03-05 Thread Steve Litt via lyx-users
Hi Ken,

I suggest you put it out. The LyX project has a 15 year history of
outputting pidgeon HTML incapable of building a *semantic* ePub,
claiming what they've done is good enough, and treating with hostility
my observations that they're prematurely converting style to appearance.

The LyX project is the wrong project to do LyX=>ePub; ePub isn't in
their DNA, and until I'm shown otherwise, I'm treating any LyX=>ePub
capabilities from the LyX project as vaporware.

Where can I download your converter with instructions?

Thanks,

SteveT


Ken Kopelson via lyx-users said on Sat, 5 Mar 2022 12:47:52 -0800

>  Does anyone know how I can get in touch with the people who are
> working
>on the EPUB export in version 2.4? I want to gauge if it will be worth
>it for me to put my converter out. This will depend on:
>
>1) When 2.4 will be released
>2) How good the EPUB export will be
>
>Any help on this would be appreciated. Even telling who I can contact
>about this.
>
>Many thanks,
>*Ken Kopelson*
>(619) 733-3374
>
>
>On Thu, Mar 3, 2022 at 5:29 AM Dr Eberhard Lisse via lyx-users <
>lyx-users@lists.lyx.org> wrote:
>
>> Ken,
>>
>> where is the missing link :-)-O?
>>
>>
>> This is great news.
>>
>> I am actually waiting for 2.4 and DocBook to convert my 859
>> page "handbook" to EPUB so my staff and I can carry it around on our
>> Kindles (App on iPad actually).
>>
>> But, I would be very keen to see how your package works.
>>
>> My little handbook doesn't really need anything fancier than a few
>> images (JPG, PNG and PDF).
>>
>> I also use (in one (common) "include.tex") something like
>>
>>  \usepackage{etoolbox}
>>  \newbool{business}
>>  \boolfalse{business}
>>  \newbool{private}
>>  \booltrue{private}
>>
>> but if that (see your below remark) were not to work I can address
>> that via a Makefile and different include (front matter) files as
>> you seem to be doing.
>>
>> Maybe you can look into that, because then you can have a single
>> include file by putting something like this into a Makefile
>>
>> bus:
>>  @perl -i -p \
>>   -e
>> 's/\\boolfalse\{business\}/\\booltrue\{business\}/g;' \
>>   -e
>> 's/\\booltrue\{private\}/\\boolfalse\{private\}/g;' \ include.tex
>>  @lyx -f -e pdf5 handbook.lyx
>>
>> priv:
>>  @perl -i -p \
>>   -e
>> 's/\\booltrue\{business\}/\\boolfalse\{business\}/g;' \
>>   -e
>> 's/\\boolfalse\{private\}/\\booltrue\{private\}/g;' \ include.tex
>>  @lyx -f -e pdf5 handbook.lyx
>>
>> and then use something like
>>
>>  \ifbool{business}{}{\include{business.tex}}
>>  \ifbool{private}{\include{private.tex}}{}
>>
>> as ERT.
>>
>> Looks complicated, is complicated, but once it works no further
>> touching required.
>>
>>
>>
>> In the meantime I have pulled
>>
>>  http://www.editorium.com/ftp/LyXBookSampler.zip
>>
>> from
>>
>>  https://wiki.lyx.org/Layouts/Layouts
>>
>> and will start some RTFM :-)-O
>>
>> greetings, el
>>
>>
>> On 03/03/2022 00:58, Ken Kopelson via lyx-users wrote:  
>> > Hello LyX users,
>> >
>> > I am sending this email to let people know that I have produced a
>> > converter for LyX that produces an excellent quality EPUB/Kindle
>> > file.  
>> [...]  
>> > I love using LyX with the LyXBook theme (as it has the greatest
>> > number of paragraph formats), and I am able to set up a system of
>> > files, having different Front Matter versions.  
>> [...]  
>> > I know that the next version of LyX is supposed to produce EPUB,  
>> [...]  
>> > As one final problem, the LyXHTML export fails to include anything
>> > in the LaTeK code blocks,  
>> --
>> To email me replace 'nospam' with 'el'
>>
>> --
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users
>>  
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-05 Thread Ken Kopelson via lyx-users
  Does anyone know how I can get in touch with the people who are working
on the EPUB export in version 2.4? I want to gauge if it will be worth it
for me to put my converter out. This will depend on:

1) When 2.4 will be released
2) How good the EPUB export will be

Any help on this would be appreciated. Even telling who I can contact about
this.

Many thanks,
*Ken Kopelson*
(619) 733-3374


On Thu, Mar 3, 2022 at 5:29 AM Dr Eberhard Lisse via lyx-users <
lyx-users@lists.lyx.org> wrote:

> Ken,
>
> where is the missing link :-)-O?
>
>
> This is great news.
>
> I am actually waiting for 2.4 and DocBook to convert my 859
> page "handbook" to EPUB so my staff and I can carry it around on our
> Kindles (App on iPad actually).
>
> But, I would be very keen to see how your package works.
>
> My little handbook doesn't really need anything fancier than a few
> images (JPG, PNG and PDF).
>
> I also use (in one (common) "include.tex") something like
>
>  \usepackage{etoolbox}
>  \newbool{business}
>  \boolfalse{business}
>  \newbool{private}
>  \booltrue{private}
>
> but if that (see your below remark) were not to work I can address that
> via a Makefile and different include (front matter) files as you seem to
> be doing.
>
> Maybe you can look into that, because then you can have a single include
> file by putting something like this into a Makefile
>
> bus:
>  @perl -i -p \
>   -e 's/\\boolfalse\{business\}/\\booltrue\{business\}/g;'
> \
>   -e 's/\\booltrue\{private\}/\\boolfalse\{private\}/g;' \
>   include.tex
>  @lyx -f -e pdf5 handbook.lyx
>
> priv:
>  @perl -i -p \
>   -e 's/\\booltrue\{business\}/\\boolfalse\{business\}/g;'
> \
>   -e 's/\\boolfalse\{private\}/\\booltrue\{private\}/g;' \
>   include.tex
>  @lyx -f -e pdf5 handbook.lyx
>
> and then use something like
>
>  \ifbool{business}{}{\include{business.tex}}
>  \ifbool{private}{\include{private.tex}}{}
>
> as ERT.
>
> Looks complicated, is complicated, but once it works no further
> touching required.
>
>
>
> In the meantime I have pulled
>
>  http://www.editorium.com/ftp/LyXBookSampler.zip
>
> from
>
>  https://wiki.lyx.org/Layouts/Layouts
>
> and will start some RTFM :-)-O
>
> greetings, el
>
>
> On 03/03/2022 00:58, Ken Kopelson via lyx-users wrote:
> > Hello LyX users,
> >
> > I am sending this email to let people know that I have produced a
> > converter for LyX that produces an excellent quality EPUB/Kindle file.
> [...]
> > I love using LyX with the LyXBook theme (as it has the greatest number
> > of paragraph formats), and I am able to set up a system of files,
> > having different Front Matter versions.
> [...]
> > I know that the next version of LyX is supposed to produce EPUB,
> [...]
> > As one final problem, the LyXHTML export fails to include anything in
> > the LaTeK code blocks,
> --
> To email me replace 'nospam' with 'el'
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-04 Thread Emile Lunardon via lyx-users
Thank you for this information. I will be very interested to see the result
of this tool in action.
Personally I use LyX to produce pdf documents optimised for the screen
sizes of Kindle "paper white, voyage" and Kobo e-readers. This of course
leads to documents with much larger memory sizes than epub and equivalent
formats, but the memory capacity of the e-readers is now very comfortable
(> 8 GB) to cope with it very well. I appreciate the fact that I can play
with font sizes, put local tables of contents (through code complements in
LaTeX) to Parts, Chapters, Sections and navigate between these levels by
simply pressing on the top and bottom of the pages.
The only regret I have is that LaTex does not offer a Book of Books type of
document format so that several volumes can coexist naturally and navigate
between them by cross-referencing! But with the Book Koma-Script format and
by making the Parts play the role of Books, there are still enough levels
of structuring to achieve one's goals.

Le mer. 2 mars 2022 à 23:58, Ken Kopelson via lyx-users <
lyx-users@lists.lyx.org> a écrit :

> Hello LyX users,
> I am sending this email to let people know that I have produced a
> converter for LyX that produces an excellent quality EPUB/Kindle file. This
> converter takes the LyXHTML file exported from LyX, and spits out an EPUB
> file that fully supports Kindle importing. This splits the single export
> file from LyX into the multiple chapters, supporting Front Matter, Main
> Matter, and Back Matter. It builds a List of Figures, Table of Contents,
> and moves all Footnotes to become Chapter Endnotes, which Kindle will show
> in a separate window at the bottom of the screen. All backlinks are
> included also.
>
> I love using LyX with the LyXBook theme (as it has the greatest number of
> paragraph formats), and I am able to set up a system of files, having
> different Front Matter versions. Unless you have actually self-published a
> book, you will not fully appreciate how important it is to have different
> Front Matter versions for a single book. A single published book can have
> Hardback, Softcover, PDF, EPUB, and Kindle versions, all of which require
> different information at the front of the book. LyX allows me to set up a
> system for this. The only problem was, I could not produce an EPUB or
> Kindle version from the files, so I had to create my own converter. I use
> the LyXHTML export because it has tag classes for each type of element in
> the files, allowing me to make the correct decisions for processing and
> producing the EPUB or Kindle format.
>
> I know that the next version of LyX is supposed to produce EPUB, but I
> have my doubts that it will be done in a way that produces high-quality
> Kindle books, since I have now learned just how to do this. I can tell you
> that NONE of the current tools out there for creating EPUBS does this
> conversion correctly or completely. The new tool I have created does.  Just
> so people are aware, there is a large and growing market of people
> self-publishing their own books. I am doing my best to get authors turned
> on to using LyX as their book-writing tool. If anyone is interested in
> helping me get the code I've written out there so that other authors can
> have the ability to automatically produce perfect EPUB and Kindle, please
> let me know.
>
> As one final problem, the LyXHTML export fails to include anything in the
> LaTeK code blocks, and where this really shows up is with the Lettrine
> function for Initials at the start of each Chapter. This initial text is
> just omitted from the export file. The other HTML export includes them, but
> it does not have any of the LyX class information for each tag, so it is
> useless for conversion. Is there a way this can be fixed? It would be
> awesome if this text is not excluded, since it is very much part of the
> material. I had to come up with a very kludgy workaround for this in my
> converter, which really should not be there.
>
> I am happy to work with whoever is doing the EPUB portion of the next
> release. My problem was, I could not wait for that to come out. Life must
> go on, as they say :)
>
> All the Best,
> *Ken Kopelson*
> (619) 733-3374
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-03 Thread Dr Eberhard Lisse via lyx-users

Ken,

where is the missing link :-)-O?


This is great news.

I am actually waiting for 2.4 and DocBook to convert my 859
page "handbook" to EPUB so my staff and I can carry it around on our
Kindles (App on iPad actually).

But, I would be very keen to see how your package works.

My little handbook doesn't really need anything fancier than a few
images (JPG, PNG and PDF).

I also use (in one (common) "include.tex") something like

 \usepackage{etoolbox}
 \newbool{business}
 \boolfalse{business}
 \newbool{private}
 \booltrue{private}

but if that (see your below remark) were not to work I can address that
via a Makefile and different include (front matter) files as you seem to
be doing.

Maybe you can look into that, because then you can have a single include
file by putting something like this into a Makefile

bus:
 @perl -i -p \
  -e 's/\\boolfalse\{business\}/\\booltrue\{business\}/g;' \
  -e 's/\\booltrue\{private\}/\\boolfalse\{private\}/g;' \
  include.tex
 @lyx -f -e pdf5 handbook.lyx

priv:
 @perl -i -p \
  -e 's/\\booltrue\{business\}/\\boolfalse\{business\}/g;' \
  -e 's/\\boolfalse\{private\}/\\booltrue\{private\}/g;' \
  include.tex
 @lyx -f -e pdf5 handbook.lyx

and then use something like

 \ifbool{business}{}{\include{business.tex}}
 \ifbool{private}{\include{private.tex}}{}

as ERT.

Looks complicated, is complicated, but once it works no further
touching required.



In the meantime I have pulled

 http://www.editorium.com/ftp/LyXBookSampler.zip

from

 https://wiki.lyx.org/Layouts/Layouts

and will start some RTFM :-)-O

greetings, el


On 03/03/2022 00:58, Ken Kopelson via lyx-users wrote:

Hello LyX users,

I am sending this email to let people know that I have produced a
converter for LyX that produces an excellent quality EPUB/Kindle file.

[...]

I love using LyX with the LyXBook theme (as it has the greatest number
of paragraph formats), and I am able to set up a system of files,
having different Front Matter versions.

[...]

I know that the next version of LyX is supposed to produce EPUB,

[...]

As one final problem, the LyXHTML export fails to include anything in
the LaTeK code blocks,

--
To email me replace 'nospam' with 'el'

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


EPUB converter

2022-03-02 Thread Ken Kopelson via lyx-users
Hello LyX users,
I am sending this email to let people know that I have produced a converter
for LyX that produces an excellent quality EPUB/Kindle file. This converter
takes the LyXHTML file exported from LyX, and spits out an EPUB file that
fully supports Kindle importing. This splits the single export file from
LyX into the multiple chapters, supporting Front Matter, Main Matter, and
Back Matter. It builds a List of Figures, Table of Contents, and moves all
Footnotes to become Chapter Endnotes, which Kindle will show in a separate
window at the bottom of the screen. All backlinks are included also.

I love using LyX with the LyXBook theme (as it has the greatest number of
paragraph formats), and I am able to set up a system of files, having
different Front Matter versions. Unless you have actually self-published a
book, you will not fully appreciate how important it is to have different
Front Matter versions for a single book. A single published book can have
Hardback, Softcover, PDF, EPUB, and Kindle versions, all of which require
different information at the front of the book. LyX allows me to set up a
system for this. The only problem was, I could not produce an EPUB or
Kindle version from the files, so I had to create my own converter. I use
the LyXHTML export because it has tag classes for each type of element in
the files, allowing me to make the correct decisions for processing and
producing the EPUB or Kindle format.

I know that the next version of LyX is supposed to produce EPUB, but I have
my doubts that it will be done in a way that produces high-quality Kindle
books, since I have now learned just how to do this. I can tell you that
NONE of the current tools out there for creating EPUBS does this conversion
correctly or completely. The new tool I have created does.  Just so people
are aware, there is a large and growing market of people self-publishing
their own books. I am doing my best to get authors turned on to using LyX
as their book-writing tool. If anyone is interested in helping me get the
code I've written out there so that other authors can have the ability to
automatically produce perfect EPUB and Kindle, please let me know.

As one final problem, the LyXHTML export fails to include anything in the
LaTeK code blocks, and where this really shows up is with the Lettrine
function for Initials at the start of each Chapter. This initial text is
just omitted from the export file. The other HTML export includes them, but
it does not have any of the LyX class information for each tag, so it is
useless for conversion. Is there a way this can be fixed? It would be
awesome if this text is not excluded, since it is very much part of the
material. I had to come up with a very kludgy workaround for this in my
converter, which really should not be there.

I am happy to work with whoever is doing the EPUB portion of the next
release. My problem was, I could not wait for that to come out. Life must
go on, as they say :)

All the Best,
*Ken Kopelson*
(619) 733-3374
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slow LyX File - DVI-to-PDF Converter - Clip to Coordinates

2021-12-23 Thread Paul A. Rubin via lyx-users

On 12/23/21 5:48 AM, Baris Erkus via lyx-users wrote:
I am experiencing a slowdown on a LyX document. I am suspecting that 
this is related to the "Clip to Coordinates" in the Graphics option, 
which calls the DVI-to-PDF Converter (in Windows) at the backstage 
constantly.


When "Clip to Coordinates" option of any figure is selected, LyX 
constantly executing DVI-to-PDF Converter using command-line window 
even if you are not working on that specific figure (ie writing 
regular text at somewhere else), and even if that specific figure is 
not on the screen.


Furthermore, I realized that even if I uncheck the "Clip to 
Coordinates" option and click the "Apply" and "Close", the LaTeX code 
preview at the includegraphics command still shows the viewport 
option, but without the ",clip". So, normally, it should completely 
remove the viewport option and get the values from the file, am I 
right? Since the viewport options stays, LyX is calling the DVI-to-PDF 
converter, which again causes slowdown. Unchecking the option and then 
pressing the "Get from file" solves the problem tough. This is very 
un-intuitional. I feel like something fishy is going on here.


I have attached a MWE. My OS is Windows 10, MikTeX is the latest 
version and LyX is 2.3.6.1. Could somebody check this with other OS or 
other versions. Any feedback would be appreciated.




No slowdown here (Linux Mint, LyX 2.3.6.1, Qt 5.12.8.

Paul

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slow LyX File - DVI-to-PDF Converter - Clip to Coordinates

2021-12-23 Thread Kornel Benko via lyx-users
Am Thu, 23 Dec 2021 13:48:21 +0300
schrieb Baris Erkus via lyx-users :

> I am experiencing a slowdown on a LyX document. I am suspecting that 
> this is related to the "Clip to Coordinates" in the Graphics option, 
> which calls the DVI-to-PDF Converter (in Windows) at the backstage 
> constantly.
> 
> When "Clip to Coordinates" option of any figure is selected, LyX 
> constantly executing DVI-to-PDF Converter using command-line window even 
> if you are not working on that specific figure (ie writing regular text 
> at somewhere else), and even if that specific figure is not on the screen.
> 
> Furthermore, I realized that even if I uncheck the "Clip to Coordinates" 
> option and click the "Apply" and "Close", the LaTeX code preview at the 
> includegraphics command still shows the viewport option, but without the 
> ",clip". So, normally, it should completely remove the viewport option 
> and get the values from the file, am I right? Since the viewport options 
> stays, LyX is calling the DVI-to-PDF converter, which again causes 
> slowdown. Unchecking the option and then pressing the "Get from file" 
> solves the problem tough. This is very un-intuitional. I feel like 
> something fishy is going on here.
> 
> I have attached a MWE. My OS is Windows 10, MikTeX is the latest version 
> and LyX is 2.3.6.1. Could somebody check this with other OS or other 
> versions. Any feedback would be appreciated.
> 

I could not confirm on actual lyx2.3 nor with lyx2.4.
Both versions are not slowing down. This is on linux with QT5.9.5 though.

Kornel


pgp4zUDMtHLhu.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Wolfgang Engelmann


On 11.12.19 18:20, Kornel Benko wrote:

Am Wed, 11 Dec 2019 17:45:18 +0100
schrieb Wolfgang Engelmann :


tlmgr: package epstopdf is not relocatable, cannot install it in user mode!

Wolfgang


In that case you have installed tl as superuser.
So you have to use
$ sudo tlmgr install epstopdf

Kornel


I guess I should try to understand this one:

https://www.preining.info/blog/2013/04/tlmgr-user-mode/

Wolfgang



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Kornel Benko
Am Wed, 11 Dec 2019 17:45:18 +0100
schrieb Wolfgang Engelmann :

> tlmgr: package epstopdf is not relocatable, cannot install it in user mode!
> 
> Wolfgang
> 

In that case you have installed tl as superuser.
So you have to use
$ sudo tlmgr install epstopdf

Kornel


pgpeNIwOu8Mhu.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Wolfgang Engelmann


On 11.12.19 15:55, Kornel Benko wrote:

Am Wed, 11 Dec 2019 15:30:56 +0100
schrieb Wolfgang Engelmann :


On 11.12.19 14:57, Kornel Benko wrote:

Am Wed, 11 Dec 2019 14:31:27 +0100
schrieb Wolfgang Engelmann :
  

On 11.12.19 11:21, Baris Erkus wrote:

On 11-Dec-19 1:17 PM, Wolfgang Engelmann wrote:

I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling

clicked From format EPS To format PNG (or PDF...)

but the box Add and Modify at the right are both grayed out > I can't
add the selected.

I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with
Texlive full and the recommended additional software for LyX.

What is wrong?
Wolfgang
 

It should be greyed out if you have not modified it and if you have
the converter defined. Add is for the new converter. Modify should be
available after you modify converter.
 

I did as you showed in your screenshot. I clicked 'modify' and
reconfigured lyx, but get still the error. I add a minimal example of
the beamer document with two figures, one as a .jpg which is displayed
in the pdf, the other one as an .eps, which is not.

Wolfgang

  

--
↓↓
Please bottom-post. Start your reply here:
 

Compiles fine here. What is your eps->pdf(graphics) converter?
Mine is epstopdf (from package texlive-font-utils)

Kornel

epstopdf --outfile=$$o $$i is set in the converter.

How do I get the epstopdf? I tried this:

tlmgr install collection-fontsrecommended
(running on Debian, switching to user mode!)
tlmgr: package repository
http://ctan.space-pro.be/tex-archive/systems/texlive/tlnet (verified)
tlmgr install: package already present: collection-fontsrecommended

tlmgr install texlive-font-utils

That is wrong. 'texlive-font-utils' is one of debian packages.
$ sudo apt-get install texlive-font-utils
I read, that one should avoid to use texlive via synaptic or apt, if 
texlive was not installed via it.

But if you use tlmgr you have to call
$ tlmgr install epstopdf

 tlmgr install epstopdf
(running on Debian, switching to user mode!)
tlmgr: package repository 
http://mirror.physik-pool.tu-berlin.de/pub/CTAN/systems/texlive/tlnet 
(verified)


tlmgr: package epstopdf is not relocatable, cannot install it in user mode!

Wolfgang


(Also mark, the the command epstopd needs ghostscript)


(running on Debian, switching to user mode!)
tlmgr: package repository
http://ftp.uni-erlangen.de/ctan/systems/texlive/tlnet (verified)
tlmgr install: package texlive-font-utils not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.

Wolfgang


Kornel


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Paul A. Rubin

On 12/11/19 8:31 AM, Wolfgang Engelmann wrote:



On 11.12.19 11:21, Baris Erkus wrote:

On 11-Dec-19 1:17 PM, Wolfgang Engelmann wrote:

I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling

clicked From format EPS To format PNG (or PDF...)

but the box Add and Modify at the right are both grayed out > I 
can't add the selected.


I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with 
Texlive full and the recommended additional software for LyX.


What is wrong?
Wolfgang

It should be greyed out if you have not modified it and if you have 
the converter defined. Add is for the new converter. Modify should be 
available after you modify converter.


I did as you showed in your screenshot. I clicked 'modify' and 
reconfigured lyx, but get still the error. I add a minimal example of 
the beamer document with two figures, one as a .jpg which is displayed 
in the pdf, the other one as an .eps, which is not.


Wolfgang




--
↓↓
Please bottom-post. Start your reply here:



This is as expected (if not particularly intuitive). Start typing in the 
Converter box, and the Modify button will become enabled. You click 
Modify when you are done making changes.


Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Kornel Benko
Am Wed, 11 Dec 2019 15:30:56 +0100
schrieb Wolfgang Engelmann :

> On 11.12.19 14:57, Kornel Benko wrote:
> > Am Wed, 11 Dec 2019 14:31:27 +0100
> > schrieb Wolfgang Engelmann :
> >  
> >> On 11.12.19 11:21, Baris Erkus wrote:  
> >>> On 11-Dec-19 1:17 PM, Wolfgang Engelmann wrote:  
> >>>> I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling
> >>>>
> >>>> clicked From format EPS To format PNG (or PDF...)
> >>>>
> >>>> but the box Add and Modify at the right are both grayed out > I can't
> >>>> add the selected.
> >>>>
> >>>> I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with
> >>>> Texlive full and the recommended additional software for LyX.
> >>>>
> >>>> What is wrong?
> >>>> Wolfgang
> >>>> 
> >>> It should be greyed out if you have not modified it and if you have
> >>> the converter defined. Add is for the new converter. Modify should be
> >>> available after you modify converter.
> >>> 
> >> I did as you showed in your screenshot. I clicked 'modify' and
> >> reconfigured lyx, but get still the error. I add a minimal example of
> >> the beamer document with two figures, one as a .jpg which is displayed
> >> in the pdf, the other one as an .eps, which is not.
> >>
> >> Wolfgang
> >>
> >>  
> >>> -- 
> >>> ↓↓
> >>> Please bottom-post. Start your reply here:
> >>> 
> > Compiles fine here. What is your eps->pdf(graphics) converter?
> > Mine is epstopdf (from package texlive-font-utils)
> >
> > Kornel  
> 
> epstopdf --outfile=$$o $$i is set in the converter.
> 
> How do I get the epstopdf? I tried this:
> 
> tlmgr install collection-fontsrecommended
> (running on Debian, switching to user mode!)
> tlmgr: package repository 
> http://ctan.space-pro.be/tex-archive/systems/texlive/tlnet (verified)
> tlmgr install: package already present: collection-fontsrecommended
> 
> tlmgr install texlive-font-utils

That is wrong. 'texlive-font-utils' is one of debian packages.
$ sudo apt-get install texlive-font-utils

But if you use tlmgr you have to call
$ tlmgr install epstopdf

(Also mark, the the command epstopd needs ghostscript)

> (running on Debian, switching to user mode!)
> tlmgr: package repository 
> http://ftp.uni-erlangen.de/ctan/systems/texlive/tlnet (verified)
> tlmgr install: package texlive-font-utils not present in repository.
> tlmgr: action install returned an error; continuing.
> tlmgr: An error has occurred. See above messages. Exiting.
> 
> Wolfgang
> 

Kornel



pgpVN6ZZ9fFtP.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Wolfgang Engelmann


On 11.12.19 14:57, Kornel Benko wrote:

Am Wed, 11 Dec 2019 14:31:27 +0100
schrieb Wolfgang Engelmann :


On 11.12.19 11:21, Baris Erkus wrote:

On 11-Dec-19 1:17 PM, Wolfgang Engelmann wrote:

I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling

clicked From format EPS To format PNG (or PDF...)

but the box Add and Modify at the right are both grayed out > I can't
add the selected.

I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with
Texlive full and the recommended additional software for LyX.

What is wrong?
Wolfgang
  

It should be greyed out if you have not modified it and if you have
the converter defined. Add is for the new converter. Modify should be
available after you modify converter.
  

I did as you showed in your screenshot. I clicked 'modify' and
reconfigured lyx, but get still the error. I add a minimal example of
the beamer document with two figures, one as a .jpg which is displayed
in the pdf, the other one as an .eps, which is not.

Wolfgang



--
↓↓
Please bottom-post. Start your reply here:
  

Compiles fine here. What is your eps->pdf(graphics) converter?
Mine is epstopdf (from package texlive-font-utils)

Kornel


epstopdf --outfile=$$o $$i is set in the converter.

How do I get the epstopdf? I tried this:

tlmgr install collection-fontsrecommended
(running on Debian, switching to user mode!)
tlmgr: package repository 
http://ctan.space-pro.be/tex-archive/systems/texlive/tlnet (verified)

tlmgr install: package already present: collection-fontsrecommended

tlmgr install texlive-font-utils
(running on Debian, switching to user mode!)
tlmgr: package repository 
http://ftp.uni-erlangen.de/ctan/systems/texlive/tlnet (verified)

tlmgr install: package texlive-font-utils not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.

Wolfgang



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Kornel Benko
Am Wed, 11 Dec 2019 14:31:27 +0100
schrieb Wolfgang Engelmann :

> On 11.12.19 11:21, Baris Erkus wrote:
> > On 11-Dec-19 1:17 PM, Wolfgang Engelmann wrote:  
> >> I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling
> >>
> >> clicked From format EPS To format PNG (or PDF...)
> >>
> >> but the box Add and Modify at the right are both grayed out > I can't 
> >> add the selected.
> >>
> >> I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with 
> >> Texlive full and the recommended additional software for LyX.
> >>
> >> What is wrong?
> >> Wolfgang
> >>  
> > It should be greyed out if you have not modified it and if you have 
> > the converter defined. Add is for the new converter. Modify should be 
> > available after you modify converter.
> >  
> I did as you showed in your screenshot. I clicked 'modify' and 
> reconfigured lyx, but get still the error. I add a minimal example of 
> the beamer document with two figures, one as a .jpg which is displayed 
> in the pdf, the other one as an .eps, which is not.
> 
> Wolfgang
> 
> 
> >
> > -- 
> > ↓↓
> > Please bottom-post. Start your reply here:
> >  

Compiles fine here. What is your eps->pdf(graphics) converter?
Mine is epstopdf (from package texlive-font-utils)

Kornel


pgpHT7JuRmw3N.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Converter ADD

2019-12-11 Thread Baris Erkus
On 11-Dec-19 1:17 PM, Wolfgang Engelmann wrote:
I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling

clicked From format EPS To format PNG (or PDF...)

but the box Add and Modify at the right are both grayed out > I can't add the 
selected.

I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with Texlive full 
and the recommended additional software for LyX.

What is wrong?
Wolfgang


It should be greyed out if you have not modified it and if you have the 
converter defined. Add is for the new converter. Modify should be available 
after you modify converter.

[cid:part1.78CE1010.004E22FA@hotmail.com]


--
↓↓
Please bottom-post. Start your reply here:
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Converter ADD

2019-12-11 Thread Wolfgang Engelmann

I try to set the Converter EPS>PNG in Tools>Preferences>FileHandling

clicked From format EPS To format PNG (or PDF...)

but the box Add and Modify at the right are both grayed out > I can't 
add the selected.


I have ImageMagick installed (6.9.10-23 QT16) and lyx 2.3.3 with Texlive 
full and the recommended additional software for LyX.


What is wrong?
Wolfgang

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX error: "No information for converting svgz format files to pdf6. Define a converter in the preferences.”

2017-12-12 Thread Chandler1,D (pgr)


On 11 Dec 2017, at 20:29, Paul A. Rubin 
mailto:parubi...@gmail.com>> wrote:

On 12/11/2017 02:13 PM, Chandler1,D (pgr) wrote:
Hello,

I installed LyX on my MacBook Pro (10.12.5) today.

I want to work through the tutorial, and decided it would be useful to have a 
pdf version. However, when I click the View button to create a pdf I get the 
following error message:

"No information for converting svgz format files to pdf6.
Define a converter in the preferences.”

If I tell LyX to go ahead and create a PDF anyway, then various bits come out a 
mess (see attached, p8-9 for example). The issue seems to be with “toolbar 
buttons”.

I have searched for forums discussing this issue but cannot find anything that 
resolves my problem. One forum suggested installing “homebrew" and then typing 
in the command “brew install librsvg” but this didn’t help.

I would be very grateful for any advice. I am wary of continuing with LyX if 
this means I won’t be able to format any files.

Thanks,

Daniel

Daniel:

LyX refers to PDF graphics as "pdf6" file format. The problem is that the 
button images are compressed SVG files, and LyX does not know how to convert 
them to graphics on your system.

As Cris mentioned, you probably need to install a graphics converter program. 
Once you do so, reconfigure LyX (Tools >Reconfigure) and restart it, and you 
should be good to go.

Just to confirm that this is the problem, open LyX and go to Tools > 
Preferences... > File Handling > Converters. In the list of converter 
definitions, highlight "SVG (compressed) -> PDF (graphics)" and see if there is 
anything in the "Converter:" field. My guess is that it's blank. After 
installing a suitable converter program and reconfiguring LyX, this should be 
filled in by the configuration script.

I'm on Linux rather than MacOS, but for it's worth I'm using rsvg for this, and 
my converter field reads "rsvg-convert -f pdf -o $$o $$i". According to various 
stuff I found in a quick Google search, you can install librsvg on a Mac if you 
have Homebrew installed.

Paul


Hi Paul, Cris, Scott,

Thanks for your helpful suggestions, LyX is now up and running.

Paul - that was definitely the problem, the SVG to PDF converter was empty.

It seems the step I was missing was reconfiguring LyX: I had managed to install 
homebrew and rsvg but didn’t know how to get LyX to join the dots.

Scott, thanks for offering the 2.3.0 version - I think I’ll stick with what I 
have for now. If you are involved in developing the next iteration, I also 
found that the example files referenced in the tutorial were missing from my 
installation package (the example folder was empty) and I had to download them 
separately from the web.

Thanks again,

Daniel






Re: LyX error: "No information for converting svgz format files to pdf6. Define a converter in the preferences.”

2017-12-11 Thread Scott Kostyshak
On Mon, Dec 11, 2017 at 08:29:56PM +, Paul A. Rubin wrote:
> On 12/11/2017 02:13 PM, Chandler1,D (pgr) wrote:
> > Hello,
> > 
> > I installed LyX on my MacBook Pro (10.12.5) today.
> > 
> > I want to work through the tutorial, and decided it would be useful to have 
> > a pdf version. However, when I click the View button to create a pdf I get 
> > the following error message:
> > 
> > "No information for converting svgz format files to pdf6.
> > Define a converter in the preferences.”

Hi pgr,

Cris's and Paul's replies should help you figure out the issue. I just
wanted to note that this issue should be fixed for 2.3.0. If you are
interested in testing the development version of 2.3.0, let me know and
I can give you instructions.

Best,

Scott


Re: LyX error: "No information for converting svgz format files to pdf6. Define a converter in the preferences.”

2017-12-11 Thread Paul A. Rubin

On 12/11/2017 02:13 PM, Chandler1,D (pgr) wrote:

Hello,

I installed LyX on my MacBook Pro (10.12.5) today.

I want to work through the tutorial, and decided it would be useful to have a 
pdf version. However, when I click the View button to create a pdf I get the 
following error message:

"No information for converting svgz format files to pdf6.
Define a converter in the preferences.”

If I tell LyX to go ahead and create a PDF anyway, then various bits come out a 
mess (see attached, p8-9 for example). The issue seems to be with “toolbar 
buttons”.

I have searched for forums discussing this issue but cannot find anything that 
resolves my problem. One forum suggested installing “homebrew" and then typing 
in the command “brew install librsvg” but this didn’t help.

I would be very grateful for any advice. I am wary of continuing with LyX if 
this means I won’t be able to format any files.

Thanks,

Daniel


Daniel:

LyX refers to PDF graphics as "pdf6" file format. The problem is that 
the button images are compressed SVG files, and LyX does not know how to 
convert them to graphics on your system.


As Cris mentioned, you probably need to install a graphics converter 
program. Once you do so, reconfigure LyX (Tools >Reconfigure) and 
restart it, and you should be good to go.


Just to confirm that this is the problem, open LyX and go to Tools > 
Preferences... > File Handling > Converters. In the list of converter 
definitions, highlight "SVG (compressed) -> PDF (graphics)" and see if 
there is anything in the "Converter:" field. My guess is that it's 
blank. After installing a suitable converter program and reconfiguring 
LyX, this should be filled in by the configuration script.


I'm on Linux rather than MacOS, but for it's worth I'm using rsvg for 
this, and my converter field reads "rsvg-convert -f pdf -o $$o $$i". 
According to various stuff I found in a quick Google search, you can 
install librsvg on a Mac if you have Homebrew installed.


Paul


Re: LyX error: "No information for converting svgz format files to pdf6. Define a converter in the preferences.”

2017-12-11 Thread Cris Fuhrman
I'm not a Mac user, but it sounds like an SVG support problem. I personally
like Inkscape for SVG, but there are other solutions.

I would try to

   - install inkscape on MacOS
   - make sure LyX sees the directory for it in the path section of the
   settings
   - do the "configure" command. My understanding is that it will create
   the SVGx to Y converters.

Hope this is useful!

On Mon, Dec 11, 2017 at 2:13 PM, Chandler1,D (pgr) 
wrote:

> Hello,
>
> I installed LyX on my MacBook Pro (10.12.5) today.
>
> I want to work through the tutorial, and decided it would be useful to
> have a pdf version. However, when I click the View button to create a pdf I
> get the following error message:
>
> "No information for converting svgz format files to pdf6.
> Define a converter in the preferences.”
>
> If I tell LyX to go ahead and create a PDF anyway, then various bits come
> out a mess (see attached, p8-9 for example). The issue seems to be with
> “toolbar buttons”.
>
> I have searched for forums discussing this issue but cannot find anything
> that resolves my problem. One forum suggested installing “homebrew" and
> then typing in the command “brew install librsvg” but this didn’t help.
>
> I would be very grateful for any advice. I am wary of continuing with LyX
> if this means I won’t be able to format any files.
>
> Thanks,
>
> Daniel
>
>


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread didiergabory
Hi,

Today I try again... And every thing works correctly... I can't reproduce the 
error.

Thanks for your answers (sorry for waste of time)

- Mail original -
De: "aparsloe" 
À: lyx-users@lists.lyx.org
Envoyé: Mardi 13 Mai 2014 09:44:45
Objet: Re: Lyx2.1 problem with metafile2eps converter


On 13/05/2014 7:46 a.m., Georg Baum wrote:
> aparsloe wrote:
>
>> On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:
>>> Hi,
>>>
>>> I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
>>> from adobe reader with the embedded tool and paste directly on lyx
>>> (ctrl+V)... I have a error message "Can not open Metafle to EPS converter
>>> printer" (without "i" on "Metafle" :o)
>>>
>>> When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
>>> the same error occur... Any idea ?
> Is the virtual printer installed which is used by metafile2eps.exe? Maybe
> something wnet wrong during installation.
>
>> I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
>> copy and paste works without problems, so this looks like a problem at
>> your end rather than with LyX.
> Also for copying vector images? metafile2eps.exe is not used for bitmap
> images or text. You can easily see whether a vector imagtes was copied by
> looking at the type of the copied image: If it is eps, the original image
> was in vector format, and metafile2eps.exe worked.
>
>
> Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the "embedded tool" 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
--> LyX --> Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.

Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread Georg Baum
aparsloe wrote:

> I was hasty in my response. In Adobe Reader X, under the Edit menu,
> there's the option Take a Snapshot. I assume this is the "embedded tool"
> referred to. When I copy a figure from the pdf and then go to paste it
> into LyX I get asked first to save the file, always as an .emf file
> although that can be changed to .png if I wish. The first one I paste
> into LyX reproduces the copied figure. Copying and pasting other figures
> (after saving in .emf format) generally insert into LyX  figures that
> are about 25 times too big. I have to scale to about 4% for the Adobe
> --> LyX --> Adobe round trip to reproduce a figure about the size of the
> original. But this doesn't happen always and seems to depend on whether
> I've saved a file at some point as .png (which seems to paste at the
> right size). So, it works for a one-off, but clearly not flawlessly for
> a number of copy-pastes.

Strange. We need somebody to debug LyX on windows.


Georg



Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread aparsloe


On 13/05/2014 7:46 a.m., Georg Baum wrote:

aparsloe wrote:


On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
from adobe reader with the embedded tool and paste directly on lyx
(ctrl+V)... I have a error message "Can not open Metafle to EPS converter
printer" (without "i" on "Metafle" :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
the same error occur... Any idea ?

Is the virtual printer installed which is used by metafile2eps.exe? Maybe
something wnet wrong during installation.


I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
copy and paste works without problems, so this looks like a problem at
your end rather than with LyX.

Also for copying vector images? metafile2eps.exe is not used for bitmap
images or text. You can easily see whether a vector imagtes was copied by
looking at the type of the copied image: If it is eps, the original image
was in vector format, and metafile2eps.exe worked.


Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the "embedded tool" 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
--> LyX --> Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-12 Thread Georg Baum
aparsloe wrote:

> On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:
>> Hi,
>>
>> I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
>> from adobe reader with the embedded tool and paste directly on lyx
>> (ctrl+V)... I have a error message "Can not open Metafle to EPS converter
>> printer" (without "i" on "Metafle" :o)
>>
>> When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
>> the same error occur... Any idea ?

Is the virtual printer installed which is used by metafile2eps.exe? Maybe 
something wnet wrong during installation.

> I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
> copy and paste works without problems, so this looks like a problem at
> your end rather than with LyX.

Also for copying vector images? metafile2eps.exe is not used for bitmap 
images or text. You can easily see whether a vector imagtes was copied by 
looking at the type of the copied image: If it is eps, the original image 
was in vector format, and metafile2eps.exe worked.


Georg



Re: Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread aparsloe

On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from adobe reader with the embedded 
tool and paste directly on lyx (ctrl+V)... I have a error message "Can not open Metafle to EPS converter 
printer" (without "i" on "Metafle" :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier
I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the 
copy and paste works without problems, so this looks like a problem at 
your end rather than with LyX.


Andrew


Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread didiergabory
Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from 
adobe reader with the embedded tool and paste directly on lyx (ctrl+V)... I 
have a error message "Can not open Metafle to EPS converter printer" (without 
"i" on "Metafle" :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier


Re: knitr package not available or converter not installed

2014-05-05 Thread Tom Hopper
James,

Double-check your R installation to make sure that the knitr package is
installed there. I've found that knitr occasionally disappears from my R
library, and have had a similar (possibly the same) error when it
disappears.

Regards,

Tom



On Sat, Apr 26, 2014 at 7:57 PM, James Saracco  wrote:

> Dear group,
> I'm a new Lyx user. I'm trying to add the Rnw(knitr) module in the
> document -> settings, but get the following message:
> "The module knitr requires a packages that is not available in your LaTex
> installation, or a converter that you may not have installed. LaTex output
> may not be possible. Missing prerequisites: knitr->latex"
> I'm then referred to section 3.1.2.3 of the User's manual, which wasn't
> too helpful. From Stackoverflow forum, I found reference to this problem in
> Stackoverflow forum, which suggested a PATH problem. So I added the path to
> my R installation to the list of PATH prefixes under the preferences tab
> and reconfigured. But that didn't seem to do anything.
> I installed Lyx using the LyX-2.0.7-Bundle-4.exe windows installer. I've
> installed on both Windows 7 (desktop) and Windows 8 (notebook) machines
> using all of the default installer options. Any thoughts on this would be
> appreciated. Thanks!
>
> Jim
>
> --
> James F. Saracco
> The Institute for Bird Populations
> 907-957-4790
> jsara...@birdpop.org
>


Re: knitr package not available or converter not installed

2014-04-29 Thread Jacob Bishop
On Sat, Apr 26, 2014 at 11:57 AM, James Saracco wrote:

>
> Dear group,
> I'm a new Lyx user. I'm trying to add the Rnw(knitr) module in the
> document -> settings, but get the following message:
> "The module knitr requires a packages that is not available in your LaTex
> installation, or a converter that you may not have installed. LaTex output
> may not be possible. Missing prerequisites: knitr->latex"
> I'm then referred to section 3.1.2.3 of the User's manual, which wasn't
> too helpful. From Stackoverflow forum, I found reference to this problem in
> Stackoverflow forum, which suggested a PATH problem. So I added the path to
> my R installation to the list of PATH prefixes under the preferences tab
> and reconfigured. But that didn't seem to do anything.
>

What about adding it to the Windows path? That's what I would try. I have
written detailed instructions to this list before on how to add something
to the path. Basically, you have to go to the control panel, and edit the
environment variables. Choose the PATH variable, and add it there,
prepended with a semicolon. Then try the reconfigure. One way to test
whether the add to path process worked is to open a terminal and type the
name of the program from there. If you can't open R (or whatever is needed
to do the conversion) from a normal terminal, that could be the issue. I
had this very problem at one point with Dia.

I installed Lyx using the LyX-2.0.7-Bundle-4.exe windows installer. I've
> installed on both Windows 7 (desktop) and Windows 8 (notebook) machines
> using all of the default installer options. Any thoughts on this would be
> appreciated. Thanks!
>

I hope this helps. If you are still stuck let me know and I may try to test
it myself on my Windows machine.

Jacob


knitr package not available or converter not installed

2014-04-26 Thread James Saracco
Dear group,
I'm a new Lyx user. I'm trying to add the Rnw(knitr) module in the document
-> settings, but get the following message:
"The module knitr requires a packages that is not available in your LaTex
installation, or a converter that you may not have installed. LaTex output
may not be possible. Missing prerequisites: knitr->latex"
I'm then referred to section 3.1.2.3 of the User's manual, which wasn't too
helpful. From Stackoverflow forum, I found reference to this problem in
Stackoverflow forum, which suggested a PATH problem. So I added the path to
my R installation to the list of PATH prefixes under the preferences tab
and reconfigured. But that didn't seem to do anything.
I installed Lyx using the LyX-2.0.7-Bundle-4.exe windows installer. I've
installed on both Windows 7 (desktop) and Windows 8 (notebook) machines
using all of the default installer options. Any thoughts on this would be
appreciated. Thanks!

Jim

-- 
James F. Saracco
The Institute for Bird Populations
907-957-4790
jsara...@birdpop.org


Re: How do you add a converter?

2013-07-04 Thread Scott Kostyshak
On Thu, Jul 4, 2013 at 11:39 AM, Eric Weir  wrote:
>
> On Jun 29, 2013, at 3:16 PM, Scott Kostyshak  wrote:
>
>> Glad you got it figured out. Since you said that you had it working on
>> another computer, it might be helpful to note that your custom
>> converters (and file formats) are stored in your preferences. So you
>> should be able to move those over. Be careful if you have different
>> LyX versions though because there are different formats for the
>> preferences files. So look at what the first non-comment line of your
>> preferences is. If they are the same, you're safe. If they are
>> different, my guess is that you're still safe but no guarantees.
>
> Not sure what you mean by the "first non-comment line" of my preferences. Are 
> your referring to preferences generally? Or to /file handling/converters 
> specifically? And if the former, what specifically would be the "first 
> non-comment line"?

The top of my preferences file has the following:

# LyX 2.1.0dev generated this file. If you want to make your own
# modifications you should do them from inside LyX and save.

Format 14

I'm referring to the lines starting with '#' as comments. The first
non-comment line would be the empty line, but really what I meant was
the line containing "Format 14" (the first non-empty non-comment
line).

Scott


Re: How do you add a converter?

2013-07-04 Thread Eric Weir

On Jun 29, 2013, at 3:16 PM, Scott Kostyshak  wrote:

> Glad you got it figured out. Since you said that you had it working on
> another computer, it might be helpful to note that your custom
> converters (and file formats) are stored in your preferences. So you
> should be able to move those over. Be careful if you have different
> LyX versions though because there are different formats for the
> preferences files. So look at what the first non-comment line of your
> preferences is. If they are the same, you're safe. If they are
> different, my guess is that you're still safe but no guarantees.

Just noticed this. Immediately after the post to which you were responding, I 
recreated the converter that I had on the old computer. [There was only one, 
from a Scrivener-generated TeX file to LyX.] After reading the above I wonder 
if I should have done that.

Not sure what you mean by the "first non-comment line" of my preferences. Are 
your referring to preferences generally? Or to /file handling/converters 
specifically? And if the former, what specifically would be the "first 
non-comment line"?

Thanks,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

"It is the mark of an educated man to look for precision in 
each class of things just so far as the nature of the subject admits." 

- Aristotle, Nichomachean Ethics



Re: How do you add a converter?

2013-06-29 Thread Scott Kostyshak
On Sat, Jun 29, 2013 at 2:41 PM, Eric Weir  wrote:
>>> So, how do I add a converter?
>>
>> First put in your settings ("From format", "To format", "Converter",
>> etc.), then click add.
>
> First, thanks. My first reaction was, "Of course!" But I didn't way to enter 
> a new "From format". Then I figured out that that is done under "File Formats 
> --> New." So you helped me get it done.

Glad you got it figured out. Since you said that you had it working on
another computer, it might be helpful to note that your custom
converters (and file formats) are stored in your preferences. So you
should be able to move those over. Be careful if you have different
LyX versions though because there are different formats for the
preferences files. So look at what the first non-comment line of your
preferences is. If they are the same, you're safe. If they are
different, my guess is that you're still safe but no guarantees.

Best,

Scott


Re: How do you add a converter?

2013-06-29 Thread Eric Weir

On Jun 28, 2013, at 4:32 PM, Scott Kostyshak  wrote:

> On Fri, Jun 28, 2013 at 10:29 AM, Eric Weir  wrote:
> 
>> So, how do I add a converter?
> 
> First put in your settings ("From format", "To format", "Converter",
> etc.), then click add.

First, thanks. My first reaction was, "Of course!" But I didn't way to enter a 
new "From format". Then I figured out that that is done under "File Formats --> 
New." So you helped me get it done.

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

"You keep on learning and learning, and pretty soon
 you learn something no one has learned before." 

- Richard Feynman



Re: How do you add a converter?

2013-06-28 Thread Scott Kostyshak
On Fri, Jun 28, 2013 at 10:29 AM, Eric Weir  wrote:
>
> I'm in the process of getting set up on a new computer. I want to add a 
> converter for Scrivener that was given to me here that I have on the 
> installation on the old computer, but the "add" button for doing that is 
> greyed out. Thought maybe if  I had a file open it would become available, 
> but not so.
>
> So, how do I add a converter?

First put in your settings ("From format", "To format", "Converter",
etc.), then click add.

Scott


How do you add a converter?

2013-06-28 Thread Eric Weir

I'm in the process of getting set up on a new computer. I want to add a 
converter for Scrivener that was given to me here that I have on the 
installation on the old computer, but the "add" button for doing that is greyed 
out. Thought maybe if  I had a file open it would become available, but not so.

So, how do I add a converter?

--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

“A thing is right when it tends to preserve the integrity, stability 
and beauty of the biotic community. It is wrong when it tends otherwise.” 

- Aldo Leopold






Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/11/13 11:20 AM, Richard Heck wrote:

What sort of thing would you like to be able to do?
I am interested in adding a collapsible text block when I export to an 
HTML page. As an example, I want to have a proof following the statement 
of a mathematical theorem. I would like to put a + sign under the 
theorem so the user can click on it and the proof displays. If the 
reader clicks the + sign again, the proof collapses and disappears.


I have found a javascript example about how to do this at:

http://javascriptsource.com/miscellaneous/collapsible-text.html

Also, it would be good if when I export to pdf none of the javascript stuff 
shows and the proof text is included in the document.


The ordinary article.layout file contains lots of HTML-specific
material. So you could also start by looking at it.

I will study the file.


Bob




Re: Simple HTML converter/export

2013-06-11 Thread Richard Heck

On 06/11/2013 01:42 PM, Bob Alvarez wrote:

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:

  Let me state my interest in this topic to see if it overlaps with
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and 
closed.


Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the "Additional" and Ch. 5 of the "Customization" but 
I am a beginner at this. Is there a sample XHTML layout file that I 
can modify? For example, one that inserts javascript?


What sort of thing would you like to be able to do? That would give me a 
better sense of how to answer. But for some ideas, look perhaps at how 
footnotes are formatted in the file stdinsets.inc.


The ordinary article.layout file contains lots of HTML-specific 
material. So you could also start by looking at it. My sense was that 
what Steve wants is a kind of stripped-down layout, that is closely 
targeted to making simple HTML pages. So, in that case, you might have 
much simpler stuff than in the complex layouts we have.


Richard



Re: Simple HTML converter/export

2013-06-11 Thread Bob Alvarez

On 6/10/13 2:23 PM, Richard Heck wrote:

On 06/09/2013 05:22 PM, Bob Alvarez wrote:
  
Let me state my interest in this topic to see if it overlaps with

yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
great job of producing web pages that look like pdf documents. What I
would want is to be able to add some capabilities to the HTML that
would not be possible in a static format like pdf. But at the same
time, I want to use Lyx's capabilities for formatting the document and
math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like
most math, it is structured with general statements like theorems with
proofs. Many times, the proof gets in the way of the narrative
although it is important for it to be there if the reader wants to see
it. I saw a website where they added a + sign gadget that if you click
it once displays the proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html



The from LyX's own XHTML exporter is substantially customizable through
layout files. I'd be surprised if this sort of thing could be not be
done fairly simply. At worst, you'd have to define some new sort of
inset in which you could wrap whatever you wanted to be opened and closed.

Richard



Could you provide some more details on how I can go about doing this?

I read Ch. 4 of the "Additional" and Ch. 5 of the "Customization" but I 
am a beginner at this. Is there a sample XHTML layout file that I can 
modify? For example, one that inserts javascript?


Any help appreciated.

Bob


Re: Simple HTML converter/export

2013-06-10 Thread Richard Heck

On 06/09/2013 05:22 PM, Bob Alvarez wrote:


"This will NOT be YAHC (Yet Another HTML Converter). It will be a
small subset of LyX's capabilities, purposed not to turn a
document into HTML, but to turn LyX into a quick to use HTML
authoring tool for HTML web pages. It will in no way try to
replace the existing HTML Converters, and from what I've seen so
far, the existing HTML converters would have a hard time replacing
what I'm trying to make."


Let me state my interest in this topic to see if it overlaps with 
yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a 
great job of producing web pages that look like pdf documents. What I 
would want is to be able to add some capabilities to the HTML that 
would not be possible in a static format like pdf. But at the same 
time, I want to use Lyx's capabilities for formatting the document and 
math typesetting.


As an example, I use Lyx to create web pages with a lot of math. Like 
most math, it is structured with general statements like theorems with 
proofs. Many times, the proof gets in the way of the narrative 
although it is important for it to be there if the reader wants to see 
it. I saw a website where they added a + sign gadget that if you click 
it once displays the proof and then clicking it again hides it.


This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly, 
requires editing the HTML output. I would be interested in extensions 
to Lyx that would allow me to add features like these but at the same 
time be able to export standard pdf documents.


The from LyX's own XHTML exporter is substantially customizable through 
layout files. I'd be surprised if this sort of thing could be not be 
done fairly simply. At worst, you'd have to define some new sort of 
inset in which you could wrap whatever you wanted to be opened and closed.


Richard



Re: Simple HTML converter/export

2013-06-09 Thread Steve Litt
On Sun, 9 Jun 2013 14:22:32 -0700
Bob Alvarez  wrote:

> >
> > "This will NOT be YAHC (Yet Another HTML Converter). It will be a
> > small subset of LyX's capabilities, purposed not to turn a document
> > into HTML, but to turn LyX into a quick to use HTML authoring tool
> > for HTML web pages. It will in no way try to replace the existing
> > HTML Converters, and from what I've seen so far, the existing HTML
> > converters would have a hard time replacing what I'm trying to
> > make."
> >
> 
> Let me state my interest in this topic to see if it overlaps with
> yours. I agree that HTML exporters like Alex Fernandez' eLyXer do a
> great job of producing web pages that look like pdf documents. What I
> would want is to be able to add some capabilities to the HTML that
> would not be possible in a static format like pdf. But at the same
> time, I want to use Lyx's capabilities for formatting the document
> and math typesetting.

Hi Bob,

I think our projects are close enough that we'd both benefit from
sharing information, but far enough apart that we'd probably be better
off making them two separate projects. Their intersection is far
smaller than their exclusive-or.

Thanks for pointing out that collapsible text code. That's pretty cool.

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Simple HTML converter/export

2013-06-09 Thread Bob Alvarez
>
> "This will NOT be YAHC (Yet Another HTML Converter). It will be a small
> subset of LyX's capabilities, purposed not to turn a document into HTML,
> but to turn LyX into a quick to use HTML authoring tool for HTML web pages.
> It will in no way try to replace the existing HTML Converters, and from
> what I've seen so far, the existing HTML converters would have a hard time
> replacing what I'm trying to make."
>

Let me state my interest in this topic to see if it overlaps with yours. I
agree that HTML exporters like Alex Fernandez' eLyXer do a great job of
producing web pages that look like pdf documents. What I would want is to
be able to add some capabilities to the HTML that would not be possible in
a static format like pdf. But at the same time, I want to use Lyx's
capabilities for formatting the document and math typesetting.

As an example, I use Lyx to create web pages with a lot of math. Like most
math, it is structured with general statements like theorems with proofs.
Many times, the proof gets in the way of the narrative although it is
important for it to be there if the reader wants to see it. I saw a website
where they added a + sign gadget that if you click it once displays the
proof and then clicking it again hides it.

This is relatively easy to do using the javascript openClose function
http://javascriptsource.com/miscellaneous/collapsible-text.html

Alex suggested a way to do this that, if I understand it correctly,
requires editing the HTML output. I would be interested in extensions to
Lyx that would allow me to add features like these but at the same time be
able to export standard pdf documents.

If there is some commonality of our interests, perhaps the Lyx experts can
suggest a way to enhance Lyx to be able to do the things we want to do.

Bob


Simple HTML converter/export

2013-06-07 Thread Steve Litt
Hi all,

I have no doubt the HTML exporters in LyX are exactly what I want to
make an eBook. A simple, mostly text website? Not so much. I was unable
to change http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Problem specifying a new converter

2013-05-10 Thread Andrew Parsloe



On 10/05/2013 1:13 a.m., Richard Heck wrote:

On 05/08/2013 05:34 PM, Andrew Parsloe wrote:



On 9/05/2013 1:34 a.m., Richard Heck wrote:

On 05/07/2013 05:10 PM, Andrew Parsloe wrote:



On 8/05/2013 4:39 a.m., Richard Heck wrote:

On 05/07/2013 10:17 AM, Stephen Brooking wrote:

Hi,

I have specified a new converter to convert Visio drawings into PDF
(using
some VBScript borrowed from elsewhere on the web), but have run into
issues.
  My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the
current
directory is not the temp directory that LyX created (I'm not
familiar
enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to
the
$$i and $$o files?


No, but you should not need this. LyX ought to be running the
converter
in the temporary directory, but perhaps the cscript thingy resets the
current directory?

Richard



No? I hesitate to contradict you Richard but in my tinkering with
Python scripts I've run converters using *all* the following:
[snip]
$$p The full directory path of the LyX temporary directory. On my
Windows system one day this was

C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/


OK, thanks. This is in the documentation as "the path to the input
file", which usually would be the temporary directory. Perhaps that
should be clarified.

Richard



The path that is missing from these $$ variables is that to the
*back-up* directory. At present I have a script where I have to put
that in by hand, even though LyX knows the path and it should be
retrievable (in my opinion) by a script. Worth an enhancement request?


You mean the directory where LyX stores backups, yes?

Should be pretty easy to do.

Richard



Enhancement ticket #8667.

Andrew


Re: Problem specifying a new converter

2013-05-09 Thread Stephen Brooking
> $$r The full path to the original LyX file being processed, e.g. 
> D:/Documents/LyX/

Is this supported in Windows?

I tried to update my LaTeX (pdflatex) -> PDF (pdflatex) converter to specify
the output directory (to overcome the problem in my other thread); so it is
specified as this:

pdflatex -output-directory $$r $$i

I get this error:

17:50:13.853: Previewing ...
17:50:13.854: (buffer-view: Ctrl+R)
17:50:14.011: pdflatex -output-directory $$r  "example_raw.tex"
17:50:14.026: pdflatex: The specified directory does not exist.
17:50:14.026: pdflatex: Data: \Temp\lyx_tmpdir.gq5004\lyx_tmpbuf2\$$r

Many thanks,

Steve





Re: Problem specifying a new converter

2013-05-09 Thread Richard Heck

On 05/08/2013 05:34 PM, Andrew Parsloe wrote:



On 9/05/2013 1:34 a.m., Richard Heck wrote:

On 05/07/2013 05:10 PM, Andrew Parsloe wrote:



On 8/05/2013 4:39 a.m., Richard Heck wrote:

On 05/07/2013 10:17 AM, Stephen Brooking wrote:

Hi,

I have specified a new converter to convert Visio drawings into PDF
(using
some VBScript borrowed from elsewhere on the web), but have run into
issues.
  My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the
current
directory is not the temp directory that LyX created (I'm not 
familiar

enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to 
the

$$i and $$o files?


No, but you should not need this. LyX ought to be running the 
converter

in the temporary directory, but perhaps the cscript thingy resets the
current directory?

Richard



No? I hesitate to contradict you Richard but in my tinkering with
Python scripts I've run converters using *all* the following:
[snip]
$$p The full directory path of the LyX temporary directory. On my
Windows system one day this was

C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/


OK, thanks. This is in the documentation as "the path to the input
file", which usually would be the temporary directory. Perhaps that
should be clarified.

Richard


The path that is missing from these $$ variables is that to the 
*back-up* directory. At present I have a script where I have to put 
that in by hand, even though LyX knows the path and it should be 
retrievable (in my opinion) by a script. Worth an enhancement request?


You mean the directory where LyX stores backups, yes?

Should be pretty easy to do.

Richard



Re: Problem specifying a new converter

2013-05-09 Thread Stephen Brooking
> There may not be any pdf->png converter defined, though one could use 
> ImageMagick to define one. A better solution might be to modify the 
> script you have to export something other than PDF. This is probably 
> fairly easy to do.

So I have now updated my script to convert to PNG also, and specified a new
converter to use it, and the preview now appears nicely.

Thank you very much.

Steve



Re: Problem specifying a new converter

2013-05-08 Thread Andrew Parsloe



On 9/05/2013 1:34 a.m., Richard Heck wrote:

On 05/07/2013 05:10 PM, Andrew Parsloe wrote:



On 8/05/2013 4:39 a.m., Richard Heck wrote:

On 05/07/2013 10:17 AM, Stephen Brooking wrote:

Hi,

I have specified a new converter to convert Visio drawings into PDF
(using
some VBScript borrowed from elsewhere on the web), but have run into
issues.
  My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the
current
directory is not the temp directory that LyX created (I'm not familiar
enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to the
$$i and $$o files?


No, but you should not need this. LyX ought to be running the converter
in the temporary directory, but perhaps the cscript thingy resets the
current directory?

Richard



No? I hesitate to contradict you Richard but in my tinkering with
Python scripts I've run converters using *all* the following:
[snip]
$$p The full directory path of the LyX temporary directory. On my
Windows system one day this was

C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/


OK, thanks. This is in the documentation as "the path to the input
file", which usually would be the temporary directory. Perhaps that
should be clarified.

Richard


The path that is missing from these $$ variables is that to the 
*back-up* directory. At present I have a script where I have to put that 
in by hand, even though LyX knows the path and it should be retrievable 
(in my opinion) by a script. Worth an enhancement request?


Andrew


Re: Problem specifying a new converter

2013-05-08 Thread Richard Heck

On 05/08/2013 11:18 AM, Stephen Brooking wrote:

Which doesn't seem to show any error.

Any other suggestions of what I could try?  Am I doing the right thing in
trying to get the console output in the command prompt?

Sorry - I wasn't looking high enough up in the debug output.  If I just
select 'Graphics conversion and loading' messages I see this:

..\..\src\Format.cpp (147): will guess format from file extension: vsd -> 
Visio
..\..\..\src\graphics\GraphicsCacheItem.cpp (385):
The file contains Visio format data.
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to bmp
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to pbm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to pgm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to png
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to ppm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to xbm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to xpm
..\..\..\src\graphics\GraphicsConverter.cpp (127): Converter c-tor:
from_file:  .vsd
to_file_base: /CacheItem.nf5008
from_format:  Visio
to_format:ppm
..\..\..\src\graphics\GraphicsConverter.cpp (264): build_script ...
..\..\..\src\graphics\GraphicsConverter.cpp (330):  No converter defined! I
use convertDefault.py

So I need to specify another converter.  I thought that LyX would take the
to-pdf converter I've specified, and then convert the PDF to something it
could preview; is this not the case?


There may not be any pdf->png converter defined, though one could use 
ImageMagick to define one. A better solution might be to modify the 
script you have to export something other than PDF. This is probably 
fairly easy to do.


rh



Re: Problem specifying a new converter

2013-05-08 Thread Stephen Brooking
> Which doesn't seem to show any error.
> 
> Any other suggestions of what I could try?  Am I doing the right thing in
> trying to get the console output in the command prompt?

Sorry - I wasn't looking high enough up in the debug output.  If I just
select 'Graphics conversion and loading' messages I see this:

..\..\src\Format.cpp (147): will guess format from file extension: vsd -> 
Visio
..\..\..\src\graphics\GraphicsCacheItem.cpp (385): 
The file contains Visio format data.
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to bmp
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to pbm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to pgm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to png
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to ppm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to xbm
..\..\..\src\graphics\GraphicsCacheItem.cpp (340): Unable to convert from
Visio to xpm
..\..\..\src\graphics\GraphicsConverter.cpp (127): Converter c-tor:
from_file:  .vsd
to_file_base: /CacheItem.nf5008
from_format:  Visio
to_format:ppm
..\..\..\src\graphics\GraphicsConverter.cpp (264): build_script ... 
..\..\..\src\graphics\GraphicsConverter.cpp (330):  No converter defined! I
use convertDefault.py

So I need to specify another converter.  I thought that LyX would take the
to-pdf converter I've specified, and then convert the PDF to something it
could preview; is this not the case?

Many thanks,

Steve




Re: Problem specifying a new converter

2013-05-08 Thread Stephen Brooking
> > So I now get my conversion performed OK when I generate the PDF 
> > document, but the preview of the figure in the LyX editing window 
> > still says 'Error converting to loadable format'. Would you be able to 
> > provide me any pointers as to why this is? Is there a log of the 
> > errors that occurred in this process anywhere?
> 
> If you launch LyX from a terminal window, you should see the error messages.

Hi Richard,

Thank you again for the quick response.  I'm running this from a Windows 7
machine.  So I opened a command prompt, and ran the LyX executable.  LyX
opens, but the command completes immediately, and no output is seen.

>From a quick google, to try to get this output within LyX I tried View->View
Messages, and then setting 'Debug messages' to 'All', and I get this when I
right-click->reload on the graphic in my figure:

..\..\src\BufferView.cpp (2850):*** START DRAWING ***
..\..\src\TextMetrics.cpp (2184): main text redraw pit=4 row=0
row_selection=0 full_repaint=1 row_has_changed=0

..\..\src\TextMetrics.cpp (2184): main text redraw pit=14 row=0
row_selection=0 full_repaint=1 row_has_changed=0
..\..\src\BufferView.cpp (2902): 
*** END DRAWING  ***

Which doesn't seem to show any error.

Any other suggestions of what I could try?  Am I doing the right thing in
trying to get the console output in the command prompt?

Many thanks,

Steve



Re: Problem specifying a new converter

2013-05-08 Thread Richard Heck

On 05/08/2013 09:59 AM, Stephen Brooking wrote:
Thank you for the list of the '$$' variables though; they may well 
come in useful. I did try searching for documentation of them but 
couldn't find them. 


They're in the Customization manual, under "Converters".

So I now get my conversion performed OK when I generate the PDF 
document, but the preview of the figure in the LyX editing window 
still says 'Error converting to loadable format'. Would you be able to 
provide me any pointers as to why this is? Is there a log of the 
errors that occurred in this process anywhere?


If you launch LyX from a terminal window, you should see the error messages.

Richard




Re: Problem specifying a new converter

2013-05-08 Thread Stephen Brooking
> > No? I hesitate to contradict you Richard but in my tinkering with 
> > Python scripts I've run converters using *all* the following:
> > [snip]
> > $$p The full directory path of the LyX temporary directory. On my 
> > Windows system one day this was
> >
> > C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/
> 
> OK, thanks. This is in the documentation as "the path to the input 
> file", which usually would be the temporary directory. Perhaps that 
> should be clarified.

Many thanks for your replies.  It wasn't the cscript thingy that was
changing the current directory, but actually in the invocation of Visio from
the VBScript (I think).  So in the VBScript I can obtain the current
directory, and add that to the filename(s) to give Visio.

Thank you for the list of the '$$' variables though; they may well come in
useful.  I did try searching for documentation of them but couldn't find them.

So I now get my conversion performed OK when I generate the PDF document,
but the preview of the figure in the LyX editing window still says 'Error
converting to loadable format'.  Would you be able to provide me any
pointers as to why this is?  Is there a log of the errors that occurred in
this process anywhere?

Many thanks,

Steve



Re: Problem specifying a new converter

2013-05-08 Thread Richard Heck

On 05/07/2013 05:10 PM, Andrew Parsloe wrote:



On 8/05/2013 4:39 a.m., Richard Heck wrote:

On 05/07/2013 10:17 AM, Stephen Brooking wrote:

Hi,

I have specified a new converter to convert Visio drawings into PDF
(using
some VBScript borrowed from elsewhere on the web), but have run into
issues.
  My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the 
current

directory is not the temp directory that LyX created (I'm not familiar
enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to the
$$i and $$o files?


No, but you should not need this. LyX ought to be running the converter
in the temporary directory, but perhaps the cscript thingy resets the
current directory?

Richard


No? I hesitate to contradict you Richard but in my tinkering with 
Python scripts I've run converters using *all* the following:

[snip]
$$p The full directory path of the LyX temporary directory. On my 
Windows system one day this was


C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/


OK, thanks. This is in the documentation as "the path to the input 
file", which usually would be the temporary directory. Perhaps that 
should be clarified.


Richard



Re: Problem specifying a new converter

2013-05-07 Thread Andrew Parsloe



On 8/05/2013 4:39 a.m., Richard Heck wrote:

On 05/07/2013 10:17 AM, Stephen Brooking wrote:

Hi,

I have specified a new converter to convert Visio drawings into PDF
(using
some VBScript borrowed from elsewhere on the web), but have run into
issues.
  My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the current
directory is not the temp directory that LyX created (I'm not familiar
enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to the
$$i
and $$o files?


No, but you should not need this. LyX ought to be running the converter
in the temporary directory, but perhaps the cscript thingy resets the
current directory?

Richard


No? I hesitate to contradict you Richard but in my tinkering with Python 
scripts I've run converters using *all* the following:


$$i Input file

$$o Output file

$$f The filename with extension but without directory path of the LyX 
file, e.g. myfile.lyx


$$r The full path to the original LyX file being processed, e.g. 
D:/Documents/LyX/


$$p The full directory path of the LyX temporary directory. On my 
Windows system one day this was


C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/

$$b Base name in the temporary directory: the path with filename but no 
extension in the LyX temporary directory. On that same day this would be


C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/myfile

And I understand there are also $$s the LyX system directory,
$$l the `LaTeX name', and $$e the encoding, although I haven't used 
these three.


Andrew


Re: Problem specifying a new converter

2013-05-07 Thread Richard Heck

On 05/07/2013 10:17 AM, Stephen Brooking wrote:

Hi,

I have specified a new converter to convert Visio drawings into PDF (using
some VBScript borrowed from elsewhere on the web), but have run into issues.
  My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the current
directory is not the temp directory that LyX created (I'm not familiar
enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to the $$i
and $$o files?


No, but you should not need this. LyX ought to be running the converter 
in the temporary directory, but perhaps the cscript thingy resets the 
current directory?


Richard



Problem specifying a new converter

2013-05-07 Thread Stephen Brooking
Hi,

I have specified a new converter to convert Visio drawings into PDF (using
some VBScript borrowed from elsewhere on the web), but have run into issues.
 My converter is specified like this:

cscript /vsd2pdf.vbs "$$i" "$$o"

When Visio runs, it can't access the file to convert because the current
directory is not the temp directory that LyX created (I'm not familiar
enough with VBScript to know why or where).

So my question is this: is there a '$$' variable that specifies the
temporary directory in use, so that I can form an absolute path to the $$i
and $$o files?

(I'm using LyX version 2.0.5.1 on a Windows 7 platform.)

Many thanks in advance,

Steve




Re: Yaml to Beamer converter?

2013-02-04 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/02/13 22:27, Steve Litt wrote:
> Hi all,
> 
> This isn't really on topic, but the LyX list contains the most LaTeX 
> knowledgeable people I 
> know.
> 
> Does anyone know of a YAML to Beamer converter program? I'd love to author my 
> presentations in 
> YAML and then convert and run them in Beamer.
> 
> Also, can anyone suggest a venue where this question *would* be on topic?

Can't answer your first question, but on gmane there is a yaml mailing list and 
also a beamer
mailing list.

Cheers,

Rainer

> 
> Thanks
> 
> SteveT
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRD3r5AAoJENvXNx4PUvmC5MAH/0okvcjmYn40A9pIdn0DWzfv
Pn4HZm+kg0eJUJMixUkO72dj7NYyHbtdRztmBejDp6D6vvWWJTC4QE6egSiOGYig
+WpaPPMBAm3BuvvRSJpW1tt/25BLtTlC3c4wzkuhuFOF0OneOn73l2GkF7lRKXTu
XTB9rI01woZy+D0+r2eZFSQCoWV+0DPWM5vyduA9ifBJjVEThSnWQ4K1V+TErufn
YDnpcRsZcuJBDEdPd8f8/x4RDMt+89t3FOsed1B8E/nH83gfxuEqZJwzl8BO3YHN
kdZYjK+7iJgcLwp5YEbbF1zgehv4sgg3A7w+voP+uhIYzWMorjhLl9ETsNgjGJI=
=Pffh
-END PGP SIGNATURE-


Re: Yaml to Beamer converter?

2013-02-03 Thread Jürgen Spitzmüller
2013/2/3 Steve Litt:
> Does anyone know of a YAML to Beamer converter program? I'd love to
> author my presentations in YAML and then convert and run them in Beamer.

Google led me to this:
http://code.google.com/p/yml2tex/

Not that I have ever used this (or even YAML itself, for that matter).

HTH
Jürgen


Yaml to Beamer converter?

2013-02-03 Thread Steve Litt
Hi all,

This isn't really on topic, but the LyX list contains the most LaTeX
knowledgeable people I know.

Does anyone know of a YAML to Beamer converter program? I'd love to
author my presentations in YAML and then convert and run them in Beamer.

Also, can anyone suggest a venue where this question *would* be on
topic?

Thanks

SteveT


Re: No converter from "lyxpreview" format has been defined

2012-10-23 Thread John Coppens
On Tue, 23 Oct 2012 15:21:54 -0300
John Coppens  wrote:

> Just to be complete: I have also checked the existence of the xypic and 
> preview
> packages...
This starts to look like bugging... My apologies. More info:

I (proudly) wrote my first LaTeX script, using the xy-pic library, and, after
a few trials, it worked! I.e., I could generate the arrows provided by xy-pic,
which seems to prove that everything is install correctly.

I then imported this file in LyX, and there, it didn't get interpreted:
- The \circle were translated, but the \ar was included literally.
If I try to view the DVI (from inside LyX), I get an error:


 on input line 20.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  <5> on input line 20.
! Argument of \next@ has an extra }.
 
\par 
l.20  {\circ} \& {\circ} \& {\circ} \& {\circ} }
-

repeated many times over. Running LaTeX immediately (on my edited file)
I have no errors and the DVI output is correct.

This is that file:

\documentclass{article}
\usepackage[all]{xy}
\begin{document}
Small is beautiful.\\
\xymatrix{
{\circ} \ar[r] & {\circ} & {\circ} & {\circ} \\
{\circ} & {\circ} & {\circ} & {\circ} }
\end{document}


Re: No converter from "lyxpreview" format has been defined

2012-10-23 Thread John Coppens
Just to be complete: I have also checked the existence of the xypic and preview
packages...


No converter from "lyxpreview" format has been defined

2012-10-23 Thread John Coppens
Hello all.

I've been trying to get xypic working. I don't get any message from LyX, but
on the terminal, I see

No converter from "lyxpreview" format has been defined

I googled around some, and found several mentions of the problem in LyX 1.3.6,
but very little recent. In Converters, I have the line:

python -tt $$s/scripts/lyxpreview-platex2bitmap.py

This script seems to exist, even though it isn't called - the .pyc / .pyo files
are not updated even though a newer version of the .py is available.

-rw-r--r-- 1 root root 1372 2012-10-23 13:19 
/usr/local/share/lyx/scripts/lyxpreview-platex2bitmap.py
-rw-r--r-- 1 root root  968 2012-01-31 16:13 
/usr/local/share/lyx/scripts/lyxpreview-platex2bitmap.pyc
-rw-r--r-- 1 root root  968 2012-01-31 16:13 
/usr/local/share/lyx/scripts/lyxpreview-platex2bitmap.pyo

Of course, Instant_view is enabled, etc. 

Any suggestions? (LyX version was 2.0.2, installed 2.0.4 to compare, with same
results. Python 2.7.3).

John


Re: word2lyx: Word to LyX Document Converter

2012-03-08 Thread Rob Oakes

On Mar 8, 2012, at 6:56 AM, BH wrote:

> I'm very interested in this -- thanks for undertaking the project.
> However, I can't even get it started. On Mac (10.6.8), calling
> word2lyx from the Terminal, I get the following:
> 
>> ./word2lyx.py ./Example-Word2LyX.docx test.lyx

> Traceback (most recent call last):
>  File "./word2lyx.py", line 13, in 
>from docx import read as docxread
>  File "/Users/bennett/Downloads/word2lyx/docx/read.py", line 10, in 
>from parser import ElementTree as etree
>  File "/Users/bennett/Downloads/word2lyx/docx/parser.py", line 13, in 
>class etree_element(ElementTree.Element):
> TypeError: Error when calling the metaclass bases
>function() argument 1 must be code, not str

No, I think that the problem may be due to the version that you are using. Snow 
Leopard uses Python 2.6, whereas I tested it against Python 2.7 (which can be 
found in Lion and in most Linux distributions). The problem is how I'm 
importing the XML module and needs to be reworked.

I'll get to this a little bit later today and post a fix as soon as I can.

Cheers,

Rob

Re: word2lyx: Word to LyX Document Converter

2012-03-08 Thread BH
On Wed, Mar 7, 2012 at 7:03 PM, Rob Oakes  wrote:
> Dear Users and Developers,
>
> First off, thank you to everyone who sent me documents over the weekend.
> I was able to make a lot of tweaks to word2lyx based on what you sent me.
>
> With that hurdle out of the way, I think it's ready to release it into
> the wild. If you'd like to download a copy of it, you can download the
> code from:
>
> http://oak-tree.us/stuff/LyX/word2lyx-01.zip
>
> A brief write-up of the features and usage can be found at:
>
> http://www.oak-tree.us/2012/03/07/word2lyx01-2/
>
> If you download it and find it useful, please let me know. If you
> download it and have problems, also please let me know. (Mostly so I can
> fix the problems.)

I'm very interested in this -- thanks for undertaking the project.
However, I can't even get it started. On Mac (10.6.8), calling
word2lyx from the Terminal, I get the following:

> ./word2lyx.py ./Example-Word2LyX.docx test.lyx
Traceback (most recent call last):
  File "./word2lyx.py", line 13, in 
from docx import read as docxread
  File "/Users/bennett/Downloads/word2lyx/docx/read.py", line 10, in 
from parser import ElementTree as etree
  File "/Users/bennett/Downloads/word2lyx/docx/parser.py", line 13, in 
class etree_element(ElementTree.Element):
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str

Am I doing anything wrong?

BH


Re: word2lyx: Word to LyX Document Converter

2012-03-07 Thread Murat Yildizoglu
Thanks a lot Rob!
If I have understood correctly, this script cannot import equations. Do you it 
is possible to translate these objects to Latex too ?

Regards,

Murat

--
Murat Yildizoglu
yi...@u-bordeaux4.fr

Le 8 mars 2012 à 01:03, Rob Oakes  a écrit :

> Dear Users and Developers,
> 
> First off, thank you to everyone who sent me documents over the weekend.
> I was able to make a lot of tweaks to word2lyx based on what you sent me.
> 
> With that hurdle out of the way, I think it's ready to release it into
> the wild. If you'd like to download a copy of it, you can download the
> code from:
> 
> http://oak-tree.us/stuff/LyX/word2lyx-01.zip
> 
> A brief write-up of the features and usage can be found at:
> 
> http://www.oak-tree.us/2012/03/07/word2lyx01-2/
> 
> If you download it and find it useful, please let me know. If you
> download it and have problems, also please let me know. (Mostly so I can
> fix the problems.)
> 
> Cheers,
> 
> Rob


word2lyx: Word to LyX Document Converter

2012-03-07 Thread Rob Oakes
Dear Users and Developers,

First off, thank you to everyone who sent me documents over the weekend.
I was able to make a lot of tweaks to word2lyx based on what you sent me.

With that hurdle out of the way, I think it's ready to release it into
the wild. If you'd like to download a copy of it, you can download the
code from:

http://oak-tree.us/stuff/LyX/word2lyx-01.zip

A brief write-up of the features and usage can be found at:

http://www.oak-tree.us/2012/03/07/word2lyx01-2/

If you download it and find it useful, please let me know. If you
download it and have problems, also please let me know. (Mostly so I can
fix the problems.)

Cheers,

Rob


Re: problem with custom converter (bug?) - workaround provided

2012-01-10 Thread Julien Rioux

On 01/01/2012 7:08 PM, Bogdan wrote:

As part of my course, I've been traditionally maintaining a problem
sheet in latex and compile two versions, one with answers, and one
without. To achieve that, I hide the answers based on whether a certain
variable was defined in latex or not and then compile it accordingly:

with answers: pdflatex sheet.tex
without answers: pdflatex "\def\noanswers{yes}\input{sheet.tex}"

I defined a new converter in LyX do achieve the same but I could not do
it without wrapping the 2nd command in a shell script (I'm using
windows). What I did:

- defined a new file format pdf6: PDF (pdflatex-na) with the same
settings as pdf2: PDF (pdflatex).
- defined a converter Latex (pdflatex) -> PDF (pdflatex-na) with the
following for converter: pdflatex "\def\noanswers{yes}\input{$$i}"

Checking the lyx preferences file, I see it correctly escaped as:

\converter "pdflatex" "pdf6" "pdflatex
\"\\def\\noanswers{yes}\\input{$$i}\"" "latex=pdflatex"

However, when I try to use it (update or export) then LyX launches the
converter and keeps waiting for it to terminate. Investigating the
matter with a task manager like Process Hacker or Process Explorer, in
order to see what command was actually executed, I notice that LyX
started a cmd shell which in fact executed the following:

pdflatex "\def\noanswers{yes}\input{ }" sheet.tex

Note the empty \input{} and the file name sheet.tex at the end, instead
of inside \input{sheet.tex}.

I tried with the other variables $$b.tex, $$p, $$r etc, to no avail.

Unless I'm missing something, this looks like a bug. Is there a python
script anywhere that launches the cmd shell? It's probably there and I
could fix it.

My workaround is to wrap the whole thing in a cmd script pdflatexna.bat
placed in lyx/bin with the contents:

@pdflatex "\def\noanswers{yes}\input{%~1}"

(the %~1 instead of %1 is to strip any double quotes)

.... and then use the following command for the converter: pdflatexna $$i

Cheers,
Bogdan.




Yes in the case of a converter with a latex flag, $$i is replaced by an 
empty string and the input file is added at the end of the command line. 
I wondered why this is like this and I can't see a reason besides that 
it must have been this way before the introduction of the $$i token. It 
is unintuitive for users and should be made consistent.


--
Julien



Re: problem with custom converter (bug?) - workaround provided

2012-01-02 Thread Richard Heck

On 01/02/2012 06:57 PM, Bogdan wrote:

On 02-Jan-12 10:32 pm, Richard Heck wrote:

On 01/02/2012 05:10 PM, Richard Heck wrote:

On 01/02/2012 04:35 PM, Bogdan Roman wrote:

- create format "foo" with short name "pdf7" and extension "pdf" and
check all 3 checkboxes
- create a converter Latex (pdflatex) -> foo with the command
"pdflatexfoo $$i 20 20" and the extra flag "latex=pdflatex"
- create a batch file pdflatexfoo.bat and place it in lyx\bin with
the following contents:
@echo off
echo %* > c:\args.txt

save, make a change and then do "Update foo". If you look in
c:\args.txt you'll see "20 20 file.tex"

I did exactly the above steps and that's what I see on Win7 x64 with
latest stable LyX 2.0.2 which is consistent with my findings from
yesterday.


It seems to be the latex=pdflatex flag that is triggering the bug.
Please file a bug.


Actually, I think you do not want this latex flag here at all. That
means you want LyX to run LaTeX for you, and the argument (if any) tells
LyX which flavor to run. Lots of magic happens then. If you are running
LaTeX on your own, you don't want this flag.



I might be misunderstanding you so please correct me if I'm wrong.

But according to the docs, the "latex=pdflatex" only informs LyX about 
the output type of the tool in order to parse errors. If I remove the 
flag, LyX won't even execute the converter and gives a crude error "An 
error occured while running: pdflatex "sheet.tex"". It seems we need 
that flag ...


I had my dummy converter running without it, and most converters don't 
have it.


Also, if you look at my last message in the other thread about code 
before \documentclass{}, you will see that I defined a converter that 
is in fact a shell script which launches an executable itself and it 
runs just fine with the "latex=pdflatex" flag present.


My converter is lyxwrap.bat and looking at what happens with Process 
Explorer, it doesn't seem that LyX would try to execute pdflatex but 
correctly executes lyxwrap.bat.



Yes, but a lot else is going on behind the scenes in LyX.

Regardless, I think the above quoted behavior is still a bug that 
should be fixed, i.e. the $$i placeholder should not be moved around 
to the end of the argument list.


You're welcome to send a note to the devel list about this and see if 
anyone there has thoughts. I'm not an expert on this part of the LyX 
code. But if you have a look at Converter.cpp, at the convert() routine, 
you will see an if-else that tests on conv.latex, which is set when the 
latex flag is present, and what a huge difference that ends up making. I 
don't think it's as easy as it seems.


Richard



Re: problem with custom converter (bug?) - workaround provided

2012-01-02 Thread Bogdan

On 02-Jan-12 10:32 pm, Richard Heck wrote:

On 01/02/2012 05:10 PM, Richard Heck wrote:

On 01/02/2012 04:35 PM, Bogdan Roman wrote:

- create format "foo" with short name "pdf7" and extension "pdf" and
check all 3 checkboxes
- create a converter Latex (pdflatex) -> foo with the command
"pdflatexfoo $$i 20 20" and the extra flag "latex=pdflatex"
- create a batch file pdflatexfoo.bat and place it in lyx\bin with
the following contents:
@echo off
echo %* > c:\args.txt

save, make a change and then do "Update foo". If you look in
c:\args.txt you'll see "20 20 file.tex"

I did exactly the above steps and that's what I see on Win7 x64 with
latest stable LyX 2.0.2 which is consistent with my findings from
yesterday.


It seems to be the latex=pdflatex flag that is triggering the bug.
Please file a bug.


Actually, I think you do not want this latex flag here at all. That
means you want LyX to run LaTeX for you, and the argument (if any) tells
LyX which flavor to run. Lots of magic happens then. If you are running
LaTeX on your own, you don't want this flag.



I might be misunderstanding you so please correct me if I'm wrong.

But according to the docs, the "latex=pdflatex" only informs LyX about 
the output type of the tool in order to parse errors. If I remove the 
flag, LyX won't even execute the converter and gives a crude error "An 
error occured while running: pdflatex "sheet.tex"". It seems we need 
that flag ...


Also, if you look at my last message in the other thread about code 
before \documentclass{}, you will see that I defined a converter that is 
in fact a shell script which launches an executable itself and it runs 
just fine with the "latex=pdflatex" flag present.


My converter is lyxwrap.bat and looking at what happens with Process 
Explorer, it doesn't seem that LyX would try to execute pdflatex but 
correctly executes lyxwrap.bat.


Regardless, I think the above quoted behavior is still a bug that should 
be fixed, i.e. the $$i placeholder should not be moved around to the end 
of the argument list.


Bogdan.



Re: problem with custom converter (bug?) - workaround provided

2012-01-02 Thread Richard Heck

On 01/02/2012 05:10 PM, Richard Heck wrote:

On 01/02/2012 04:35 PM, Bogdan Roman wrote:
- create format "foo" with short name "pdf7" and extension "pdf" and 
check all 3 checkboxes
- create a converter Latex (pdflatex) -> foo with the command 
"pdflatexfoo $$i 20 20" and the extra flag "latex=pdflatex"
- create a batch file pdflatexfoo.bat and place it in lyx\bin with 
the following contents:

@echo off
echo %* > c:\args.txt

save, make a change and then do "Update foo". If you look in 
c:\args.txt you'll see "20 20 file.tex"


I did exactly the above steps and that's what I see on Win7 x64 with 
latest stable LyX 2.0.2 which is consistent with my findings from 
yesterday.


It seems to be the latex=pdflatex flag that is triggering the bug. 
Please file a bug.


Actually, I think you do not want this latex flag here at all. That 
means you want LyX to run LaTeX for you, and the argument (if any) tells 
LyX which flavor to run. Lots of magic happens then. If you are running 
LaTeX on your own, you don't want this flag.


Richard



Re: problem with custom converter (bug?) - workaround provided

2012-01-02 Thread Bogdan

On 02-Jan-12 9:23 pm, Richard Heck wrote:

On 01/01/2012 07:43 PM, Bogdan wrote:

Actually, I just discovered that the expansion of $$i is put at the
end of the actual command LyX launches no matter what I use for the
converter command, e.g. if the converter command is:

pdflatexna $$i 20 20

then LyX is actually executing:

pdflatexna 20 20 sheet.tex

Nasty :)


I don't see this. I have defined a Dummy format and a LyX --> Dummy
converter that does this:
dummy $$p $$i $$o 30 30
The dummy program just prints its arguments, so I get eg:
/tmp/lyx_tmpdir.T12123/lyx_tmpbuf2/
Customization.lyx
Customization.dum
30
30
I get the same output if I instead define a LaTeX --> Dummy converter,
so that we have to go through LaTeX to get to Dummy.

Richard


Are you using windows? If yes, try this:

- create format "foo" with short name "pdf7" and extension "pdf" and 
check all 3 checkboxes
- create a converter Latex (pdflatex) -> foo with the command 
"pdflatexfoo $$i 20 20" and the extra flag "latex=pdflatex"
- create a batch file pdflatexfoo.bat and place it in lyx\bin with the 
following contents:

@echo off
echo %* > c:\args.txt

save, make a change and then do "Update foo". If you look in c:\args.txt 
you'll see "20 20 file.tex"


I did exactly the above steps and that's what I see on Win7 x64 with 
latest stable LyX 2.0.2 which is consistent with my findings from yesterday.


Would you like me to submit any debug/conf files?

Bogdan.




  1   2   3   >