Commit Graph

9167 Commits

Author SHA1 Message Date
Juergen Spitzmueller
8536fc1dfa Basic field documentation 2018-08-05 11:18:24 +02:00
Juergen Spitzmueller
8be9e8f3bb Style 2018-08-05 10:19:25 +02:00
Juergen Spitzmueller
e730234e57 Add date-related info insets
With this commit, info insets leave the dark backstage room of an opaque
and quite hidden dev-only feature and come frontstage.

In the UI, they present themselves as "Fields" since this is what people
know from word processors. Other user-related fields that could be
implemented next: time, user name (I plan to do that for 2.4).

Since this supersedes date-insert, I removed Insert > Date from
the menu and propose to ditch date-insert and the corresponding rc.

The lyx2lyx reversion routine has lots of room for improvement and
attractive tasks for pythons (file timestamp, switch of localization).
Please feel invited!

This is a file format change.
2018-08-05 10:01:36 +02:00
Kornel Benko
a1a174f3d2 Add default language to make RJournal.lyx compilable again 2018-08-05 09:09:47 +02:00
Kornel Benko
a96845660e Do not increment start for find(phrase) while looping over phrases
The increment will be done at the end of the for-loop.
2018-08-02 22:51:36 +02:00
Juergen Spitzmueller
f675fe95c9 auto-nest beamer note item in list
candidate for stable
2018-08-01 16:16:46 +02:00
Kornel Benko
7f3fd5a809 lyx2lyx: Use correct check for emty lines while converting Begin/EndFrontmatter
* Coversion now tries not to pollute the result with emty lines
* stripped some trailing spaces
2018-07-31 13:44:48 +02:00
Kornel Benko
f8f9eec358 Amend 3e92efd: Remove (Begin|End)Frontmatter in elsarticle
1.) Revert changes in elsarticle.lyx
2.) upgrade format to 558
3.) added missing lyx2lyx routines
2018-07-30 13:44:01 +02:00
Juergen Spitzmueller
358436ea1e Split vcs Info inset from buffer Info inset
This should go separately in the GUI, and thus in the inset.
2018-07-29 19:41:34 +02:00
Juergen Spitzmueller
e38db01a0b Add Gilbert Forkel to the Credits 2018-07-29 15:24:45 +02:00
Enrico Forestieri
0056867be8 Fix bug #11214
The checkProg() function was separating a command from its parameters
by splitting at the first space. This was a problem if the command
was specified with a full path containing spaces. Now the checkProg()
function separates a command from the parameters by splitting at the
first non-quoted space. So, it suffices quoting a path to solve the
issue.
2018-07-28 23:07:17 +02:00
Kornel Benko
3e92efd118 Replace styles '(Begin|End)Frontmatter' with environment in elsarticle
No change in tex or pdf output.
This does not help in compiling, but still feels more natural.
2018-07-28 14:30:25 +02:00
Juergen Spitzmueller
df33cc3334 Add Winfred Huang to the Credits 2018-07-28 09:33:43 +02:00
Juergen Spitzmueller
f8e286b823 Use footnotehyper rather than footnote if hyperref is used
Fixes: #11212
2018-07-25 18:01:22 +02:00
Juergen Spitzmueller
b12ea3b731 Fix austrian language code\n\nCandidate for stable. 2018-07-25 14:59:21 +02:00
Richard Kimberly Heck
4549f46a43 Speed up convert_literalparam. Part of #11200. 2018-07-21 22:49:49 -04:00
Richard Kimberly Heck
8573391aee Try to speed up convert_phrases by re-ordering the loops. Part of #11200. 2018-07-21 22:32:39 -04:00
Richard Kimberly Heck
96ea84e042 Speed up convert_specialchars. Part of #11200. 2018-07-21 22:18:22 -04:00
Richard Kimberly Heck
4cb209b121 Speed up convert_captionlayouts. Part of #11200. 2018-07-21 22:18:09 -04:00
Juergen Spitzmueller
9b76237bfe farsi needs LAE encoding as well 2018-07-21 16:00:40 +02:00
Scott Kostyshak
7b57685048 Hebrew docs: No need to mark logos as English
Thanks to the fix to #10423, we can leave e.g. \LyX and \LaTeX as
the default language (which is Hebrew for these document).
2018-07-16 05:13:32 -04:00
Juergen Spitzmueller
1e5acc5656 Fix command line output of convertDefault.py for ImageMagick
Part of #11186
2018-07-13 10:20:26 +02:00
Juergen Spitzmueller
3fde6b5ecc Minor doc tweaks/corrections 2018-07-08 12:38:56 +02:00
Kornel Benko
526380da04 Revert "Remove dependences from .layout files"
Some styles are not second-level dependencies

This reverts commit 92c8a86407.
2018-07-07 16:10:45 +02:00
Juergen Spitzmueller
e6e3777363 Add support for bib files encoding
File format change.

Fixes: #6223
2018-07-07 15:25:35 +02:00
Kornel Benko
92c8a86407 Remove dependences from .layout files 2018-07-07 14:13:40 +02:00
Kornel Benko
41d86ff9e1 Amend 8da02501, Add bindings for inset-settings
Added binding to emacs.bind too
2018-07-07 11:29:40 +02:00
Juergen Spitzmueller
34c04ebce6 Amend 9f9041db7a
move cl2emult to obsolete category
2018-07-06 14:36:41 +02:00
Juergen Spitzmueller
67de09b51e Remove entry for obsolete class. 2018-07-06 10:12:51 +02:00
Juergen Spitzmueller
9f9041db7a Use more informative descriptions fro Springer layouts 2018-07-06 10:09:13 +02:00
Juergen Spitzmueller
73e0a6c4d5 Update elsarticle entry in LaTeXConfig 2018-07-05 19:28:56 +02:00
Kornel Benko
650ef5f1cb dtk.layout: Remove secondary dependencies due to change in TL2018 2018-07-05 17:54:55 +02:00
Juergen Spitzmueller
981e76a02c Fix typo 2018-07-05 17:49:46 +02:00
Jean-Marc Lasgouttes
2c9e019a62 Make toolbar icons like Itemize toggle
Copy the old layout_* icons to layout-toggle_*

