[LyX/master] Missed this one: InsetLayout does not do HTMLClass (at least not yet).

2022-12-04 Thread Richard Kimberly Heck
commit 409d889822d411f7f7d8b88138d389284a5e7d14
Author: Richard Kimberly Heck 
Date:   Mon Dec 5 01:07:25 2022 -0500

Missed this one: InsetLayout does not do HTMLClass (at least not yet).
---
 lib/layouts/logicalmkup.module |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/layouts/logicalmkup.module b/lib/layouts/logicalmkup.module
index 1f70d6d..88ba523 100644
--- a/lib/layouts/logicalmkup.module
+++ b/lib/layouts/logicalmkup.module
@@ -19,7 +19,7 @@ InsetLayout Flex:Noun
Requires  noun
InToc true
HTMLTag   span
-   HTMLClass noun
+   HTMLAttr  "class='noun'"
HTMLStyle
span.noun {
font-family: sans-serif;
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs


[LyX/master] missed this.

2018-11-09 Thread Juergen Spitzmueller
commit 523d284729312376609e8b239b16e434c156da2a
Author: Juergen Spitzmueller 
Date:   Fri Nov 9 11:47:51 2018 +0100

missed this.
---
 src/insets/InsetInfo.cpp |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp
index 52d98e3..d6c68ed 100644
--- a/src/insets/InsetInfo.cpp
+++ b/src/insets/InsetInfo.cpp
@@ -157,7 +157,7 @@ set getTexFileList(string const & filename)
 
// Normalise paths like /foo//bar ==> /foo/bar
for (auto doc : doclist) {
-   subst(doc, from_ascii("\r"), docstring());
+   doc = subst(doc, from_ascii("\r"), docstring());
while (contains(doc, from_ascii("//")))
doc = subst(doc, from_ascii("//"), from_ascii("/"));
if (!doc.empty())


[LyX/master] Missed this one in 8a7c109

2018-08-18 Thread Kornel Benko
commit cbb0d56719448802e11f784d9ec9206a741cce94
Author: Kornel Benko 
Date:   Sat Aug 18 17:42:03 2018 +0200

Missed this one in 8a7c109
---
 development/FORMAT |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/development/FORMAT b/development/FORMAT
index 61a460c..b937f08 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -8,6 +8,9 @@ changes happened in particular if possible. A good example 
would be
 ---
 
 
+2018-08-18  Kornel Benko 
+   * Added IBM Plex fonts
+
 2018-08-16  Jürgen Spitzmüller 
* format incremented to 563: New inset argument type "listpreamble". 
The content will
   be inserted between environment begin and first \item of a list.


[LyX master] Missed in previous commit. Added handling of package cancel to the new lyx-format 464

2013-02-27 Thread Kornel Benko
The branch, master, has been updated.

- Log -

commit 2639734157ed24b07ed86cc3f74650e4acd561aa
Author: Kornel Benko kor...@lyx.org
Date:   Wed Feb 27 13:14:59 2013 +0100

Missed in previous commit. Added handling of package cancel to the new 
lyx-format 464

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index b6155da..dbf4d5c 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -525,6 +525,7 @@ Preamble::Preamble() : one_language(true), 
explicit_babel(false),
h_use_refstyle= false;
h_use_packages[amsmath]= 1;
h_use_packages[amssymb]= 0;
+   h_use_packages[cancel] = 0;
h_use_packages[esint]  = 1;
h_use_packages[mhchem] = 0;
h_use_packages[mathdots]   = 0;
@@ -770,7 +771,7 @@ void Preamble::handle_package(Parser p, string const  
name,
||  is_known(name, known_typewriter_fonts) || 
is_known(name, known_math_fonts))
;
 
-   else if (name == amsmath || name == amssymb ||
+   else if (name == amsmath || name == amssymb || name == cancel ||
 name == esint || name == mhchem || name == mathdots ||
 name == mathtools || name == stackrel ||
 name == stmaryrd || name == undertilde)

commit 8f36aef17ab47aea0088648285c251415c17
Author: Kornel Benko kor...@lyx.org
Date:   Wed Feb 27 13:12:03 2013 +0100

Added cancel to the GUI handled list of LaTeX packages.
Generalized convert_use_???() and revert_use_???() routines in lyx2lyx.

diff --git a/development/FORMAT b/development/FORMAT
index 5d34fd3..0558362 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -11,6 +11,10 @@ adjustments are made to tex2lyx and bugs are fixed in 
lyx2lyx.
 
 ---
 
+2013-02-27 Kornel Benko kor...@lyx.org
+* Format incremented to 464:
+ - Added cancel to the GUI handled list of LaTeX packages
+
 2013-02-18 Julien Rioux jri...@lyx.org
* Format incremented to 463:
  - Use the LyX name of encodings instead of the LaTeX names.
diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py
index bc4d23b..5feefd8 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -370,36 +370,29 @@ def revert_use_packages(document):
 j = j + 1
 
 
-def convert_use_mathtools(document):
-insert use_package mathtools
+def convert_use_package(document, pkg):
 i = find_token(document.header, \\use_package, 0)
 if i == -1:
 document.warning(Malformed LyX document: Can't find \\use_package.)
 return;
-j = find_token(document.preamble, \\usepackage{mathtools}, 0)
+j = find_token(document.preamble, \\usepackage{ + pkg + }, 0)
 if j == -1:
-document.header.insert(i + 1, \\use_package mathtools 0)
+document.header.insert(i + 1, \\use_package  + pkg +  0)
 else:
-document.header.insert(i + 1, \\use_package mathtools 2)
+document.header.insert(i + 1, \\use_package  + pkg +  2)
 del document.preamble[j]
 
 
-def revert_use_mathtools(document):
-remove use_package mathtools
-regexp = re.compile(r'(\\use_package\s+mathtools)')
+def revert_use_package(document, pkg, commands):
+regexp = re.compile(r'(\\use_package\s+%s)' % pkg)
 i = find_re(document.header, regexp, 0)
 value = 1 # default is auto
 if i != -1:
 value = get_value(document.header, \\use_package , i).split()[1]
 del document.header[i]
 if value == 2: # on
-add_to_preamble(document, [\\usepackage{mathtools}])
+add_to_preamble(document, [\\usepackage{ + pkg + }])
 elif value == 1: # auto
-commands = [mathclap, mathllap, mathrlap, \
-lgathered, rgathered, vcentcolon, dblcolon, \
-coloneqq, Coloneqq, coloneq, Coloneq, eqqcolon, \
-Eqqcolon, eqcolon, Eqcolon, colonapprox, \
-Colonapprox, colonsim, Colonsim]
 i = 0
 while True:
 i = find_token(document.body, '\\begin_inset Formula', i)
@@ -413,37 +406,36 @@ def revert_use_mathtools(document):
 code = \n.join(document.body[i:j])
 for c in commands:
 if code.find(\\%s % c) != -1:
-add_to_preamble(document, [\\usepackage{mathtools}])
+add_to_preamble(document, [\\usepackage{ + pkg + }])
 return
 i = j
 
 
+def convert_use_mathtools(document):
+insert use_package mathtools
+convert_use_package(document, mathtools)
+
+
+def revert_use_mathtools(document):
+remove use_package mathtools
+commands = [mathclap, mathllap, mathrlap, \
+lgathered, rgathered, vcentcolon, dblcolon, \
+coloneqq, Coloneqq, coloneq, Coloneq, eqqcolon, \
+Eqqcolon, eqcolon, Eqcolon, colonapprox, \
+

[LyX master] Missed in previous commit. Added handling of package cancel to the new lyx-format 464

2013-02-27 Thread Kornel Benko
The branch, master, has been updated.

- Log -

commit 2639734157ed24b07ed86cc3f74650e4acd561aa
Author: Kornel Benko 
Date:   Wed Feb 27 13:14:59 2013 +0100

Missed in previous commit. Added handling of package cancel to the new 
lyx-format 464

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index b6155da..dbf4d5c 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -525,6 +525,7 @@ Preamble::Preamble() : one_language(true), 
explicit_babel(false),
h_use_refstyle= false;
h_use_packages["amsmath"]= "1";
h_use_packages["amssymb"]= "0";
+   h_use_packages["cancel"] = "0";
h_use_packages["esint"]  = "1";
h_use_packages["mhchem"] = "0";
h_use_packages["mathdots"]   = "0";
@@ -770,7 +771,7 @@ void Preamble::handle_package(Parser , string const & 
name,
||  is_known(name, known_typewriter_fonts) || 
is_known(name, known_math_fonts))
;
 
-   else if (name == "amsmath" || name == "amssymb" ||
+   else if (name == "amsmath" || name == "amssymb" || name == "cancel" ||
 name == "esint" || name == "mhchem" || name == "mathdots" ||
 name == "mathtools" || name == "stackrel" ||
 name == "stmaryrd" || name == "undertilde")

commit 8f36aef17ab47aea0088648285c251415c17
Author: Kornel Benko 
Date:   Wed Feb 27 13:12:03 2013 +0100

Added "cancel" to the GUI handled list of LaTeX packages.
Generalized convert_use_???() and revert_use_???() routines in lyx2lyx.

diff --git a/development/FORMAT b/development/FORMAT
index 5d34fd3..0558362 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -11,6 +11,10 @@ adjustments are made to tex2lyx and bugs are fixed in 
lyx2lyx.
 
 ---
 
+2013-02-27 Kornel Benko 
+* Format incremented to 464:
+ - Added "cancel" to the GUI handled list of LaTeX packages
+
 2013-02-18 Julien Rioux 
* Format incremented to 463:
  - Use the LyX name of encodings instead of the LaTeX names.
diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py
index bc4d23b..5feefd8 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -370,36 +370,29 @@ def revert_use_packages(document):
 j = j + 1
 
 
-def convert_use_mathtools(document):
-"insert use_package mathtools"
+def convert_use_package(document, pkg):
 i = find_token(document.header, "\\use_package", 0)
 if i == -1:
 document.warning("Malformed LyX document: Can't find \\use_package.")
 return;
-j = find_token(document.preamble, "\\usepackage{mathtools}", 0)
+j = find_token(document.preamble, "\\usepackage{" + pkg + "}", 0)
 if j == -1:
-document.header.insert(i + 1, "\\use_package mathtools 0")
+document.header.insert(i + 1, "\\use_package " + pkg + " 0")
 else:
-document.header.insert(i + 1, "\\use_package mathtools 2")
+document.header.insert(i + 1, "\\use_package " + pkg + " 2")
 del document.preamble[j]
 
 
-def revert_use_mathtools(document):
-"remove use_package mathtools"
-regexp = re.compile(r'(\\use_package\s+mathtools)')
+def revert_use_package(document, pkg, commands):
+regexp = re.compile(r'(\\use_package\s+%s)' % pkg)
 i = find_re(document.header, regexp, 0)
 value = "1" # default is auto
 if i != -1:
 value = get_value(document.header, "\\use_package" , i).split()[1]
 del document.header[i]
 if value == "2": # on
-add_to_preamble(document, ["\\usepackage{mathtools}"])
+add_to_preamble(document, ["\\usepackage{" + pkg + "}"])
 elif value == "1": # auto
-commands = ["mathclap", "mathllap", "mathrlap", \
-"lgathered", "rgathered", "vcentcolon", "dblcolon", \
-"coloneqq", "Coloneqq", "coloneq", "Coloneq", "eqqcolon", \
-"Eqqcolon", "eqcolon", "Eqcolon", "colonapprox", \
-"Colonapprox", "colonsim", "Colonsim"]
 i = 0
 while True:
 i = find_token(document.body, '\\begin_inset Formula', i)
@@ -413,37 +406,36 @@ def revert_use_mathtools(document):
 code = "\n".join(document.body[i:j])
 for c in commands:
 if code.find("\\%s" % c) != -1:
-add_to_preamble(document, ["\\usepackage{mathtools}"])
+add_to_preamble(document, ["\\usepackage{" + pkg + "}"])
 return
 i = j
 
 
+def convert_use_mathtools(document):
+"insert use_package mathtools"
+convert_use_package(document, "mathtools")
+
+
+def revert_use_mathtools(document):
+"remove use_package mathtools"
+commands = ["mathclap", "mathllap", "mathrlap", \
+"lgathered",