Re: a quickie

2002-03-27 Thread Juergen Vigna
On 27-Mar-2002 Angus Leeming wrote: > So if Jürgen could devise a scheme to ensure that the inset always knows how > wide the BufferView is (the inset would probably need to connect to a > BufferView signal), then the GraphicsCache could leverage this info. Good idea, remind me of this in the

Re: a quickie

2002-03-27 Thread Angus Leeming
On Wednesday 27 March 2002 2:14 pm, Jean-Marc Lasgouttes wrote: > > "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes: > > Juergen> On 27-Mar-2002 Herbert Voss wrote: > >> two ways: a) accept these relative lengths and pass them to the > >> inset and ignore them when drawing the image on s

Re: a quickie

2002-03-27 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes: Juergen> On 27-Mar-2002 Herbert Voss wrote: >> two ways: a) accept these relative lengths and pass them to the >> inset and ignore them when drawing the image on screen Juergen> I don't understand I have this in InsetMinipage which al

Re: a quickie

2002-03-27 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> two ways: a) accept these relative lengths and pass them to Herbert> the inset and ignore them when drawing the image on screen b) Herbert> set lyxview-size inside FormGraphics to DEFAULT_SIZE when a Herbert> relative length was

Re: a quickie

2002-03-27 Thread Juergen Vigna
On 27-Mar-2002 Herbert Voss wrote: > two ways: > a) accept these relative lengths and pass them to the inset > and ignore them when drawing the image on screen I don't understand I have this in InsetMinipage which also uses this %lengths and displays them WYSIWYMG on screen this is the fuct

Re: a quickie

2002-03-27 Thread Herbert Voss
Jean-Marc Lasgouttes wrote: >>"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: >> > > Herbert> what exactly shall we substitute when col%, ... are allowed > Herbert> for lyxview. Until the above feature doesn't work , for > Herbert> example 50col% must be converted to pt, cm or any

Re: a quickie

2002-03-27 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> what exactly shall we substitute when col%, ... are allowed Herbert> for lyxview. Until the above feature doesn't work , for Herbert> example 50col% must be converted to pt, cm or any other. But Herbert> % of what? We could all

Re: a quickie

2002-03-27 Thread Herbert Voss
Angus Leeming wrote: > The reworking is definitely for the future. I envisage an insetgraphics > containing a > std::map cached_views; > for these "variable-sized" images. I hope you're shuddering at the thought. > > >>We could for now show t% and friends as 'original size' for the >>pur

Re: a quickie

2002-03-27 Thread Angus Leeming
On Wednesday 27 March 2002 9:30 am, Jean-Marc Lasgouttes wrote: > > "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: > > Herbert> as I said text% in lyxview is that what I like to see, but > Herbert> this was Angus' comment > > Herbert> > http://www.mail-archive.com/lyx-devel%40lists.lyx.

Re: a quickie

2002-03-27 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> as I said text% in lyxview is that what I like to see, but Herbert> this was Angus' comment Herbert> http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg33612.html I see. I remember it now. But there is hope for the futur

Re: a quickie

2002-03-27 Thread Herbert Voss
Jean-Marc Lasgouttes wrote: >>"Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: >> > > Lars> [EMAIL PROTECTED] (Juergen Spitzmueller) writes: > Lars> | Jean-Marc Lasgouttes wrote: > However, what I would prefer (assuming that latex size and lyx size are exactly compatibl

Re: a quickie

2002-03-27 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> [EMAIL PROTECTED] (Juergen Spitzmueller) writes: Lars> | Jean-Marc Lasgouttes wrote: >>> However, what I would prefer (assuming that latex size and lyx >>> size are exactly compatible) would be to ignore the "size" >>> paramete

Re: a quickie

2002-03-27 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Juergen Spitzmueller) writes: | Jean-Marc Lasgouttes wrote: >> However, what I would prefer (assuming that latex size and lyx size >> are exactly compatible) would be to ignore the "size" parameter of >> figinset (which is directly computed from the paper size anyway), and >> h

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 6:10 pm, Herbert Voss wrote: > Jean-Marc Lasgouttes wrote: > >>"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: > >>> > >>>And also currently lyx 1.2.0 does not display on screen insetfigs > >>>as 1.1.6 did (just try Userguide). > > > > Herbert> which chapter, bec

Re: a quickie

2002-03-26 Thread Herbert Voss
Jean-Marc Lasgouttes wrote: >>"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: >> > >>>And also currently lyx 1.2.0 does not display on screen insetfigs >>>as 1.1.6 did (just try Userguide). >>> > > > Herbert> which chapter, because I don't know what you mean. > > Fair enough. Lo

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 4:30 pm, Andre Poenitz wrote: > On Tue, Mar 26, 2002 at 03:05:29PM +, Angus Leeming wrote: > > string const latexify(string const str) > > string const latexify(string const & str) looks somewhat nicer... > > Andre' Oops. Thanks.

Re: a quickie