Fixes bug 9864.
2018-07-04 12:11:24 +02:00
Juergen Spitzmueller
68f6c671c5 Fix another encoding problem in ja/ 2018-07-03 12:37:25 +02:00
Juergen Spitzmueller
1a96b0d184 Fix input encoding issue with German example text
pLaTeX requires SJIS encoding, so only ASCII latin is possible.
2018-07-03 11:31:39 +02:00
Juergen Spitzmueller
9dcb24d578 Support varwidth's V tabular column type
This effectively enables linebreaks, multipars and layout changes in
non-fixed width (i.e., standard) table columns.

Fixes: #6577

TODO: metrics are wrong (too wide) on screen with linebreaks.
2018-07-01 19:18:38 +02:00
Juergen Spitzmueller
f38816bf16 Add support for tabularx/xltabular
I.e., variable width columns in single and multiple page tables

Files format change.

Fixes: #4154, #4155
2018-06-24 10:05:15 +02:00
Kornel Benko
25ff03d120 Cmake tests: Adapt some keytests due to changed key-bindings 2018-06-23 19:00:04 +02:00
Kornel Benko
1803d788f7 Cmate tests: Amend aca3031
The script checkKeys.pl.in was mentioned but not added to the previous commit.
2018-06-09 09:48:41 +02:00
Kornel Benko
aca3031352 Cmake tests: Added check to inspect created pdf in test "AMS-import"
If the command "comparepdf" is found, it will be used.
Also the script lyx_batch.pl is now easier to expand for
possible new comparision tools.
2018-06-09 09:15:21 +02:00
Richard Heck
f17f5617e0 Fix bug #7404.
This allows for external editing of ERT insets. Original patch
by Georg Baum. Updated to 2.4dev by Riki Heck.
2018-06-05 23:13:54 -04:00
Kornel Benko
f5732bef83 Disable GUI for our batch tests if using QT5
Thanks to Enrico for this params
2018-05-26 13:30:30 +02:00
Kornel Benko
49603e91aa Cmake batch tests: Generalize lists of files in test.
Each source file is to be copied to the test directory
Created files are to be compared to the corresponding expected file (if it is not set to "undef")
2018-05-25 17:19:34 +02:00
Kornel Benko
3319664d53 Cmake batch tests: Check also if all expected files are created 2018-05-25 13:59:47 +02:00
Kornel Benko
1a36fee79d Added testcase for ticket #11156
The test is named "AMS-import", with defined test-labels 'tex2lyx' and 'batch'
2018-05-24 20:49:11 +02:00
Juergen Spitzmueller
98621be1ba Support \cite command in tufte classes
This is an extra command used for sidenote citations. Since we do not
provide \cite with natbib (which tufte uses) as a choice, we use the
new AddToCiteEngine feature to add it.

File format change.

Fixes: #11150
2018-05-21 13:46:04 +02:00
Juergen Spitzmueller
bbf287a3c6 Allow for cite engine and format definitions/modifications in layouts
Now layout files and modules can extend the cite engines or completely
overwrite them, and modify the cite formats.

Any CiteEngine definition in a layout/module will completely overwrite
those by cite engine files.

AddToCiteEngine will extend them (add if they do not exist yet).

Any CiteFormat definition in a layout will be preferred to those in cite
engines. CiteFormat definitions that are not touched by the former are
still active, though (so, as opposed to CiteEngine, a CiteFormat does
not completely overwrite those by the engine files).

Layout format change.
2018-05-21 12:46:53 +02:00
Juergen Spitzmueller
ff0db7452e Remove insane list of requirements 2018-05-19 10:28:50 +02:00
Stephan Witt
17c3617c49 #11142 correct list of previous version to check for user directory contents
LyX on Mac uses a user directory with version suffix. On change of the version suffix the existence of the directories with previous versions is checked and the latest one is used for a copy on first configure run. For 2.4 the candidate list starts with 2.3 now as it should.
2018-05-13 20:15:35 +02:00
Juergen Spitzmueller
7a5184fd87 Disallow paragraph customization in some single-par charstyle insets
Fixes: #9192
2018-05-11 13:47:27 +02:00
Juergen Spitzmueller
5007bc0fb1 Document float alignment settings 2018-05-11 12:59:26 +02:00
Juergen Spitzmueller
aa9543fa2b Add support for global float alignment
It is now possible in the float settings (doc dialog) to specify a global
(inner) alignment for floats, and in the float settings, this can be
overridden (just as with float placement)

Fixes: #8665

File format change.
2018-05-10 20:15:11 +02:00
Scott Kostyshak
2389580c27 Fix menu accelerator conflict 2018-05-10 13:24:23 -04:00
Juergen Spitzmueller
e17498d90c Correct German translation
"Benutzerdefiniert" means "user defined", which is not what "custom"
means here (custom insets/text styles are usually not user defined,
but provided by a class/module).
2018-05-08 08:38:44 +02:00
Juergen Spitzmueller
3313e7d0ab Separate Text Styles and Text Properties 2018-05-08 07:46:53 +02:00
Juergen Spitzmueller
96acb9c3cc Improved oxygen icons for dynamic menus 2018-05-07 18:42:35 +02:00
Enrico Forestieri
dc0b21525b New icons for dynamic inset and charstyle menus.
These icons are more in line with the default theme, IMHO.
2018-05-07 11:55:47 +02:00
Juergen Spitzmueller
de8302523b Document nospellcheck 2018-05-07 09:28:55 +02:00
Juergen Spitzmueller
653bbd27fe UserGuide: Reset > Default 2018-05-07 09:14:55 +02:00
Juergen Spitzmueller
57dc817581 Add \nospellcheck font property
This revives a ten year old idea (and patch) by Dov.

You can now mark in the character dialog text and exclude it from spell
checking.

Fixes: #1042

File format change

