Commit Graph

1451 Commits

Author SHA1 Message Date
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
Juergen Spitzmueller
e5e6e16274 Update tex2lyx tests after cc6f2dae82 2018-03-11 18:05:50 +01:00
Juergen Spitzmueller
cc6f2dae82 tex2lyx: support tipa \t*{} macro. 2018-03-11 11:46:37 +01:00
Juergen Spitzmueller
a3836d9909 tex2lyx: support for URW Classico, MinionPro and the new Libertine fonts. 2018-03-11 11:12:42 +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
b8adb0f933 Update tex2lyx tests. 2018-03-10 16:15:29 +01:00
Juergen Spitzmueller
ad5dbbfd65 tex2lyx/TODO: update 2018-03-10 15:48:49 +01:00
Juergen Spitzmueller
d325f79f5c tex2lyx: add support for lstinputlisting 2018-03-10 15:40:51 +01:00
Juergen Spitzmueller
11e4a24e6e tex2lyx: get rid of another large if-else if chain. 2018-03-10 15:00:30 +01:00
Juergen Spitzmueller
0f4c902705 tex2lyx: make nested CJK parsing slightly less dumb.
Fixes: #9562
2018-03-10 14:58:55 +01:00
Juergen Spitzmueller
b2ccdae228 Amend 15fd17d83f 2018-03-10 14:22:51 +01:00
Juergen Spitzmueller
15fd17d83f tex2lyx: support for \includeonly 2018-03-09 17:27:55 +01:00
Juergen Spitzmueller
247e1a223d tex2lyx: handle whitespace in table column declaration.
Fixes: #10804
2018-03-09 14:18:03 +01:00
Juergen Spitzmueller
3e7aebe966 tex2lyx/TODO: small tweak. 2018-03-09 13:57:29 +01:00
Juergen Spitzmueller
9e5ab04a6c This works already. 2018-03-09 13:43:12 +01:00
Juergen Spitzmueller
af6933c06f tex2lyx: chapterbib support 2018-03-09 13:30:52 +01:00
Juergen Spitzmueller
cba38881d6 tex2lyx: honor grouping in optional arguments.
E.g., \cite[{a literal ] character}]{key}
2018-03-09 13:14:13 +01:00
Juergen Spitzmueller
0513622fd0 Fix copy and paste error in 6659304f7f 2018-03-09 12:29:07 +01:00
Juergen Spitzmueller
0bc192bfff Revert "Revert "tex2lyx: towards proper support of "literal"/"latexified" inset commands""
I did not intend to revert this. Sorry for the noise.

This reverts commit 74d9277909.
2018-03-09 12:18:49 +01:00
Juergen Spitzmueller
74d9277909 Revert "tex2lyx: towards proper support of "literal"/"latexified" inset commands"
This reverts commit 6659304f7f.
2018-03-09 11:32:09 +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
6659304f7f tex2lyx: towards proper support of "literal"/"latexified" inset commands
We now report whether the attempt to recode the macros to glyphs
succeeded. If yes, we set "literate" to false, if not to true.

Also, do not attempt to recode for non-latexifying fields.

Fixes: #9563
2018-03-08 15:05:01 +01:00