corey.yanofsky | 28 Nov 21:08 2014
Picon

corey.yanofsky <at> gmail.com is waiting for your reply. Respond?

Click here to discover corey.yanofsky <at> gmail.com's favorite websites!
corey.yanofsky <at> gmail.com wants to follow you
I would like to add you as a friend
-corey.yanofsky <at> gmail.com
Accept Decline
Following corey.yanofsky <at> gmail.com helps you discover great websites they recommend :)
Click here to unsubscribe from such emails from corey.yanofsky <at> gmail.com or all friends


P.O. BOX 70928, Sunnyvale, CA 94086
corey.yanofsky | 26 Nov 02:28 2014
Picon

You have a new notification from corey.yanofsky <at> gmail.com. View?

Click here to discover corey.yanofsky <at> gmail.com's favorite websites!
New Notification
You have a new notification from
corey.yanofsky <at> gmail.com
View? No
Click here to unsubscribe from such emails from corey.yanofsky <at> gmail.com or all friends


P.O. BOX 70928, Sunnyvale, CA 94086
Kornel Benko | 24 Nov 14:23 2014

Using instant preview for math formulas


Sometimes one needs to have some input in preamble to be able
to preview. As it is now, the preamble is not used.

It would be nice to have some marker in the preamble text indicating
that following code is needed for instant preview too.

	Kornel
Richard Hughes | 24 Nov 13:17 2014
Picon

AppData file

Hi all,

The AppData file for lyx has just appeared in Fedora rawhide;
unfortunately with this error:

+WARNING: Failed to run process on lyx: AppData
f22/lyx-common-2.1.2-2.fc22/usr/share/appdata/lyx.appdata.xml does not
match 'lyx.desktop':'lyx'

The <id> has to be the full application ID, which includes the
'.desktop' bit. Sorry if the specification was unclear. Could you
please fix this for your next release please? Thanks.

Richard

Pietro Cortese | 23 Nov 15:58 2014
Picon
Picon

Small conversion issue with beamer

Hello,

I have found a small conversion issue from lyx 2.0 to 2.1.
In 2.0 one could define blocks and, for what I could tell, the block 
title was to be specified with ERT.

In 2.1 one can insert the block title and the ERT text is now 
interpreted as part of the block.

You can find in attachment the same document compiled with lyx 2.0 and 
lyx 2.1.

I wrote a small awk script to correct the problem.

Best regards,
Pietro
Attachment (beamer-test.lyx): application/x-lyx, 2092 bytes
Attachment (beamer-test-2.0.pdf): application/pdf, 23 KiB
Attachment (beamer-test-2.1.pdf): application/pdf, 15 KiB
Attachment (convert.awk): application/x-awk, 1528 bytes
corey.yanofsky | 23 Nov 01:27 2014
Picon

You have a new notification from corey.yanofsky <at> gmail.com. View??

Click here to discover corey.yanofsky <at> gmail.com's favorite websites!
New Notification
You have a new notification from
-corey.yanofsky <at> gmail.com
View? No
Click here to unsubscribe from such emails from corey.yanofsky <at> gmail.com or all friends


P.O. BOX 70928, Sunnyvale, CA 94086
stefano franchi | 22 Nov 04:55 2014
Picon

Pushing to features branch(es)?

Is there any special magic I am supposed to use to push a commit on features/biblatex upstream?

[stefano <at> gorgias]$ git status
On branch features/biblatex
Your branch is ahead of 'master' by 1 commit.
  (use "git push" to publish your local commits)


[stefano <at> gorgias]$ git push
Everything up-to-date

???

What am I doing wrong?

S.


--
__________________________________________________
Stefano Franchi

stefano.franchi <at> gmail.com
http://stefano.cleinias.org
Uwe Stöhr | 21 Nov 17:59 2014
Picon

Re: [LyX/master] tex2lyx: support for the libertine fonts

Am 20.11.2014 um 02:17 schrieb Scott Kostyshak:

