Lars,
can I get you to
$ chmod u+x lib/scripts/lyxpreview2bitmap.sh
The file is part of lyx 1.3.x.
It's no longer present in lyx 1.4.x.
--
Angus
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>> Also, did your patch for having OK be the default button for
>> printing dialog ever get applied to 1.3.x?
Angus> Apparently not. I can confirm that the attached patch works.
Angus> Shall I apply it?
Yes, please.
JMarc
Jean-Marc Lasgouttes wrote:
>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Bo Peng wrote:
>>> Dear developers,
>>>
>>> It took me a while to set up instant preview on solaris. One
>>> problem is that my grep does not have -E option so
>>>
>>> grep -E 'Preview: [ST]' ${LO
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Bo Peng wrote:
>> Dear developers,
>>
>> It took me a while to set up instant preview on solaris. One
>> problem is that my grep does not have -E option so
>>
>> grep -E 'Preview: [ST]' ${LOGFILE} > ${METRICSFILE} || would fail.
>
+1,8 @@
+2003-05-05 Angus Leeming <[EMAIL PROTECTED]>
+
+ * scripts/lyxpreview2bitmap.sh: enable the script to work on
+ solaris machines by changing 'grep -E' to 'grep'.
+
2004-05-03 Angus Leeming <[EMAIL PROTECTED]>
* layout
Dear developers,
It took me a while to set up instant preview on solaris. One problem is
that my grep does not have -E option so
grep -E 'Preview: [ST]' ${LOGFILE} > ${METRICSFILE} ||
{
echo "Failed: grep -E 'Preview: [ST]' ${LOGFILE}"
REQUIRED_VERSION ${LOGFILE}
BAIL_OUT
}
would f
cs info that preview.sty generates when
> passed the option 'lyx'.
>
> If you look in lyxpreview2bitmap.sh, you'll see it creates a .metrics file
> which in this case starts:
>
> Preview: Tightpage -32891 -32891 32891 32891
> Preview: Snippet 1 282168 127431 3388
Angus Leeming wrote:
> I use it within LyX to calculate the 'ascent fraction' of the
> snippet. (A snippet whose base line was in the middle of the image
> would have an ascent fraction of 0.5.) The code that does this inside
> LyX is (stripped down):
>
>
> This information is used to positio
>> ]
>>
>> Which looks to me to be the metrics info that preview.sty generates
>> when passed the option 'lyx'.
>>
>> If you look in lyxpreview2bitmap.sh, you'll see it creates a
>> .metrics file which in this case starts:
>>
>>
Angus Leeming wrote:
> > How about
> > \AtBeginDocument{\AtBeginDvi{\pagecolor{rgb 0.980 0.941 0.902}}}
> > which would work for both dvips-gs and dvipng, I think?
>
> and setting the text colour is also possible this way (for those who
> have an unusual screen set-up)
>
> \AtBeginDocument{\AtBe
Angus Leeming wrote:
> > I see. There are two possibilities:
> >
> > 1) Make dvipng detect usage of the 'tightpage' option and use the
> >image metrics within the DVI.
> >
> > 2) Output the position of the baseline of the first character output
> >in each image, in pixels or possibly as a
On Tue, Aug 05, 2003 at 02:43:28PM +0200, Jean-Marc Lasgouttes wrote:
> > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> If we can get this working properly, then I think I'll throw
> Angus> away the dvips,gs,pnmcrop code and require the use of dvipng.
> Angus> How's that for
Jan-Åke Larsson wrote:
> Angus Leeming wrote:
>> > How about
>> > \AtBeginDocument{\AtBeginDvi{\pagecolor{rgb 0.980 0.941 0.902}}}
>> > which would work for both dvips-gs and dvipng, I think?
>>
>> and setting the text colour is also possible this way (for those who
>> have an unusual screen set-
Jan-Åke Larsson wrote:
> > At the moment, going
> > the dvips,gs,pnmcrop route I encode the forground and background
> > colours of the lyx screen as postscript specials:
> >
> > \AtBeginDocument{\AtBeginDvi{%
> > \special{!userdict begin/bop-hook{//bop-hook exec
> > <00faf0e6>{255 div}foral
Jan-Åke Larsson wrote:
> Jan-Åke Larsson wrote:
>> > At the moment, going
>> > the dvips,gs,pnmcrop route I encode the forground and background
>> > colours of the lyx screen as postscript specials:
>> >
>> > \AtBeginDocument{\AtBeginDvi{%
>> > \special{!userdict begin/bop-hook{//bop-hook exec
>>
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> If we can get this working properly, then I think I'll throw
Angus> away the dvips,gs,pnmcrop code and require the use of dvipng.
Angus> How's that for motivation ;-)
Why not allow both?
JMarc
Jan-Åke Larsson wrote:
>> Since both dvipng and dvips,gs,pnmcrop use the same dvi file, it
>> seems to make sense to use the same mechanism. However, if you have
>> another mechanism to obtain this info within dvipng, then please do
>> tell me.
>
> I see. There are two possibilities:
>
> 1) Make
us/preview-latex/devel/dvipng/dvipng warning: at (9633,8)
unimplemented \special{ps::-32891 -32891 32891 32891 1655772 576976
22609920}. ps::-32891
]
Which looks to me to be the metrics info that preview.sty generates when
passed the option 'lyx'.
If you look in lyxpreview2bitmap.s
Jan-Åke Larsson wrote:
> A tight bounding box can be produced with
>
> dvipng -T tight foo.dvi
>
> But I think the effect is similar to
>
> pnmcrop
>
> rather than
>
> pnmcrop -left | pnmcrop -right
pnmcrop buggers up the top/bottom metrics which we would like to use.
> I'd planned a switch
ed to "produce thousands of
images a day".
> If you look at lyxpreview2bitmap.sh, you'll see that one reason we
> generate ppm files rather than png ones is because we want to strip
> left/right borders from the previews of math insets. We use pnmcrop
> to
> do this. Does dvipn
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> You should say ``is there''.
Thanks. I found it so ugly...
Angus> and I agree, there is no harm in setting LATEX directly. My
Angus> reading of 'test' suggests that this is portable and pretty
Angus> elegant:
Angus> test $LATEX |
Jean-Marc Lasgouttes wrote:
>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Ta-da! Simple solution to a simple problem. In fact,
> analogous Angus> to the LYX_USERDIR_14x environment variable, could
> we not get Angus> LyX itself to set a LYX_14X environment variable?
> The
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Ta-da! Simple solution to a simple problem. In fact, analogous
Angus> to the LYX_USERDIR_14x environment variable, could we not get
Angus> LyX itself to set a LYX_14X environment variable? Thereafter,
Angus> we could simply ask lyx
> Angus> It still feels like a fudge to me however...
>
> Another solution: have lyxpreview2bitmap.sh honor the setting of the
> LATEX variable if it is already set in the environment. Then LyX
> could set this variable when running lyxpreview2bitmap.sh.
>
> Still a
perhaps generate
Angus> a temporary file and use this to control the conversion?
This would indeed be bad if we want to use dvipng, which is able to
read from an unfinished dvi file, if I am not mistaken.
Angus> It still feels like a fudge to me however...
Another solution: have lyxprevie
Jean-Marc Lasgouttes wrote:
>> "Jean-Marc" == Jean-Marc Lasgouttes
>> <[EMAIL PROTECTED]> writes:
>
> Jean-Marc> I think we are trying to do things that are too
> Jean-Marc> complicated, and this indicates that we have not found
> yet Jean-Marc> the 'right' solution...
>
> What about the
.net/projects/preview-latex/
>>
>> I think angus took a look at it, and I guess lyxpreview2bitmap.sh
>> will eventually use it. However, this does not make much sense
>> until it has found its way in some distributions (like tetex)
>
> OK. Just so you've see
ung. Do you think that it is now mature enough to
use?
If you look at lyxpreview2bitmap.sh, you'll see that one reason we
generate ppm files rather than png ones is because we want to strip
left/right borders from the previews of math insets. We use pnmcrop
to do this. Does dvipng have t
Jean-Marc Lasgouttes wrote:
>
> Angus> Am I not correct to say that the name of the user lyxdir is
> set Angus> at configure(old)/make(new) time? Yes, I know I'm correct
> to Angus> say this.
>
> And what about that?
> ./lyx -user-dir ~/.my-lyx
>
> I think we are trying to do things that are to
Jean-Marc Lasgouttes wrote:
> >>>>> "Jan-Åke" == Jan-Åke Larsson <[EMAIL PROTECTED]> writes:
>
> Jan-Åke> May I suggest you take a look at "dvipng", available at
> Jan-Åke> http://sourceforge.net/projects/preview-latex/
>
> I thi
>>>>> "Jan-Åke" == Jan-Åke Larsson <[EMAIL PROTECTED]> writes:
Jan-Åke> May I suggest you take a look at "dvipng", available at
Jan-Åke> http://sourceforge.net/projects/preview-latex/
I think angus took a look at it, and I guess lyxpreview2bitmap.sh
Jean-Marc Lasgouttes wrote:
> > "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>
> Jean-Marc> I think we are trying to do things that are too
> Jean-Marc> complicated, and this indicates that we have not found yet
> Jean-Marc> the 'right' solution...
>
> What about the follow
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
Jean-Marc> I think we are trying to do things that are too
Jean-Marc> complicated, and this indicates that we have not found yet
Jean-Marc> the 'right' solution...
What about the following?
1/ generate your tex file
2/ run the
>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Jean-Marc Lasgouttes wrote:
>>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>>
Angus> Second thought. Have a shell script that just
Jean-Marc Lasgouttes wrote:
>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Second thought. Have a shell script that just initialises
> such Angus> variables and call it from lyxpreview2bitmap.sh. Get
> configure Angus>
>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Second thought. Have a shell script that just initialises such
Angus> variables and call it from lyxpreview2bitmap.sh. Get configure
Angus> to autogenerate this script
This would not solve
Jean-Marc Lasgouttes wrote:
>>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> If we assume that all 'proper' systems will have a
> Angus> lyxrc.defaults file that can be found by
> lyxpreview2bitmap.sh,
>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> If we assume that all 'proper' systems will have a
Angus> lyxrc.defaults file that can be found by lyxpreview2bitmap.sh,
Angus> could we not use this:
And how would it find
Jean-Marc Lasgouttes wrote:
>>>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:
>
> Dekel> Is there any objection to change the line LATEX=latex in
> Dekel> lyxpreview2bitmap.sh to LATEX=elatex ?
>
> Dekel> I want this change as lat
>>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:
Dekel> Is there any objection to change the line LATEX=latex in
Dekel> lyxpreview2bitmap.sh to LATEX=elatex ?
Dekel> I want this change as latex with Hebrew requires using elatex.
Dekel> As fa
Is there any objection to change the line
LATEX=latex
in lyxpreview2bitmap.sh to
LATEX=elatex
?
I want this change as latex with Hebrew requires using elatex.
As far as I know, there are no side effects when elatex is used.
41 matches
Mail list logo