Remaining issue: The instant spell checking marks are not immediately
removed, but only after some editing.
2018-05-06 19:48:21 +02:00
Richard Kimberly Heck
40a61357af Try some new icons for new dynamic inset and charstyle menus.
Suggestions by Pavel. Also move menus on toolbars per his suggestions.
2018-05-06 13:39:17 -04:00
Juergen Spitzmueller
4c8883b0e1 UserGuide: Adapt to new character dialog.
Also differentiate more between (semantic) Character Styles and (formal)
Text Properties.
2018-05-06 14:17:28 +02:00
Juergen Spitzmueller
09b2e337f7 Make textcommabelow feature conditional on encoding 2018-05-05 15:43:54 +02:00
Günter Milde
94c97feb76 Use combining accents instead of ERT for accented cyrillic letters.
Combining accent charactrs were not supported at the time the Russian
documentation was written. Eventual display problems with some GUI
fonts are still less distracting  than ERT.
2018-05-04 15:29:56 +02:00
Günter Milde
fa35f552cd Drop "force" from replacements for letters with comma-below accent. 2018-05-04 15:29:12 +02:00
Richard Heck
cc4bfc7f04 Add toolbar menus for custom insets and character styles.
I'm open to putting this elsewhere on the toolbar, or even on a
different toolbar. Also, we need decent icons. These ones are not
intended seriously but were just borrowed for testing purposes.
Anyone have good ideas about icons?
2018-05-02 20:31:24 -04:00
Scott Kostyshak
065e37e96f Do not use needauth when only exporting code
We have a couple of converters (using Sweave and knitr to "tangle"
an intermediate file) that are used for exporting code chunks
contained in a .lyx file. Since the code is just exported to a text
file and is not executed, needauth is not necessary.
2018-05-02 11:08:51 -04:00
Scott Kostyshak
0d1b981b2b MergedManuals.lyx: remove example files in Note
A Note inset contained two example files. The linguistics example
file caused terminal messages like

  step: Counter does not exist: examplei

An alternative to removing the example file would be to add the
module, but it is not clear we want example files in the merged
file anyway.
2018-05-02 11:08:51 -04:00
Juergen Spitzmueller
efd29cc200 Fix link 2018-05-01 13:30:26 +02:00
Juergen Spitzmueller
0013389864 aa_sample: cosmetics. 2018-05-01 08:16:43 +02:00
Juergen Spitzmueller
0a68c7cb3c de/EmbeddedObjects: make compilable with utf8 encoding 2018-05-01 07:04:15 +02:00
Richard Heck
35afcfb6dd Fix bug 11070.
Allows plural, caps, no prefix to be set via context menu.
2018-04-30 21:29:21 -04:00
Juergen Spitzmueller
444461e294 When using ERT for accent in Russian docs, embrace base character
Otherwise utf8 inputenc chokes.

It is also possible to enter those accented chars directly, but this
results in display problems in the workarea (the line is shifted downwards).
2018-04-30 18:33:27 +02:00
Juergen Spitzmueller
b68bbe8c2e 0x2dd is not covered by utf8 inputenc yet (TL 2018) 2018-04-30 14:50:19 +02:00
Juergen Spitzmueller
768c9a552e cprotect allows to place environments in fragile contexts.
use that possibility.

Fixes parts of #5128.
2018-04-30 09:06:15 +02:00
Juergen Spitzmueller
0423d381e6 Localize slogan on LyX banner
Fixes: #11107
2018-04-29 11:26:25 +02:00
José Matos
94905f9ce3 Use insert_document_option to remove Georgian when reverting.
Less code for the same functionality. :-)
2018-04-28 18:47:32 +01:00
José Matos
08182ead14 Remove spurious spaces at the end of lines 2018-04-28 18:31:31 +01:00
José Matos
ea8b0df0e4 Add new semantic functions to add an remove document options.
The objective is to identify common operations and place them
in functions in order to improve the readability and correctness of the code.

is_document_option(document, option):
  Find if _option_ is a document option (\\options in the header).

insert_document_option(document, option):
  Insert _option_ as a document option.

remove_document_option(document, option):
  Remove _option_ as a document option.
2018-04-28 15:10:09 +01:00
José Matos
91ded82b52 Small improvement to pre-historic file format conversion. 2018-04-28 14:57:57 +01:00
José Matos
1fe328666c Improve the readability of lyx2lyx -l option
Example:
$ lyx2lyx -l
...
2.2     stable format:       508
        stable versions:     ['2.2.0', '2.2.1', '2.2.2', '2.2.3', '2.2.4']
        development formats: 475 - 507

2.3     stable format:       544
        stable versions:     ['2.3.0']
        development formats: 509 - 543

2.4     stable format:       -- not yet --
        stable versions:     -- not yet --
        development formats: 545 - 550
2018-04-28 14:42:31 +01:00
Juergen Spitzmueller
0b2fae66e3 unicodesymbols: add general way to require a feature only for specific encodings
A feature can now be required only for specific input or font encodings:
- <feature>=enc1;enc2...  Require the feature <feature> only if the
                          character is used in one if the specified font
                          or input encodings.
- <feature>!=enc1;enc2... Require the feature <feature> only if the
                          character is used in a font or input encoding
                          that is not among the specified.
2018-04-28 13:31:29 +02:00
José Matos
5b160e82be Update scripts to support simultaneously python 2 and 3
The fixes are simple and on line with the changes made during
the 2.3 development. It was an oversight to leave them out.

With this commit all the python scripts should be supported by
python 2 and 3.
2018-04-28 10:51:35 +01:00
Richard Kimberly Heck
9f79ab99ed Fix bug #11127. 2018-04-27 20:13:58 -04:00
Kornel Benko
b91bc7d602 Correct graphical reference 2018-04-27 10:54:38 +02:00
Juergen Spitzmueller
389352b3fb Add optional flavor flag to needaux
Also, use latex flavor if no flag is given rather than default output
format

Fixes: #9127
2018-04-25 13:51:40 +02:00
Richard Kimberly Heck
8da025014d Add bindings for inset-settings.
Fixes #7762.
2018-04-22 23:56:17 -04:00
Juergen Spitzmueller
26ea1e1496 Align fontenc with document fonts
Following a request by Günter, we consider the document fonts (only rm
for now) when selecting an appropriate font encoding.

See #9741

The new default font encoding setting "auto" does

* consider the font encoding needed by the language(s), which can now
  have fallback alternatives
* Consider which font encoding is provided by the document font

