Re: [Pre-PATCH] Preview latex code of selected (or current) paragraphs.

2006-04-05 Thread Jose' Matos
On Wednesday 05 April 2006 13:56, Bo Peng wrote: > > > 2. I do not know linuxdoc and docbook so I can not test, and the > > implementation is largely broken. > > Where can I find a few docbook/linuxdoc files to test the patch? Can > anyone send me some? Search in lib/examples, there you have bot

Re: [Pre-PATCH] Preview latex code of selected (or current) paragraphs.

2006-04-05 Thread Bo Peng
> 1. There is a strange crash with extensive use of this feature. I am > still tracing the problem, but you may find out the problem just by > reading my patch. The bug has been found. The patch works smoothly now. > 2. I do not know linuxdoc and docbook so I can not test, and the > implementatio

Re: [Pre-PATCH] Preview latex code of selected (or current) paragraphs.

2006-04-04 Thread Jose' Matos
On Tuesday 04 April 2006 21:15, Bo Peng wrote: > 2. I do not know linuxdoc and docbook so I can not test, and the > implementation is largely broken. Don't care with linuxdoc, I intend to remove its support in 1.5. In case I have not been clear, I intend to delete the code, lyx2lyx should ta

[Pre-PATCH] Preview latex code of selected (or current) paragraphs.

2006-04-04 Thread Bo Peng
Dear developers, Attached is an implementation of the view-source feature I proposed. Currently 1. view->view source will open "view source" dialog with the source code of current paragraph or selected paragraphs. (I know nothing about qt so the dialog is a shameless copy from QLogDialog...) 2. W

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-10 Thread Bo Peng
On Tue, Jan 06, 2004 at 05:31:43PM -0600, Bo Peng wrote: > The updated patch is attached. Has anyone got a chance to test this patch? -- Bo Peng

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Bo Peng
On Tue, Jan 06, 2004 at 05:35:31PM +, Angus Leeming wrote: > > Isn't this script only called when instant preview is turned on? If > > so, Preview: Tightpage will always exist. > Nope. I do not quite understand when this script will be called. Anyway, I have enhanced the error handling of my

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Angus Leeming
Bo Peng wrote: > On Tue, Jan 06, 2004 at 05:12:38PM +, Angus Leeming wrote: >> If the user doesn't have preview-latex installed. > > Isn't this script only called when instant preview is turned on? If > so, Preview: Tightpage will always exist. Nope. >> > g: global. >> Not needed I think. I

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Andre Poenitz
On Tue, Jan 06, 2004 at 05:34:18PM +, Angus Leeming wrote: > Happynewyear! You mentioned this already. If you insist: Happy new year to all of you. Andre'

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread John Levon
On Tue, Jan 06, 2004 at 06:28:10PM +0100, Andre Poenitz wrote: > Does this compensate for that sore lack of really long words in English? Incontrovertibly, my sesquipedalian co-conspirator. Well, I tried at least. john -- Khendon's Law: If the same point is made twice by the same person, the t

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Angus Leeming
Andre Poenitz wrote: > On Tue, Jan 06, 2004 at 02:12:13PM +, Angus Leeming wrote: >> * Grammatical point: don't call them 'wrong formulas'. Call them >> 'incorrrect formulas', or even 'incorrect formulae'. > > I wasn't aware of that consonant tripling rule. > > Does this compensate for that

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Bo Peng
On Tue, Jan 06, 2004 at 05:12:38PM +, Angus Leeming wrote: > If the user doesn't have preview-latex installed. Isn't this script only called when instant preview is turned on? If so, Preview: Tightpage will always exist. > > g: global. > Not needed I think. If I remember correctly there is

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Andre Poenitz
On Tue, Jan 06, 2004 at 02:12:13PM +, Angus Leeming wrote: > * Grammatical point: don't call them 'wrong formulas'. Call them > 'incorrrect formulas', or even 'incorrect formulae'. I wasn't aware of that consonant tripling rule. Does this compensate for that sore lack of really long words in

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Angus Leeming
Bo Peng wrote: >> I think that if the line doesn't exist, then you should just abort. >> +if (!/Preview:\s+Tightpage/gcms){ >> // bail out > > Under what condition will this line disappear? I thought that this > line will exist for both correct and incorrect first preview. If the user doe

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Bo Peng
On Tue, Jan 06, 2004 at 02:12:13PM +, Angus Leeming wrote: > A question for you: > Does Latex stop when it encounters the first error, or does it try > and compile the whole file? At least on my system, latex does not stop on errors. I created a bunch of incorrect formulae among many corre

