Re: #7839: equation editor: cropped PDF and EPS

2013-05-15 Thread Georg Baum
Liviu Andronic wrote:

 I updated the patch to reflect this. Is it OK for inclusion in trunk?
 
 I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
 include some minimal documentation on their intended use.

This one looks good!


Georg



Re: #7839: equation editor: cropped PDF and EPS

2013-05-15 Thread Richard Heck

On 05/15/2013 04:40 PM, Georg Baum wrote:

Liviu Andronic wrote:


I updated the patch to reflect this. Is it OK for inclusion in trunk?

I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
include some minimal documentation on their intended use.

This one looks good!


OK, Liviu. This is the patch at the bug? Or re-post the final version 
here, and someone will commit.


rh



Re: #7839: equation editor: cropped PDF and EPS

2013-05-15 Thread Liviu Andronic
On Thu, May 16, 2013 at 12:52 AM, Richard Heck rgh...@lyx.org wrote:
 On 05/15/2013 04:40 PM, Georg Baum wrote:

 Liviu Andronic wrote:

 I updated the patch to reflect this. Is it OK for inclusion in trunk?

 I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
 include some minimal documentation on their intended use.

 This one looks good!


 OK, Liviu. This is the patch at the bug? Or re-post the final version here,
 and someone will commit.

Great. We should commit the patch
lyx-configure-pdfcrop-epscrop_2.1.patch and the templates
EPS-cropped.lyx and PDF-cropped.lyx. They're posted on bugtracker:
http://www.lyx.org/trac/ticket/7839 .

Thanks,
Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-05-15 Thread Georg Baum
Liviu Andronic wrote:

> I updated the patch to reflect this. Is it OK for inclusion in trunk?
> 
> I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
> include some minimal documentation on their intended use.

This one looks good!


Georg



Re: #7839: equation editor: cropped PDF and EPS

2013-05-15 Thread Richard Heck

On 05/15/2013 04:40 PM, Georg Baum wrote:

Liviu Andronic wrote:


I updated the patch to reflect this. Is it OK for inclusion in trunk?

I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
include some minimal documentation on their intended use.

This one looks good!


OK, Liviu. This is the patch at the bug? Or re-post the final version 
here, and someone will commit.


rh



Re: #7839: equation editor: cropped PDF and EPS

2013-05-15 Thread Liviu Andronic
On Thu, May 16, 2013 at 12:52 AM, Richard Heck  wrote:
> On 05/15/2013 04:40 PM, Georg Baum wrote:
>>
>> Liviu Andronic wrote:
>>
>>> I updated the patch to reflect this. Is it OK for inclusion in trunk?
>>>
>>> I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
>>> include some minimal documentation on their intended use.
>>
>> This one looks good!
>
>
> OK, Liviu. This is the patch at the bug? Or re-post the final version here,
> and someone will commit.
>
Great. We should commit the patch
lyx-configure-pdfcrop-epscrop_2.1.patch and the templates
EPS-cropped.lyx and PDF-cropped.lyx. They're posted on bugtracker:
http://www.lyx.org/trac/ticket/7839 .

Thanks,
Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-05-14 Thread Georg Baum
Liviu Andronic wrote:

 Dear all,
 I've just updated a patch that simply adds two new converters to LyX:
 pdflatex - pdfcrop and DVI - EPS. They're also accompanied by two
 templates, which only set 'empty' page style and predefine the default
 output format.
 
 This basically allow us to have an equation editor-like mode in
 LyX, by acting as a generator for embeddable graphics (equations,
 commented graphics, etc). I think this is a very useful (and
 long-requested) feature obtained via an inexpensive approach.
 
 I propose it for inclusion in 2.1. Please comment.

I like the goal, but making eps a document format will cause unwanted 
entries to show up in export and view menus. This shows again a limitation 
of our converter code, where you cannot easily suppress unwanted edges in 
the conversion graph. I believe however that it should work if you would 
instead use a new EPS (cropped) format similar to the new pdf format.


Georg




Re: #7839: equation editor: cropped PDF and EPS

2013-05-14 Thread Liviu Andronic
On Tue, May 14, 2013 at 7:38 PM, Georg Baum
georg.b...@post.rwth-aachen.de wrote:
 I like the goal, but making eps a document format will cause unwanted
 entries to show up in export and view menus. This shows again a limitation
 of our converter code, where you cannot easily suppress unwanted edges in
 the conversion graph. I believe however that it should work if you would
 instead use a new EPS (cropped) format similar to the new pdf format.