Thus, cm now will result in OT1 fontenc, if the language can deal with
that.

The font_enc pref is ditched: it is no longer needed.

The automatism is still very basic and is subject to extension.

File format and prefs format change.
2018-04-22 19:06:46 +02:00
Kornel Benko
17dc24419a Adapt test outline-beamer' to the synchronous batch export
Also add the 'export'- label to this test
2018-04-22 11:59:19 +02:00
Juergen Spitzmueller
2ed1012ead Document Provides in languages 2018-04-22 09:07:31 +02:00
Juergen Spitzmueller
02d37932d0 \textcyr -> \textcyrillic
Use the command as defined by Babel. This allows us to use the (more
advanced) Babel command if provided instead of rolling our own.

I add a dummy file format change in case it turns out we need to
do something here for old documents (e.g. with user preamble definitions)
2018-04-21 16:28:15 +02:00
Juergen Spitzmueller
71f0dd3a7f Add Provides tag to languages
This allows to specify macros that are provided by specific (Babel)
languages (such as \textgreek)
2018-04-21 15:47:39 +02:00
Scott Kostyshak
6d5e179985 cprotect listings when needed (e.g. in a footnote)
This allows to put a non-inline listing in commands, such as a box,
footnote, and margin note.

Fixes #6177 and #9321.
2018-04-21 00:49:53 -04:00
Scott Kostyshak
88b1c8d521 cprotect Note:Greyedout insets
This is consistent with what we do for Note:Comment, and fixes
compilation of documents with a Greyedout inset inside a float
caption, which was reported here:

https://www.mail-archive.com/search?l=mid&q=20180418192851.GH6006%40atrey.karlin.mff.cuni.cz
2018-04-18 21:34:33 -04:00
Juergen Spitzmueller
2822d91224 Typo
Thanks, Pavel!
2018-04-18 16:51:24 +02:00
Juergen Spitzmueller
97e1806c4a Add a floating landscape inset 2018-04-18 16:20:19 +02:00
Juergen Spitzmueller
2551614ff1 Add Landscape module
Support for the (pdf)lscape package.

Fixes: #10801
2018-04-18 14:36:49 +02:00
Juergen Spitzmueller
feab528fd1 Add support for rotated longtabulars (via [pdf]lscape)
Fixes: #9194