2002-03-26 Thread Andre Poenitz
On Tue, Mar 26, 2002 at 03:05:29PM +, Angus Leeming wrote: > string const latexify(string const str) string const latexify(string const & str) looks somewhat nicer... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 4:01 pm, Herbert Voss wrote: > Angus Leeming wrote: > > out << "$\backslash$"; > Angus, I think \textbackslash is the better way. > Herbert Thanks, Herbert.

Re: a quickie

2002-03-26 Thread Herbert Voss
Angus Leeming wrote: > out << "$\backslash$"; Angus, I think \textbackslash is the better way. Herbert -- http://www.lyx.org/help/

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> Jean-Marc Lasgouttes wrote: >> What I mean is that, a user could expect that, if he changes the >> latex size of a graphics, this will be reflected on screen. The >> reality is that the user will have to take extra steps to achi

Re: a quickie

2002-03-26 Thread Jules Bean
On Tue, Mar 26, 2002 at 02:46:15PM +, Angus Leeming wrote: > Can you tell me what I'm doing wrong? Yes, you can't use \verb in an argument. (it's to do with the way category codes work). I fear backslashing everything is the right approach :-( Jules

Re: a quickie

2002-03-26 Thread Herbert Voss
On Tue, 26 Mar 2002, Angus Leeming wrote: > On Tuesday 26 March 2002 2:56 pm, Herbert Voss wrote: > > On Tue, 26 Mar 2002, Angus Leeming wrote: > > > \fbox{\rule[-0.5in]{0pt}{1in}\verb+time_40.eps+ not found} > > > > what happens when you change the order: > > > > \verb|\fbox{...}| > > > > can no

Re: a quickie

2002-03-26 Thread Angus Leeming
This works but I suspect you'll not like it... Should I combine it with escape(string const &) ? Angus string const latexify(string const str) { ostringstream out; string::const_iterator it = str.begin(); string::const_iterator end = str.end(); for (; it != e

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> On Tue, 26 Mar 2002, Angus Leeming wrote: >> \fbox{\rule[-0.5in]{0pt}{1in}\verb+time_40.eps+ not found} >> Herbert> what happens when you change the order: Herbert> \verb|\fbox{...}| Herbert> can not try it myself, no latex o

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 2:56 pm, Herbert Voss wrote: > On Tue, 26 Mar 2002, Angus Leeming wrote: > > \fbox{\rule[-0.5in]{0pt}{1in}\verb+time_40.eps+ not found} > > what happens when you change the order: > > \verb|\fbox{...}| > > can not try it myself, no latex on this machine > > Herbert Then i

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 2:50 pm, Herbert Voss wrote: > On Tue, 26 Mar 2002, Angus Leeming wrote: > > Well, I was thinking of a general function to go in support/lstrings.h. > > It'd be nice to complete it. > > it is complete, as far as I can see ... > > Herbert What about '\\' at the beginning.

Re: a quickie

2002-03-26 Thread Herbert Voss
On Tue, 26 Mar 2002, Angus Leeming wrote: > \fbox{\rule[-0.5in]{0pt}{1in}\verb+time_40.eps+ not found} > what happens when you change the order: \verb|\fbox{...}| can not try it myself, no latex on this machine Herbert

Re: a quickie

2002-03-26 Thread Herbert Voss
On Tue, 26 Mar 2002, Angus Leeming wrote: > Well, I was thinking of a general function to go in support/lstrings.h. It'd > be nice to complete it. it is complete, as far as I can see ... Herbert

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 2:35 pm, Juergen Vigna wrote: > On 26-Mar-2002 Angus Leeming wrote: > > Well, I was thinking of a general function to go in support/lstrings.h. > > It'd be nice to complete it. > > Well I think there is still Jean-Marc's question if the \verb is not > enough. In a verbatim

Re: a quickie

2002-03-26 Thread Juergen Vigna
On 26-Mar-2002 Angus Leeming wrote: > Well, I was thinking of a general function to go in support/lstrings.h. It'd > be nice to complete it. Well I think there is still Jean-Marc's question if the \verb is not enough. In a verbatim environment we should be able to put any special char without

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 2:04 pm, Herbert Voss wrote: > Angus Leeming wrote: > > complete this for me (the '~', '^', '\\' entries)? > > > > string const latexify(string const str) > > { > > ostringstream out; > > > > string::const_iterator it = str.begin(); > > string::const_iterator

Re: a quickie

2002-03-26 Thread Lars Gullik Bjønnes
Herbert Voss <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: > > >> What I mean is that, a user could expect that, if he changes the latex >> size of a graphics, this will be reflected on screen. The reality is >> that the user will have to take extra steps to achieve that. Having a >>

Re: a quickie

2002-03-26 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > However, what I would prefer (assuming that latex size and lyx size > are exactly compatible) would be to ignore the "size" parameter of > figinset (which is directly computed from the paper size anyway), and > have lyx size be a copy of latex size. Is that possible?

Re: a quickie

2002-03-26 Thread Herbert Voss
Jean-Marc Lasgouttes wrote: > What I mean is that, a user could expect that, if he changes the latex > size of a graphics, this will be reflected on screen. The reality is > that the user will have to take extra steps to achieve that. Having a > separate lyx size is neat, but I believe that the

Re: a quickie

2002-03-26 Thread Herbert Voss
Angus Leeming wrote: > complete this for me (the '~', '^', '\\' entries)? > > string const latexify(string const str) > { > ostringstream out; > > string::const_iterator it = str.begin(); > string::const_iterator end = str.end(); > > for (; it != end; ++it) { >

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> Angus Leeming wrote: >>> here is one with the replace (means subst) from my mail >>> >>> >>> Herbert >>> >> Oh, come on, Herbert. What about all the other latex special chars? >> Can you complete this for me (the '~', '^

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> size had two values (x/y-pixel) values for the lyxview. Where Herbert> is the problem when these ones went into lyxwidth/lyxheight? As far as I can see from FigInset::Recompute in 1.1.6, the wid and hgh values (which are set fr

Re: a quickie

2002-03-26 Thread Herbert Voss
Angus Leeming wrote: >>> >>here is one with the replace (means subst) from my mail >> >> >>Herbert >> > > Oh, come on, Herbert. What about all the other latex special chars? Can you > complete this for me (the '~', '^', '\\' entries)? ok, ok you're the winner... I should have known it: ALL ea

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 1:20 pm, Herbert Voss wrote: > Angus Leeming wrote: > > Too late. Not interested anymore ;-) Someone else can do it if they're > > feeling creative. > > here is one with the replace (means subst) from my mail > > > Herbert Oh, come on, Herbert. What about all the other la

Re: a quickie

2002-03-26 Thread Herbert Voss
Angus Leeming wrote: > > Too late. Not interested anymore ;-) Someone else can do it if they're > feeling creative. here is one with the replace (means subst) from my mail Herbert -- http://www.lyx.org/help/ Index: src/insets/ChangeLog ===

Re: a quickie

2002-03-26 Thread Herbert Voss
Jean-Marc Lasgouttes wrote: >>"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: >> > >>>No, I mean "width" "height" and "size", in the figinset >>>compatibility code in InsetGraphics::readFigInset. I think there is >>>something fishy there. >>> > > Herbert> why? > > Because width/h

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 1:00 pm, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> \begin{figure}% > > Angus> \begin{center}\fbox{\rule[-0.5in]{0pt}{1in}\verb{"time_40.eps"} > Angus> not found} \end{center} > > Angus> \end{figure}% > > Angus> This

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> \begin{figure}% Angus> \begin{center}\fbox{\rule[-0.5in]{0pt}{1in}\verb{"time_40.eps"} Angus> not found} \end{center} Angus> \end{figure}% Angus> This gives wierd errors and I can't be bothered with it Angus> anymore. If anyone

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: >> No, I mean "width" "height" and "size", in the figinset >> compatibility code in InsetGraphics::readFigInset. I think there is >> something fishy there. Herbert> why? Because width/height show the normal size, while size sets the ly

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 12:27 pm, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> On Tuesday 26 March 2002 12:07 pm, Jean-Marc Lasgouttes wrote: > >> > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> I've been trying to tweak

Re: a quickie

2002-03-26 Thread Herbert Voss
Jean-Marc Lasgouttes wrote: >>>A question related to insetgraphics: when loading 1.1.6 figinsets, >>>the screen size is by default the plain size, whereas 1.1.6 did >>>scale the image in a kind of wysiswyg way. Would it be possible to >>>keep this feature when converting figinsets? >>> >>>Moreove

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> On Tuesday 26 March 2002 12:07 pm, Jean-Marc Lasgouttes wrote: >> > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Angus> I've been trying to tweak InsetGraphics' export to latex if the Angus> file is not found. I tho

Re: a quickie

2002-03-26 Thread Angus Leeming
On Tuesday 26 March 2002 12:07 pm, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> I've been trying to tweak InsetGraphics' export to latex if the > Angus> file is not found. I thought os << filename << "not found\n" > Angus> would do it, but LaT

Re: a quickie

2002-03-26 Thread Herbert Voss
Angus Leeming wrote: > I've been trying to tweak InsetGraphics' export to latex if the file is not > found. I thought > os << filename << "not found\n" > would do it, but LaTeX doesn't like > time_40.eps > > Is there a helper func I'm missing? os << replace{filename,"_","\\_") "n

Re: a quickie

2002-03-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> I've been trying to tweak InsetGraphics' export to latex if the Angus> file is not found. I thought os << filename << "not found\n" Angus> would do it, but LaTeX doesn't like time_40.eps Try maybe os << "\\verb{" << filename << "}

a quickie

2002-03-26 Thread Angus Leeming
I've been trying to tweak InsetGraphics' export to latex if the file is not found. I thought os << filename << "not found\n" would do it, but LaTeX doesn't like time_40.eps Is there a helper func I'm missing? Angus