]> git.lyx.org Git - lyx.git/log
lyx.git
11 years agoImplement deparsing of tokens
Jean-Marc Lasgouttes [Fri, 15 Feb 2013 16:03:18 +0000 (17:03 +0100)]
Implement deparsing of tokens

When switching catcodes (for example to verbatim), there are in general some tokens that have already been parsed according to the old catcodes. It is therefore needed to "forget" those token and reparse them.

The basic idea is to use idocstream::putback() to feed the characters back to the stream, but this does not work (probably because we disable buffering). Therefore, we implement a simple stream-like class that implements putback().

11 years agoMove stuff
Jean-Marc Lasgouttes [Fri, 15 Feb 2013 15:23:51 +0000 (16:23 +0100)]
Move stuff

11 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Fri, 15 Feb 2013 15:28:38 +0000 (16:28 +0100)]
Merge branch 'master' of git.lyx.org:lyx

11 years agoenvironment.cpp: MSVC compile fix
Uwe Stöhr [Fri, 15 Feb 2013 15:28:02 +0000 (16:28 +0100)]
environment.cpp: MSVC compile fix

MSVC told me
"environment.cpp(139): error C4716: 'lyx::support::unsetEnv' : must return a value"

11 years agode.po: update
Juergen Spitzmueller [Fri, 15 Feb 2013 15:19:10 +0000 (16:19 +0100)]
de.po: update

11 years agoFORMAT: add missing fileformat changes
Uwe Stöhr [Fri, 15 Feb 2013 15:11:30 +0000 (16:11 +0100)]
FORMAT: add missing fileformat changes

11 years agoMove stuff around
Jean-Marc Lasgouttes [Fri, 15 Feb 2013 13:44:45 +0000 (14:44 +0100)]
Move stuff around

11 years agoSome libertine versions have osf default, some lining
Juergen Spitzmueller [Fri, 15 Feb 2013 09:52:00 +0000 (10:52 +0100)]
Some libertine versions have osf default, some lining

11 years agoAdjust Libertine font support to most recent version
Juergen Spitzmueller [Fri, 15 Feb 2013 09:45:11 +0000 (10:45 +0100)]
Adjust Libertine font support to most recent version

This needs yet a file format change. I hope the interface is stable now (I had an exchange with the package maintainer, Bob Tennent, about that)

11 years agoSimplify support for kurier fonts
Juergen Spitzmueller [Tue, 12 Feb 2013 19:33:42 +0000 (20:33 +0100)]
Simplify support for kurier fonts

11 years agoCmake build: Creating a define for a header file found
Kornel Benko [Tue, 12 Feb 2013 18:01:16 +0000 (19:01 +0100)]
Cmake build: Creating a define for a header file found
need now only changes in the list of header files in ConfigureChecks.cmake.

11 years agotex2lyx: latexfonts importation fixes
Juergen Spitzmueller [Tue, 12 Feb 2013 17:47:05 +0000 (18:47 +0100)]
tex2lyx: latexfonts importation fixes

11 years agoC&P error. Sorry
Kornel Benko [Tue, 12 Feb 2013 16:46:35 +0000 (17:46 +0100)]
C&P error. Sorry

11 years agoCmake build: Correct the previous commit.
Kornel Benko [Tue, 12 Feb 2013 16:40:32 +0000 (17:40 +0100)]
Cmake build: Correct the previous commit.
We have to apply configure_file() twice, therefor the new file.

11 years agoCmake build: If checking for new function, say xyzzy, we want
Kornel Benko [Tue, 12 Feb 2013 16:22:07 +0000 (17:22 +0100)]
Cmake build: If checking for new function, say xyzzy, we want
have a definition '#define HAVE_XYZZY 1'.
Now, it is sufficient to add xyzzy to list of functions in ConfigureChecks.cmake'

11 years agoAdd "NoInsetLayout" tag for Uwe. Fixes bug #8545.
Richard Heck [Sat, 9 Feb 2013 19:31:26 +0000 (14:31 -0500)]
Add "NoInsetLayout" tag for Uwe. Fixes bug #8545.

11 years agoCmake build: 1.) Sort function checcking alphabetically
Kornel Benko [Tue, 12 Feb 2013 14:27:39 +0000 (15:27 +0100)]
Cmake build: 1.) Sort function checcking alphabetically
2.) add definition HAVE_UNSETENV to header