See #9194 for why we use an earlier file format change here.
2018-04-18 13:22:29 +02:00
Juergen Spitzmueller
69596c9278 cprotect knitr chunks 2018-04-15 18:17:35 +02:00
Juergen Spitzmueller
b03c826f27 Whitespace 2018-04-15 12:31:56 +02:00
Juergen Spitzmueller
ef359f58b5 Add cprotection support for paragraph layouts. 2018-04-14 12:57:23 +02:00
Juergen Spitzmueller
e11bda2cea Layout format update after 2ba584957c 2018-04-14 10:28:22 +02:00
Juergen Spitzmueller
2ba584957c Add basic support for cprotect
This allows (some) verbatim contents in macros, such as \url's with
specific chars (#, % etc.) in section headings or footnotes (#449)
or comments in captions (#9313).

The mentioned two bugs are fixed by this commit.

Note that the implementation is still rather basic and might need
extension for other cases.
2018-04-13 17:46:37 +02:00
Juergen Spitzmueller
33bfbf89c4 Load hyperref with a suitable driver
This is mandatory for some features (such as bookmarks,pdfusetitle)
to work, and only a handful of drivers can be auto-detected by hyperref.

Fixes: #6418
2018-04-08 19:02:01 +02:00
jpc
1cbe568d61 Force babel as language package to avoid errors with non-TeX fonts 2018-03-28 11:12:51 +02:00
Pavel Sanda
20ab606975 wasy10 font: fix glyphs codepoints 9,10,12,13.
92680495b follow-up.

pointer:	9 -> 170
bell:		10 -> 171
quarternote:	12 -> 172
halfnote:	13 -> 174

This should be the final one.
2018-03-26 21:54:46 +02:00
Richard Kimberly Heck
aabd3514dc Update version number in lyx2lyx. 2018-03-26 10:41:49 -04:00
Pavel Sanda
022bc036ca * stmary10.lyx 2018-03-23 11:11:21 +01:00
Pavel Sanda
0da254c811 stmary10 font: fix glyphs codepoints 10,12,13.
92680495b follow-up.

minuso: 10 -> 171
sslash: 12 -> 172
bbslash:13 -> 174
varcurlywedge: 9 -> 254 -> 170 (first move by Georg)
2018-03-23 10:18:02 +01:00
Pavel Sanda
92680495bb esint10: attempt on to fix empty symbol glyphs.
With advent of qt5 glyphs on codepoints 10, 12, 13 can't be shown anymore.

In this patch we copy the glyph pairs to new codepoints:
dotsint: 19->41 (this one was already moved by Goerg, now moving to the same block)
oint: 11->43
oiint:13->45

I couldn't find fix where both qt4 & qt5 would show correct results,
so this patch fixes qt5 situation, but breaks qt4, which hopefully
won't be needed for master.
Testing and debuging is somewhat tricky, becuse qt sometimes prefer to
load global fonts in /usr/share while ignoring the local git tree.

To be continued in other fonts.

Related reports:
https://www.lyx.org/trac/ticket/8493
https://bugreports.qt.io/browse/QTBUG-66266
2018-03-22 02:26:46 +01:00
Kornel Benko
867867859b Add Reame to lib/fonts/test 2018-03-20 13:41:29 +01:00
Uwe Stöhr
e8678bc606 Arabic UserGuide.lyx: update from Hatim 2018-03-20 03:32:13 +01:00
Richard Kimberly Heck
5912f25f46 Fix problem with conversion of stmary10.lyx. 2018-03-19 18:46:48 -04:00
Richard Heck
a5c859f863 Update contributor. 2018-03-18 11:34:50 -04:00
Juergen Spitzmueller
cf9f077100 lyx2lyx fixes for the recent font additions. 2018-03-16 09:02:29 +01:00
Juergen Spitzmueller
6a0f0d28a5 Add support for xcharter font.
File format change.

Patch by Yuriy Skalko.
2018-03-15 15:44:49 +01:00
Uwe Stöhr
d3c51876a9 add support for the PT fonts
- fileformat change
- I also started https://wiki.lyx.org/LyX/NewInLyX24 for new features
2018-03-10 19:59:48 +01:00
Juergen Spitzmueller
3d0ce01ff1 syntax.default: some additions. 2018-03-09 15:17:23 +01:00
Juergen Spitzmueller
23766fdd59 syntax.default: add missing *
Fixes: #10501
2018-03-09 14:47:04 +01:00
Uwe Stöhr
7b3a04b07f Arabic UserGuide.lyx
- new file
- it is just a start and put into git to assure that we keep a compilable version
- Hatim will bit by bit translate it
- can be removed if it should not be ready before the next major release
2018-03-09 05:53:39 +01:00
Uwe Stöhr
1174279967 tex2lyx: parse \xymatrix
LyX's \xymatrix support relies on math therefore put it into math and parse its content

fixes bug #10638
2018-03-09 04:53:33 +01:00
Juergen Spitzmueller
822aef947b Amend 4ec133e1ae
Didn't see this test is already there.

(cherry picked from commit 83c7e818f8)
2018-03-06 19:56:24 +01:00
Uwe Stöhr
6fde01e70e Arabic doc files: corrections by Hatim 2018-03-05 22:34:10 +01:00
Richard Heck
5531b40c9b Simplify code a bit.
(cherry picked from commit 490506c45f)
2018-03-02 23:12:35 -05:00
Richard Heck
cec9edd34b Use pythonic syntax, as suggested by José. 2018-03-02 23:02:46 -05:00
Uwe Stöhr
64d1751f2f configure.py: fix bug #11053
- add quotes around the path to the python executable
2018-03-02 20:14:58 +01:00
Juergen Spitzmueller
905516fd70 Fix the implementation of new libertine package
Needs to go to 2.3.1-staging
2018-03-02 12:17:33 +01:00
Pavel Sanda
a32573a16f sv.po reviewed by Jim 2018-02-24 14:11:04 +01:00
Juergen Spitzmueller
dee1994451 Add LyX 2.3 format 2018-02-23 08:59:20 +01:00
Juergen Spitzmueller
e0a5babde7 Add literal param to InsetInclude
This is used by lstinput

File format change.

Fixes: #10544.
2018-02-23 08:58:16 +01:00
Uwe Stöhr
713970001a Arabic Shortcuts.lyx: fixes by Hatim 2018-02-22 15:35:50 +01:00
Uwe Stöhr
652ca5f578 Arabic Shortcuts.lyx: translation update from Hatim 2018-02-21 19:58:25 +01:00
jpc
2224258ddb More French translations of the UserGuide 2018-02-21 16:47:55 +01:00
Juergen Spitzmueller
8a703573ea Implement IsTocCaption for normal layouts.
But use default "true" to maintain current behavior if not explicitly
stated otherwise.

Fixes: #11045
2018-02-21 16:37:07 +01:00
Jean-Marc Lasgouttes
6d582e5e50 whitespace 2018-02-21 12:09:18 +01:00
Jean-Marc Lasgouttes
4447fb349c Add Alex Dunlap to our contributors 2018-02-21 12:05:40 +01:00
jpc
110a5e2a15 More translations for fr/UserGuire.lyx 2018-02-21 11:51:56 +01:00
Uwe Stöhr
b04e6eae3b port the recent fixes and update of layouttranslations to master 2018-02-20 20:42:36 +01:00
Uwe Stöhr
9457c60d52 move README.Documentation to attic
It is outdated since many years now and we have the relevant info in the Development.lyx file
2018-02-20 20:31:00 +01:00
Uwe Stöhr
973b4447ba ar.po and layouttranslations: updates from Hatim 2018-02-20 18:06:06 +01:00
Uwe Stöhr
b854df1b47 splash.lyx and ru.po: updates from Yuriy 2018-02-19 23:32:20 +01:00
Uwe Stöhr
2eb8016e78 layouttranslations and uk.po: corrections from Yuri 2018-02-19 23:16:06 +01:00
Juergen Spitzmueller
5b331b1466 Fix convert_separator routine with ancient LyX files. 2018-02-19 18:03:52 +01:00
Uwe Stöhr
599e41e237 French UserGuide.lyx: fix a typo 2018-02-18 23:42:03 +01:00
jpc
0afd533085 Partial update of fr/UserGuide.lyx 2018-02-18 22:45:27 +01:00
Scott Kostyshak
0c2f431003 Add Nomenclature to localization_test.lyx 2018-02-18 00:40:53 -05:00
Uwe Stöhr
7df53d50f2 port recent Basque translation updates 2018-02-18 02:24:22 +01:00
jpc
83485b670e Untranslated menu name in fr/EmbeddedObjects.lyx 2018-02-17 18:44:03 +01:00
jpc
c9a9f26f42 A couple of forgotten items in fr/Additional.lyx 2018-02-17 18:33:25 +01:00
jpc
99b6af52f1 Remove spurious occurrence of AGU and EGS chapters in fr/Additional.lyx 2018-02-17 18:08:25 +01:00
Uwe Stöhr
1fb1b0a3f8 UserGuide.lyx: document the removal of the pixmap cache for all languages 2018-02-14 14:51:22 +01:00
Richard Heck
5f1b32f8c5 Also fix chapter layout in tufte-book. 2018-02-12 16:29:54 -05:00
Pavel Sanda
8160ed97bf * lib/layouttranslations, sync with 2.3 2018-02-12 21:40:06 +01:00
Pavel Sanda
149f03d403 Fixing painting regression - chapter top spacing.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html
2018-02-12 21:14:56 +01:00
Uwe Stöhr
5c1a121d1d Customization.lyx: distribute all tracked changes 2018-02-12 18:53:12 +01:00
Jean-Marc Lasgouttes
54e491c6fe There is actually a home for obsolete templates in Makefile
Fixup to 24fd7d2b.
2018-02-12 17:19:10 +01:00
Jean-Marc Lasgouttes
24fd7d2bac Remove template AGUTeX.lyx from Makefile 2018-02-12 17:06:19 +01:00
jpc
86e42848fe Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and aguplus)
Edit LaTeXConfig.lyx accordingly
       Move teaplates/AGUTeX.lyx to teaplates/obsolete
2018-02-12 11:33:17 +01:00
Juergen Spitzmueller
b0ecfebad4 biblatex-natbib.citeengine: Remove erroneous blank 2018-02-11 16:43:14 +01:00
Juergen Spitzmueller
71fea63326 Disable CheckTeX while buffer is processed
Since CheckTeX itself processes the tex file, a synchronous run with
a TeX process can lead to all sorts of conflicts, including crashes.

Fixes: #7434.
2018-02-10 18:18:43 +01:00
Günter Milde
8f86b72cf4 lyx2lyx fixes and cleanup.
Don't insert empty line when translating QuoteInsets to literal
quotes.

Fix regexp pattern in re/convert_dashligatures.

Adjust logic in re/convert_dash(ligatur)es.
2018-02-09 16:49:23 +01:00
Pavel Sanda
b7caaf6196 Proper naming of LFUN_SET_GRAPHICS_GROUP. 2018-02-08 21:59:41 +01:00
Pavel Sanda
b88ed81e7f Unify graphics-groups inside marked block functionality.
Fixes #11026.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203683.html
2018-02-08 21:33:37 +01:00
Günter Milde
e4f90cdf65 lyx2lyx refactoring.
Avoid duplicate code. Fix some corner-cases.
2018-02-07 18:49:21 +01:00
Günter Milde
2ddaa0a59b New lyx2lyx parser tools find_substring() and set_bool_value(). 2018-02-07 18:49:20 +01:00
Juergen Spitzmueller
9b23b49d41 Do not show "Abstract" label in KOMA classes
This is not output by those classes (per default).
2018-02-06 18:39:00 +01:00
Günter Milde
2b451f01f5 Add newlines around \backslash in put_cmd_in_ert.
Fix for 2fce4d49ee.
2018-02-04 10:16:54 +01:00
Günter Milde
8caa9701b9 Use re.match to find regexp at begin of string/line.
Consistently use the re.match() or the match() method of a
regexp object to find a match at the begin of a line.
This is faster than re.find('^...').

Cf. https://stackoverflow.com/questions/180986/what-is-the-difference-between-re-search-and-re-match
(The subtle difference for multi-line strings is irrelevant for
configure.py, as we match line-wise.)
2018-02-04 10:08:07 +01:00
Pavel Sanda
584b83d33c Fix sideset hints, part of bug #11015. 2018-02-03 17:51:00 +01:00
Richard Heck
16a6a98182 Harden a few of the other regexes, too.
I've tested this and get no difference of output.
2018-02-01 22:14:51 -05:00
Richard Heck
50676c782a Make module and citeengine regexes a little more discerning. 2018-02-01 22:11:45 -05:00
Richard Heck
0e3d209295 Double escape binary regexes in module and citeengine searches.
See previous commit for explanation.
2018-02-01 22:11:45 -05:00
Richard Heck
6b5a7116cd Double escape binary regex in lyx2lyx and fix line-ending problem.
When we switched from r'...' to b'...', this required strings used
as input to re.compile to be double-escaped. It's not an issue with
"\s", because "\s" has no special meaning in a string.

Also, printing in binary mode did not output a line ending.
2018-02-01 22:11:45 -05:00
Uwe Stöhr
46845d8069 French docs: remove a file that was accidentally committed 2018-02-01 05:19:08 +01:00
Uwe Stöhr
5e7c44d7b6 pt_BR.po: updates from Georger
- He also reviewed layouttranslations and says it is OK
2018-02-01 05:11:17 +01:00
Günter Milde
2fce4d49ee lyx2lyx refactoring.
* use unicode.transform() instead of loop over replacements
* telling variable names
* remove trailing whitespace
* documentation update
* don't set use_ligature_dashes if both dash types are found
* remove spurious warning, normalize indentation, and use
  Python idioms in revert_baselineskip()
2018-01-31 21:13:43 +01:00
jpc
e4c0c6afdf Remove unappropriate French style command from preamble 2018-01-31 17:51:27 +01:00
Günter Milde
ed3f6801bd Remove spurious no-break space. 2018-01-31 11:01:11 +01:00
Uwe Stöhr
08ebc32123 French Additional.lyx: sync with branch 2018-01-31 05:47:41 +01:00
Günter Milde
0d9708ef04 Use LaTeX macros instead of Latin transcription for Greek characters.
Use the LaTeX internal character representation (LICR) macros
provided by lgrenc.def (since version 0.8 from 2013-05-13)
in lib/unicodesymbols. This fixes the PDF bookmarks (except for the
legacy input encoding iso-8859-7) and solves the problem of a missing
"v" character in Libertine LGR fonts (see lyx-users from 2018-01-29).

The ctest unicodesymbols/008-greek-and-coptic_iso8859-7_pdf2" now fails
(due to #9681). This is not a regression, as it is already
"unreliable" (wrong output, Latin character instead of Greek).

Drop compatibility definition of \~ as perispomeni accent
(that was required with lgrenc.def < 0.8).
2018-01-30 22:31:08 +01:00
Günter Milde
232c5b7766 Do not use "ligature dashes" with French documents.
In Spanish and French, dashes around parenthetical statements
are treated similar to brackets: line breaks are not allowed
on the inner side. Use of "breakable" dashes risks accidential
line breaks after the "opening" dash.
(Ligature dashes allow line breaks even if a no-break space follows.)
2018-01-30 21:49:12 +01:00
Juergen Spitzmueller
7e071f14b9 Once more, the libertine font package has been renamed.
Take the newest one, if present.

Candidate for 2.3.x.
2018-01-30 08:16:06 +01:00
Uwe Stöhr
59ce6dac2f French EmbeddedObjects.lyx: sync document settings with English version
- English EmbeddedObjects.lyx: correct a typo
2018-01-29 15:10:02 +01:00
Juergen Spitzmueller
fc2d8238dc Add Bibliography to the Outliner.
Fixes: #11001, #7724.
2018-01-29 09:09:51 +01:00
Uwe Stöhr
d809ced05b Additional.lyx: port recent changes 2018-01-29 01:35:23 +01:00
Juergen Spitzmueller
8a08a19122 Document B_ in cite style definitions 2018-01-27 14:53:18 +01:00
Juergen Spitzmueller
5db4d712ef Differentiate Buffer strings and GUI strings in citeengines
The former need to be translated to the buffer language, the latter to
the GUI language.

Fixes: #10946
2018-01-27 14:29:41 +01:00
Pavel Sanda
2900f93c81 * layouttranslations - update ar, ru, el 2018-01-26 19:49:40 +01:00
Scott Kostyshak
9b262fcff4 Correct \origin in the new ru examples 2018-01-24 23:43:34 -05:00
Günter Milde
a151b274bf Fix lyx2lyx dash conversion and make it faster. 2018-01-24 17:38:19 +01:00
Günter Milde
a77cfef1c6 Fix some more lyx2lyx round-trips.
Also restore corrupted seminar example.
Add default return value to parser_tools.is_in_inset().
2018-01-24 01:04:14 +01:00
Günter Milde
67eca412ff Fix some lyx2lyx round-trip tests.
Fix cases where lyx2lyx adds changes with every round cycle
uncovered by recent ctest change.

Add optional `delete` argument to parser_tools.get*value():
If True, delete the matching line.

More efficient "allowbreak" con/reversion.
2018-01-23 14:01:30 +01:00
Günter Milde
8da6cdcf23 New lyx2lyx tools.
New lyx2lyx parser tools find_complete_lines() (replaces find_slice),
del_complete_lines(), and find_across_lines(). Default value 0
for start argument in utility functions.

Rework the implementation of dash-conversion.
2018-01-23 09:10:50 +01:00
Günter Milde
8e825de4b2 Fix preamble-code removal in lyx2lyx. Do some optimizations.
Fix failure of revert_dashes() found by lyx2lyx ctests
using an efficient function to find a given sequence of lines
in a list of lines.

Some optimizations using Python idioms instead of C-like code.
2018-01-21 19:55:27 +01:00
Uwe Stöhr
1450b99ed1 UserGuide.lyx: correct an equation
thanks Yuriy for spotting
2018-01-19 01:02:25 +01:00
Uwe Stöhr
98cfc25277 ru.po: updates from Yuriy
- also some updates for Tutorial.lyx
2018-01-19 00:31:47 +01:00
Günter Milde
9ce5d8578b Prevent rows of hyphens becoming dashes when back-porting to 2.1.
Insert ligature breaks between hyphens where
they are separate in 2.2 but ligated by TeX in 2.1.

This fixes output with LyX 2.1 and prevents -- and --- becoming
en and em dash in the LyX source after a round-trip to 2.1
and back.

Solves lyx2lyx ctest failures with a warning about
possible line-break changes.
2018-01-17 21:39:03 +01:00
Uwe Stöhr
1d81e098a3 French example files: port recent changes to master 2018-01-17 15:58:07 +01:00
Kornel Benko
d794a6d60d Add testfiles-references to automake build: vcs_info_export moved to new directory, part 4 2018-01-17 15:31:57 +01:00
Kornel Benko
26eeaa1af2 vcs_info_export moved to new directory, part 2 2018-01-17 12:25:22 +01:00
Günter Milde
6fe2e45f97 Remove trailing whitespace in lyx2lyx. 2018-01-17 09:48:08 +01:00
Uwe Stöhr
58121e887a example files: distribute some changes
- French:
 - fix compilation of beamer.lyx
 - update a screenshot
2018-01-16 14:50:25 +01:00
Uwe Stöhr
5f93099b88 EmbeddedObjects.lyx: fix a typo spotted by Paul Rubin
fixes #10965
2018-01-16 04:45:44 +01:00
Uwe Stöhr
53188a5f47 doc files: correct preamble commands
thanks toe Jean-Pierre
2018-01-16 04:08:52 +01:00
Scott Kostyshak
baefa82a81 Restore 3c6fa867 and b83252b1
This restores the https URLs.
2018-01-15 16:51:35 -05:00
Scott Kostyshak
a816ef9c33 Restore math options to "load automatically" 2018-01-15 16:51:35 -05:00
Scott Kostyshak
caa6602a15 Restore \origin 2018-01-15 16:51:35 -05:00
Scott Kostyshak
ef9a05dede Big changes to ja/sweave/lyx and ja/knitr.lyx
- Use bxjsarticle + XeLaTeX instead of article + pLaTeX.
- Use LyX's "chunk" inset instead of ERT.
- Translate a couple of English strings.

Patch from Koji Yokota.
2018-01-15 16:51:35 -05:00
Pavel Sanda
3a57f9766c * layouttranslations.review
wa never used, da forgotten, en not needed.
2018-01-14 14:33:38 +01:00
Pavel Sanda
f50e980a40 * layouttranslation.review: pt reviewed by Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203376.html
2018-01-14 14:03:55 +01:00
Kornel Benko
aed458f007 Cmake tests: New test for the outliner with beamer
Test idea from Pavel Šanda
Move insets down and up, then compare with expected latex output.
2018-01-14 13:47:27 +01:00
Uwe Stöhr
058ee9ab00 UserGuide.lyx: distribute recent changes 2018-01-12 04:54:03 +01:00
Uwe Stöhr
92955116b0 Additional.lyx: re-sync with master
please use use LyX 2.3.x and keep the docs in sync unless you describe a new feature of LyX 2.4
2018-01-12 02:42:36 +01:00
Günter Milde
0fb2edacdc Use Flex Code inset instead of typewriter custom font style.
Change markup to use semantic markup instead of hard-coded
typewriter for code examples containing --.
Works around false positive warning on changed dashes
leading to lyx2lyx export ctest failures.
2018-01-12 00:35:00 +01:00
Juergen Spitzmueller
3daa447c3c Take AgainFrame to the TOC. 2018-01-11 13:14:16 +01:00
Günter Milde
73b6f42362 Do not convert dashes/hyphens in LyX-Code.
See previous commit and #10961
2018-01-10 12:07:36 +01:00
Günter Milde
cb1fda9988 Do not convert dashes/hyphens in Code insets (logical markup).
Code is by default rendered as typewriter and should be treated
similar:
In text marked up as code, -- or --- is typically part of a
command (e.g. "lyx --help" or "x--") and not a transliteration
for en dash, see #10961.
This is already handled so for text in typewriter font
(see Text.cpp:500).
2018-01-10 12:07:36 +01:00
Uwe Stöhr
bb650bf8c2 Changelog-Customization-LyX_23x.txt: dummy commit as text 2018-01-10 02:12:40 +01:00
Uwe Stöhr
4abe7d0181 Customization.lyx: distribute and accept recent changes 2018-01-09 01:28:26 +01:00
Uwe Stöhr
20df4da55f EmbeddedObjects.lyx: port updates and fixes from Jean-Pierre to master 2018-01-08 15:54:08 +01:00
Juergen Spitzmueller
7da8473c4f Start inset at new line 2018-01-06 10:43:44 +01:00
Juergen Spitzmueller
44670d4778 Customization: some color name fixes. 2018-01-06 09:31:24 +01:00
Juergen Spitzmueller
016393a0dd Minor re-ordering of the Insert menu 2018-01-05 11:09:11 +01:00
Günter Milde
0674abf4a0 Update UserGuide and de/UserGuide.
Remove warnings for issues fixed in lyx2lyx.
Update the GUI name of the ligature-dash Option.
Fix example for preventing unwanted line break in French.
2018-01-02 12:56:49 +01:00
Juergen Spitzmueller
8d8ee12e64 Update layout format 2018-01-02 11:53:01 +01:00
Günter Milde
5dc48f7ef9 Documentation fixes: revert conversion of -- to en dash in code.
lyx2lyx erroneousely merged -- to en dash in text with logical
markup "code".
Revealed by recent (but now silenced) ctest fails.

Also add space around en dash in examples.
2018-01-02 11:20:35 +01:00
Uwe Stöhr
69ef4bc146 Russian doc files: new and updated translations by Yuri 2018-01-01 16:56:31 +01:00
Uwe Stöhr
fd3b9cf6c6 French UserGuide.lyx: port Jean-Pierre's recent changes to master 2018-01-01 14:39:59 +01:00
Juergen Spitzmueller
8f86feb260 Prepend "Insert " in the context menu for environment separators. 2018-01-01 13:40:49 +01:00
Juergen Spitzmueller
ebc3fee728 mention new option 2018-01-01 12:41:00 +01:00
Juergen Spitzmueller
91008d8b21 LFUNS.lyx: update 2017-12-31 18:58:32 +01:00
Juergen Spitzmueller
fe698caeec Distribute UG changes following menu move of environment-split 2017-12-31 10:14:59 +01:00
Juergen Spitzmueller
b0801b43f4 Distribute auto-nest documentation. 2017-12-31 10:00:38 +01:00
Juergen Spitzmueller
cc8ce481f5 Distribute beamer manual changes in the wake of the environment-split mods. 2017-12-30 19:29:51 +01:00
Juergen Spitzmueller
c8abe0cf7b Move environment-split from Edit to Insert, as requested. 2017-12-30 17:54:09 +01:00
Juergen Spitzmueller
3a4b233dbd Properly implement IsTocCaption for Arguments in standard TOC
Fixes: #10631

Candidate for 2.3.x.
2017-12-29 11:51:24 +01:00
Juergen Spitzmueller
f3b89e4c72 Add IsAutoNestedBy
This is complementary to AutoNests: Styles can determine which other
style should auto-nest them. This is particularly useful for modules
that add new styles which should be auto-nested in a given context.
2017-12-29 10:36:03 +01:00
Juergen Spitzmueller
d6fb2abbea Some AutoNest polishment.
* Rename Nests to AutoNests
* Do it when changing from any style
2017-12-29 10:03:00 +01:00
Juergen Spitzmueller
99ecc6e2c9 Implement auto-nesting.
Now layouts can specify other layouts that should be nested in and
after the current one (if the layout is switched from the current one
and if it follows a paragraph in the current one).

This is particularly useful for things such as the beamer frames, where
particular layouts are practically always nested.
2017-12-28 17:44:54 +01:00
Juergen Spitzmueller
2907160fff Introduce environment-split previous
This one checks for an environment in the previous paragraph (outside
the nesting scope).
2017-12-28 12:28:01 +01:00
Juergen Spitzmueller
dfaa4e9466 Fix footnotes in table with RevTeX4
These classes come with their own working implementation of table
footnotes, so we are not supposed to use the tablefootnote or
footnote package.

Also add missing outliner name.
2017-12-27 15:43:40 +01:00
Juergen Spitzmueller
994176e55b Tufte title is fragile
Candidate for 2.3.x.
2017-12-26 12:35:55 +01:00
Scott Kostyshak
713fd70e8f Fix Python escaping of unicode string
When removing "r" from "ur", it is needed to add extra backslashes.
See:

  https://www.mail-archive.com/search?l=mid&q=2024193.iXIh6cq6L3%40myth

Thanks to José.

This commit amends b7983478 (and thus 586d16a4).
2017-12-26 02:10:49 -05:00
Juergen Spitzmueller
931f87f508 Introduce "inherit" encoding for latex_language
This gets rid of the hardcoded latin1 encoding for verbatim. Instead,
verbatim now inherits the encoding from the context, which is what is
actually wanted here.

Fixes: #9012, #9258
2017-12-24 17:10:42 +01:00
Pavel Sanda
61e899ac24 layouttranslation: review cs 2017-12-24 04:56:15 +01:00
Pavel Sanda
10b5f1ac50 layouttranslation: sk is clearly reviewed 2017-12-24 04:34:59 +01:00
Scott Kostyshak
b7983478e1 Fix Python unicode string in lyx2lyx
This commit amends 586d16a4.
2017-12-23 21:47:08 -05:00
Pavel Sanda
3f7e00b661 Russian layouttranslations reviewed by Yuriy, Dec 13 2017. 2017-12-24 03:08:34 +01:00
Juergen Spitzmueller
7b4d227929 Title commands are fragile in memoir 2017-12-23 13:27:10 +01:00