Re: posible bug: url and percentage
On 2010-04-13, Fox_Van wrote: --001636e0a5ac84c7de0484265273 Content-Type: text/plain; charset=ISO-8859-1 Working on a document I put a url tag inside a footnote and then the document did not exported to PDF anymore, but DVI does with not working references This is the case: *FOOTNOTE[* Making R Packages Under Windows: A Tutorial. *URL[* http://faculty.chicagobooth.edu/peter.rossi/research/bayes%20book/bayesm/Making%20R%20Packages%20Under%20Windows.pdf ]* ]* When I removed the percentage symbols everything worked correctly. I did not found any related ticket on trac. If a string contains any %, #, or ^^, or ends with ``\``, it can't be used in the argument to another command. The argument must not contain unbalanced braces. We need to escape #, \, and % if we use the URL in a command. This is done with InsertHyperref but not with InsertURL (tested with LyX 2.0) If using hyperref is not an option, escape the % with a backslash:: http://example.org/bayes\%20book/ Günter
[PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Am 13.04.2010 um 11:10 schrieb Stephan Witt: Am 13.04.2010 um 10:43 schrieb Pavel Sanda: Stephan Witt wrote: Currently I'm doing some minor improvements on the build script. whats the current status, is there something you want before alpha2 ? i would like to release really soon. Ok, now I want to make a pit stop. The attached patch does the following: * Tiger support again (SOLVED) - The solution is to compile with the 10.4 SDK *and* gcc-4.0/g++-4.0 - The resulting binaries are working on my Snow Leopard box. - Someone having Tiger should test the next release. READY to test. * Using the Qt-Frameworks as dynamic libraries (UNFINISHED) - Doing that the resulting disk is much larger... the benefits are + the more canonical solution (real shared libraries) + one can provide a version for people having Qt already on there box (then it becomes a much smaller disk image) + we are using the libraries from Nokia The current .dmg is including the self-made qt-libraries. If I remove the Qt-Frameworks LyX starts up and uses the frameworks installed in /Library/Frameworks and is usable, has to be tested further. Please, review the attached patch. Stephan aspell-build.patch Description: Binary data
Re: alpha2
Jean-Marc Lasgouttes wrote: Concerning solutions, I see two: 3) what aboiut reverting the recent problematic commit? pavel
Re: How to stringify a CPP macro
Stephan Witt wrote: It has to be passed from outside to configure. Like ./configure --aspell-framework-name=Aspell.framework Currently I cannot do that (missing knowledge) and so I do CPPFLAGS=-DASPELL_FRAMEWORK=Aspell.framework ./configure instead. i dont have the knowledge either ;) ... but can not be for example DEVEL_VERSION used as an example how to do that? (grep -r DEVEL_VERSION *)? in particular config.h.in and config/lyxinclude.m4 seems to be of interest. pavel
Re: alpha2
Le 14/04/2010 11:38, Pavel Sanda a écrit : Jean-Marc Lasgouttes wrote: Concerning solutions, I see two: 3) what aboiut reverting the recent problematic commit? I'll do that (this afternoon). I think the problem is not what I outlined above but I really do not understand why it does not work, and I do not like that. JMarc
Re: alpha2
Jean-Marc Lasgouttes wrote: Le 14/04/2010 11:38, Pavel Sanda a écrit : Jean-Marc Lasgouttes wrote: Concerning solutions, I see two: 3) what aboiut reverting the recent problematic commit? I'll do that (this afternoon). I think the problem is not what I outlined above but I really do not understand why it does not work, and I do not like that. thanks. pavel
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Stephan Witt wrote: The current .dmg is including the self-made qt-libraries. If I remove the Qt-Frameworks LyX starts up and uses the frameworks installed in /Library/Frameworks and is usable, has to be tested further. Please, review the attached patch. Stephan Stephan, its bit problematic to comment directly on your patches, since the are attached as octet-stream. are you able to switch them into type: text/plain ? (maybe even renaming patch to .txt will do) i'm fine with everething except the stringify part. if you promise that you'll try to fix it with standard config method, then put everything in with some //FIXME ;) pavel
Re: posible bug: url and percentage
On 04/14/2010 03:10 AM, Guenter Milde wrote: On 2010-04-13, Fox_Van wrote: *FOOTNOTE[* Making R Packages Under Windows: A Tutorial. *URL[* http://faculty.chicagobooth.edu/peter.rossi/research/bayes%20book/bayesm/Making%20R%20Packages%20Under%20Windows.pdf ]* ]* When I removed the percentage symbols everything worked correctly. I did not found any related ticket on trac. If a string contains any %, #, or ^^, or ends with ``\``, it can't be used in the argument to another command. The argument must not contain unbalanced braces. We need to escape #, \, and % if we use the URL in a command. This is done with InsertHyperref but not with InsertURL (tested with LyX 2.0) This looks like bug 449, more or less. rh
Re: r34130 - lyx-devel/trunk/src
On 04/14/2010 07:54 AM, v...@lyx.org wrote: Author: vfr Date: Wed Apr 14 13:54:12 2010 New Revision: 34130 URL: http://www.lyx.org/trac/changeset/34130 Log: Fix bug #6651: No error messages when module dependencies are not fulfilled. We need to throw the ExceptionMessage's. Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) rh Modified: lyx-devel/trunk/src/TextClass.cpp Modified: lyx-devel/trunk/src/TextClass.cpp == --- lyx-devel/trunk/src/TextClass.cpp Tue Apr 13 20:56:28 2010(r34129) +++ lyx-devel/trunk/src/TextClass.cpp Wed Apr 14 13:54:12 2010(r34130) @@ -1278,7 +1278,7 @@ this document but has not been found in the list of\n available modules. If you recently installed it, you\n probably need to reconfigure LyX.\n), from_utf8(modName)); - ExceptionMessage(WarningException,_(Module not available), + throw ExceptionMessage(WarningException,_(Module not available), msg + _(Some layouts may not be available.)); continue; } @@ -1287,7 +1287,7 @@ bformat(_(The module %1$s requires a package that is\n not available in your LaTeX installation. LaTeX output\n may not be possible.\n), from_utf8(modName)); - ExceptionMessage(WarningException, _(Package not available), msg); + throw ExceptionMessage(WarningException, _(Package not available), msg); } FileName layout_file = libFileSearch(layouts, lm-getFilename()); if (!doc_class.read(layout_file, TextClass::MODULE)) {
RE: r34130 - lyx-devel/trunk/src
Author: vfr Date: Wed Apr 14 13:54:12 2010 New Revision: 34130 URL: http://www.lyx.org/trac/changeset/34130 Log: Fix bug #6651: No error messages when module dependencies are not fulfilled. We need to throw the ExceptionMessage's. Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) rh The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). You did throw it in one of the three cases in the function. Vincent
Re: r34130 - lyx-devel/trunk/src
On 04/14/2010 08:11 AM, Vincent van Ravesteijn - TNW wrote: Author: vfr Date: Wed Apr 14 13:54:12 2010 New Revision: 34130 URL: http://www.lyx.org/trac/changeset/34130 Log: Fix bug #6651: No error messages when module dependencies are not fulfilled. We need to throw the ExceptionMessage's. Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). OK. I'll check this later. I'm guessing that maybe the output routine aborts, in which case the message should be changed. You did throw it in one of the three cases in the function. Brain freeze, then. I think I also didn't understand exceptions very well back then. rh
RE: r34130 - lyx-devel/trunk/src
Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). OK. I'll check this later. I'm guessing that maybe the output routine aborts, in which case the message should be changed. We are not outputting anything yet. It's just when you press Add, you get a warning that you might not get decent output later on. The module just gets added and nothing special happens further. You did throw it in one of the three cases in the function. Brain freeze, then. I guess so. Vincent
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Am 14.04.2010 um 11:59 schrieb Pavel Sanda: Stephan Witt wrote: The current .dmg is including the self-made qt-libraries. If I remove the Qt-Frameworks LyX starts up and uses the frameworks installed in /Library/Frameworks and is usable, has to be tested further. Please, review the attached patch. Stephan Stephan, its bit problematic to comment directly on your patches, since the are attached as octet-stream. are you able to switch them into type: text/plain ? (maybe even renaming patch to .txt will do) i'm fine with everething except the stringify part. if you promise that you'll try to fix it with standard config method, then put everything in with some //FIXME ;) Ok, I have another proposal now... Stephan Index: development/LyX-Mac-binary-release.sh === --- development/LyX-Mac-binary-release.sh (Revision 34128) +++ development/LyX-Mac-binary-release.sh (Arbeitskopie) @@ -9,27 +9,91 @@ # Prerequisite: # * a decent checkout of LyX sources (probably you have it already) -# * Qt4 - build with static libraries for the used platforms (i386 and ppc) +# * Qt4 - build with shared or static libraries for the used platforms (i386 and ppc) # * for aspell support: # the aspell sources placed in a sibling directory (variable ASpellSourceVersion) +ConfigureOptions=--enable-warnings --enable-optimization=-Os --with-included-gettext +dict_deployment=yes +qt4_deployment=yes +MACOSX_DEPLOYMENT_TARGET=10.4 # Tiger support is default + +usage() { + echo Build script for LyX on Mac OS X + echo + echo Optional arguments: + echo --tiger-support=yes|no . default yes + echo --dict-deployment=yes|no ... default yes + echo --qt4-deployment=yes|no default yes + echo --with-arch=ARCH ... default ppc,i386 + echo --with-build-path=PATH . default \${lyx-src-dir}/../lyx-build + echo --with-dmg-location=PATH ... default \${build-path} + echo + echo All other arguments with -- are passed to configure + echo including the defaults: ${ConfigureOptions} + echo + exit 0 +} + +while [ $# -gt 0 ]; do + case ${1} in + --with-qt4-dir=*) + QTDIR=`echo ${1}|cut -d= -f2` + shift + ;; + --tiger-support=[Nn][Oo]) + MACOSX_DEPLOYMENT_TARGET= + MYCFLAGS= + shift + ;; + --dict-deployment=*) + dict_deployment=`echo ${1}|cut -d= -f2` + shift + ;; + --qt4-deployment=*) + qt4_deployment=`echo ${1}|cut -d= -f2` + shift + ;; + --with-arch=*) + ARCH=`echo ${1}|cut -d= -f2|tr ',' ' '` + ARCH_LIST=${ARCH_LIST} ${ARCH} + shift + ;; + --with-dmg-location=*) + DMGLocation=`echo ${1}|cut -d= -f2` + shift + ;; + --with-build-path=*) + LyxBuildDir=`echo ${1}|cut -d= -f2` + shift + ;; + --help) + usage + ;; + --*) + ConfigureOptions=${ConfigureOptions} ${1} + shift + ;; + *) + break + ;; + esac +done + # Set these variables -- to -# (1) the location of your Qt4 installation and optionally +# (1) the location of your Qt4 installation # (2) the location of resulting DMG # (3) the version of private aspell installation # (to define the location assign ASpellSourceDir instead) # (4) the list of architectures to build for QtInstallDir=${QTDIR:-/opt/qt4} -DMGLocation=.. # one level above LyxSourceDir +QtFrameworkVersion=4 ASpellSourceVersion=aspell-0.60.6 -ARCH_LIST=ppc i386 +ARCH_LIST=${ARCH_LIST:-ppc i386} -GetText=--with-included-gettext -ConfigureOptions=--enable-warnings --enable-optimization=-Os +strip=-strip -# strip=-strip - # detection of script home LyxSourceDir=${1:-`dirname $0`} if [ ! -d ${LyxSourceDir} ]; then @@ -51,9 +115,12 @@ ;; esac -ASpellSourceDir=${ASpellSourceDir:-`dirname ${LyxSourceDir}`/${ASpellSourceVersion}} -ASpellInstallDir=${ASpellInstallDir:-`dirname ${LyxSourceDir}`/${ASpellSourceVersion}.lib} +LyxBuildDir=${LyxBuildDir:-`dirname ${LyxSourceDir}`/lyx-build} +DMGLocation=${DMGLocation:-${LyxBuildDir}} +ASpellSourceDir=${ASPELLDIR:-`dirname ${LyxSourceDir}`/${ASpellSourceVersion}} +ASpellInstallDir=${ASpellInstallDir:-${LyxBuildDir}/${ASpellSourceVersion}.lib} + if [ ! -f ${LyxSourceDir}/configure ]; then ( cd ${LyxSourceDir} sh autogen.sh ) fi @@ -64,7 +131,7 @@ LyxName=LyX LyxBase=${LyxName}-${LyXVersion} LyxApp=${LyxBase}.app -LyxAppDir=`dirname ${LyxSourceDir}`/${LyxBase} +LyxAppDir=${LyxBuildDir}/${LyxBase} LyxBuildDir=${LyxAppDir}.build LyxAppPrefix=${LyxAppDir}.app # if zip file
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Stephan Witt wrote: Ok, I have another proposal now... this looks fine. try to commit, we will see whether it breaks something else :) pavel
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Am 14.04.2010 um 15:12 schrieb Pavel Sanda: Stephan Witt wrote: Ok, I have another proposal now... this looks fine. try to commit, we will see whether it breaks something else :) done - the commit :) Stephan
Re: r34130 - lyx-devel/trunk/src
On 04/14/2010 08:45 AM, Vincent van Ravesteijn - TNW wrote: Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). OK. I'll check this later. I'm guessing that maybe the output routine aborts, in which case the message should be changed. We are not outputting anything yet. It's just when you press Add, you get a warning that you might not get decent output later on. The module just gets added and nothing special happens further. Ahh, OK. Sorry, I thought it was in the output routine. rh
Re: undo to unchanged, original document?
El Sat, 10 Apr 2010 23:22:51 +0100 Liviu Andronic landronim...@gmail.com escribió: Dear LyX developers This is probably a trivial request. Suppose I create a new LyX document with text asdf and save it. With the file still open, I hit return and a, LyX will tag the document as changed (in the window manager) and with an * in the tab bar. When I hit ctrl+z twice, LyX will erase the previously entered a and its respective line, and will effectively revert to the original file, as saved on disc. However, LyX will still display the changed and * tags, even though the file is the same as the one on disc. In such cases LyX could behave differently: when the number of undo operations is the same as the number of recorded edit operations since last save (or since opening), LyX could display the file as unchanged. Such behaviour is implemented at least in Geany (an IDE) and in OpenOffice. Would it be difficult to implement this in LyX? Thank you Liviu In LyX 2.0 I've been depending on this behaviour to get around a different bug. After I change the Preamble, I can't save until I edit something else in the document window. So I type a character somewhere that I don't need, then delete it, and then I can save my changes. That of being able to save a file where the only thing that's changed is the Preamble. So I add a space somewhere, then delete it, and I can save again. I presume this bug will be fixed at some point, and then we can both be happy. -Jack -- ~~~ Jack Desert --Writer, Entrepeneur Author and Spokesman: www.LetsEATalready.com Software Developer: http://GrooveTask.org Email: jackdesert...@gmail.com ~~~
Re: r34130 - lyx-devel/trunk/src
On 14/04/2010 8:11 AM, Vincent van Ravesteijn - TNW wrote: The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). You did throw it in one of the three cases in the function. Vincent I still don't get any warning (neither in a box or on the console). What's up? Bug still present as far as I am concerned. -- Julien
Re: undo to unchanged, original document?
Jack Desert wrote: In LyX 2.0 I've been depending on this behaviour to get around a different bug. After I change the Preamble, I can't save until I edit something else in the document window. already fixed. pavel
ANNOUNCE: LyX version 2.0.0 (alpha 2)
Public release of LyX version 2.0.0 (alpha 2) = We are pleased to announce the second alpha release of LyX 2.0.0. Please note that this release is for testing purposes only and users are encouraged to use the current 1.6 stable release for any serious work. We are, however, grateful for any feedback regarding the bugs and problems you will report to us. Tarballs can be found at ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/ . Binaries should follow soon. LyX 2.0.0 will be culmination of more than 17 months of hard work and you can find an overview of the new features here: http://wiki.lyx.org/LyX/NewInLyX20 Note that some of the features intended for 2.0 are still missing. If you think you found a bug in LyX 2.0.0, either e-mail the LyX developers' mailing list (lyx-devel at lists.lyx.org), or open a bug report at http://www.lyx.org/trac/wiki/BugTrackerHome . Please check that the bug was not already reported before you file a new one. We hope you will enjoy the result! The LyX team. http://www.lyx.org
Re: ANNOUNCE: LyX version 2.0.0 (alpha 2)
Pavel Sanda wrote: Public release of LyX version 2.0.0 (alpha 2) = there was plan to release first beta somewhere in may. my plan is alpha3 on 10th may, then we will see whats the status of features left. as a slight remainder: TODO list, i tried to sort it aproximately by the people in charge of the tasks... if you think its time to postpone some task just delete it from the wiki or change milestone in trac. * Comparison - IIRC Vincent considered some more work which would use words instead of characters to boost up the process. Currently the documents which are far from each other will never finish in a reasonable time. --Pavel: I need some API for connection in VC_COMPARE... * The Export as ZIP feature. * #2625 - convert the search dialog to a search bar * #4017 - Drag and drop support for graphics * #5603 - multiple text selections the same time * HTML export. Richard asked for help with images. NewInLyx2.0 entry is missing. R: what I need is to be able to have access to the preview image from within the xhtml output routine. This would let us do image rotation, scaling, cropping, etc, of images; do something with external insets, which are at present ignored; and even allow the use of little pictures for math when necessary. From what I can tell, though, the preview images right now are buried somewhere deep within the GUI and so aren't accessible from the output routines. bug #1714 is related. * #6031 - Default citation style in natbib support * #1714 - For each equation, keep track of image filename. * #3008 - add support for textsuperscript and textsubscript * #3221 - \nameref and \autoref support in cross-references * #4595 - content of label inset is LaTeX code * #6455 - Multiple index UI polishment * Multiple viewers/converters. Juergen asked for some help; how this evolved, what is to be done in this area? J: I still did not yet find the time to re-address this. I need to clean up the tree with my changes (it doesn't compile anymore) and re-ponder the thing. I hope I can do this eventually. If not, LyX 2.0 should be released without this feature. R: I can do the graph work, if I know precisely what needs doing. We had some discussions, but then they kind of died, as we both got busy. So I'm not quite sure where we stand. bug #3648 related. * #867: it would be nice if all texhtml converters found were configured * #2339: LyX doesn't allow environments with options * #2591: text inset for tipa * #3648: Different pdf formats pdf, pdf2, and pdf3 are confusing * rc2rc conversion scripts for converting older preferences into new ones. Jose promised to come with something. * Tabular stuff. Edwin, Uwe and Abdel seem to work on it right now. Problems listed in wiki. * There has been some work on dispatch results, unfinished now as bugs reveal. (bug #6417). AY: In particular inset-modify tabular has to be addressed... JM: For inset-modify, I think that putting this as AtPoint function was wrong. Actually the reason why it happens is the inset-modify changetype variant which actually makes no sense. We should define a inset-change-type lfun and use this in contextual menus. * (Pavel) Connection between VCS and comparison feature. * #94 - LYX forward DVI search. * maybe generic pane in settings for user defined VCS operations. * #6632 - Try to guify vlna in case multiple conversion routes are done in 2.0 * (Uwe) #2605 - Add checkbox for automatic equation, figure and table numbering corresponding to section number * #6622 - Rendering \utilde on screen * #4624 - Exporting to latex with included bibtex bbl. I remember there was some patch floating around the dev list, but cant remebebr whats the status. if the list won't be reduced considerably at alpha3 i will postopone beta +1 month. pavel
[Patch] #94 - LYX forward DVI search.
hi, attached is the patch implementing forward search. i didn't add gui combo for the rc variable because the ui needs to be reworked first. i will address this in a different thread. pavel diff --git a/src/FuncCode.h b/src/FuncCode.h index 20434e5..c545fee 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -445,6 +445,7 @@ enum FuncCode LFUN_SPELLING_IGNORE, // spitz 20100118 // 345 LFUN_PREVIEW_INSERT,// vfr, 20100328 + LFUN_FORWARD_SEARCH, LFUN_LASTACTION // end of the table }; diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 053680a..32a2604 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -2825,6 +2825,23 @@ void LyXAction::init() */ { LFUN_SERVER_GOTO_FILE_ROW, server-goto-file-row, ReadOnly | NoBuffer, System }, /*! + * \var lyx::FuncCode lyx::LFUN_FORWARD_SEARCH + * \li Action: Sets the cursor position in the previewed (e.g. dvi) file based on the row + number in LyX window. + * \li Notion: The external program used for forward search call can be specified in + \\forward_search RC setting. By default its value is\n + xdvi -sourceposition $$n:$$t $$o\n + The values replaced in the call: $$n for row number, $$t for + exported temporary .tex file, $$o exported output file, either + dvi or pdf, depending on the argument of #LFUN_FORWARD_SEARCH. + * \li Syntax: forward-search [dvi|pdf] + * \li Params: By default dvi route is taken. + * \li Origin: sanda, 14 Apr 2010 + * \endvar + */ + { LFUN_FORWARD_SEARCH, forward-search, ReadOnly, System }, + +/*! * \var lyx::FuncCode lyx::LFUN_SERVER_NOTIFY * \li Action: Sends notify message about the last key-sequence to client. * \li Notion: This can be used to grab last key-sequence used inside the LyX window. diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 3b363fd..7402484 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -94,6 +94,7 @@ LexerKeyword lyxrcTags[] = { { \\example_path, LyXRC::RC_EXAMPLEPATH }, { \\font_encoding, LyXRC::RC_FONT_ENCODING }, { \\format, LyXRC::RC_FORMAT }, + { \\forward_search, LyXRC::RC_FORWARD_SEARCH }, { \\fullscreen_limit, LyXRC::RC_FULL_SCREEN_LIMIT }, { \\fullscreen_menubar, LyXRC::RC_FULL_SCREEN_MENUBAR }, { \\fullscreen_scrollbar, LyXRC::RC_FULL_SCREEN_SCROLLBAR }, @@ -326,6 +327,7 @@ void LyXRC::setDefaults() user_email = to_utf8(support::user_email()); open_buffers_in_tabs = true; single_close_tab_button = false; + forward_search = xdvi -sourceposition $$n:$$t $$o; // Fullscreen settings full_screen_limit = false; @@ -1156,6 +1158,9 @@ int LyXRC::read(Lexer lexrc) case RC_SINGLE_CLOSE_TAB_BUTTON: lexrc single_close_tab_button; break; + case RC_FORWARD_SEARCH: + lexrc forward_search; + break; // Obsoteted in 1.4.0 case RC_USETEMPDIR: @@ -1840,6 +1845,8 @@ void LyXRC::write(ostream os, bool ignore_system_lyxrc, string const name) c convertstring(open_buffers_in_tabs) '\n'; } + if (tag != RC_LAST) + break; case RC_SINGLE_CLOSE_TAB_BUTTON: if (ignore_system_lyxrc || single_close_tab_button != system_lyxrc.single_close_tab_button) { @@ -1849,6 +1856,13 @@ void LyXRC::write(ostream os, bool ignore_system_lyxrc, string const name) c } if (tag != RC_LAST) break; + case RC_FORWARD_SEARCH: + if (ignore_system_lyxrc || + forward_search != system_lyxrc.forward_search) { + os \\forward_search forward_search '\n'; + } + if (tag != RC_LAST) + break; os \n#\n # COLOR SECTION ###\n @@ -2801,6 +2815,7 @@ void actOnUpdatedPrefs(LyXRC const lyxrc_orig, LyXRC const lyxrc_new) case LyXRC::RC_VISUAL_CURSOR: case LyXRC::RC_VIEWER: case LyXRC::RC_VIEWER_ALTERNATIVES: + case LyXRC::RC_FORWARD_SEARCH: case LyXRC::RC_LAST: break; } diff --git a/src/LyXRC.h b/src/LyXRC.h index c68e83c..2eccbc5 100644 --- a/src/LyXRC.h +++ b/src/LyXRC.h @@ -78,6 +78,7 @@ public: RC_EXAMPLEPATH, RC_FONT_ENCODING, RC_FORMAT, + RC_FORWARD_SEARCH, RC_FULL_SCREEN_LIMIT, RC_FULL_SCREEN_SCROLLBAR, RC_FULL_SCREEN_TABBAR, @@ -490,6 +491,8 @@ public: bool open_buffers_in_tabs; /// bool single_close_tab_button; +
Preferences panels
hi, our tools-preferences-output panels are now completely unbalanced. latex pane overflows with items, while date format and plain text are orphans. what about joining these two into one general panel? Richard do you plan some xhtml setting and if so, how many -- instead of merging we can let one for xhtml stuff... pavel
Re: [Patch] #94 - LYX forward DVI search.
On Wed, Apr 14, 2010 at 10:09 PM, Pavel Sanda wrote: attached is the patch implementing forward search. This news is very exciting for me! As I understand, once the reverse search regression http://www.lyx.org/trac/ticket/6415 gets fixed, we'll be able to go back and forth between LyX and dvi in v2.0? Thanks for all your work! -Ben
Re: posible bug: url and percentage
On 2010-04-13, Fox_Van wrote: > --001636e0a5ac84c7de0484265273 > Content-Type: text/plain; charset=ISO-8859-1 > Working on a document I put a url tag inside a footnote and then the > document did not exported to PDF anymore, but DVI does with not working > references > This is the case: > *FOOTNOTE[* Making R Packages Under Windows: A Tutorial. *URL[* > http://faculty.chicagobooth.edu/peter.rossi/research/bayes%20book/bayesm/Making%20R%20Packages%20Under%20Windows.pdf > ]* ]* > When I removed the percentage symbols everything worked correctly. I > did not found any related ticket on trac. If a string contains any "%", "#", or "^^", or ends with ``\``, it can't be used in the argument to another command. The argument must not contain unbalanced braces. We need to escape #, \, and % if we use the URL in a command. This is done with Insert>Hyperref but not with Insert>URL (tested with LyX 2.0) If using hyperref is not an option, escape the % with a backslash:: > http://example.org/bayes\%20book/ Günter
[PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Am 13.04.2010 um 11:10 schrieb Stephan Witt: > Am 13.04.2010 um 10:43 schrieb Pavel Sanda: > >> Stephan Witt wrote: >>> Currently I'm doing some minor improvements on the build script. >> >> whats the current status, is there something you want before alpha2 ? >> i would like to release really soon. Ok, now I want to make a pit stop. The attached patch does the following: > * Tiger support again (SOLVED) > - The solution is to compile with the 10.4 SDK *and* gcc-4.0/g++-4.0 > - The resulting binaries are working on my Snow Leopard box. > - Someone having Tiger should test the next release. READY to test. > * Using the Qt-Frameworks as dynamic libraries (UNFINISHED) > - Doing that the resulting disk is much larger... the benefits are > + the more canonical solution (real shared libraries) > + one can provide a version for people having Qt already on there box > (then it becomes a much smaller disk image) > + we are using the libraries from Nokia The current .dmg is including the self-made qt-libraries. If I remove the Qt-Frameworks LyX starts up and uses the frameworks installed in /Library/Frameworks and is usable, has to be tested further. Please, review the attached patch. Stephan aspell-build.patch Description: Binary data
Re: alpha2
Jean-Marc Lasgouttes wrote: > Concerning solutions, I see two: 3) what aboiut reverting the recent problematic commit? pavel
Re: How to stringify a CPP macro
Stephan Witt wrote: > It has to be passed from outside to configure. > Like ./configure --aspell-framework-name=Aspell.framework > > Currently I cannot do that (missing knowledge) and so I do > CPPFLAGS="-DASPELL_FRAMEWORK=Aspell.framework" ./configure > instead. i dont have the knowledge either ;) ... but can not be for example DEVEL_VERSION used as an example how to do that? (grep -r DEVEL_VERSION *)? in particular config.h.in and config/lyxinclude.m4 seems to be of interest. pavel
Re: alpha2
Le 14/04/2010 11:38, Pavel Sanda a écrit : Jean-Marc Lasgouttes wrote: Concerning solutions, I see two: 3) what aboiut reverting the recent problematic commit? I'll do that (this afternoon). I think the problem is not what I outlined above but I really do not understand why it does not work, and I do not like that. JMarc
Re: alpha2
Jean-Marc Lasgouttes wrote: > Le 14/04/2010 11:38, Pavel Sanda a écrit : >> Jean-Marc Lasgouttes wrote: >>> Concerning solutions, I see two: >> >> 3) what aboiut reverting the recent problematic commit? > > I'll do that (this afternoon). I think the problem is not what I > outlined above but I really do not understand why it does not work, and > I do not like that. thanks. pavel
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Stephan Witt wrote: > The current .dmg is including the self-made qt-libraries. > If I remove the Qt-Frameworks LyX starts up and uses the frameworks > installed in /Library/Frameworks and is usable, has to be tested further. > > Please, review the attached patch. > Stephan Stephan, its bit problematic to comment directly on your patches, since the are attached as octet-stream. are you able to switch them into type: text/plain ? (maybe even renaming patch to .txt will do) i'm fine with everething except the stringify part. if you promise that you'll try to fix it with standard config method, then put everything in with some //FIXME ;) pavel
Re: posible bug: url and percentage
On 04/14/2010 03:10 AM, Guenter Milde wrote: On 2010-04-13, Fox_Van wrote: *FOOTNOTE[* Making R Packages Under Windows: A Tutorial. *URL[* http://faculty.chicagobooth.edu/peter.rossi/research/bayes%20book/bayesm/Making%20R%20Packages%20Under%20Windows.pdf ]* ]* When I removed the percentage symbols everything worked correctly. I did not found any related ticket on trac. If a string contains any "%", "#", or "^^", or ends with ``\``, it can't be used in the argument to another command. The argument must not contain unbalanced braces. We need to escape #, \, and % if we use the URL in a command. This is done with Insert>Hyperref but not with Insert>URL (tested with LyX 2.0) This looks like bug 449, more or less. rh
Re: r34130 - lyx-devel/trunk/src
On 04/14/2010 07:54 AM, v...@lyx.org wrote: Author: vfr Date: Wed Apr 14 13:54:12 2010 New Revision: 34130 URL: http://www.lyx.org/trac/changeset/34130 Log: Fix bug #6651: No error messages when module dependencies are not fulfilled. We need to throw the ExceptionMessage's. Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) rh Modified: lyx-devel/trunk/src/TextClass.cpp Modified: lyx-devel/trunk/src/TextClass.cpp == --- lyx-devel/trunk/src/TextClass.cpp Tue Apr 13 20:56:28 2010(r34129) +++ lyx-devel/trunk/src/TextClass.cpp Wed Apr 14 13:54:12 2010(r34130) @@ -1278,7 +1278,7 @@ "this document but has not been found in the list of\n" "available modules. If you recently installed it, you\n" "probably need to reconfigure LyX.\n"), from_utf8(modName)); - ExceptionMessage(WarningException,_("Module not available"), + throw ExceptionMessage(WarningException,_("Module not available"), msg + _("Some layouts may not be available.")); continue; } @@ -1287,7 +1287,7 @@ bformat(_("The module %1$s requires a package that is\n" "not available in your LaTeX installation. LaTeX output\n" "may not be possible.\n"), from_utf8(modName)); - ExceptionMessage(WarningException, _("Package not available"), msg); + throw ExceptionMessage(WarningException, _("Package not available"), msg); } FileName layout_file = libFileSearch("layouts", lm->getFilename()); if (!doc_class.read(layout_file, TextClass::MODULE)) {
RE: r34130 - lyx-devel/trunk/src
>> Author: vfr >> Date: Wed Apr 14 13:54:12 2010 >> New Revision: 34130 >> URL: http://www.lyx.org/trac/changeset/34130 >> >> Log: >> Fix bug #6651: No error messages when module dependencies are not fulfilled. >> >> We need to throw the ExceptionMessage's. >> >> >Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) > >rh The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). You did throw it in one of the three cases in the function. Vincent
Re: r34130 - lyx-devel/trunk/src
On 04/14/2010 08:11 AM, Vincent van Ravesteijn - TNW wrote: Author: vfr Date: Wed Apr 14 13:54:12 2010 New Revision: 34130 URL: http://www.lyx.org/trac/changeset/34130 Log: Fix bug #6651: No error messages when module dependencies are not fulfilled. We need to throw the ExceptionMessage's. Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). OK. I'll check this later. I'm guessing that maybe the output routine aborts, in which case the message should be changed. You did throw it in one of the three cases in the function. Brain freeze, then. I think I also didn't understand exceptions very well back then. rh
RE: r34130 - lyx-devel/trunk/src
>>> Can you tell me what happens when this exception gets thrown? (I have >>> no idea why I didn't throw it.) >>> >> The user get's a message box with a warning that he might not generate >> any output. (or do you mean something else ?). >> >> >OK. I'll check this later. I'm guessing that maybe the >output routine aborts, in which case the message should >be changed. We are not outputting anything yet. It's just when you press Add, you get a warning that you might not get decent output later on. The module just gets added and nothing special happens further. >> You did throw it in one of the three cases in the function. >> >> >Brain freeze, then. I guess so. Vincent
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Am 14.04.2010 um 11:59 schrieb Pavel Sanda: > Stephan Witt wrote: >> The current .dmg is including the self-made qt-libraries. >> If I remove the Qt-Frameworks LyX starts up and uses the frameworks >> installed in /Library/Frameworks and is usable, has to be tested further. >> >> Please, review the attached patch. >> Stephan > > Stephan, its bit problematic to comment directly on your patches, since the > are > attached as octet-stream. are you able to switch them into type: text/plain ? > (maybe even renaming patch to .txt will do) > > i'm fine with everething except the stringify part. if you promise that > you'll try > to fix it with standard config method, then put everything in with some > //FIXME ;) Ok, I have another proposal now... Stephan Index: development/LyX-Mac-binary-release.sh === --- development/LyX-Mac-binary-release.sh (Revision 34128) +++ development/LyX-Mac-binary-release.sh (Arbeitskopie) @@ -9,27 +9,91 @@ # Prerequisite: # * a decent checkout of LyX sources (probably you have it already) -# * Qt4 - build with static libraries for the used platforms (i386 and ppc) +# * Qt4 - build with shared or static libraries for the used platforms (i386 and ppc) # * for aspell support: # the aspell sources placed in a sibling directory (variable ASpellSourceVersion) +ConfigureOptions="--enable-warnings --enable-optimization=-Os --with-included-gettext" +dict_deployment="yes" +qt4_deployment="yes" +MACOSX_DEPLOYMENT_TARGET="10.4" # Tiger support is default + +usage() { + echo Build script for LyX on Mac OS X + echo + echo Optional arguments: + echo " --tiger-support=yes|no ." default yes + echo " --dict-deployment=yes|no ..." default yes + echo " --qt4-deployment=yes|no " default yes + echo " --with-arch=ARCH ..." default ppc,i386 + echo " --with-build-path=PATH ." default \${lyx-src-dir}/../lyx-build + echo " --with-dmg-location=PATH ..." default \${build-path} + echo + echo "All other arguments with -- are passed to configure" + echo "including the defaults: ${ConfigureOptions}" + echo + exit 0 +} + +while [ $# -gt 0 ]; do + case "${1}" in + --with-qt4-dir=*) + QTDIR=`echo ${1}|cut -d= -f2` + shift + ;; + --tiger-support=[Nn][Oo]) + MACOSX_DEPLOYMENT_TARGET="" + MYCFLAGS="" + shift + ;; + --dict-deployment=*) + dict_deployment=`echo ${1}|cut -d= -f2` + shift + ;; + --qt4-deployment=*) + qt4_deployment=`echo ${1}|cut -d= -f2` + shift + ;; + --with-arch=*) + ARCH=`echo ${1}|cut -d= -f2|tr ',' ' '` + ARCH_LIST="${ARCH_LIST} ${ARCH}" + shift + ;; + --with-dmg-location=*) + DMGLocation=`echo ${1}|cut -d= -f2` + shift + ;; + --with-build-path=*) + LyxBuildDir=`echo ${1}|cut -d= -f2` + shift + ;; + --help) + usage + ;; + --*) + ConfigureOptions="${ConfigureOptions} ${1}" + shift + ;; + *) + break + ;; + esac +done + # Set these variables -- to -# (1) the location of your Qt4 installation and optionally +# (1) the location of your Qt4 installation # (2) the location of resulting DMG # (3) the version of private aspell installation # (to define the location assign ASpellSourceDir instead) # (4) the list of architectures to build for QtInstallDir=${QTDIR:-"/opt/qt4"} -DMGLocation=.. # one level above LyxSourceDir +QtFrameworkVersion="4" ASpellSourceVersion="aspell-0.60.6" -ARCH_LIST="ppc i386" +ARCH_LIST=${ARCH_LIST:-"ppc i386"} -GetText="--with-included-gettext" -ConfigureOptions="--enable-warnings --enable-optimization=-Os" +strip="-strip" -# strip="-strip" - # detection of script home LyxSourceDir=${1:-`dirname "$0"`} if [ ! -d "${LyxSourceDir}" ]; then @@ -51,9 +115,12 @@ ;; esac -ASpellSourceDir=${ASpellSourceDir:-`dirname "${LyxSourceDir}"`/${ASpellSourceVersion}} -ASpellInstallDir=${ASpellInstallDir:-`dirname "${LyxSourceDir}"`/${ASpellSourceVersion}.lib} +LyxBuildDir=${LyxBuildDir:-`dirname "${LyxSourceDir}"`/lyx-build} +DMGLocation=${DMGLocation:-"${LyxBuildDir}"} +ASpellSourceDir=${ASPELLDIR:-`dirname "${LyxSourceDir}"`/${ASpellSourceVersion}} +ASpellInstallDir=${ASpellInstallDir:-"${LyxBuildDir}"/${ASpellSourceVersion}.lib} + if [ ! -f "${LyxSourceDir}"/configure ]; then ( cd "${LyxSourceDir}" && sh autogen.sh ) fi @@ -64,7 +131,7 @@ LyxName="LyX" LyxBase="${LyxName}-${LyXVersion}" LyxApp="${LyxBase}.app" -LyxAppDir=`dirname "${LyxSourceDir}"`/"${LyxBase}"
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Stephan Witt wrote: > Ok, I have another proposal now... this looks fine. try to commit, we will see whether it breaks something else :) pavel
Re: [PATCH for 2.0.0 alpha2] Re: LyX/Mac Maintainer
Am 14.04.2010 um 15:12 schrieb Pavel Sanda: > Stephan Witt wrote: >> Ok, I have another proposal now... > > this looks fine. try to commit, we will see whether it > breaks something else :) done - the commit :) Stephan
Re: r34130 - lyx-devel/trunk/src
On 04/14/2010 08:45 AM, Vincent van Ravesteijn - TNW wrote: Can you tell me what happens when this exception gets thrown? (I have no idea why I didn't throw it.) The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). OK. I'll check this later. I'm guessing that maybe the output routine aborts, in which case the message should be changed. We are not outputting anything yet. It's just when you press Add, you get a warning that you might not get decent output later on. The module just gets added and nothing special happens further. Ahh, OK. Sorry, I thought it was in the output routine. rh
Re: undo to unchanged, original document?
El Sat, 10 Apr 2010 23:22:51 +0100 Liviu Andronicescribió: > Dear LyX developers > This is probably a trivial request. > > Suppose I create a new LyX document with text "asdf" and save it. With > the file still open, I hit "" and "a", LyX will tag the > document as "changed" (in the window manager) and with an "*" in the > tab bar. When I hit "ctrl+z" twice, LyX will erase the previously > entered "a" and its respective line, and will effectively revert to > the original file, as saved on disc. However, LyX will still display > the "changed" and "*" tags, even though the file is the same as the > one on disc. > > In such cases LyX could behave differently: when the number of "undo" > operations is the same as the number of recorded "edit" operations > since last save (or since opening), LyX could display the file as > unchanged. Such behaviour is implemented at least in Geany (an IDE) > and in OpenOffice. Would it be difficult to implement this in LyX? > Thank you > Liviu > > In LyX 2.0 I've been depending on this behaviour to get around a different bug. After I change the Preamble, I can't save until I edit something else in the document window. So I type a character somewhere that I don't need, then delete it, and then I can save my changes. That of being able to save a file where the only thing that's changed is the Preamble. So I add a space somewhere, then delete it, and I can save again. I presume this bug will be fixed at some point, and then we can both be happy. -Jack -- ~~~ Jack Desert --Writer, Entrepeneur Author and Spokesman: www.LetsEATalready.com Software Developer: http://GrooveTask.org Email: jackdesert...@gmail.com ~~~
Re: r34130 - lyx-devel/trunk/src
On 14/04/2010 8:11 AM, Vincent van Ravesteijn - TNW wrote: The user get's a message box with a warning that he might not generate any output. (or do you mean something else ?). You did throw it in one of the three cases in the function. Vincent I still don't get any warning (neither in a box or on the console). What's up? Bug still present as far as I am concerned. -- Julien
Re: undo to unchanged, original document?
Jack Desert wrote: > In LyX 2.0 I've been depending on this behaviour to get around a different > bug. After I change the Preamble, I can't save until I edit something else in > the document window. already fixed. pavel
ANNOUNCE: LyX version 2.0.0 (alpha 2)
Public release of LyX version 2.0.0 (alpha 2) = We are pleased to announce the second alpha release of LyX 2.0.0. Please note that this release is for testing purposes only and users are encouraged to use the current 1.6 stable release for any serious work. We are, however, grateful for any feedback regarding the bugs and problems you will report to us. Tarballs can be found at ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/ . Binaries should follow soon. LyX 2.0.0 will be culmination of more than 17 months of hard work and you can find an overview of the new features here: http://wiki.lyx.org/LyX/NewInLyX20 Note that some of the features intended for 2.0 are still missing. If you think you found a bug in LyX 2.0.0, either e-mail the LyX developers' mailing list (lyx-devel at lists.lyx.org), or open a bug report at http://www.lyx.org/trac/wiki/BugTrackerHome . Please check that the bug was not already reported before you file a new one. We hope you will enjoy the result! The LyX team. http://www.lyx.org
Re: ANNOUNCE: LyX version 2.0.0 (alpha 2)
Pavel Sanda wrote: > Public release of LyX version 2.0.0 (alpha 2) > = there was plan to release first beta somewhere in may. my plan is alpha3 on 10th may, then we will see whats the status of features left. as a slight remainder: TODO list, i tried to sort it aproximately by the people in charge of the tasks... if you think its time to postpone some task just delete it from the wiki or change milestone in trac. * Comparison - IIRC Vincent considered some more work which would use words instead of characters to boost up the process. Currently the documents which are far from each other will never finish in a reasonable time. --Pavel: I need some API for connection in VC_COMPARE... * The "Export as ZIP" feature. * #2625 - convert the search dialog to a search bar * #4017 - Drag and drop support for graphics * #5603 - multiple text selections the same time * HTML export. Richard asked for help with images. NewInLyx2.0 entry is missing. R: what I need is to be able to have access to the preview image from within the xhtml output routine. This would let us do image rotation, scaling, cropping, etc, of images; do something with external insets, which are at present ignored; and even allow the use of little pictures for math when necessary. From what I can tell, though, the preview images right now are buried somewhere deep within the GUI and so aren't accessible from the output routines. bug #1714 is related. * #6031 - Default citation style in natbib support * #1714 - For each equation, keep track of image filename. * #3008 - add support for textsuperscript and textsubscript * #3221 - \nameref and \autoref support in cross-references * #4595 - content of label inset is LaTeX code * #6455 - Multiple index UI polishment * Multiple viewers/converters. Juergen asked for some help; how this evolved, what is to be done in this area? J: I still did not yet find the time to re-address this. I need to clean up the tree with my changes (it doesn't compile anymore) and re-ponder the thing. I hope I can do this eventually. If not, LyX 2.0 should be released without this feature. R: I can do the graph work, if I know precisely what needs doing. We had some discussions, but then they kind of died, as we both got busy. So I'm not quite sure where we stand. bug #3648 related. * #867: it would be nice if all tex>html converters found were configured * #2339: LyX doesn't allow environments with options * #2591: text inset for tipa * #3648: Different pdf formats pdf, pdf2, and pdf3 are confusing * rc2rc conversion scripts for converting older preferences into new ones. Jose promised to come with something. * Tabular stuff. Edwin, Uwe and Abdel seem to work on it right now. Problems listed in wiki. * There has been some work on dispatch results, unfinished now as bugs reveal. (bug #6417). AY: In particular "inset-modify tabular" has to be addressed... JM: For inset-modify, I think that putting this as AtPoint function was wrong. Actually the reason why it happens is the "inset-modify changetype" variant which actually makes no sense. We should define a inset-change-type lfun and use this in contextual menus. * (Pavel) Connection between VCS and comparison feature. * #94 - LYX forward DVI search. * maybe generic pane in settings for user defined VCS operations. * #6632 - Try to guify vlna in case multiple conversion routes are done in 2.0 * (Uwe) #2605 - Add checkbox for automatic equation, figure and table numbering corresponding to section number * #6622 - Rendering "\utilde" on screen * #4624 - Exporting to latex with included bibtex bbl. I remember there was some patch floating around the dev list, but cant remebebr whats the status. if the list won't be reduced considerably at alpha3 i will postopone beta +1 month. pavel
[Patch] #94 - LYX forward DVI search.
hi, attached is the patch implementing forward search. i didn't add gui combo for the rc variable because the ui needs to be reworked first. i will address this in a different thread. pavel diff --git a/src/FuncCode.h b/src/FuncCode.h index 20434e5..c545fee 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -445,6 +445,7 @@ enum FuncCode LFUN_SPELLING_IGNORE, // spitz 20100118 // 345 LFUN_PREVIEW_INSERT,// vfr, 20100328 + LFUN_FORWARD_SEARCH, LFUN_LASTACTION // end of the table }; diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 053680a..32a2604 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -2825,6 +2825,23 @@ void LyXAction::init() */ { LFUN_SERVER_GOTO_FILE_ROW, "server-goto-file-row", ReadOnly | NoBuffer, System }, /*! + * \var lyx::FuncCode lyx::LFUN_FORWARD_SEARCH + * \li Action: Sets the cursor position in the previewed (e.g. dvi) file based on the row + number in LyX window. + * \li Notion: The external program used for forward search call can be specified in + \\forward_search RC setting. By default its value is\n + "xdvi -sourceposition $$n:$$t $$o"\n + The values replaced in the call: $$n for row number, $$t for + exported temporary .tex file, $$o exported output file, either + dvi or pdf, depending on the argument of #LFUN_FORWARD_SEARCH. + * \li Syntax: forward-search [dvi|pdf] + * \li Params: By default dvi route is taken. + * \li Origin: sanda, 14 Apr 2010 + * \endvar + */ + { LFUN_FORWARD_SEARCH, "forward-search", ReadOnly, System }, + +/*! * \var lyx::FuncCode lyx::LFUN_SERVER_NOTIFY * \li Action: Sends notify message about the last key-sequence to client. * \li Notion: This can be used to grab last key-sequence used inside the LyX window. diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 3b363fd..7402484 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -94,6 +94,7 @@ LexerKeyword lyxrcTags[] = { { "\\example_path", LyXRC::RC_EXAMPLEPATH }, { "\\font_encoding", LyXRC::RC_FONT_ENCODING }, { "\\format", LyXRC::RC_FORMAT }, + { "\\forward_search", LyXRC::RC_FORWARD_SEARCH }, { "\\fullscreen_limit", LyXRC::RC_FULL_SCREEN_LIMIT }, { "\\fullscreen_menubar", LyXRC::RC_FULL_SCREEN_MENUBAR }, { "\\fullscreen_scrollbar", LyXRC::RC_FULL_SCREEN_SCROLLBAR }, @@ -326,6 +327,7 @@ void LyXRC::setDefaults() user_email = to_utf8(support::user_email()); open_buffers_in_tabs = true; single_close_tab_button = false; + forward_search = "xdvi -sourceposition $$n:$$t $$o"; // Fullscreen settings full_screen_limit = false; @@ -1156,6 +1158,9 @@ int LyXRC::read(Lexer & lexrc) case RC_SINGLE_CLOSE_TAB_BUTTON: lexrc >> single_close_tab_button; break; + case RC_FORWARD_SEARCH: + lexrc >> forward_search; + break; // Obsoteted in 1.4.0 case RC_USETEMPDIR: @@ -1840,6 +1845,8 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c << convert(open_buffers_in_tabs) << '\n'; } + if (tag != RC_LAST) + break; case RC_SINGLE_CLOSE_TAB_BUTTON: if (ignore_system_lyxrc || single_close_tab_button != system_lyxrc.single_close_tab_button) { @@ -1849,6 +1856,13 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c } if (tag != RC_LAST) break; + case RC_FORWARD_SEARCH: + if (ignore_system_lyxrc || + forward_search != system_lyxrc.forward_search) { + os << "\\forward_search " << forward_search << '\n'; + } + if (tag != RC_LAST) + break; os << "\n#\n" << "# COLOR SECTION ###\n" @@ -2801,6 +2815,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new) case LyXRC::RC_VISUAL_CURSOR: case LyXRC::RC_VIEWER: case LyXRC::RC_VIEWER_ALTERNATIVES: + case LyXRC::RC_FORWARD_SEARCH: case LyXRC::RC_LAST: break; } diff --git a/src/LyXRC.h b/src/LyXRC.h index c68e83c..2eccbc5 100644 --- a/src/LyXRC.h +++ b/src/LyXRC.h @@ -78,6 +78,7 @@ public: RC_EXAMPLEPATH, RC_FONT_ENCODING, RC_FORMAT, + RC_FORWARD_SEARCH, RC_FULL_SCREEN_LIMIT, RC_FULL_SCREEN_SCROLLBAR, RC_FULL_SCREEN_TABBAR, @@ -490,6 +491,8 @@ public: bool open_buffers_in_tabs; ///
Preferences panels
hi, our tools->preferences->output panels are now completely unbalanced. latex pane overflows with items, while "date format" and "plain text" are orphans. what about joining these two into one "general" panel? Richard do you plan some xhtml setting and if so, how many -- instead of merging we can let one for xhtml stuff... pavel
Re: [Patch] #94 - LYX forward DVI search.
On Wed, Apr 14, 2010 at 10:09 PM, Pavel Sanda wrote: > attached is the patch implementing forward search. This news is very exciting for me! As I understand, once the reverse search regression http://www.lyx.org/trac/ticket/6415 gets fixed, we'll be able to go back and forth between LyX and dvi in v2.0? Thanks for all your work! -Ben