Re: [Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-06 Thread Angus Leeming
Bo Peng wrote: > I have updated my previous patch. It now can: > > 1. If a wrong formula is entered, a 'formula does not compile' box > will >be displayed rather than the orginal lyx math box. > 2. If a file with wrong formula(s) is opened, the perl script will >locate the wrong formula(s

[Updated PATCH] preview wrong formula with a [formula does not compile] box.

2004-01-05 Thread Bo Peng
I have updated my previous patch. It now can: 1. If a wrong formula is entered, a 'formula does not compile' box will be displayed rather than the orginal lyx math box. 2. If a file with wrong formula(s) is opened, the perl script will locate the wrong formula(s) and replace them with 'fo

Re: [PATCH] preview wrong formula with a [wrong formula] box.

2004-01-05 Thread Bo Peng
> The information is present in the latex log file. I'm not saying that > it is easy to manipulate, but it is certainly possible. Great. I will mess with the log file and try to identify the wrong formula when a file is loaded. This will certainly make this patch more useful. -- Bo Peng

Re: [PATCH] preview wrong formula with a [wrong formula] box.

2004-01-05 Thread Angus Leeming
Bo Peng wrote: > < sorry for the PM to Leeming. > Not a problem. >> Loading an existing document containing such an inset results in no >> previews being generated at all, as now. > > Locating a wrong formula among others is extremely difficult (may > have to compile all formulas one by one.) s

Re: [PATCH] preview wrong formula with a [wrong formula] box.

2004-01-05 Thread Bo Peng
< sorry for the PM to Leeming. > > Loading an existing document containing such an inset results in no > previews being generated at all, as now. Locating a wrong formula among others is extremely difficult (may have to compile all formulas one by one.) so there is no good solution yet. > In c

Re: [PATCH] preview wrong formula with a [wrong formula] box.

2004-01-05 Thread Angus Leeming
Bo Peng wrote: > By wrong formula, I mean things like $\text{\alpha}$ entered by C-M > C-M \alpha etc. I have discussed this problem in the user list. > > Currently, with instant preview turned on, > 1. If a wrong formula is entered, instant preview will fail and do >nothing. > 2. If a file w

[PATCH] preview wrong formula with a [wrong formula] box.

2004-01-04 Thread Bo Peng
By wrong formula, I mean things like $\text{\alpha}$ entered by C-M C-M \alpha etc. I have discussed this problem in the user list. Currently, with instant preview turned on, 1. If a wrong formula is entered, instant preview will fail and do nothing. 2. If a file with any wrong formula is ope

Re: [PATCH]: Preview

2002-06-27 Thread Angus Leeming
On Thursday 27 June 2002 8:16 pm, Herbert Voss wrote: > Andre Poenitz wrote: > > On Thu, Jun 27, 2002 at 08:32:56PM +0200, Herbert Voss wrote: > >>This was not my point! I do not understand why this is > >>defined in the preferences, where things should be saved > >>which can be modified by the us

Re: [PATCH]: Preview

2002-06-27 Thread Herbert Voss
Andre Poenitz wrote: > On Thu, Jun 27, 2002 at 08:32:56PM +0200, Herbert Voss wrote: > >>This was not my point! I do not understand why this is >>defined in the preferences, where things should be saved >>which can be modified by the user. To get an asynchronously >>loading of the math preview I

Re: [PATCH]: Preview

2002-06-27 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 08:32:56PM +0200, Herbert Voss wrote: > This was not my point! I do not understand why this is > defined in the preferences, where things should be saved > which can be modified by the user. To get an asynchronously > loading of the math preview I do not need this in the pr

Re: [PATCH]: Preview

2002-06-27 Thread Herbert Voss
Angus Leeming wrote: > On Thursday 27 June 2002 7:24 pm, Herbert Voss wrote: > >>Angus Leeming wrote: >> >>>No. André means >>> >>>\converter "lyxpreview" "xpm" "sh $$LYXLIBscripts/lyxpreview2xpm.sh >>> >>ok, understood. But anyway, I do not understand the sense of >>this converter. The script

Re: [PATCH]: Preview

2002-06-27 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 08:24:07PM +0200, Herbert Voss wrote: > ok, understood. But anyway, I do not understand the sense of > this converter. It's easier to play around with it if it's a script, and it fits very well in the converter concept. > The script schould be called from within LyX. The

Re: [PATCH]: Preview

2002-06-27 Thread Angus Leeming
On Thursday 27 June 2002 7:24 pm, Herbert Voss wrote: > Angus Leeming wrote: > > No. André means > > > > \converter "lyxpreview" "xpm" "sh $$LYXLIBscripts/lyxpreview2xpm.sh > > ok, understood. But anyway, I do not understand the sense of > this converter. The script schould be called from within

Re: [PATCH]: Preview

2002-06-27 Thread Herbert Voss
Angus Leeming wrote: > > No. André means > > \converter "lyxpreview" "xpm" "sh $$LYXLIBscripts/lyxpreview2xpm.sh ok, understood. But anyway, I do not understand the sense of this converter. The script schould be called from within LyX. The user has still the possibility to edit the script i

Re: [PATCH]: Preview

2002-06-27 Thread Angus Leeming
On Thursday 27 June 2002 6:54 pm, Herbert Voss wrote: > Andre Poenitz wrote: > > On Thu, Jun 27, 2002 at 06:13:32PM +0100, Angus Leeming wrote: > >>\converter "lyxpreview" "xpm" "sh LYXDIR/lib/scripts/lyxpreview2xpm.sh > >> $$i $$o" "" > >> > >>where LYXDIR is ... > > > > Could we fix this somehow

Re: [PATCH]: Preview

2002-06-27 Thread Herbert Voss
Andre Poenitz wrote: > On Thu, Jun 27, 2002 at 06:13:32PM +0100, Angus Leeming wrote: > >>\converter "lyxpreview" "xpm" "sh LYXDIR/lib/scripts/lyxpreview2xpm.sh $$i $$o" "" >> >>where LYXDIR is ... >> > > Could we fix this somehow properly? > > What's the way to access LyX's "own converters"

Re: [PATCH]: Preview

2002-06-27 Thread Angus Leeming
On Thursday 27 June 2002 6:49 pm, Andre Poenitz wrote: > On Thu, Jun 27, 2002 at 06:13:32PM +0100, Angus Leeming wrote: > > \converter "lyxpreview" "xpm" "sh LYXDIR/lib/scripts/lyxpreview2xpm.sh > > $$i $$o" "" > > > > where LYXDIR is ... > > Could we fix this somehow properly? > > What's the way

Re: [PATCH]: Preview

2002-06-27 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 06:13:32PM +0100, Angus Leeming wrote: > \converter "lyxpreview" "xpm" "sh LYXDIR/lib/scripts/lyxpreview2xpm.sh $$i $$o" "" > > where LYXDIR is ... Could we fix this somehow properly? What's the way to access LyX's "own converters" from lib/scripts? Andre' -- Those wh

Re: [PATCH]: Preview

2002-06-27 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 07:42:33PM +0200, Juergen Spitzmueller wrote: > So we don't want the user to be able to switch this feature on GUI-wise? > (I think André wants to keep it switched off by default) A preference is fine, but it should be switched off by default. Andre' -- Those who desire

Re: [PATCH]: Preview

2002-06-27 Thread Andre Poenitz
On Thu, Jun 27, 2002 at 07:27:51PM +0200, Juergen Spitzmueller wrote: > I have not tested it, because I don't have preview-latex, but it should work. Our stuff is currently completely independent of preview-latex. Andre' -- Those who desire to give up Freedom in order to gain Security, will no

Re: [PATCH]: Preview

2002-06-27 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote: > Angus Leeming wrote: > > you don't need it. What you do need is this in your preferences file: Ah, you mean, I don't need preview latex. Silly me. Jürgen

Re: [PATCH]: Preview

2002-06-27 Thread Juergen Spitzmueller
Angus Leeming wrote: > you don't need it. What you do need is this in your preferences file: > > \preview true > \format "lyxpreview" "lyxpreview" "LyX preview" "" > \converter "lyxpreview" "xpm" "sh LYXDIR/lib/scripts/lyxpreview2xpm.sh $$i > $$o" "" > > where LYXDIR is ... > > and it should all

Re: [PATCH]: Preview

2002-06-27 Thread Angus Leeming
On Thursday 27 June 2002 6:27 pm, Juergen Spitzmueller wrote: > Anyone interested in a preview latex checkbox in preferences? > I think LnF -> Misc is the right place. > I have not tested it, because I don't have preview-latex, but it should > work. you don't need it. What you do need is this in

[PATCH]: Preview

2002-06-27 Thread Juergen Spitzmueller
Anyone interested in a preview latex checkbox in preferences? I think LnF -> Misc is the right place. I have not tested it, because I don't have preview-latex, but it should work. Jürgen. BTW: the fonts in current CVS (after Porto) are HUGE. Index: src/frontends/xforms/ChangeLog ===