>> -               if (options.size() == 1) {
>> +               if (options.size() >= 1) {
>> -                       if (options.size() == 1) {
>> +                       if (options.size() >= 1) {
>
> What do these two changes have to do with adding the libertine fonts?

The bug was that the search for the font scaling option was only 
performed if there was exactly one optional argument, e.g. 
\usepackage[scaled=0.94]{afont}
But there might be more than option e.g.
\usepackage[osf,scaled=0.94,specials=pt1]{afont}

The libertine fonts are examples for several options. (I added a hint 
about this in my commit)

regards Uwe

corey.yanofsky | 20 Nov 21:33 2014
Picon

corey.yanofsky <at> gmail.com has indicated you're a friend. Accept?

Click here to discover corey.yanofsky <at> gmail.com's favorite websites!
corey.yanofsky <at> gmail.com wants to follow you
I would like to add you as a friend
-corey.yanofsky <at> gmail.com
Accept Decline
Following corey.yanofsky <at> gmail.com helps you discover great websites they recommend :)
Click here to unsubscribe from such emails from corey.yanofsky <at> gmail.com or all friends


P.O. BOX 70928, Sunnyvale, CA 94086
Scott Kostyshak | 20 Nov 09:09 2014

Python 3 incompatibilities still exist right?

I cleaned RELEASE-NOTES for the master branch. This note is still
relevant right?

- LyX needs to be run under Python 2 and will not work properly on systems
  where Python 3 is the default binary. See bug #7030 to know how to fix
  this properly, since simple sheebang conversion in *.py files will not
  be enough.

I've seen some references here and there (e.g. Benjamin's work on
features/python3), but Python 3 incompatibility is still in master
right?

Scott

Uwe Stöhr | 20 Nov 02:29 2014
Picon

[patch] 2 patches for branch

- the first patch bformats math's infoize messages (fixes bug #1908)
- the second one add tex2lyx support for all libertine font variants

OK for LyX 2.1.3?

regards Uwe
 src/mathed/InsetMathBox.cpp        | 6 +++++-
 src/mathed/InsetMathColor.cpp      | 6 +++++-
 src/mathed/InsetMathDecoration.cpp | 6 +++++-
 src/mathed/InsetMathEnv.cpp        | 6 +++++-
 src/mathed/InsetMathFont.cpp       | 6 +++++-
 src/mathed/InsetMathFontOld.cpp    | 6 +++++-
 src/mathed/InsetMathHull.cpp       | 2 +-
 src/mathed/InsetMathSize.cpp       | 5 ++++-
 src/mathed/MathMacro.cpp           | 7 ++++---
 src/mathed/MathMacroTemplate.cpp   | 2 +-
 10 files changed, 40 insertions(+), 12 deletions(-)

diff --git a/src/mathed/InsetMathBox.cpp b/src/mathed/InsetMathBox.cpp
index 8b3cb2b..509977b 100644
--- a/src/mathed/InsetMathBox.cpp
+++ b/src/mathed/InsetMathBox.cpp
 <at>  <at>  -19,10 +19,14  <at>  <at> 
 #include "MathSupport.h"
 #include "MetricsInfo.h"

+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include "frontends/Painter.h"

 #include <ostream>

+using namespace lyx::support;

 namespace lyx {

 <at>  <at>  -92,7 +96,7  <at>  <at>  void InsetMathBox::draw(PainterInfo & pi, int x, int y) const

 void InsetMathBox::infoize(odocstream & os) const
 {	
-	os << "Box: " << name_;
+	os << bformat(_("Box: %1$s"), name_);
 }

 
diff --git a/src/mathed/InsetMathColor.cpp b/src/mathed/InsetMathColor.cpp
index 7d00562..9023b74 100644
--- a/src/mathed/InsetMathColor.cpp
+++ b/src/mathed/InsetMathColor.cpp
 <at>  <at>  -19,8 +19,12  <at>  <at> 
 #include "MathSupport.h"
 #include "MetricsInfo.h"

+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>

+using namespace lyx::support;

 namespace lyx {

 <at>  <at>  -95,7 +99,7  <at>  <at>  void InsetMathColor::normalize(NormalStream & os) const

 void InsetMathColor::infoize(odocstream & os) const
 {
-	os << "Color: " << color_;
+	os << bformat(_("Color: %1$s"), color_);
 }

 
diff --git a/src/mathed/InsetMathDecoration.cpp b/src/mathed/InsetMathDecoration.cpp
index b9202f5..d3c23f6 100644
--- a/src/mathed/InsetMathDecoration.cpp
+++ b/src/mathed/InsetMathDecoration.cpp
 <at>  <at>  -23,10 +23,14  <at>  <at> 

 #include "support/debug.h"
 #include "support/docstring.h"
+#include "support/gettext.h"
 #include "support/lassert.h"
+#include "support/lstrings.h"

 #include <ostream>

+using namespace lyx::support;
+
 using namespace std;

 namespace lyx {
 <at>  <at>  -165,7 +169,7  <at>  <at>  void InsetMathDecoration::normalize(NormalStream & os) const

 void InsetMathDecoration::infoize(odocstream & os) const
 {
-	os << "Deco: " << key_->name;
+	os << bformat(_("Decoration: %1$s"), key_->name);
 }

 
diff --git a/src/mathed/InsetMathEnv.cpp b/src/mathed/InsetMathEnv.cpp
index a7fb33c..cc613fd 100644
--- a/src/mathed/InsetMathEnv.cpp
+++ b/src/mathed/InsetMathEnv.cpp
 <at>  <at>  -16,8 +16,12  <at>  <at> 
 #include "MathStream.h"
 #include "MathStream.h"

+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>

+using namespace lyx::support;

 namespace lyx {

 <at>  <at>  -61,7 +65,7  <at>  <at>  void InsetMathEnv::normalize(NormalStream & os) const

 void InsetMathEnv::infoize(odocstream & os) const
 {
-	os << "Env: " << name_;
+	os << bformat(_("Environment: %1$s"), name_);
 }

 
diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp
index b2e7c1d..b499858 100644
--- a/src/mathed/InsetMathFont.cpp
+++ b/src/mathed/InsetMathFont.cpp
 <at>  <at>  -18,8 +18,12  <at>  <at> 
 #include "MathParser.h"
 #include "MetricsInfo.h"

+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>

+using namespace lyx::support;

 namespace lyx {

 <at>  <at>  -200,7 +204,7  <at>  <at>  void InsetMathFont::mathmlize(MathStream & os) const

 void InsetMathFont::infoize(odocstream & os) const
 {
-	os << "Font: " << key_->name;
+	os << bformat(_("Font: %1$s"), key_->name);
 }

 
diff --git a/src/mathed/InsetMathFontOld.cpp b/src/mathed/InsetMathFontOld.cpp
index c14c4e3..013808d 100644
--- a/src/mathed/InsetMathFontOld.cpp
+++ b/src/mathed/InsetMathFontOld.cpp
 <at>  <at>  -18,8 +18,12  <at>  <at> 
 #include "MathSupport.h"
 #include "MetricsInfo.h"

+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>

+using namespace lyx::support;

 namespace lyx {

 <at>  <at>  -96,7 +100,7  <at>  <at>  void InsetMathFontOld::normalize(NormalStream & os) const

 void InsetMathFontOld::infoize(odocstream & os) const
 {
-	os << "Font: " << key_->name;
+	os << bformat(_("Font: %1$s"), key_->name);
 }

 
diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 20787e2..9bef7fe 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
 <at>  <at>  -1295,7 +1295,7  <at>  <at>  void InsetMathHull::normalize(NormalStream & os) const

 void InsetMathHull::infoize(odocstream & os) const
 {
-	os << "Type: " << hullName(type_);
+	os << bformat(_("Type: %1$s"), hullName(type_));
 }

 
diff --git a/src/mathed/InsetMathSize.cpp b/src/mathed/InsetMathSize.cpp
index a638f43..dc79652 100644
--- a/src/mathed/InsetMathSize.cpp
+++ b/src/mathed/InsetMathSize.cpp
 <at>  <at>  -19,10 +19,13  <at>  <at> 
 #include "output_xhtml.h"

 #include "support/convert.h"
+#include "support/gettext.h"
+#include "support/lstrings.h"

 #include <string>
 #include <ostream>

+using namespace lyx::support;
 using namespace std;

 namespace lyx {
 <at>  <at>  -101,7 +104,7  <at>  <at>  void InsetMathSize::normalize(NormalStream & os) const

 void InsetMathSize::infoize(odocstream & os) const
 {
-	os << "Size: " << key_->name;
+	os << bformat(_("Size: %1$s"), key_->name);
 }

 
diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp
index 870f8f2..941e29a 100644
--- a/src/mathed/MathMacro.cpp
+++ b/src/mathed/MathMacro.cpp
 <at>  <at>  -36,11 +36,13  <at>  <at> 
 #include "support/debug.h"
 #include "support/gettext.h"
 #include "support/lassert.h"
+#include "support/lstrings.h"
 #include "support/textutils.h"

 #include <ostream>
 #include <vector>

+using namespace lyx::support;
 using namespace std;

 namespace lyx {
 <at>  <at>  -813,14 +815,13  <at>  <at>  void MathMacro::octave(OctaveStream & os) const

 void MathMacro::infoize(odocstream & os) const
 {
-	os << "Macro: " << name();
+	os << bformat(_("Macro: %1$s"), name());
 }

 
 void MathMacro::infoize2(odocstream & os) const
 {
-	os << "Macro: " << name();
-
+	os << bformat(_("Macro: %1$s"), name());
 }

 
diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp
index 53cec03..606ac2c 100644
--- a/src/mathed/MathMacroTemplate.cpp
+++ b/src/mathed/MathMacroTemplate.cpp
 <at>  <at>  -1361,7 +1361,7  <at>  <at>  size_t MathMacroTemplate::numOptionals() const

 void MathMacroTemplate::infoize(odocstream & os) const
 {
-	os << "Math Macro: \\" << name();
+	os << bformat(_("Math Macro: \\%1$s"), name());
 }

 
 src/tex2lyx/Preamble.cpp | 19 ++++++++++++++-----
 src/tex2lyx/TODO.txt     |  7 -------
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index f138348..526940a 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
 <at>  <at>  -137,8 +137,8  <at>  <at>  const char * const known_kurier_fonts[] = { "kurier", "kurierl",
 "kurier-condensed", "kurier-light-condensed", 0};

 const char * const known_typewriter_fonts[] = { "beramono", "cmtl", "cmtt",
-"courier", "lmtt", "luximono", "fourier", "lmodern", "mathpazo", "mathptmx",
-"newcent", "tgcursor", "txtt", 0};
+"courier", "lmtt", "luximono", "fourier", "libertineMono-type1", "lmodern",
+"mathpazo", "mathptmx", "newcent", "tgcursor", "txtt", 0};

 const char * const known_math_fonts[] = { "eulervm", "newtxmath", 0};

 <at>  <at>  -727,14 +727,19  <at>  <at>  void Preamble::handle_package(Parser &p, string const & name,
 	// sansserif fonts
 	if (is_known(name, known_sans_fonts)) {
 		h_font_sans = name;
-		if (options.size() == 1) {
+		if (options.size() >= 1) {
 			if (scale_as_percentage(opts, h_font_sf_scale))
 				options.clear();
 		}
 	}

-	if (name == "biolinum-type1")
+	if (name == "biolinum-type1") {
 		h_font_sans = "biolinum";
+		// biolinum can have several options, e.g. [osf,scaled=0.97]
+		string::size_type pos = opts.find("osf");
+		if (pos != string::npos)
+			h_font_osf = "true";
+	}

 	// typewriter fonts
 	if (is_known(name, known_typewriter_fonts)) {
 <at>  <at>  -742,13 +747,17  <at>  <at>  void Preamble::handle_package(Parser &p, string const & name,
 		// fourier as typewriter is handled in handling of \ttdefault
 		if (name != "fourier") {
 			h_font_typewriter = name;
-			if (options.size() == 1) {
+			if (options.size() >= 1) {
 				if (scale_as_percentage(opts, h_font_tt_scale))
 					options.clear();
 			}
 		}
 	}

+	if (name == "libertineMono-type1") {
+		h_font_typewriter = "libertine-mono";
+	}
+
 	// font uses old-style figure
 	if (name == "eco")
 		h_font_osf = "true";
diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt
index 974dcce..61df01b 100644
--- a/src/tex2lyx/TODO.txt
+++ b/src/tex2lyx/TODO.txt
 <at>  <at>  -80,13 +80,6  <at>  <at>  Format LaTeX feature                        LyX feature
 459    beamer: \begin{frame},               \begin_layout Frame
        \begin{frame}[plain],                \begin_layout PlainFrame
        \begin{frame}[fragile]               \begin_layout FragileFrame
-462    New libertine LaTeX fonts:
-       \usepackage[scale|scaled|ttscale=$val]{libertineMono-type1}
-                                            \font_typewriter
-                                            \font_tt_scale
-       \usepackage[scale|scaled=$val]{biolinum-type1}
-                                            \font_sans
-                                            \font_sf_scale
 466   Powerdot updates:                     
       \pause[]                              layout Pause
       \onslide{}{}                          InsetFlex, InsetArgument

Gmane