Commit Graph

8971 Commits

Author SHA1 Message Date
Enrico Forestieri
877d296b78 Amend bd6d09fc
Was forgetting this.

(cherry picked from commit 92c4bb4682)
2020-05-18 22:27:56 +02:00
Enrico Forestieri
51b8778c73 Fix Python 3 issues when generating preview snippets
The log file generated by latex can contain strings encoded in
whatever supported encoding. Instead of guessing the encoding,
it is better to open it in binary mode and then performing the
necessary comparisons as "bytes". In order to do this, the
strings are encoded in utf8, so that, for example, b"pythön" is
encoded as "pyth\xc3\xb6n" (7 bytes). Of course, this means that
we can only successfully perform comparisons with ascii strings.
However, this is what we actually do, as we only search for
ascii strings in the log file.

(cherry picked from commit bd6d09fc98)
2020-05-18 20:44:33 +02:00
Richard Kimberly Heck
ab686d362f Add revtex 4.2. files to distribution 2020-05-18 13:21:36 -04:00
Kornel Benko
bece189ea6 Added revtex4-2.layout
Essentially cherry-picked 0536193c, but changing format from 80 to 66.
2020-05-18 18:53:28 +02:00
Juergen Spitzmueller
6c6e1c1e17 Fixup inkscape detection on Windows
(cherry picked from commit 53ada26596)
2020-05-18 13:23:09 +02:00
Juergen Spitzmueller
3df1e0d70e Amend 74f831e06d
Forgot this part.

(cherry picked from commit bd89a273bc)
2020-05-18 13:20:57 +02:00
Juergen Spitzmueller
f489ecab99 Safer 0.x version test
(cherry picked from commit d5079c2e73)
2020-05-18 13:20:08 +02:00
Juergen Spitzmueller
733389677f Add support for inkscape 1.0
Command line syntax has changed. We now check for the version and use
the appropriate cl options.

Fixes #11742

(cherry picked from commit 74f831e06d)
2020-05-18 13:19:30 +02:00
Juergen Spitzmueller
73de39e091 Minor doc updates by Yuriy 2020-04-23 07:32:39 +02:00
Richard Kimberly Heck
3606ee5a6a Fix bug #11799.
I've made cut, etc, OptItems, as this menu is already very long.

(cherry picked from commit d34bb46387)
2020-03-28 23:36:04 -04:00
Juergen Spitzmueller
b108ea3129 Un-provide amsmath in beamer article layouts
Fixes #11768

(cherry picked from commit f6f51587cf)
2020-03-01 07:35:55 +01:00
José Matos
20996d46fc Remove code that is redudant.
Both for python2 and python3 output is always a string.

(cherry picked from commit 4268a9e812)
2020-02-25 18:24:41 -05:00
Richard Kimberly Heck
fb9bc1a3f7 Fix bug #11750.
Unfortunately, stat.st_ino returns 0 on Windows, at least on Python 2.7, so we can't use that way of telling when we're seeing the same directory again. Surely the real pathname should work.

(cherry picked from commit 9d8dfe934b)
2020-02-24 19:09:31 -05:00
Juergen Spitzmueller
457c568dbd Handle encoding error in layout file parsing more gracefully
Issue a warning about non-decodable files, but do not break
completely.

Addresses #11736

(cherry picked from commit c4da8d38c9)
2020-02-14 08:05:17 +01:00
Juergen Spitzmueller
ad56c71dce Amend 00bdc20693 2020-01-27 11:13:05 +01:00
Juergen Spitzmueller
6c3e7d2a47 Fix erroneous space in output caused by changebar module (bug 11473) 2020-01-27 08:39:18 +01:00
Juergen Spitzmueller
00bdc20693 Consider shorthand in biblatex cite display
Fixes #11696

(cherry picked from commit 400706ad05)
2020-01-27 08:34:54 +01:00
Juergen Spitzmueller
878efbaf62 Re-fix #11146 with recent LaTeX
(cherry picked from commit e75fa6f3ac)
2020-01-27 08:29:12 +01:00
José Matos
78db6194c6 Fix typo in lyx2lyx conversion to 2.1 (taken from master) 2019-12-28 14:39:49 +00:00
Juergen Spitzmueller
2b949e42f7 Set makeindex as index processor in the docs
Prevent that another processor (such as xindy) is used when set in prefs.

xindy does not play well with hyperref.

Fixes #11708

(cherry picked from commit cb25603ae1)
2019-12-15 07:36:40 +01:00
Juergen Spitzmueller
94ebd10faa nl/Intro.lyx: Update by Niko Strijbol 2019-11-23 15:29:47 +01:00
Juergen Spitzmueller
bf82c51f25 Beamer loads amsmath
(cherry picked from commit a37c003448)
2019-11-21 08:02:48 +01:00
José Matos
b1860e301a Attempt to fix #11457
In python 3 the colors need to be strings and not bytes:

This was the equivalent of

>> print("%s" % b"1")
"b'1'"

since the colors were bytes the call to dvipng was something like

dvipng -Ttight -depth -height -D 115 -fg "b'rgb 0.937255 0.941176 0.945098'" -bg "b'rgb 0.137255 0.149020 0.160784'"  "lyxpreviewxBJEqm.dvi"

Note the "b'rgb after both -fg and -bg that wrecked havoc and thus dvipng failed. That was the difference between python2 and python3 calls.

(cherry picked from commit 8dd31803b1)
2019-10-30 19:27:50 -04:00
Juergen Spitzmueller
f838b16a9b Allow to hide formats from menus
Fixes: #11657
(cherry picked from commit d76cef70a0)
2019-09-11 10:46:07 +02:00
Juergen Spitzmueller
1f2598a6a1 Use acadian rather than canadien
This is what babel-french urges, and canadien currently is broken.

acadien seems to be there for at least 15 years
2019-08-27 17:35:54 +02:00
Juergen Spitzmueller
2479534e57 Amend [d30da478d/lyxgit]
Some non-stable code was erroneously cherry-picked.

Fixes: #11642
2019-08-22 17:35:56 +02:00
Günter Milde
d30da478d4 Fix encoding issues with configuration under Python 3.
Backported from [b9cc642/lyxgit].
2019-08-21 23:20:27 +02:00
Juergen Spitzmueller
e097bade85 hebarticle: fix compilation with XeTeX (bug #10525)
(cherry picked from commit 1f2eb92b33)
2019-08-16 07:35:43 +02:00
Juergen Spitzmueller
1c2700eb11 Re-fix #2005
Loading keyval does not work any longer. Fix it properly by de-activating
the equal character locally if graphics options use it.

We do this statically for Turkish and Latin in stable, as opposed to
master (where we have the ActiveChars languages tag)
2019-08-15 09:20:40 +02:00
Juergen Spitzmueller
43463a48f8 Typo 2019-08-09 08:06:23 +02:00
Juergen Spitzmueller
1ee62a3358 Fix interplay of memoir and geometry
Fixes: #10970
(cherry picked from commit 65c1ae8133)
2019-08-06 10:10:53 +02:00
Richard Kimberly Heck
4582edac1a Fix typo
(cherry picked from commit 4597622ce5)
2019-07-25 00:05:39 -04:00
Uwe Stöhr
0baa24df71 colored-boxes.lyx: add section about references
is a user request
2019-07-21 01:31:46 +02:00
Juergen Spitzmueller
36bffd0d2b Russian doc updates by Yuriy 2019-07-13 09:52:11 +02:00
Juergen Spitzmueller
4fb4035e7f Update Russian Tutorial
Patch by Yuriy
2019-07-09 16:10:23 +02:00
Juergen Spitzmueller
ba1784ea89 Dutch doc updates by Niko 2019-07-06 15:46:02 +02:00
Jean-Marc Lasgouttes
b89749ae1d Let TeXFiles.py handle symbolic links.
Nix (https://nixos.org) is a Unix package manager, which can be used to
install LaTeX on macOS. A peculiarity of Nix is that all packages are
installed into separate directories and the actual directory tree is
then constructed via symlinks.

This interacts badly with the way LyX currently detects files in the
TeX setup, because TeXFiles.py does not follow symlinks. Therefore,
almost nothing is found when using LyX together with Nix’ LaTeX.

Patch from Michael Roitzsch.

(cherry picked from commit 642b4acca1)
2019-06-27 23:53:03 +02:00
Enrico Forestieri
eb66e68ed5 Add submenu to math context menu
The "Rows & Columns" optional submenu is more easily accessible in
the math context menu rather having to navigate to the "Edit" menu.
All possible accelerators are already taken, so use the space bar.

(cherry picked from commit ff7eb0eb38)
2019-06-25 21:21:47 +02:00
Juergen Spitzmueller
2729589b4f Add Niko Strijbol to the credits
(cherry picked from commit 722ae1556d)
2019-06-21 12:20:34 +02:00
Scott Kostyshak
06606b659b Tab binding: outline-in before depth-increment
Same for BackTab. The outline-in was originally (31398779)
introduced to the command-sequence at the end. Probably it was
placed at the end to be conservative (i.e., so that it would only
change behavior where there was a no-op before).

This fixes #11576.

(cherry picked from commit 9ab9f2b1ac)
2019-06-19 13:55:48 -04:00
jpc
35be3d3890 Review of a French doc file 2019-06-09 18:48:48 +02:00
Juergen Spitzmueller
f6c0c1ee35 Enable optional \cite* arguments in biblatex-natbib
(cherry picked from commit 6a4199ed23)
2019-05-13 09:25:31 +02:00
jpc
4f1ea733ce Typos in fr.po and two manuals pointed out by a user on lyx-docs 2019-05-08 11:22:25 +02:00
Kornel Benko
264dfede0e Amend 43c31f4e: Revive Bulgarian localization 2019-04-23 14:30:26 +02:00
Daniel Ramoeller
e8dc6fad05 Fix for #11476: Icons have spurious squares
(cherry picked from commit 209944796a)
2019-04-06 07:30:46 +02:00
Daniel Ramoeller
5f444ee86f Fix for Mac Command-0 zoom-buffer binding
Amends fix to #10455

(cherry picked from commit 990f1eca4a)
2019-04-06 07:28:47 +02:00
Juergen Spitzmueller
5518ca028e Add tabular-features set-inner-lines and fix set-all-lines behavior
Patch by Daniel Ramöller (racoon)

Fixes: #11382
(cherry picked from commit cb84f752f2)
2019-03-20 12:49:23 +01:00
Scott Kostyshak
9aaa6c73d5 Intro.lyx: remove a "short title"
This short title removed a spaced, and when taking a look we decided
that the advantages of removing it (simplicity and consistency)
outweigh the benefits of having a shorter entry in the table of
contents and PDF bookmarks.

(cherry picked from commit 9c748a04702a979786f39bb7fa367e3945b51ae3)
2019-02-15 12:19:29 -05:00
Juergen Spitzmueller
130a555796 Fix IPA icons
Convert text to path and fix the most salient drawing issues.
2019-02-11 16:47:36 +01:00
Daniel Ramoeller
b8e6527c79 Fix for #11294: Wrong description for Change bars module
(cherry picked from commit f71723c8f3)
2019-01-19 19:04:47 -05:00
Juergen Spitzmueller
177bf8dba8 force some symbols as macros with utf8-cjk
cherry-picked from
* 4786c59a8c
* 81af82d1e8
* c2d20645be
2019-01-12 17:40:55 +01:00
Juergen Spitzmueller
e27870db7a CJKutf8 is only to be used with the dedicated utf8-cjk encoding
cherry-picked from 9982651fd6
2019-01-12 17:40:19 +01:00
Juergen Spitzmueller
434842563a Add support for U+2693 (ANCHOR)
Fixes: #10706
(cherry picked from commit ead498f0a6)
2019-01-12 08:34:11 +01:00
Scott Kostyshak
822e0133aa ko splash.lyx: specify "mj" as CJK font
Now (thanks to d193cd05), the Korean splash.lyx compiles
out-of-the-box with pdflatex.

Thanks to Jürgen.

(cherry picked from commit 0cfaf406c5)
2019-01-07 11:56:23 -05:00
Kornel Benko
ee4a95888f Enable error-free compilation of ko splash.lyx with xetex and lautex
This amends somehow 9238004c. Since the system font NanumMyeongjo
and the "mj" spec as CJK latex font are related, this change
seems appropriate.

(cherry picked from commit f092208c89)
2019-01-07 17:40:39 +01:00
Stephan Witt
432986e8f2 Correct converter configuration for inkscape on Mac
On Mac the inkscape binary is started by a wrapper script. This script changes the
working directory internally and fails to process files with relative path names.
The previous attempt to solve it was to pass the file names with absolute names
by prepending them with the $$p variable (representing the directory name of the files).
This broke the on screen conversion (used for SVGZ to PNG e.g. in the users guide)
because here the $$p variable is undefined.

Now the wrapper script of LyX which is used to locate the Inkscape.app bundle converts
the relative path names into absolute names and the $$p variable is removed from the
converter definitions for inkscape again.

(cherry picked from commit caa1dd2aee)
2019-01-07 00:18:52 +01:00
Scott Kostyshak
5bcb0ca6d8 Bibliography.lyx: minor cosmetic changes
- Add note explaining this file should not be compiled on its own.
- Remove custom preamble.
- Remove setting of master document.

(cherry picked from commit 3ac2dd8e6c)
(cherry picked from commit 91d8aea8d3)
(cherry picked from commit 6e815d3eba)
2019-01-05 16:51:28 -05:00
Kornel Benko
00cd6f101c Amend 031d1c86: Add support for aastex62 2018-12-30 09:22:55 +01:00
Kornel Benko
031d1c86a1 Added aastex62 example an template files
This is 2.3.x- adapted copy of the versions in master tree.
2018-12-29 19:52:45 +01:00
Juergen Spitzmueller
d62775553a Beamer: autonest column in columns
Candidate for stable

(cherry picked from commit 012d9b088e)
2018-12-29 18:34:10 +01:00
Juergen Spitzmueller
7e1ecb653b Handle bibliography irritations in thesis template
Outsource the bibliography to an own child, which is then also included
in the children's "Standalone" branch

Add some clarifying notes.

Fixes: #10748
(cherry picked from commit 12aaeb259f)
2018-12-29 18:07:17 +01:00
Richard Kimberly Heck
36bc179efd New layout file for American Mathematical Monthly.
From John Perry. See bug #10803.
2018-12-29 11:48:02 -05:00
Richard Kimberly Heck
b286511b75 Typo
(cherry picked from commit 75c8e5c000)
2018-12-28 23:35:07 -05:00
Richard Kimberly Heck
9cd9712cf0 Fix bug #11378.
(cherry picked from commit f11a51be35)
2018-12-28 23:04:46 -05:00
Richard Kimberly Heck
7bc7b8f422 Speed up convert_literalparam. Part of #11200.
(cherry picked from commit 4549f46a43)
2018-12-11 18:03:44 -05:00
Richard Kimberly Heck
b665b1af27 Speed up convert_specialchars. Part of #11200.
(cherry picked from commit 96ea84e042)
2018-12-11 18:02:48 -05:00
Richard Kimberly Heck
f57346dd6e Speed up convert_captionlayouts. Part of #11200.
(cherry picked from commit 4cb209b121)
2018-12-11 18:01:29 -05:00
Richard Heck
26d4b5bb47 Fix bug #7404.
This allows for external editing of ERT insets. Original patch
by Georg Baum. Updated to 2.4dev by Riki Heck.

(cherry picked from commit f17f5617e0)
2018-12-11 17:43:17 -05:00
Richard Kimberly Heck
38e439d300 Revert "Revert "Check for old "LyX 2.3" user directory when configuring.""
This reverts commit b66cf5aecd.
2018-12-08 11:02:41 -05:00
Richard Kimberly Heck
05595fdc89 Hungarian translation update. 2018-11-29 18:04:22 -05:00
Richard Kimberly Heck
c3f2f4e5bb Typo 2018-11-29 18:02:49 -05:00
Juergen Spitzmueller
53a108e814 Load covington later
This solves a loading order conflict with beamer-article.

(cherry picked from commit 00ee54e694)
2018-10-13 09:49:10 +02:00
Enrico Forestieri
e323f74b78 Fix bug #11332
Add the "hyperref-driver=dvips" option to the extra flags of the
latex->dvi converter so that the breakurl package is automatically
loaded when needed.

(cherry picked from commit f5e6db7171)
2018-10-12 08:27:23 +02:00
Juergen Spitzmueller
5133026b01 Fix suprious comma in book and thesis bib preview.
Fixes: #11272
(cherry picked from commit 399a4d7e71)
2018-10-08 11:40:24 +02:00
Richard Heck
a05da2121c Fix bug 11070.
Allows plural, caps, no prefix to be set via context menu.

(cherry picked from commit 35afcfb6dd)
2018-10-04 00:17:47 -04:00
Pavel Sanda
a067267648 update LFUNs.lyx 2018-10-03 23:27:25 +02:00
Richard Kimberly Heck
b66cf5aecd Revert "Check for old "LyX 2.3" user directory when configuring."
Actually, we DO use versioned directories on Windows.

This reverts commit b738aa53d1.
2018-09-29 17:31:35 -04:00
Richard Kimberly Heck
b738aa53d1 Check for old "LyX 2.3" user directory when configuring.
This is due to the bad packaging in the early 2.3.x installers. We
normally do not use version suffixes on Windows, but did.
2018-09-28 21:54:46 -04:00
Juergen Spitzmueller
2f4323e278 Update layout format information in the docs.
Based on a patch by Andrew Parsloe.
2018-09-20 13:01:48 +02:00
Juergen Spitzmueller
b5892e58f0 Fix copy-paste error.
(cherry picked from commit 305d449a47)
2018-09-19 08:54:09 +02:00
Jean-Marc Lasgouttes
5c4c8065aa needauth is not needed for Sweave>LyX
Indeed this relies on tex2lyx and does not run R scripts.

The same holds for Knitr>LyX

(cherry picked from commit 23dbacb636)
2018-09-18 08:52:57 +02:00
Juergen Spitzmueller
4d81f210c1 Support key symbols via menukeys package
(cherry picked from commit fd7490762d)
2018-09-10 09:46:25 +02:00
Juergen Spitzmueller
b8c62838ec Covington now provides subexamples itself
Candidate for stable.

(cherry picked from commit ab16bb7eb9)
2018-09-09 19:17:46 +02:00
Scott Kostyshak
3fd0cc27d4 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).

(cherry picked from commit 7b57685048)
2018-09-09 12:17:48 +02:00
Juergen Spitzmueller
a359a53eb6 Disallow paragraph customization in some single-par charstyle insets
Fixes: #9192
(cherry picked from commit 7a5184fd87)
2018-09-09 11:41:52 +02:00
Juergen Spitzmueller
29355d34d5 Use footnotehyper rather than footnote if hyperref is used
Fixes: #11212
(cherry picked from commit f8e286b823)
2018-09-09 10:55:34 +02:00
Juergen Spitzmueller
b7f5fe94cd Improve Springer layout descriptions 2018-09-09 10:31:55 +02:00
Juergen Spitzmueller
0c05722a60 Redesign character dialog
Fixes: #2752, #3804, #3884, #4836

Backport of [fb393b450d661/lyxgit] and [f888afeb9ef7/lyxgit]
2018-09-09 10:28:25 +02:00
Richard Kimberly Heck
f0c18e1f41 Notes related to bug #11216. 2018-08-28 15:22:50 -04:00
Juergen Spitzmueller
7e4e255d00 Fix credits entry 2018-08-20 09:34:53 +02:00
Enrico Forestieri
103d6c6362 Fix bug #11247
async is a reserved keyword in python 3.7

(cherry picked from commit 061cd7fd9c)
2018-08-19 16:35:20 +02:00
Kornel Benko
1140ed1ed3 Revert "Do not increment start for find(phrase) while looping over phrases"
This reverts commit e7b3b62b0b.
The 'for phrase in' loop is organized differently to master.

Thanks Enrico
2018-08-04 13:36:38 +02:00
Kornel Benko
e7b3b62b0b Do not increment start for find(phrase) while looping over phrases
The increment will be done at the end of the for-loop.

(cherry picked from commit a96845660e)
2018-08-03 19:54:24 +02:00
Enrico Forestieri
9a851be4fa 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:27:43 +02:00
Juergen Spitzmueller
3481bf4c11 Add Winfred Huang to the Credits
(cherry picked from commit df33cc3334)
2018-07-28 09:38:12 +02:00
Juergen Spitzmueller
e0e998b157 Fix austrian language code
(cherry picked from commit b12ea3b731)
2018-07-25 19:44:26 +02:00
Juergen Spitzmueller
bdbdd28756 Fix command line output of convertDefault.py for ImageMagick
Part of #11186

(cherry picked from commit 1e5acc5656)
2018-07-13 17:26:34 +02:00
Kornel Benko
87ade10245 dtk.layout: Remove secondary dependencies due to change in TL2018
(cherry picked from commit 650ef5f1cb)
2018-07-06 10:00:30 +02:00
Juergen Spitzmueller
2394de0b0f Update elsarticle entry in LaTeXConfig
(cherry picked from commit 73e0a6c4d5)
2018-07-05 19:29:57 +02:00
Juergen Spitzmueller
c5ece21095 Fix typo 2018-07-05 17:52:28 +02:00