lyx_mirror/lib/scripts
Scott Kostyshak 562917dc1c lyxpreview_tools.py: fix a regular expression
Three backslashes are needed before a LaTeX command, not one. Before
this commit, the code gave the following error with Python >= 3.6:

  re.error: bad escape \g at position 29

This error was introduced with Python 3.6, as documented [1] by the
following line of documentation:

  Changed in version 3.6: Unknown escapes in pattern consisting of
  '\' and an ASCII letter now are errors.

Although previous Python versions did not give an error, the regular
expression was not working as intended: for example, the "\\n" in
"\\newcommandx" would be interpreted as a new line.

[1] https://docs.python.org/3.6/library/re.html#re.sub
2020-02-15 21:57:30 -05:00
..
bash_completion Small clean-up to debug support 2015-07-08 11:03:42 +02:00
checkKeys.pl.in Cmate tests: Amend aca3031 2018-06-09 09:48:41 +02:00
clean_dvi.py Remove the shebang line from our python scripts, per Jose's suggestion. 2014-01-28 12:52:16 -05:00
CMakeLists.txt Cmake tests: Added check to inspect created pdf in test "AMS-import" 2018-06-09 09:15:21 +02:00
convert_pdf.py Add low-res pdf export as suggested by James 2015-02-11 22:24:04 +01:00
convertDefault.py Remove code that is redudant. 2019-06-04 18:26:13 +01:00
csv2lyx.py csv2lyx: use universal newlines when reading CSVs 2014-02-16 00:07:43 -05:00
ext_copy.py scripts/ext_copy.py: add option to copy directly to the document directory 2017-08-08 15:23:03 +01:00
fen2ascii.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
fig2pdftex.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
fig2pstex.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
fig_copy.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
gnuplot2pdf.py Port gnuplot2pdf.py to Python 3 2019-09-04 09:12:09 -04:00
html2latexwrapper.py Remove the shebang line from our python scripts, per Jose's suggestion. 2014-01-28 12:52:16 -05:00
include_bib.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
layout2layout.py Add Requires to float definition. 2019-08-12 12:18:28 +02:00
legacy_lyxpreview2ppm.py Load color before polyglossia also in preview snippets 2017-07-11 10:03:03 +02:00
listerrors Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
lyx_batch.pl.in Add a testcase for buffer-write-as 2019-05-27 10:21:15 +02:00
lyxknitr.R Handle encoding correctly with knitr>=1.0 (#8504) 2013-01-21 09:53:26 +01:00
lyxpak.py lyxpak.py: Python 3 compatibility 2017-04-15 00:05:40 +02:00
lyxpreview2bitmap.py Make verbose switch consistent. 2019-06-03 07:31:05 +01:00
lyxpreview_tools.py lyxpreview_tools.py: fix a regular expression 2020-02-15 21:57:30 -05:00
lyxstangle.R Add possibility to export the R code from a sweave-enabled document 2011-08-23 10:33:42 +00:00
lyxsweave.R Fix #8019 (from yihui) 2012-02-02 22:30:38 +00:00
prefs2prefs_lfuns.py So long, date-insert! 2018-08-20 09:25:22 +02:00
prefs2prefs_prefs.py Add pref to keep ct markup on copy/paste 2020-01-13 15:20:48 +01:00
prefs2prefs.py prefs2prefs.py: whitespace changes 2017-05-12 15:29:29 +01:00
prefTest.pl.in Cmake export tests: Modularisation of prefTest.pl 2017-06-18 12:13:57 +02:00
prefTest.pm Cmake export tests: Missed second parameter for writeConverters() 2017-06-21 00:09:50 +02:00
svg2pdftex.py Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
svg2pstex.py Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
tex_copy.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
TeXFiles.py Let TeXFiles.py handle symbolic links. 2019-06-25 15:52:46 +02:00