I updated the patch to reflect this. Is it OK for inclusion in trunk?

I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
include some minimal documentation on their intended use.

Thanks,
Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-05-14 Thread Georg Baum
Liviu Andronic wrote:

> Dear all,
> I've just updated a patch that simply adds two new converters to LyX:
> pdflatex -> pdfcrop and DVI -> EPS. They're also accompanied by two
> templates, which only set 'empty' page style and predefine the default
> output format.
> 
> This basically allow us to have an "equation editor"-like "mode" in
> LyX, by acting as a "generator for embeddable graphics" (equations,
> commented graphics, etc). I think this is a very useful (and
> long-requested) feature obtained via an inexpensive approach.
> 
> I propose it for inclusion in 2.1. Please comment.

I like the goal, but making eps a document format will cause unwanted 
entries to show up in export and view menus. This shows again a limitation 
of our converter code, where you cannot easily suppress unwanted edges in 
the conversion graph. I believe however that it should work if you would 
instead use a new "EPS (cropped)" format similar to the new pdf format.


Georg




Re: #7839: equation editor: cropped PDF and EPS

2013-05-14 Thread Liviu Andronic
On Tue, May 14, 2013 at 7:38 PM, Georg Baum
 wrote:
> I like the goal, but making eps a document format will cause unwanted
> entries to show up in export and view menus. This shows again a limitation
> of our converter code, where you cannot easily suppress unwanted edges in
> the conversion graph. I believe however that it should work if you would
> instead use a new "EPS (cropped)" format similar to the new pdf format.
>
I updated the patch to reflect this. Is it OK for inclusion in trunk?

I also updated the templates, EPS-cropped.lyx and PDF-cropped.lyx, to
include some minimal documentation on their intended use.

Thanks,
Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-05-13 Thread Liviu Andronic
Dear all,
I've just updated a patch that simply adds two new converters to LyX:
pdflatex - pdfcrop and DVI - EPS. They're also accompanied by two
templates, which only set 'empty' page style and predefine the default
output format.

This basically allow us to have an equation editor-like mode in
LyX, by acting as a generator for embeddable graphics (equations,
commented graphics, etc). I think this is a very useful (and
long-requested) feature obtained via an inexpensive approach.

I propose it for inclusion in 2.1. Please comment.

Regards,
Liviu


On Mon, May 13, 2013 at 10:59 PM, LyX Ticket Tracker t...@lyx.org wrote:
 #7839: equation editor: cropped PDF and EPS
 -+-
  Reporter:  landroni |   Owner:  rgheck
  Type:  enhancement  |  Status:  new
  Priority:  low  |   Milestone:  2.1.0
 Component:  export   | Version:  2.0.1
  Severity:  normal   |  Resolution:
  Keywords:  patch|
 -+-

 Comment (by landroni):

  I attached updated patch and templates. Please review. (The templates
  allow for an equation editor-like mode in LyX.)

 --
 Ticket URL: http://www.lyx.org/trac/ticket/7839#comment:9
 The LyX Project http://www.lyx.org/
 LyX -- The Document Processor



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: #7839: equation editor: cropped PDF and EPS

2013-05-13 Thread Liviu Andronic
Dear all,
I've just updated a patch that simply adds two new converters to LyX:
pdflatex -> pdfcrop and DVI -> EPS. They're also accompanied by two
templates, which only set 'empty' page style and predefine the default
output format.

This basically allow us to have an "equation editor"-like "mode" in
LyX, by acting as a "generator for embeddable graphics" (equations,
commented graphics, etc). I think this is a very useful (and
long-requested) feature obtained via an inexpensive approach.

I propose it for inclusion in 2.1. Please comment.

Regards,
Liviu


On Mon, May 13, 2013 at 10:59 PM, LyX Ticket Tracker <t...@lyx.org> wrote:
> #7839: equation editor: cropped PDF and EPS
> -+-
>  Reporter:  landroni |   Owner:  rgheck
>  Type:  enhancement  |  Status:  new
>  Priority:  low  |   Milestone:  2.1.0
> Component:  export   | Version:  2.0.1
>  Severity:  normal   |  Resolution:
>  Keywords:  patch|
> -+-
>
> Comment (by landroni):
>
>  I attached updated patch and templates. Please review. (The templates
>  allow for an "equation editor"-like "mode" in LyX.)
>
> --
> Ticket URL: <http://www.lyx.org/trac/ticket/7839#comment:9>
> The LyX Project <http://www.lyx.org/>
> LyX -- The Document Processor



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: #7839: equation editor: cropped PDF and EPS

