Commit Graph

36543 Commits

Author SHA1 Message Date
Guillaume Munch
1f6c451ee3 TexRow for InPreamble
This enables error reporting for the preamble, provided the preamble is written
using the new InPreamble layouts.

In the future, I find it preferable to deprecate the usual preamble in favour of
InPreamble layouts rather than implementing error reporting for the usual
preamble. This requires some improvements to code editing in the buffer view
first (line breaking behaviour, syntax highlighting).
2016-10-17 00:16:59 +02:00
Guillaume Munch
1b4f5970a4 Streamify a docstring
prepare ground for TexRow InPreamble
2016-10-17 00:16:59 +02:00
Guillaume Munch
1f945177b9 Docstringify getLongString in general and preamble snippets in particular
Prepare ground for TexRow InPreamble
2016-10-17 00:16:59 +02:00
Guillaume Munch
6edbc1da66 TexRow for InsetArgument 2016-10-17 00:16:59 +02:00
Guillaume Munch
676a0639c5 Use otexstringstream for the captions of InsetCaptionables
* Enable TexRow for InsetListings caption.

* Move getCaption* from InsetText to InsetCaptionable.

* Clean-up caption generation for InsetFloat.
2016-10-17 00:16:59 +02:00
Guillaume Munch
f3e099960a Gcc 4.6 compatibility :( 2016-10-17 00:16:59 +02:00
Guillaume Munch
f3256ee2cd texstring and otexstringstream
texstring is a pair of a docstring and a corresponding TexRow. The row count in
the TexRow has to match the number of lines in the docstring.

otexstringstream is an output string stream that can be used to create
texstrings (i.e. it's an odocstringstream that records the TexRow information
and let us extract a texstring from it).

texstrings can be passed around and output to otexstream and otexrowstream,
which produces an accurate TexRow information by concatenating TexRows.
2016-10-17 00:16:59 +02:00
Uwe Stöhr
79fd549621 FORMAT: forgot an entry in previous commit 2016-10-16 15:36:31 +02:00
Uwe Stöhr
f179173e42 support for the languages Bosnian, Friulian, Macedonian, Piedmontese and Romansh
- file format change
- note that I could not update the tex2lyx test files because of bug #10440
2016-10-16 15:33:23 +02:00
Uwe Stöhr
1feeefb2b1 Development.lyx: a MSCV specific update 2016-10-16 15:30:51 +02:00
Uwe Stöhr
2974e1a3db Development.lyx: Updates
- the range of file format does no longer need to be updated
- mention rule 6 of the documentation policies
2016-10-16 14:52:46 +02:00
Uwe Stöhr
10e90ad78c Win build: fix a typo 2016-10-16 14:33:18 +02:00
Uwe Stöhr
6e695290a2 Win installer: extend list of supported babel packages 2016-10-16 14:31:46 +02:00
Juergen Spitzmueller
f089f60f4e Implement wrapping in next-change (#10388). 2016-10-15 16:34:16 +02:00
Uwe Stöhr
3a6af2c1a4 Customization.lyx: use change tracking for the changes made in 0eb651a2 2016-10-15 01:44:14 +02:00
Juergen Spitzmueller
b30de672d0 enumitem.module: handle resume counter
Uses the new counter tags.
2016-10-14 20:09:54 +02:00
Juergen Spitzmueller
a85fa80060 linguistics.module: proper example counters
Uses the new counter tags.
2016-10-14 20:09:25 +02:00
Juergen Spitzmueller
0eb651a2cf New layout tags for better counter handling
* ResumeCounter: allow to resume an (enumerate) counter
* StepMasterCounter: allow to increase a master counter
2016-10-14 20:08:12 +02:00
Juergen Spitzmueller
91f5d90971 Fix label display in linguistic examples
Ideally, we would use a proper counter here, but this seems to be
impossible with the current counter mechanism.

What we would need is a counter that is incremented when either of the
layouts is used. Currently, the counter seems to be stepped only inside
one layout.

The current fix is a candidate for stable.
2016-10-14 11:45:32 +02:00
Jean-Marc Lasgouttes
84050268ee Remove useless #include
Including MathData.h in InsetMath.h is expensive and not required.
2016-10-14 11:08:04 +02:00
Uwe Stöhr
08b3039464 Win installer: new version with Qt 5.6.2 2016-10-14 00:36:28 +02:00
Uwe Stöhr
f30cd5b6a1 Win installer: uses now NSIS 3 2016-10-13 02:07:30 +02:00
Kornel Benko
90adb4f314 Cmake export tests: Introduce 'LYX_DEBUG_LATEX' environment variable.
Setting this variable to '1' will include also latex messages in
ctest log file LastTest.log.
2016-10-12 14:35:23 +02:00
Scott Kostyshak
892593fbdc Change default working directory from ~/ to "."
Note that the lyxrc.document_path variable corresponds to what we
call the "Working directory" in the GUI preferences dialog.

Setting document_path to "." makes it so when LyX is started from a
directory, that directory is the default path for many of LyX's
operations, such as the following:

- new file, new from template
- adding a custom BibTeX file
- GUI compare dialog
- local layout button in document settings
- external material file browser
- graphics browser, include browser

The best guess for where the user wants to save or find files is the
directory the user started LyX from. Before, the default was always
the home directory. If desired, the old behavior can be restored by
changing the default path in Preferences > "Working directory".

This commit takes advantage of 9b64d7bd, which allows the use of a
relative path for path preferences.
2016-10-11 22:25:42 -04:00
Uwe Stöhr
5022ad51cb Win installer: update some dictionaries
there is now a separate thesaurus for Australian available
2016-10-12 02:24:01 +02:00
Uwe Stöhr
88bbce9b7e uk.po: translation updates from Yuri for master
(he also sent an update for 2.2.x but unfortunately a day too late)
2016-10-12 02:21:21 +02:00
Uwe Stöhr
ca9e16e73d Win installer: changelog for LyX 2.2.2 2016-10-11 02:30:58 +02:00
Uwe Stöhr
7cdc6b5367 Win installer: remove outdated actions for Belarusion
there is now the package babel-belarusian available since a while
2016-10-11 02:30:08 +02:00
Günter Milde
971025b80d custom ctest sample: Accented Cyrillic characters fail if the input encoding is ASCII. 2016-10-11 00:38:17 +02:00
Günter Milde
9c0f829d12 lib/unicodesymbols fixes and tests
Unicode blocks 125, 152, and 246
2016-10-11 00:38:17 +02:00
Uwe Stöhr
ef4594c71e French UserGuide.lyx: back to format of 2.2
Sorry for this, but see the last "rule" of the documentation guidelines: don't upgrade the fileformat unnecessarily
2016-10-10 23:47:33 +02:00
Günter Milde
16c26f909c seminar ctest fixes
* custom non-tex fonts with all required characters
* use 2.2 fileformat (easier backporting)
* test all export formats

Also, fix pattern for "mixing_inTitle_layouts" in unreliableTests.
2016-10-10 14:14:33 +02:00
jpc
65505ba879 Typo pointed out in the lyx-fr mailing list 2016-10-10 11:18:13 +01:00
Uwe Stöhr
16822a8a8e Development.lyx: small change from Scott 2016-10-10 02:45:05 +02:00
Enrico Forestieri
ded8b1b3da Remove context help button hint from file dialogs
This removes the useless '?' button that appears in Windows builds
when using non-native dialogs. Complements cf26d53e.
2016-10-10 01:25:07 +02:00
Scott Kostyshak
f411040a33 Further amend 168d3557 to satisfy GCC 4.6
GCC 4.6 does not support non-static data member initializers.

As Guillaume points out, changing to static does not change the
intent.
2016-10-09 18:08:42 -04:00
Scott Kostyshak
5fd21db9d4 Amend 168d3557
I forgot to append an underscore for the private data member.
2016-10-09 17:22:22 -04:00
Scott Kostyshak
168d355721 Factor out magic zoom minimum to a const member
The limit of 10% is used in both getStatus() and dispatch() to set a
minimum zoom level. Having it centralized makes the code more
readable and makes changing the minimum less error-prone.
2016-10-09 17:18:07 -04:00
Scott Kostyshak
6a0e5571c5 Whitespace 2016-10-09 17:18:07 -04:00
Guillaume Munch
e45bf2fbb9 Add Daniel to credits 2016-10-09 20:12:31 +02:00
Daniel Ramöller
cf26d53e03 Remove question marks from Windows dialogs 2016-10-09 19:50:34 +02:00
Guillaume Munch
071eed8664 Remove unused variable warning 2016-10-09 19:48:15 +02:00
Günter Milde
52fbe6ea26 lib/unicodesymbols: fix test sample
The package "dictsym"provides symbols for maps and dictionaries.
Should it be used in unicodefonts or is it "too exotic"?
2016-10-08 22:48:13 +02:00
jpc
014c03af7b Update fr.po 2016-10-08 19:07:18 +01:00
jpc
8406b8c17b Wrong format number 2016-10-08 18:05:48 +01:00
Günter Milde
efa844702c unicodesymbols fixes.
force=utf8 is required for most characters provided by add-on packgages
and (almost) all mathematical characters, because these are not
set up for inputencs utf8

unicodesymbols.py failed here (python 2.7 under Linux) before the simple fix
included in this commit.
2016-10-08 16:57:52 +02:00
jpc
a214d95513 lettre: remove old workaround about page format in layout and update template 2016-10-06 13:52:16 +01:00
Guillaume Munch
2717ef114c Add the customary 1-pixel gap before MathMacroTemplate to better see cursor 2016-10-06 01:35:29 +02:00
Guillaume Munch
5aa3164d21 Make the border of hullRegexp pixel perfect 2016-10-06 01:32:21 +02:00
Guillaume Munch
324e5571ca Fix borders of InsetMathGrid
* New virtual functions leftMargin() and rightMargin() to get rid of
  drawWithMargin()

* Factor and rewrite code for borders.

* Fix several offset calculations.

Known issues:

* Borders of multicols look too good and do not correspond to the pdf
  output. (non-regression)

* Bounding box for Hull (Regexp) not pixel-perfect.

* Bounding boxes of Diagram, XYmatrix, are too tight when there are
  borders. Also border should be disabled. (non-regression)
2016-10-06 01:11:49 +02:00