Jean-Marc Lasgouttes
21be4a31cc
Fix bug with reading of verbatim environment
...
The kind of putback() functionality that we need is more tricky
than I thought at first...
2013-02-15 23:22:46 +01:00
Kornel Benko
f78c69b554
Adapt to corrected tex2lyx
2013-02-15 19:07:26 +01:00
Kornel Benko
df4003b232
Adapt test-insets.lyx.lyx to now correctly running tex2lyx.
...
Removed errocase.
2013-02-15 18:49:00 +01:00
Jean-Marc Lasgouttes
8cb9707b17
Move stuff around (again!)
2013-02-15 17:15:16 +01:00
Jean-Marc Lasgouttes
47b8ab14db
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().
2013-02-15 17:15:16 +01:00
Jean-Marc Lasgouttes
fd939a0426
Move stuff
2013-02-15 17:15:16 +01:00
Uwe Stöhr
ac7d08cb32
environment.cpp: MSVC compile fix
...
MSVC told me
"environment.cpp(139): error C4716: 'lyx::support::unsetEnv' : must return a value"
2013-02-15 16:28:02 +01:00
Jean-Marc Lasgouttes
9631c36ff0
Move stuff around
2013-02-15 14:46:57 +01:00
Juergen Spitzmueller
3e90b2029c
Some libertine versions have osf default, some lining
2013-02-15 10:52:00 +01:00
Juergen Spitzmueller
6885007f1d
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)
2013-02-15 10:45:11 +01:00
Juergen Spitzmueller
63eaefc740
tex2lyx: latexfonts importation fixes
2013-02-12 18:47:05 +01:00
Richard Heck
06cac41193
Add "NoInsetLayout" tag for Uwe. Fixes bug #8545 .
2013-02-12 10:13:41 -05:00
Jean-Marc Lasgouttes
e4051a6bd5
Remove unused Mac specific code
2013-02-12 12:29:33 +01:00
Jean-Marc Lasgouttes
81d863fd41
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.
2013-02-12 12:14:06 +01:00
Juergen Spitzmueller
a063defd9f
If a LaTeX font has a monolithic option for all expert sets (Osf, SC), honor this in the GUI ( #8547 )
2013-02-11 15:02:24 +01:00
Uwe Stöhr
348b5e6610
tex2lyx: support for fileformat change 444
...
biolinum is used if libertine is detected
2013-02-11 14:40:35 +01:00
Uwe Stöhr
2066b57ca2
tex2lyx: support for libertine
2013-02-11 14:22:56 +01:00
Uwe Stöhr
1ddcbbdf92
tex2lyx/TODO.txt: update todo list
...
listings support was added a year ago by r40856 and r40860
2013-02-11 12:13:44 +01:00
Uwe Stöhr
5db148d22c
Revert "tex2lyx/Preamble.cpp: fix bug #8525 temporarily"
...
This reverts commit a69fcde072
.
The commit causing #8525 is [2f7f0c76/lyxgit]
2013-02-11 11:56:27 +01:00
Kornel Benko
f1102e8dd4
tex2lyx-tests: Adapt to changes for emty line in preamble
2013-02-11 09:43:10 +01:00
Uwe Stöhr
a9504b8060
tex2lyx: support for newtxmath
2013-02-11 02:56:48 +01:00
Uwe Stöhr
87fe26e5eb
tex2lyx: support for eulervm
2013-02-11 02:34:03 +01:00
Uwe Stöhr
0be810ac44
tex2lyx: support for txtt font
2013-02-11 02:24:31 +01:00
Uwe Stöhr
407cc9a62d
tex2lyx: support for biolinum-type1
2013-02-11 02:14:53 +01:00
Uwe Stöhr
999fd86dcf
tex2lyx: support for TeX Gyre fonts
2013-02-11 02:07:22 +01:00
Uwe Stöhr
d27dac3efc
tex2lyx: support for libertine-type1
2013-02-11 01:56:47 +01:00
Uwe Stöhr
6a3acd336b
tex2lyx: support for garamondx
2013-02-11 01:46:03 +01:00
Uwe Stöhr
c466916a25
tex2lyx: support for mathdesign
2013-02-11 01:40:13 +01:00
Uwe Stöhr
e3a3797e2f
tex2lyx/Preamble.cpp: remove unnecessary whitespace in the preamble
...
- this removes blank lines that are otherwise written to the preamble
2013-02-11 01:37:03 +01:00
Uwe Stöhr
690d9b68f2
tex2lyx: add test for font settings
2013-02-11 00:49:20 +01:00
Uwe Stöhr
487d3bffab
support for the kurier sansserif fonts
...
- fileformat change
2013-02-11 00:47:09 +01:00
Uwe Stöhr
a69fcde072
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
2013-02-10 23:31:38 +01:00
Juergen Spitzmueller
55bc3665a2
LaTeXFonts: Support the rare case where there is really only preamble code
2013-02-10 14:31:49 +01:00
Pavel Sanda
5000a016cf
Fix #7865 - Math autocorrection is broken
...
Patch from Martin Vermeer.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg177004.html
2013-02-09 21:51:30 -08:00
Pavel Sanda
6ba3e8d408
Leftover from SVN.
2013-02-09 19:50:06 -08:00
Pavel Sanda
75090250d4
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.
2013-02-09 19:35:22 -08:00
Richard Heck
a95ed3a2b9
Use std::map::find() instead of iterating ourselves.
2013-02-09 14:40:22 -05:00
Richard Heck
d6709df3d7
Layout changes for changes to LabelType:
...
LabelType Counter --> LabelType Static
LabelType Top_Environment --> LabelType Above
LabelType Centered_Top_Environment --> LabelType Centered
2013-02-09 13:44:06 -05:00
Richard Heck
e7827264e7
Eliminate the hard-coded special handing of chapters. We'll use the
...
new Above LabelType instead.
2013-02-09 13:44:06 -05:00
Richard Heck
32b0e8cbdb
Change LabelType Top_Environment to LabelType Above, and LabelType
...
Centered_Top_Environment to LabelType Centered.
2013-02-09 13:44:06 -05:00
Richard Heck
57d8b059e0
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.
2013-02-09 13:44:05 -05:00
Juergen Spitzmueller
9cbba74a62
Preamble tag for LaTeXFonts ( #8530 )
2013-02-09 11:00:42 +01:00
Uwe Stöhr
33e185e5ed
IEEEtran.layout: support for conference articles
...
- IEEEtran-Conference.lyx: new template for conference articles of the IEEE
2013-02-09 03:23:34 +01:00
Georg Baum
22b7ad2b0a
Implement revision info for git
2013-02-08 21:02:37 +01:00
Richard Heck
99402cd09c
Don't hardcode listings but use InsetLayout.
2013-02-08 09:48:48 -05:00
Richard Heck
f623ded109
Fix bug #7948 by not hardcoding XHTML info for captions but instead
...
using InsetLayout.
2013-02-08 09:30:31 -05:00
Richard Heck
7821022ca0
Fix bug #7947 by using InsetLayout rather than hardcoding things.
2013-02-08 09:19:09 -05:00
Richard Heck
1b7d812e51
Fix really silly logic error. This should make prettyref-based
...
files work better when converted to refstyle.
2013-02-07 08:45:21 -05:00
Georg Baum
2f9ef2b98a
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.
2013-02-06 22:07:31 +01:00
Georg Baum
a3e6c7830c
Fix copy-paste error
2013-02-06 20:38:54 +01:00