2013-02-23 Thread Liviu Andronic
On Fri, Feb 22, 2013 at 12:52 PM, Guenter Milde mi...@users.sf.net wrote:
 I posted an example.

Thanks. I'm now trying to update the patch for current trunk, but I've
hit a hiccup. The original patch modified the EPS format as follows:
-rc_entry = [r'''\Format epseps EPS
 %%   vector
+rc_entry = [r'''\Format epseps EPS
 %%   document,vector,menu=export

However trunk now has two EPS formats:
\Format epseps EPS
%%  vectorimage/x-eps
\Format eps2   epsEPS (uncropped)%% 
vector

What is eps2 for, and which entry should I modify?


 (I cannot test this as I'm running TeXLive 2009 and
 thus no unicode-math.)

 How about upgrading? Debian/testing has TeXLive 2012 (and AFAIK Ubuntu as
 well).

I found this PPA (
https://launchpad.net/~texlive-backports/+archive/ppa ) that provides
TL 2012 backports for Ubuntu Precise, so I went ahead and upgraded.
I'll check out the SVG example a bit later.

Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-02-23 Thread Liviu Andronic
On Fri, Feb 22, 2013 at 12:52 PM, Guenter Milde  wrote:
> I posted an example.
>
Thanks. I'm now trying to update the patch for current trunk, but I've
hit a hiccup. The original patch modified the EPS format as follows:
-rc_entry = [r'''\Format epseps EPS
"" "%%" ""  "vector"
+rc_entry = [r'''\Format epseps EPS
"" "%%" ""  "document,vector,menu=export"

However trunk now has two EPS formats:
\Format epseps EPS""
"%%"""  "vector""image/x-eps"
\Format eps2   eps"EPS (uncropped)"   "" "%%"   ""  
"vector"""

What is eps2 for, and which entry should I modify?


>> (I cannot test this as I'm running TeXLive 2009 and
>> thus no "unicode-math".)
>
> How about upgrading? Debian/testing has TeXLive 2012 (and AFAIK Ubuntu as
> well).
>
I found this PPA (
https://launchpad.net/~texlive-backports/+archive/ppa ) that provides
TL 2012 backports for Ubuntu Precise, so I went ahead and upgraded.
I'll check out the SVG example a bit later.

Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-02-22 Thread Guenter Milde
On 2013-02-21, Liviu Andronic wrote:
 On Thu, Feb 21, 2013 at 10:14 AM, Guenter Milde mi...@users.sf.net wrote:
 Please also consider view/export cropped SVG (if unicode-math is used):

 * with the traditional TeX math fonts, the conversion of mathematical
   content is buggy, because of the non-standard font metrics.

 * with Xe/LuaTeX, unicode-math, and OpenType Math fonts (LatinModern
   math, Asana Math, or XITS), the conversion is OK.

Unfortunately I found out that also with unicode-math, prolems with the SVG
conversin exist

 SVG is supported by HTML. This allows the inclusion of scalable vector
 images of equations in HTML pages - far better than bitmap PNGs!

 That would be nice, indeed. Could you come up with a patch and post it
 on the ticket?

I posted an example.

 (I cannot test this as I'm running TeXLive 2009 and
 thus no unicode-math.)

How about upgrading? Debian/testing has TeXLive 2012 (and AFAIK Ubuntu as
well). So even in a Debian/stable it should be easy to upgrade to a mixed
stable/testing setup.

Günter



Re: #7839: equation editor: cropped PDF and EPS

2013-02-22 Thread Guenter Milde
On 2013-02-21, Liviu Andronic wrote:
> On Thu, Feb 21, 2013 at 10:14 AM, Guenter Milde  wrote:
>> Please also consider "view/export cropped SVG" (if unicode-math is used):

>> * with the traditional TeX math fonts, the conversion of mathematical
>>   content is buggy, because of the non-standard font metrics.

>> * with Xe/LuaTeX, "unicode-math", and OpenType Math fonts (LatinModern
>>   math, Asana Math, or XITS), the conversion is OK.

Unfortunately I found out that also with unicode-math, prolems with the SVG
conversin exist

>> SVG is supported by HTML. This allows the inclusion of scalable vector
>> images of equations in HTML pages - far better than bitmap PNGs!

> That would be nice, indeed. Could you come up with a patch and post it
> on the ticket?

I posted an example.

> (I cannot test this as I'm running TeXLive 2009 and
> thus no "unicode-math".)

How about upgrading? Debian/testing has TeXLive 2012 (and AFAIK Ubuntu as
well). So even in a Debian/stable it should be easy to upgrade to a mixed
stable/testing setup.

Günter



Re: #7839: equation editor: cropped PDF and EPS

2013-02-21 Thread Guenter Milde
On 2013-02-20, Liviu Andronic wrote:
 Hello,
 I'd like for this patch to be included in trunk before the feature
 freeze for 2.1. Are there any objections to this feature?

...

  We can easily provide an 'equation editor' mode in LyX. For this we can
  use 'pdfcrop' and 'dvips -E' converters and suitable templates (typically
  with page layout 'empty'). With LyX configured in this way (try the
  attached patch), the user would only need to:
  - File  New from Template  EPS.lyx (or PDF-cropped.lyx)
  - insert a math inset and type in an equation, or create whatever content
  LaTeX can handle
  - view/export cropped EPS/PDF

  This would allow for LyX to act as a generator for includable graphics
  (equations, commented graphics, etc). It would (partially) address a long-
  standing feature request for a standalone LyX equation editor, and easily
  become a more powerful than the likes of 'Ekee' or 'KLatexFormula'.

Please also consider view/export cropped SVG (if unicode-math is used):

* with the traditional TeX math fonts, the conversion of mathematical
  content is buggy, because of the non-standard font metrics.

* with Xe/LuaTeX, unicode-math, and OpenType Math fonts (LatinModern
  math, Asana Math, or XITS), the conversion is OK.

SVG is supported by HTML. This allows the inclusion of scalable vector
images of equations in HTML pages - far better than bitmap PNGs!

Günter




Re: #7839: equation editor: cropped PDF and EPS

2013-02-21 Thread Liviu Andronic
On Thu, Feb 21, 2013 at 10:14 AM, Guenter Milde mi...@users.sf.net wrote:
 Please also consider view/export cropped SVG (if unicode-math is used):

 * with the traditional TeX math fonts, the conversion of mathematical
   content is buggy, because of the non-standard font metrics.

 * with Xe/LuaTeX, unicode-math, and OpenType Math fonts (LatinModern
   math, Asana Math, or XITS), the conversion is OK.

 SVG is supported by HTML. This allows the inclusion of scalable vector
 images of equations in HTML pages - far better than bitmap PNGs!

That would be nice, indeed. Could you come up with a patch and post it
on the ticket? (I cannot test this as I'm running TeXLive 2009 and
thus no unicode-math.)

Regards,
Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-02-21 Thread Guenter Milde
On 2013-02-20, Liviu Andronic wrote:
> Hello,
> I'd like for this patch to be included in trunk before the feature
> freeze for 2.1. Are there any objections to this feature?

...

>>  We can easily provide an 'equation editor' "mode" in LyX. For this we can
>>  use 'pdfcrop' and 'dvips -E' converters and suitable templates (typically
>>  with page layout 'empty'). With LyX configured in this way (try the
>>  attached patch), the user would only need to:
>>  - File > New from Template > EPS.lyx (or PDF-cropped.lyx)
>>  - insert a math inset and type in an equation, or create whatever content
>>  LaTeX can handle
>>  - view/export cropped EPS/PDF

>>  This would allow for LyX to act as a "generator for includable graphics"
>>  (equations, commented graphics, etc). It would (partially) address a long-
>>  standing feature request for a standalone LyX equation editor, and easily
>>  become a more powerful than the likes of 'Ekee' or 'KLatexFormula'.

Please also consider "view/export cropped SVG" (if unicode-math is used):

* with the traditional TeX math fonts, the conversion of mathematical
  content is buggy, because of the non-standard font metrics.

* with Xe/LuaTeX, "unicode-math", and OpenType Math fonts (LatinModern
  math, Asana Math, or XITS), the conversion is OK.

SVG is supported by HTML. This allows the inclusion of scalable vector
images of equations in HTML pages - far better than bitmap PNGs!

Günter




Re: #7839: equation editor: cropped PDF and EPS

2013-02-21 Thread Liviu Andronic
On Thu, Feb 21, 2013 at 10:14 AM, Guenter Milde  wrote:
> Please also consider "view/export cropped SVG" (if unicode-math is used):
>
> * with the traditional TeX math fonts, the conversion of mathematical
>   content is buggy, because of the non-standard font metrics.
>
> * with Xe/LuaTeX, "unicode-math", and OpenType Math fonts (LatinModern
>   math, Asana Math, or XITS), the conversion is OK.
>
> SVG is supported by HTML. This allows the inclusion of scalable vector
> images of equations in HTML pages - far better than bitmap PNGs!
>
That would be nice, indeed. Could you come up with a patch and post it
on the ticket? (I cannot test this as I'm running TeXLive 2009 and
thus no "unicode-math".)

Regards,
Liviu


Re: #7839: equation editor: cropped PDF and EPS

2013-02-20 Thread Liviu Andronic
Hello,
I'd like for this patch to be included in trunk before the feature
freeze for 2.1. Are there any objections to this feature?

Regards,
Liviu


On Sat, Oct 22, 2011 at 9:23 PM, LyX Ticket Tracker t...@lyx.org wrote:
 #7839: equation editor: cropped PDF and EPS
 -+--
  Reporter:  landroni |   Owner:  rgheck
  Type:  enhancement  |  Status:  new
  Priority:  normal   |   Milestone:  2.0.2
 Component:  export   | Version:  2.0.1
  Severity:  normal   |Keywords:  patch
 -+--
  This follows [1] and an off-list discussion with Günter.
  [1] http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg171293.html

  We can easily provide an 'equation editor' mode in LyX. For this we can
  use 'pdfcrop' and 'dvips -E' converters and suitable templates (typically
  with page layout 'empty'). With LyX configured in this way (try the
  attached patch), the user would only need to:
  - File  New from Template  EPS.lyx (or PDF-cropped.lyx)
  - insert a math inset and type in an equation, or create whatever content
  LaTeX can handle
  - view/export cropped EPS/PDF

  This would allow for LyX to act as a generator for includable graphics
  (equations, commented graphics, etc). It would (partially) address a long-
  standing feature request for a standalone LyX equation editor, and easily
  become a more powerful than the likes of 'Ekee' or 'KLatexFormula'.

 --
 Ticket URL: http://www.lyx.org/trac/ticket/7839
 The LyX Project http://www.lyx.org/
 LyX -- The Document Processor



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: #7839: equation editor: cropped PDF and EPS

2013-02-20 Thread Liviu Andronic
Hello,
I'd like for this patch to be included in trunk before the feature
freeze for 2.1. Are there any objections to this feature?

Regards,
Liviu


On Sat, Oct 22, 2011 at 9:23 PM, LyX Ticket Tracker <t...@lyx.org> wrote:
> #7839: equation editor: cropped PDF and EPS
> -+--
>  Reporter:  landroni |   Owner:  rgheck
>  Type:  enhancement  |  Status:  new
>  Priority:  normal   |   Milestone:  2.0.2
> Component:  export   | Version:  2.0.1
>  Severity:  normal   |Keywords:  patch
> -+--
>  This follows [1] and an off-list discussion with Günter.
>  [1] http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg171293.html
>
>  We can easily provide an 'equation editor' "mode" in LyX. For this we can
>  use 'pdfcrop' and 'dvips -E' converters and suitable templates (typically
>  with page layout 'empty'). With LyX configured in this way (try the
>  attached patch), the user would only need to:
>  - File > New from Template > EPS.lyx (or PDF-cropped.lyx)
>  - insert a math inset and type in an equation, or create whatever content
>  LaTeX can handle
>  - view/export cropped EPS/PDF
>
>  This would allow for LyX to act as a "generator for includable graphics"
>  (equations, commented graphics, etc). It would (partially) address a long-
>  standing feature request for a standalone LyX equation editor, and easily
>  become a more powerful than the likes of 'Ekee' or 'KLatexFormula'.
>
> --
> Ticket URL: <http://www.lyx.org/trac/ticket/7839>
> The LyX Project <http://www.lyx.org/>
> LyX -- The Document Processor



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail