Commit Graph

5115 Commits

Author SHA1 Message Date
Enrico Forestieri
1ef605f625 Introduce a wrapper class for odocstream to help ensuring that no
blank lines may be inadvertently output. This is achieved by using two
special iomanip-like variables (breakln and safebreakln) in the lyx::
namespace. When they are inserted in the stream, a newline is output
only if not already at the beginning of a line. The difference between
breakln and safebreakln is that, if needed, the former outputs '\n'
and the latter "%\n".
In future, the new class will also be used for counting the number of
newlines issued. Even if the infractrure for doing that is already in
place, the counting is essentially still done the old way.
There are still places in the code where the functionality of the
class could be used, most probably. ATM, it is used for InsetTabular,
InsetListings, InsetFloat, and InsetText.
The Comment and GreyedOut insets required a special treatment and a
new InsetLayout parameter (Display) has been introduced. The default
for Display is "true", meaning that the corresponding latex
environment is of "display" type, i.e., it stands on its own, whereas
"false" means that the contents appear inline with the text. The
latter is the case for both Comment and GreyedOut insets.
Mostly, the only visible effects on latex exports should be the
disappearing of some redundant % chars and the appearing/disappearing
of null {} latex groups after a comment or lyxgreyedout environments
(they are related to the presence or absence of a space immediately
after those environments), as well as the fact that math environments
are now started on their own lines.
As a last thing, only the latex code between \begin{document} and
\end{document} goes through the new class, the preamble being directly
output through odocstream, as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37360 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 02:41:13 +00:00
Pavel Sanda
68393ecd7d Add Tommaso to credits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37356 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 23:06:05 +00:00
Richard Heck
5123774bd1 Fix lyx2lyx problem with sweave files and ParBreakIsNewline.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37353 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 19:48:03 +00:00
Pavel Sanda
b2d2fdf1ee Thanks to Jose.
BTW I see some people like Stephan have quite up-to-date entries :)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37352 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:53:37 +00:00
Pavel Sanda
3b47546b99 Update info in credits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37351 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:45:08 +00:00
Edwin Leuven
023c4872c5 update totem correctly (and revert r37349)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37350 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:28:11 +00:00
Edwin Leuven
bb1c6c1a6a update my totem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37349 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 14:02:52 +00:00
Pavel Sanda
79b6602190 Add Patrick to credits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37346 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:05:01 +00:00
Pavel Sanda
0bdd36fe8f Another glitch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37345 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:59 +00:00
Pavel Sanda
45a6a545e2 Bug in fixltx2e entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37344 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:57 +00:00
Pavel Sanda
db7c388b92 Add the rest into LaTeXConfig.lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37343 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:55 +00:00
Pavel Sanda
42785e6219 Bug #7095: Support fix-cm.sty
Patch from Patrick Atamaniuk.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165122.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37342 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-28 10:04:52 +00:00
Jean-Marc Lasgouttes
fe54f0c341 Finish fixing bug #6623 (Sweave cannot read local files)
* in converters, make sure that $$p and $$r are slash-terminated paths (like in viwers, BTW)
* pass the full intput path to lyxsweave.R


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37337 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-27 11:14:32 +00:00
Pavel Sanda
58c02a5e5b * LFUNs.lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37331 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-26 18:24:53 +00:00
Jean-Marc Lasgouttes
8a84eeb27a forbid spellchecking in code layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37324 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 14:17:07 +00:00
Pavel Sanda
297a74b7ad MS Word converter -> HTML (MS Word) converter
Patch from Alex Fernandez.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37321 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 10:26:29 +00:00
Pavel Sanda
85e11a9bb8 Spotted by Jim.
These newlines go directly to about dialog and look weird.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37315 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 10:47:01 +00:00
Pavel Sanda
dc0d885f8f Update credits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37308 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 09:18:24 +00:00
Georg Baum
9129b73497 Make r37304 work for builds made from packaged sources
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37305 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-23 19:57:39 +00:00
Edwin Leuven
edf0e85f4b add busy spinner to status bar when threads are running in the background
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37304 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-23 09:17:52 +00:00
Georg Baum
87944eedc7 The roundtrip of the math manual produces a compilable document now:
- translate the arguments of \texorpdfstring, so that the floating footnote
  code gets enabled
- honor the ForcePlainLayout flag of insets like the Index inset
- remove hardcoded \url support, this is handled by the general Flex inset code


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37297 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 12:00:33 +00:00
Enrico Forestieri
dc8adcf1ba Extend instant-preview error handling to the lilypond-book format.
Patch tested by Julien Rioux.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37290 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 22:52:03 +00:00
Georg Baum
85d2c53532 handle commands from xargs.sty correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37289 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 21:21:58 +00:00
Georg Baum
3b90652edc Fix python error:
UnboundLocalError: local variable 'elyxerfound' referenced before assignment


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37286 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 18:23:32 +00:00
Pavel Sanda
1246a70abd Update years
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37284 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 13:24:23 +00:00
Pavel Sanda
2e4c3f98ad Removing support for eLyXer as a module
Patch from Alex Fernandez.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165022.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37279 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 00:47:13 +00:00
Enrico Forestieri
46cb01a5e0 Fix bug #6720 (Better error handling of instant preview)
Patch from Ale revised by me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37274 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-20 23:39:08 +00:00
Richard Heck
06ee6bde14 Fix bug #7214 as best we can. The point here is that we only
want to add the \clearpage if the class has chapters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37266 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-20 16:38:41 +00:00
Richard Heck
924ac8a5a1 Fix several layout related problems revealed by -dbg tclass.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37265 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-20 16:28:42 +00:00
Georg Baum
96bcf145d9 Fix conversion of nested box insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37264 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 22:04:45 +00:00
Richard Heck
7e7f98532d Silly typos. Thanks, Stephan.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37256 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 23:11:27 +00:00
Richard Heck
18a015081b Update prefs2prefs again. Thanks Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37255 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 19:35:54 +00:00
Richard Heck
bc176dc904 Add conversion of \language_use_babel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37254 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 16:50:43 +00:00
Richard Heck
e5b25ce78e Update all of our bind and ui files to format 1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37253 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:42:27 +00:00
Richard Heck
8f207c5736 Thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37251 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:40:07 +00:00
Richard Heck
054dfe3c00 Improve the prefs2prefs scripts a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37250 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:37:20 +00:00
Richard Heck
dfb67984f2 Conversion routines for preference files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37233 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 20:28:43 +00:00
Richard Heck
f97bc9b9e7 A little more work on prefs2prefs.
More to come, Pavel!



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37225 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 03:59:43 +00:00
Pavel Sanda
aac2310ea0 Some very old spots from Ignatio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37221 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 20:51:20 +00:00
Pavel Sanda
a33aa0632d Make sweave example working. Patch from Liviu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37220 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 20:30:02 +00:00
Pavel Sanda
9d76ec23d5 Add comment to sweave
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37219 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 20:11:02 +00:00
Richard Heck
1b98ec3e99 Don't need these.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37212 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-14 18:25:00 +00:00
Richard Heck
b0676249eb Update to documentation concerning unavailable packages, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37208 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-13 21:25:10 +00:00
Richard Heck
b0eaa25e77 Doc for NoCounter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37202 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-13 15:52:59 +00:00
Richard Heck
874e867953 Update all layouts to format 31.
Should have done this first!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37196 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 23:20:07 +00:00
Richard Heck
a9411446ee Add NoCounter to layouts that need it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37195 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 23:19:02 +00:00
Richard Heck
d32ed4ff4e Add NoCounter lines to inc files that need them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37194 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 23:12:28 +00:00
Richard Heck
49436e4c2d Add NoCounter layout tag. When working on output of equation numbers, I
noticed that article, for example, still has a counter "chapter". This
surprised me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37193 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 22:53:41 +00:00
Georg Baum
acd57ccaaf Fix language handling in tex2lyx:
- Add missing babel synonyms (taken from a standard TeXLive 2010 install).
  Some synonyms might still be missing (if they are defined not by babel
  itself, but additional packages). Adding these is now simple: Only
  known_languages and known_coded_languages need to be touched.
- Translate babel language name arguments of \foreignlanguage and
  \selectlanguage to LyX names.
- Translate second argument of \foreignlanguage to LyX.
- Cleanup mixed language names in the preamble parser: Now all checks are
  done with LyX names, not a mix of babel and LyX names. This sets correct
  quotes even if the language as given as an alias.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37188 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 21:04:39 +00:00
Pavel Sanda
2e3953cb03 Update enumitem module and add documentation for it.
From Guenter Milde.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37182 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 10:12:14 +00:00