Juergen Spitzmueller
94654b3586
Linguistics: add support for Discourse Representation Structures
...
File format change
2019-06-23 12:59:56 +02:00
Jean-Marc Lasgouttes
5173f22024
Fix some warnings found by the -Wall options of autoconf and automake.
...
There are still warnings to address. For now, they not enabled by default.
2019-06-12 18:00:18 +02:00
Juergen Spitzmueller
2f648cc17a
small correction
2019-06-04 11:10:54 +02:00
Juergen Spitzmueller
e2f81b3a84
Rework linguistic gloss support
...
This now uses the new and enhanced \digloss ad \trigloss macros of
convington 2.0 rather than the deficient self-baked ones.
File format change.
2019-06-04 11:01:19 +02:00
Günter Milde
b2cee3dcc5
Support more languages (file format change).
...
Format incremented to 576:
Support for the document languages azerbaijani, bengali,
churchslavonic, and oldrussian.
2019-06-03 16:58:10 +02:00
Günter Milde
45c5b39692
Adapt lyx2lyx to the lineno support fix in [88f471899/lyxgit].
2019-05-25 15:32:24 +02:00
Kornel Benko
ef6ddfc788
Amend 7f125f62d2
, Introduce doc preference for line numbering
...
Correct expected lyx files created by tex2lyx.
2019-05-24 18:17:50 +02:00
Pavel Sanda
7f125f62d2
Introduce doc preference for line numbering.
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg208781.html
2019-05-23 15:13:27 +02:00
Günter Milde
65ec404eb3
Format incremented to 574: Ruby inset, fixes for Japanese.
...
New auxiliary functions for lyx2lyx:
del_module(), append_local_layout(), del_local_layout()
2019-05-16 13:48:07 +02:00
Jean-Marc Lasgouttes
7bb08f10b1
Move initial values of LyXRC members to the header
...
We use a C++11 construct that puts initial values of members along
with their definition. It is a good construct and now the out of line
constructor and the setDefaults() method can go.
This removes the need to define a dummy constructor in tex2lyx and
client.
The only needed change to the rest of code is a change of signature
for the user_(name|email) to return std::string. They are now called
explicitely from the constructor. We now have to include userinfo.h in
LyXRC.h, but this should not be too expensive.
2019-04-19 14:46:12 +02:00
Jean-Marc Lasgouttes
c6754ed548
Do not redefine a stripped-down LyXRC object.
...
I am not sure why it was done this way, but it is not really necessary.
Moreover gcc LTO does not like it.
2019-04-18 15:55:40 +02:00
Günter Milde
27ba6f282d
Rename legacy input encoding settings.
...
Format incremented to 573
2019-04-16 20:17:32 +02:00
Kornel Benko
3f9cdc7c63
Amend e55ed79d
: Extend handling of Noto fonts
...
Also renamed
known_roman_fonts -> known_roman_font_packages
known_sans_fonts -> known_sans_font_packages
known_typewriter_fonts -> known_typewriter_font_packages
known_math_fonts -> known_math_font_packages
2019-04-08 11:44:53 +02:00
Kornel Benko
6fc7739053
Adapt tex2lyx to the noto fonts extension
2019-04-07 13:47:45 +02:00
Kornel Benko
35ac73a425
Update tex2lyx tests due to format change
2019-04-07 13:30:31 +02:00
Juergen Spitzmueller
f51fa38123
Prevent multiplication of preamble code
...
Fixes rest of #8229
2019-04-04 16:39:20 +02:00
Juergen Spitzmueller
0b54650f0e
tex2lyx: improve module support
...
The current heuristics only considered modules with styles that defined
a searched command in their preamble, and only for commands/environments
that were defined in the document's preamble. This limited the module
support drastically.
The new heuristics also checks for commands coming from packages. If the
command is not (re-)defined in the document preamble, it checks modules
that provide a style with a matching LaTeXName, checks for their
requirements and matches those with the packages loaded by the document.
If no module provides a searched style, but we found modules that load
packages that are loaded in the imported tex file, and if those packages
are not auto-loaded by LyX anyway, we also load this module.
fixes : #11259 , part of #8229
2019-04-04 16:01:07 +02:00
Juergen Spitzmueller
a5e89c842f
update tex2lyx tests
...
\cmidrule(lr) now natively imported.
2019-04-04 09:33:53 +02:00
Juergen Spitzmueller
171e251189
tex2lyx: support for cmidrule trimming
2019-04-04 09:33:36 +02:00
Juergen Spitzmueller
7f24e3ad4f
Update tex2lyx tests
2019-04-04 08:24:51 +02:00
Juergen Spitzmueller
8085fc21f8
booktabs: support for \cmidrule trimming
...
This has probably still some rough edges, so please test thoroughly.
Fixes : #3072
2019-04-03 07:59:52 +02:00
Juergen Spitzmueller
0c18f6a8c1
Remove TODO entry
...
This is covered in the "Consider layouts in modules that do not have a
preamble definition" general TODO item.
2019-04-01 13:04:05 +02:00
Juergen Spitzmueller
18ee587a1e
Add listpreamble tex2lyx test
2019-03-31 17:52:31 +02:00
Juergen Spitzmueller
b1c36045ee
fix typo in comment
2019-03-31 14:30:55 +02:00
Juergen Spitzmueller
57157d2e4d
tex2lyx: support for list preambles
2019-03-31 14:27:56 +02:00
Kornel Benko
e5b98a86fa
Amend 99eeb29e
: tex2lyx test: make box-color-*.tex sample compilable
2019-03-31 00:52:04 +01:00
Juergen Spitzmueller
d8bdfa8462
Update paths in tex2lyx tests
2019-03-29 16:08:17 +01:00
Juergen Spitzmueller
f8aee7068e
Adapt tex2lyx tests to version numbers.
2019-03-29 15:51:50 +01:00
Juergen Spitzmueller
035d539964
tex2lyx: support for bibencoding argument of \addbibresource
2019-03-29 15:50:18 +01:00
Juergen Spitzmueller
e2761dd2f2
Update version numbers of tex2lyx tests
2019-03-26 17:49:38 +01:00
Juergen Spitzmueller
aff2ee6058
Add soul module
2019-03-22 18:29:50 +01:00
Juergen Spitzmueller
de449daa71
update tex2lyx tests after file format change
2019-03-10 13:04:15 +01:00
Kornel Benko
99e216b78d
Amend 62f8b8be
...
The file test-insets.tex is changed, therefore the file
which is expected by tex2lyx (test-insets.lyx.lyx) has to be changed too.
2019-03-09 21:24:21 +01:00
Juergen Spitzmueller
62f8b8beb9
Update tex2lyx tests
2019-01-03 12:00:23 +01:00
José Matos
3f03f0a447
Move all python shebangs from /usr/bin/env to python3.
...
The change is only relevant to development as all the call to python scripts is done
calling C++ os::python that invoques the appropriate python version.
The change is two fold, on one hand remove all the uses of /usr/bin/env for python.
On the other hand rename all the calls to python from python to python3 making it explicit
and being compliant with PEP 394 -- The "python" Command on Unix-Like Systems:
https://www.python.org/dev/peps/pep-0394/
Remove the sheebang from src/graphics/GraphicsConverter.cpp because it is not necessary.
Some small whitespace changes.
2018-12-29 19:14:41 +00:00
Stephan Witt
d9c0807227
Add -headerpad_max_install_names option to linker calls and make run path configuration consistent.
...
This avoids failures when running install_name_tool on Mac when creating relocatable binaries using the bundled private frameworks.
2018-09-21 21:46:47 +02:00
Juergen Spitzmueller
9c33723632
Improve comment
2018-08-28 12:39:23 +02:00
Juergen Spitzmueller
fe2e3841eb
grammar
2018-08-28 10:36:47 +02:00
Juergen Spitzmueller
da62299f37
tex2lyx: fix import of unknown commands'/environments' options
...
If we detect options via hasOpt(), output the brackets as ERT.
Fixes : #8685
2018-08-28 10:31:29 +02:00
Juergen Spitzmueller
9f99f3073a
Correct indentation
2018-08-27 12:13:55 +02:00
Juergen Spitzmueller
a3ed99b211
fix glitch with last border in table for custom arguments
2018-08-27 12:13:24 +02:00
Juergen Spitzmueller
64ad077c9c
tex2lyx: support V table column type
2018-08-27 12:12:56 +02:00
Juergen Spitzmueller
8ef2558dc2
tex2lyx: support decimal alignment in tables
2018-08-26 16:17:54 +02:00
Juergen Spitzmueller
af42dfedf6
This has been done in f38816bf16
2018-08-26 11:13:00 +02:00
Juergen Spitzmueller
fc9b4fb6a8
tex2lx/TODO: minor clarifications
2018-08-26 10:54:04 +02:00
Juergen Spitzmueller
faf40fb408
tex2lyx: support for plural and capitalized refstyle
...
Also fix a glitch in non-refstyle import (getOpt() returns the option
with delimiter, so do not add them in ERT once more)
Candidate for stable
2018-08-26 09:48:23 +02:00
Juergen Spitzmueller
920e26916e
tex2lyx: Fix import of Arabic polyglossia environment
...
Part of #10111
2018-08-24 14:20:43 +02:00
Juergen Spitzmueller
2f279b29ff
Update tex2lyx tests
...
LyX itself also doesn't write "rotate" if it is 0. So tex2lyx is now
closer to LyX, and the new tests output is correct.
2018-08-24 10:19:55 +02:00
Juergen Spitzmueller
ab32a8319d
tex2lyx: also support rotated non-long tables
2018-08-24 10:11:19 +02:00
Juergen Spitzmueller
20663fb3b8
tex2lyx: also support rotated xltabulars
2018-08-24 09:39:46 +02:00
Juergen Spitzmueller
766eb3f02c
tex2lyx: support rotated longtable
2018-08-24 08:50:32 +02:00
Juergen Spitzmueller
30abecd437
tex2lyx: split huge else-if-clause
...
Use a loop instead and break out after a condition is met. This prevents
problems on windows where the number of else-if-conditions is limited.
2018-08-22 18:49:16 +02:00
Juergen Spitzmueller
68d48b0015
tex2lyx: Fixes to the btUnit import
...
1. Do not attempt to mix diverging btUnits (e.g., chapters and sections).
2. use parse_text to properly parse the contents.
2018-08-22 08:39:13 +02:00
Juergen Spitzmueller
5c97424a72
tex2lyx: simplify btUnit parsing
2018-08-21 17:33:30 +02:00
Juergen Spitzmueller
0ae68ae828
tex2lyx: support for btUnit (multibib)
2018-08-21 17:18:04 +02:00
Juergen Spitzmueller
f44a55c367
tex2lyx: add bib encoding support.
2018-08-21 08:19:24 +02:00
Juergen Spitzmueller
924a666166
Remove empty entry
2018-08-20 18:18:48 +02:00
Juergen Spitzmueller
23ea74a40b
tex2lyx: support for Plex fonts
2018-08-20 11:13:13 +02:00
Juergen Spitzmueller
c5cab5a8f7
Update tex2lyx tests
2018-08-17 20:34:28 +02:00
Juergen Spitzmueller
b124adbd38
Introduce listpreamble argument type
...
This uses the InsetArgument interface to provide access to a document
part hitherto inaccessible by LyX: the part between \begin and the first
\item in a list (where lengths and counters can be redefined, for
instance).
Fixes : #11098
File format change, layout format change
2018-08-17 10:22:32 +02:00
Juergen Spitzmueller
b3c57aded7
tex2lyx/TODO: cleanup
...
Remove items that are done or not relevant to tex import.
2018-08-12 09:09:23 +02:00
Juergen Spitzmueller
521d7c2e0b
tex2lyx: fix option parsing of listings
...
the tricky thing was to decide whether [foo] is taken as option or as
verbatim content.
Candidate for stable.
2018-08-11 16:55:44 +02:00
Kornel Benko
366e37c851
Added latex-DejaVu fonts to lyx-GUI.
...
Increment lyx-format to 561
2018-08-10 19:38:06 +02:00
Juergen Spitzmueller
781b10306a
update tex2lyx tests
2018-08-07 15:42:22 +02:00
Juergen Spitzmueller
4ec8bd05a4
update tex2lyx tests
2018-07-07 15:28:40 +02:00
Juergen Spitzmueller
e6e3777363
Add support for bib files encoding
...
File format change.
Fixes : #6223
2018-07-07 15:25:35 +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
Kornel Benko
41ddac5519
Cmake tests: Added tex2lyx test for xltabular and tabularx
2018-06-25 12:04:45 +02:00
Juergen Spitzmueller
650bb156d9
tex2lyx: tabular width in longtable is now possible (via xltabular).
2018-06-25 11:52:56 +02:00
Juergen Spitzmueller
c33506555f
tex2lyx: Add support for multirow
...
Fixes : #11164
2018-06-24 18:14:10 +02:00
Juergen Spitzmueller
087a43ee1f
tex2lyx: check for \maketitle also if other titlename is specified
...
Beamer for instance supports \maketitle, although we use \makebeamertitle
2018-06-24 10:23:30 +02:00
Juergen Spitzmueller
9c10816b84
Update tex2lyx tests.
2018-06-24 10:09:39 +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
Juergen Spitzmueller
2fbce44401
We do not natively support multirow yet
...
See #11164
2018-06-01 17:11:35 +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
8b4c76fb24
Consider required modules when checking for layout definitions in modules
...
Fixes : #11156 .
2018-05-24 17:38:10 +02:00
Juergen Spitzmueller
429edc0a59
tex2lyx: extend titling support
...
Rather than checking for hardcoded title commands such as \maketitle,
use the titlename and titletype as defined in the layout.
This now also includes title environments.
Fixes part of #6461
2018-05-23 12:34:41 +02:00
Juergen Spitzmueller
4f33b7d1d1
Update tex2lyx tests
2018-05-21 13:46:04 +02:00
Juergen Spitzmueller
0aeeb78f3c
Simplify cite engines code
...
As opposed to modules (from which the framework was initially borrowed),
we only allow one cite engine per document. Thus, we don't need to fiddle
with lists.
2018-05-20 12:27:03 +02:00
Juergen Spitzmueller
db9e50bdcf
update tex2lyx tests after file format change
2018-05-10 20:16:56 +02:00
Kornel Benko
cf7c31b559
Amend 26ea1e1
for roundtrip tests
2018-04-27 12:49:13 +02: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
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
2551614ff1
Add Landscape module
...
Support for the (pdf)lscape package.
Fixes : #10801
2018-04-18 14:36:49 +02:00
Juergen Spitzmueller
bd77d8ad61
small fixup in tex2lyx lstlistings/inputminted support.
2018-03-17 18:26:47 +01:00
Juergen Spitzmueller
f3c5bcd2be
tex2lyx: complete minted support (inputminted)
...
Also fix some whitespace issues in minted inset import.
2018-03-17 16:45:05 +01:00
Juergen Spitzmueller
63b67fee83
tex2lyx: add beamer test file
2018-03-17 13:20:48 +01:00
Juergen Spitzmueller
d93076c128
tex2lyx: handle makebeamertitle
2018-03-17 12:39:13 +01:00
Juergen Spitzmueller
7e3a41bd15
tex2lyx: clear latexparam after use.
2018-03-17 12:38:53 +01:00
Juergen Spitzmueller
79728dcde9
tex2lyx: do not eat empty paragraphs if keepempty is true
...
Fixes : #11078
2018-03-17 12:19:50 +01:00
Juergen Spitzmueller
506ae2d2ea
tex2lyx: add support for LaTeXParam
...
Part of #11068
2018-03-16 12:58:01 +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
Juergen Spitzmueller
c74e399981
tex2lyx: support for beamer text styles with overlays
...
E.g. things like \textbf<article>{foo} have to be imported as insets.
Part of #11068
2018-03-14 14:38:18 +01:00
Juergen Spitzmueller
e51265b5f3
tex2lyx: More work on beamer support
...
* Implement list item overlay support (\item<arg>)
* Implement itemcommand support (e.g., \overprint<arg>)
* Fix general list argument placement
Part of: #11068
2018-03-14 08:40:47 +01:00
Juergen Spitzmueller
4d30e00da8
amend ab4e9adf86
2018-03-13 16:01:13 +01:00
Juergen Spitzmueller
ab4e9adf86
Fix known_escaped_chars
2018-03-13 13:00:58 +01:00
Juergen Spitzmueller
949de66956
tex2lyx: towards beamer overlay argument support.
...
Implemented: Overlay and standard overlay arguments for commands
and environments.
Still missing:
* List item overlay
* itemcommand overlay (\overprint)
* overlay via LatexParam (e.g., Flex:ArticleMode)
Needs fixing:
* General list argument (\begin{itemize}[arg])
* nested content in a frame with no title (empty par)
2018-03-12 14:56:28 +01:00
Juergen Spitzmueller
f30474a26c
update test
2018-03-11 19:50:22 +01:00
Juergen Spitzmueller
386d9953e8
amend 11e4a24e6e
2018-03-11 19:49:28 +01:00
Juergen Spitzmueller
8184f08f4a
tex2lyx: update quote handling
...
* Consider new quote styles
* Consider changed quote styles
* Try to be a bit smarter with ambiguous quotation marks
2018-03-11 18:05:50 +01:00