11 years agoRemove unused Mac specific code
Jean-Marc Lasgouttes [Tue, 12 Feb 2013 11:29:33 +0000 (12:29 +0100)]
Remove unused Mac specific code

11 years agoFix bug #8537: LyX creates the environment variable LC_ALL
Jean-Marc Lasgouttes [Tue, 5 Feb 2013 13:19:33 +0000 (14:19 +0100)]
Fix bug #8537: LyX creates the environment variable LC_ALL

The current code is not able to unset an environment variable, only to set it to an empty value. This patch refactors a bit the Message class and uses a new EnvChanger helper class that allows to change temporarily an environment variable and that is able to unset variables if needed.

The patch also adds new functions hasEnv and unsetEnv in environment.cpp.

Open issues:
 * there may be systems where unsetenv is not available and putenv("name=") does not do the right thing;
 * unsetenv may lead to leaks on some platforms.
 * when using unsetenv, we may need to remove strings from the internal map that setEnv uses.

11 years agoIf a LaTeX font has a monolithic option for all expert sets (Osf, SC), honor this...
Juergen Spitzmueller [Mon, 11 Feb 2013 14:02:24 +0000 (15:02 +0100)]
If a LaTeX font has a monolithic option for all expert sets (Osf, SC), honor this in the GUI (#8547)

11 years agotex2lyx: support for fileformat change 444
Uwe Stöhr [Mon, 11 Feb 2013 13:40:35 +0000 (14:40 +0100)]
tex2lyx: support for fileformat change 444

biolinum is used if libertine is detected

11 years agotex2lyx: support for libertine
Uwe Stöhr [Mon, 11 Feb 2013 13:22:56 +0000 (14:22 +0100)]
tex2lyx: support for libertine

11 years agochkconfig.ltx: check for fonts and packages required by fonts
Uwe Stöhr [Mon, 11 Feb 2013 13:19:08 +0000 (14:19 +0100)]
chkconfig.ltx: check for fonts and packages required by fonts

11 years agotex2lyx/TODO.txt: update todo list
Uwe Stöhr [Mon, 11 Feb 2013 11:13:44 +0000 (12:13 +0100)]
tex2lyx/TODO.txt: update todo list

listings support was added a year ago by r40856 and r40860

11 years agochkconfig.ltx: add missing comment from last commit
Uwe Stöhr [Mon, 11 Feb 2013 11:03:07 +0000 (12:03 +0100)]
chkconfig.ltx: add missing comment from last commit

11 years agochkconfig.ltx: check for binhex.tex
Uwe Stöhr [Mon, 11 Feb 2013 11:00:56 +0000 (12:00 +0100)]
chkconfig.ltx: check for binhex.tex

Without this file the newtxmath fonts supported by LyX cannot be used; fixes bug #8549.

11 years agoRevert "tex2lyx/Preamble.cpp: fix bug #8525 temporarily"
Uwe Stöhr [Mon, 11 Feb 2013 10:56:27 +0000 (11:56 +0100)]
Revert "tex2lyx/Preamble.cpp: fix bug #8525 temporarily"

This reverts commit a69fcde0726450d696081ed5c21506d42a90b103.
The commit causing #8525 is [2f7f0c76/lyxgit]

11 years agoWhitespace and Casing fixes
Juergen Spitzmueller [Mon, 11 Feb 2013 08:47:08 +0000 (09:47 +0100)]
Whitespace and Casing fixes

11 years agotex2lyx-tests: Adapt to changes for emty line in preamble
Kornel Benko [Mon, 11 Feb 2013 08:43:10 +0000 (09:43 +0100)]
tex2lyx-tests: Adapt to changes for emty line in preamble

11 years agotex2lyx: support for newtxmath
Uwe Stöhr [Mon, 11 Feb 2013 01:56:48 +0000 (02:56 +0100)]
tex2lyx: support for newtxmath

11 years agotex2lyx: support for eulervm
Uwe Stöhr [Mon, 11 Feb 2013 01:34:03 +0000 (02:34 +0100)]
tex2lyx: support for eulervm

11 years agotex2lyx: support for txtt font
Uwe Stöhr [Mon, 11 Feb 2013 01:24:31 +0000 (02:24 +0100)]
tex2lyx: support for txtt font

11 years agotex2lyx: support for biolinum-type1
Uwe Stöhr [Mon, 11 Feb 2013 01:14:53 +0000 (02:14 +0100)]
tex2lyx: support for biolinum-type1

11 years agotex2lyx: support for TeX Gyre fonts
Uwe Stöhr [Mon, 11 Feb 2013 01:07:22 +0000 (02:07 +0100)]
tex2lyx: support for TeX Gyre fonts

11 years agotex2lyx: support for libertine-type1
Uwe Stöhr [Mon, 11 Feb 2013 00:56:47 +0000 (01:56 +0100)]
tex2lyx: support for libertine-type1

11 years agotex2lyx: support for garamondx
Uwe Stöhr [Mon, 11 Feb 2013 00:46:03 +0000 (01:46 +0100)]
tex2lyx: support for garamondx

11 years agotex2lyx: support for mathdesign
Uwe Stöhr [Mon, 11 Feb 2013 00:40:13 +0000 (01:40 +0100)]
tex2lyx: support for mathdesign

11 years agotex2lyx/Preamble.cpp: remove unnecessary whitespace in the preamble
Uwe Stöhr [Mon, 11 Feb 2013 00:37:03 +0000 (01:37 +0100)]
tex2lyx/Preamble.cpp: remove unnecessary whitespace in the preamble

- this removes blank lines that are otherwise written to the preamble

11 years agotex2lyx: add test for font settings
Uwe Stöhr [Sun, 10 Feb 2013 23:49:20 +0000 (00:49 +0100)]
tex2lyx: add test for font settings

11 years agosupport for the kurier sansserif fonts
Uwe Stöhr [Sun, 10 Feb 2013 23:47:09 +0000 (00:47 +0100)]
support for the kurier sansserif fonts

- fileformat change

11 years agotex2lyx/Preamble.cpp: fix bug #8525 temporarily
Uwe Stöhr [Sun, 10 Feb 2013 22:31:38 +0000 (23:31 +0100)]
tex2lyx/Preamble.cpp: fix bug #8525 temporarily

- this might break some tex2lyx features but tex2lyx was completely broken - not even the simplest TeX file could be imported and compiles

11 years agoUse the new Static label type for the koma book chapter
Juergen Spitzmueller [Sun, 10 Feb 2013 13:48:07 +0000 (14:48 +0100)]
Use the new Static label type for the koma book chapter

11 years agoLaTeXFonts: Support the rare case where there is really only preamble code
Juergen Spitzmueller [Sun, 10 Feb 2013 13:31:49 +0000 (14:31 +0100)]
LaTeXFonts: Support the rare case where there is really only preamble code

11 years agoFix #7865 - Math autocorrection is broken
Pavel Sanda [Sun, 10 Feb 2013 05:51:30 +0000 (21:51 -0800)]
Fix #7865 - Math autocorrection is broken

Patch from Martin Vermeer.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg177004.html

11 years ago* Additional.lyx
Pavel Sanda [Sun, 10 Feb 2013 04:20:48 +0000 (20:20 -0800)]
* Additional.lyx

11 years agoLeftover from SVN.
Pavel Sanda [Sun, 10 Feb 2013 03:50:06 +0000 (19:50 -0800)]
Leftover from SVN.

11 years agoAdd very simple revision comparison for git.
Pavel Sanda [Sun, 10 Feb 2013 03:28:01 +0000 (19:28 -0800)]
Add very simple revision comparison for git.

At this moment we do not allow comparison between arbitrary hashes,
but except GUI the code is ready.
Thanks to the powerful way of git addressing we could even ask
for comparisons like '-2 weeks back' if someone wants to play
with GuiCompareHistory.

11 years agoUse std::map::find() instead of iterating ourselves.
Richard Heck [Sat, 9 Feb 2013 19:37:42 +0000 (14:37 -0500)]
Use std::map::find() instead of iterating ourselves.

11 years agoUpdate it.po
Enrico Forestieri [Sat, 9 Feb 2013 19:36:34 +0000 (20:36 +0100)]
Update it.po

11 years agoCorrect typo
Enrico Forestieri [Sat, 9 Feb 2013 19:29:25 +0000 (20:29 +0100)]
Correct typo

11 years agoUpdate it.po
Enrico Forestieri [Sat, 9 Feb 2013 19:27:47 +0000 (20:27 +0100)]
Update it.po

11 years agoUpdate all layouts to format 44.
Richard Heck [Sat, 9 Feb 2013 18:37:06 +0000 (13:37 -0500)]
Update all layouts to format 44.

11 years agoDocumentation update for layout format 44.
Richard Heck [Sat, 9 Feb 2013 18:35:29 +0000 (13:35 -0500)]
Documentation update for layout format 44.

11 years agoLayout changes for changes to LabelType:
Richard Heck [Sat, 9 Feb 2013 17:28:21 +0000 (12:28 -0500)]
Layout changes for changes to LabelType:
LabelType Counter --> LabelType Static
LabelType Top_Environment --> LabelType Above
LabelType Centered_Top_Environment --> LabelType Centered

11 years agoEliminate the hard-coded special handing of chapters. We'll use the
Richard Heck [Sat, 9 Feb 2013 16:13:40 +0000 (11:13 -0500)]
Eliminate the hard-coded special handing of chapters. We'll use the
new Above LabelType instead.

11 years agoChange LabelType Top_Environment to LabelType Above, and LabelType
Richard Heck [Sat, 9 Feb 2013 16:13:01 +0000 (11:13 -0500)]
Change LabelType Top_Environment to LabelType Above, and LabelType
Centered_Top_Environment to LabelType Centered.

11 years agoRemove references to Counter LabelType from source code. The
Richard Heck [Sat, 9 Feb 2013 16:09:56 +0000 (11:09 -0500)]
Remove references to Counter LabelType from source code. The
intention is to use Static in its place, and we now expand the
label for these, as well.

11 years agoIEEE: support for Transactions on Magnetics
Uwe Stöhr [Sat, 9 Feb 2013 17:18:21 +0000 (18:18 +0100)]
IEEE: support for Transactions on Magnetics

11 years agoIEEEtran templates: some preamble simplifications and fixes
Uwe Stöhr [Sat, 9 Feb 2013 17:08:12 +0000 (18:08 +0100)]
IEEEtran templates: some preamble simplifications and fixes

11 years agoIEEEtran: dome corrections and additional info
Uwe Stöhr [Sat, 9 Feb 2013 16:53:34 +0000 (17:53 +0100)]
IEEEtran: dome corrections and additional info

11 years agoWork around a bug in beamer 2.10
Juergen Spitzmueller [Sat, 9 Feb 2013 14:53:40 +0000 (15:53 +0100)]
Work around a bug in beamer 2.10

11 years agoPreamble tag for LaTeXFonts (#8530)
Juergen Spitzmueller [Sat, 9 Feb 2013 10:00:42 +0000 (11:00 +0100)]
Preamble tag for LaTeXFonts (#8530)

11 years agoIEEEtran.layout: support for conference articles
Uwe Stöhr [Sat, 9 Feb 2013 02:23:34 +0000 (03:23 +0100)]
IEEEtran.layout: support for conference articles

- IEEEtran-Conference.lyx: new template for conference articles of the IEEE

11 years agoIEEEtran-CompSoc.layout: force plain layout
Uwe Stöhr [Sat, 9 Feb 2013 01:52:39 +0000 (02:52 +0100)]
IEEEtran-CompSoc.layout: force plain layout

11 years agoelsarticle.layout: force plain layout for some flex insets
Uwe Stöhr [Sat, 9 Feb 2013 01:50:54 +0000 (02:50 +0100)]
elsarticle.layout: force plain layout for some flex insets

- This prevents LaTeX errors because some commands don't allow to include commands.
- also simplified some code

11 years agoImplement revision info for git
Georg Baum [Thu, 7 Feb 2013 21:07:22 +0000 (22:07 +0100)]
Implement revision info for git

11 years agoDescribe GIT support
Georg Baum [Thu, 7 Feb 2013 20:24:32 +0000 (21:24 +0100)]
Describe GIT support

11 years agoDon't hardcode listings but use InsetLayout.
Richard Heck [Sun, 15 Jul 2012 19:06:29 +0000 (15:06 -0400)]
Don't hardcode listings but use InsetLayout.

11 years agoFix bug #7948 by not hardcoding XHTML info for captions but instead
Richard Heck [Tue, 10 Jul 2012 21:44:21 +0000 (17:44 -0400)]
Fix bug #7948 by not hardcoding XHTML info for captions but instead
using InsetLayout.

11 years agoFix bug #7947 by using InsetLayout rather than hardcoding things.
Richard Heck [Tue, 10 Jul 2012 21:17:45 +0000 (17:17 -0400)]
Fix bug #7947 by using InsetLayout rather than hardcoding things.

11 years agoFix really silly logic error. This should make prettyref-based
Richard Heck [Thu, 7 Feb 2013 13:44:42 +0000 (08:44 -0500)]
Fix really silly logic error. This should make prettyref-based
files work better when converted to refstyle.

11 years agoCreate a file to document expected test failures
Scott Kostyshak [Thu, 7 Feb 2013 06:15:10 +0000 (01:15 -0500)]
Create a file to document expected test failures

This file documents which tests are expected to fail. It can be used
to quickly tell if a regression has occurred. This is also useful when
first running tests to get an idea of whether some tests are failing
because of missing dependencies.

11 years agoAdd an autotest for #8540
Scott Kostyshak [Sat, 2 Feb 2013 02:35:14 +0000 (21:35 -0500)]
Add an autotest for #8540

This test should currently fail on master and on 2.0.x.

11 years agoIEEEtran.lyx: fix typos
Uwe Stöhr [Thu, 7 Feb 2013 01:14:20 +0000 (02:14 +0100)]
IEEEtran.lyx: fix typos

11 years agoIEEEtran-CompSoc: new layout to support the IEEE "computer science" journals
Uwe Stöhr [Thu, 7 Feb 2013 01:13:44 +0000 (02:13 +0100)]
IEEEtran-CompSoc: new layout to support the IEEE "computer science" journals

11 years agoIEEEtran.layout: support command \IEEEPARstart
Uwe Stöhr [Thu, 7 Feb 2013 01:01:57 +0000 (02:01 +0100)]
IEEEtran.layout: support command \IEEEPARstart

11 years agoImplement very basic git support
Georg Baum [Wed, 6 Feb 2013 21:07:31 +0000 (22:07 +0100)]
Implement very basic git support

Only the local index is considered, no remote repo. Also getting the revision
(aka commit hash) is missing. How push and pull could be integrated with the
LyX VCS interface needs to be discussed, but the implemented functionality was
quite straight forward.

11 years agoFix copy-paste error
Georg Baum [Tue, 5 Feb 2013 20:40:19 +0000 (21:40 +0100)]
Fix copy-paste error

11 years agoImplement VCS copy and rename
Georg Baum [Tue, 5 Feb 2013 20:31:58 +0000 (21:31 +0100)]
Implement VCS copy and rename

The advantage of having this in LyX is the intelligent file name handling
of included files. Implementation as discussed on the list, but ensure also
that an attempt to use locked files fails.

11 years agoCorrectly delete temp files
Georg Baum [Tue, 5 Feb 2013 20:24:41 +0000 (21:24 +0100)]
Correctly delete temp files

FileName::erase() only clears the file name, if you want to delete the file
you need to call FileName::removeFile().

11 years agoSupport for \fullcite in LyXHTML and text export (fixes #8491).
Julien Rioux [Fri, 25 Jan 2013 22:42:15 +0000 (23:42 +0100)]
Support for \fullcite in LyXHTML and text export (fixes #8491).

11 years agoGenerate the citation labels before exporting to plain text.
Julien Rioux [Sat, 2 Feb 2013 18:23:21 +0000 (19:23 +0100)]
Generate the citation labels before exporting to plain text.

11 years agoMove label generation from InsetBibtex to BiblioInfo.
Julien Rioux [Fri, 1 Feb 2013 15:18:37 +0000 (16:18 +0100)]
Move label generation from InsetBibtex to BiblioInfo.

This only move the code, but does not change the displayed labels.
Thus for numerical citation, the label is set to the cite number;
for author-year citation, the abbreviated list of authors is used
i.e. "Smith et al. 2001".

Eventually, we might want to make the label customizable, or get
it from BibTeX.

11 years agoRemove unused code.
Julien Rioux [Mon, 4 Feb 2013 16:17:48 +0000 (17:17 +0100)]
Remove unused code.

11 years agoWhitespace only.
Julien Rioux [Mon, 4 Feb 2013 16:51:59 +0000 (17:51 +0100)]
Whitespace only.

11 years agotex2lyx tests:
Kornel Benko [Wed, 6 Feb 2013 12:44:46 +0000 (13:44 +0100)]
tex2lyx tests:
Corrected the tex2lyx check-file for test-refstyle-references.tex

11 years agotex2lyx tests:
Kornel Benko [Wed, 6 Feb 2013 12:42:27 +0000 (13:42 +0100)]
tex2lyx tests:
1.) Remove empty layout 'Plain'
2.) Adapt to changed look of layout 'Verbatim'

11 years agoRename Path.h to PathChanger.h (actual name of the class)
Jean-Marc Lasgouttes [Wed, 6 Feb 2013 10:36:58 +0000 (11:36 +0100)]
Rename Path.h to PathChanger.h (actual name of the class)

11 years agoGerman and Japanese Intro.lyx: fix a link
Uwe Stöhr [Wed, 6 Feb 2013 00:48:43 +0000 (01:48 +0100)]
German and Japanese Intro.lyx: fix a link

11 years agoIntro.lyx: style fixes by John Hudson
Uwe Stöhr [Wed, 6 Feb 2013 00:36:58 +0000 (01:36 +0100)]
Intro.lyx: style fixes by John Hudson

11 years agoGerman Math.lyx: some missing translations
Uwe Stöhr [Wed, 6 Feb 2013 00:31:24 +0000 (01:31 +0100)]
German Math.lyx: some missing translations

11 years agoFix TeX crash involving URLs. Patch from Martin Vermeer.
Richard Heck [Tue, 5 Feb 2013 15:00:32 +0000 (10:00 -0500)]
Fix TeX crash involving URLs. Patch from Martin Vermeer.

11 years agoMath.lyx, Tutorial.lyx: fix some typos spotted by a user
Uwe Stöhr [Tue, 5 Feb 2013 00:56:30 +0000 (01:56 +0100)]
Math.lyx, Tutorial.lyx: fix some typos spotted by a user

11 years agoFix inconsistent VCS checkin return values
Georg Baum [Mon, 4 Feb 2013 20:40:28 +0000 (21:40 +0100)]
Fix inconsistent VCS checkin return values

It is not possible to transport the different error/abort/success conditions
of a VCS checkin through a simple empty or nonempty string. Therefore it was
no wonder that the return values were used inconsistently for different VCS.
Now the log and return status are decoupled, and all VCS are handled
consistently. This is a prerequisite for proper locking detection of the
upcoming rename command.

11 years agotex2lyx: adapt refstyle support aft the fix for bug #8536
Uwe Stöhr [Mon, 4 Feb 2013 20:37:14 +0000 (21:37 +0100)]
tex2lyx: adapt refstyle support aft the fix for bug #8536

11 years agotex2lyx/Makefile.am: fix a typo
Uwe Stöhr [Mon, 4 Feb 2013 19:14:22 +0000 (20:14 +0100)]
tex2lyx/Makefile.am: fix a typo

11 years agoContinue support for verbatim
Jean-Marc Lasgouttes [Mon, 4 Feb 2013 14:14:30 +0000 (15:14 +0100)]
Continue support for verbatim

This is a refactoring commit, which may introduce minor regressions, but should go in the right direction.

 * introduce Parser::verbatimEnvironment, which is a wrapper around verbatimStuff
 * introduce output_ert, which inserts a string as ERT; this allows to factor out several code instances.
 * rename handle_ert to output_ert_inset: this creates an inset and then calls output_ert
 * remove handle_comment (use handle_ert instead)
 * remove handle_backaspace (unused now)
 * use the new methods in handle_listing

TODO:
 * use for other verbatim-like cases (Sweave chunk, url...)
 * maybe implement Parser::unparse to reparse tokens already parsed with the wrong catcodes (if needed)

11 years agoAdd test for verbatim environment in tex2lyx tests
Kornel Benko [Mon, 4 Feb 2013 09:53:25 +0000 (10:53 +0100)]
Add test for verbatim environment in tex2lyx tests

11 years agoFix bug #5408: tex2lyx cannot handle verbatim code
Jean-Marc Lasgouttes [Fri, 25 Jan 2013 11:48:52 +0000 (12:48 +0100)]
Fix bug #5408: tex2lyx cannot handle verbatim code

- Implement catcode setting in Parser
- add a new Parser::verbatimStuff method that reads verbatim contents
- use this method to parse "verbatim" environment.
- use it to parse \verb too.
- rename Parser::verbatimEnvironment to ertEnvironment.

TODO:
- use for other verbatim-like cases (Sweave chunk, lstlisting...)
- factor out the function that outputs ERT (including line breaks)
- maybe implement Parser::unparse (if needed)

11 years agokeytest.py: do not print the same thing twice
Scott Kostyshak [Mon, 4 Feb 2013 08:06:08 +0000 (03:06 -0500)]
keytest.py: do not print the same thing twice

keytest.py now only prints one time the command that it is executing for
an assert. The command is already printed in the function responsible
for executing it, so it is not necessary to print the command before
calling that function.