Uwe Stöhr
b6192b7c7f
texlyx: re-privatize a variable as suggested
2012-06-27 22:32:36 +02:00
Uwe Stöhr
62db3d535d
tex2lyx: fix some issues spotted by Vincent
2012-06-27 02:52:09 +02:00
Uwe Stöhr
2e8ed3b3b5
tex2lyx: support fontspec scale option
...
Preamble.cpp:
- support the font scaling
- improve coding style
text.cpp: - improve logic/coding style
XeTeX-polyglossia.tex:
- add scaling
- change document so that it is compilable using the Libertine font
2012-06-26 00:46:02 +02:00
Uwe Stöhr
d3bcdb24cc
tex2lyx/text.cpp: fix bug #8223
...
LyX does not yet support \framebox without an option we therefore cannot use our parse_outer_box routine (this is only for supported boxes)
2012-06-25 22:58:21 +02:00
Jean-Marc Lasgouttes
2a13b02a94
Fix bug #8220 : tex2lyx crashes on single-character commands
...
Fix commit [aa9fed93/lyxgit]: it is never a good idea to call substr(4) on a string without checking its length. Moreover, it is even better in this case to check that the first letters are "text" as the reminder of the code assumes...
2012-06-25 11:04:56 +02:00
Uwe Stöhr
5ad84b9fbd
support non-CJK Japanese for tex2lyx
...
We cannot know the exact encoding and thus con only assume one (the one that Koji uses for the docs) and output a not at the beginning
2012-06-24 18:10:36 +02:00
Uwe Stöhr
e7d1e5b0c9
tex2lyx comment corrections
...
tex2lyx/Preamble.cpp, tex2lyx/text.cpp: add info about CJK languages
2012-06-24 14:39:57 +02:00
Uwe Stöhr
a3f4f2d1e3
CJK support for tex2lyx
...
- support as best as possible; setting a document language is however not possible
- fixes bug #4377
2012-06-24 06:38:33 +02:00
Uwe Stöhr
89b8f380cc
tex2lyx/text.cpp: 2 typos
2012-06-23 05:20:39 +02:00
Uwe Stöhr
828f7171e8
- tex2lyx: support for the polyglossia language variants
...
- XeTeX-polyglossia.tex: simplifications, added some more testcases
2012-06-23 04:28:52 +02:00
Uwe Stöhr
f1f63fcad0
tex2lyx/text.cpp: whitespace fix
2012-06-23 00:53:35 +02:00
Uwe Stöhr
73f0f4dd6c
- Preamble.cpp: handle \setxxxlanguage with options
...
- text.cpp: handle the commands \textxxx with options
- XeTeX-polyglossia.tex: add 2 more testcases
2012-06-22 17:19:46 +02:00
Uwe Stöhr
e8f4ce5726
tex2lyx/text.cpp: \lang is already handled by parse_text
2012-06-22 04:41:08 +02:00
Uwe Stöhr
aa9fed9322
- tex2lyx/text.cpp:
...
- bugfix for the parsing of polyglossia's paragraph environments
- new support for polyglossia's language change commands \textxxx
- XeTeX-polyglossia.tex: add more testcases and add a missing \end
2012-06-22 03:41:00 +02:00
Uwe Stöhr
2872f35a51
- FORMAT: document latest change
...
- tex2lyx/text.cpp: fix a comment
2012-06-08 02:42:22 +02:00
Uwe Stöhr
7eca5d94d1
- support a bunch of new languages (fileformat change)
...
- tex2lyx support for
- fontspec fonts
- polyglossia
2012-06-08 02:37:36 +02:00
Richard Heck
c1e3d795f6
A few more small optimizations noted along the way.
2012-05-28 18:21:22 -04:00
Jean-Marc Lasgouttes
a756403301
"Performance" fixes suggested by cppcheck
...
While cppcheck did not turn out any suspicious error messages, using
the "performance" flag highlighted several nitpicks in three categories
* do not use it++ for iterators, ++it is better
* do not use size() to test for emptyness, empty() is here
* do not use "const T" as a function parameter, "const & T" is better
I doubt that any of these is a real performance problem, but the code is cleaner anyway.
2012-05-28 22:42:44 +02:00
Georg Baum
c1965123ed
Fix bug #8104 (\date argument was eaten)
...
I introduced this bug in r40091 where support for empty dates was added.
I also noticed that the title_layout_found flag was not properly passed down
to all variants of parse_text*. Since this is rather a global variable I
placed it into the preamble class.
The test case of bug #8104 shows other problems as well, but those are no
regressions and will be fixed separately.
OK for branch?
2012-04-19 20:46:08 +02:00
Georg Baum
27733452f7
Native support for \lstlistoflistings
2012-04-16 21:40:59 +02:00
Georg Baum
1a6c599917
Extend the notermination flag to math as well.
...
Math commands need it as well as text commands. At the same time, this
further unifies the checking for termination and fixes cases of wrong
output (e.g. for 0x2005).
2012-03-25 15:57:38 +02:00
Uwe Stöhr
8e72135a3f
tex2lyx/text.cpp: code improvement as proposed by Georg
2012-03-15 02:10:13 +01:00
Uwe Stöhr
408728aed9
tex2lyx: support for inline listings (fixes last part of #8066 )
...
OK also for branch?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40860 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 22:04:22 +00:00
Uwe Stöhr
9c5a8b3224
tex2lyx/text.cpp: clarify a comment and add a question
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40857 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 01:51:19 +00:00
Uwe Stöhr
80d0710422
- text.cpp: full tex2lyx support for lstlisting (support for \lstinline will follow soon)
...
- test/test-insets.tex: add a more advanced examples
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40856 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-05 01:45:14 +00:00
Uwe Stöhr
b2a03f4e67
tex2lyx/text.cpp: whitespace fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40853 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-04 14:18:33 +00:00
Uwe Stöhr
df95041141
- text.cpp: - fix tex2lyx parsing of verbatim environments
...
- Parser.cpp: - new function to parse verbatim environments
- test/test-structure.tex: updated example
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40850 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-04 13:27:53 +00:00
Georg Baum
c2748157bb
Fix parsing of \sindex{stuff} and \sindex[]{stuff}
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40826 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-01 20:37:34 +00:00
Uwe Stöhr
0d165bf5d6
tex2lyx/text.cpp: a fix and a clarification
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40813 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-29 22:39:21 +00:00
Georg Baum
190ab4774d
Import \sindex correctly
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40804 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-28 20:34:50 +00:00
Uwe Stöhr
8bca3e510f
- text.cpp: escape backslashes in verbatim, fix a thinko
...
- test-structure.tex: add verbatim testcase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40798 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-27 00:55:57 +00:00
Uwe Stöhr
05446b232f
support for verbatim: step 2: tex2lyx support
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40785 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-20 23:38:13 +00:00
Julien Rioux
e6051e1559
Update tex2lyx to format 420. Determine the default style
...
from the citation package being used or from a \bibliographystyle
command in the preamble, if any>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40499 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-14 01:11:18 +00:00
Julien Rioux
9a101c7bef
Remove extra whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40498 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-14 01:08:54 +00:00
Georg Baum
9b8773826c
do not hardcode packages loaded by external insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40491 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-13 19:40:05 +00:00
Uwe Stöhr
6682ae0d90
tex2lyx/text.cpp: remove development residue
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40481 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-11 23:20:23 +00:00
Uwe Stöhr
2cc4d6ae25
tex2lyx/text.cpp: add a missing ',' and use LyX's method to remove the file extension (thanks Georg)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40480 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-11 23:17:02 +00:00
Georg Baum
bb0432d74a
Beautify output of \usepckage statements (each statement is on its own line
...
now) and move more packages to the new exclude mechanism.
The remaining ones are not so easy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40442 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-08 20:05:51 +00:00
Uwe Stöhr
b947a8eea1
tex2lyx/text.cpp: a method to fix #7897
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40431 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-07 22:48:44 +00:00
Uwe Stöhr
75cbb27e5c
tex2lyx Preamble.cpp, text.cpp: fix #7845 also for spreadsheet template
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40424 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-07 21:21:22 +00:00
Uwe Stöhr
faaccd6605
tex2lyx: support for pdfpages
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40368 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 00:57:42 +00:00
Georg Baum
169bc143cb
fix parsing of \def macros (was broken with the spreadsheet template support)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40363 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 16:00:00 +00:00
Georg Baum
5a525d932f
Move some more packages from unconditionally swallowing to the package
...
registration mechanism, so that they are only swallowed if LyX will load them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40315 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 20:09:40 +00:00
Georg Baum
529a018bc3
Fix parsing of stuff with ] in \item arguments (part of bug #6127 )
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40295 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-27 13:29:56 +00:00
Georg Baum
76c5902b40
Parse the picture variant of \framebox correctly (part of bug #6449 )
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40294 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-27 11:57:47 +00:00
Uwe Stöhr
2906a35663
tex2lyx: support for Spreadsheet and chess external templates
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40270 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-25 01:01:45 +00:00
Georg Baum
76e90badc0
Beautify documents created by writer2latex (see bug #5187 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40235 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 20:30:12 +00:00
Georg Baum
0d28af3fba
make a bit room for more ifs
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40225 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 17:03:00 +00:00
Georg Baum
76731046f0
Fix bug #7895 : Do not output lines with only a single space.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40193 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-14 21:00:47 +00:00
Georg Baum
a1cef2d55a
Fix bug #3036 : font changes inside \markright do not escape outside their scope
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40186 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 16:11:45 +00:00