Re: Automatically reload externally changed ".lyx" files?

2018-03-06 Thread Guillaume Munch
On Sat, Mar 3, 2018 at 2:16 PM, Scott Kostyshak  wrote:

> On Fri, Mar 02, 2018 at 02:12:36PM +, Klaus-Dieter Bauer wrote:
>
> > A direct comparison is probably difficult, as LyX draws especially much
> > information from background files (macro definitions, TOC, ...).
>
> Thanks for that great research, Klaus, and all of those details! I'm
> CC'ing Guillaume. He has worked on this feature so might have an opinion
> on this thread. We might want to eventually open a trac ticket for this
> so that it does not get lost in the mail archives.
>
> Scott
>

Hello, it is a good idea to automatically reload background files. This is
not so simple, though, because the change notification can happen at random
times and it is not clear that the code is ready for this. I have an idea
to make it work, but this will need to wait that I am back from holidays.
It is best to open a ticket for now.

Guillaume


Re: beamer flex frame options

2017-03-06 Thread Guillaume Munch

Le 06/03/2017 à 19:49, Neal Becker a écrit :

Richard Heck wrote:


On 03/06/2017 10:12 AM, Neal Becker wrote:

Neal Becker wrote:


Guillaume Munch wrote:


Le 06/03/2017 à 14:16, Neal Becker a écrit :

I'm trying beamer(flex insets) document option.  I like it, but I
don't
see any way to set frame options.  Any hints?

Insert > Frame options ?

AFAICT, if you choose beamer(flex inserts) for document, then there is
no
menu item "(Insert > Frame options)".  This only appears if you choose
"beamer" for document.


You need to use the flex insets with the beamer document class.
(Unfortunately, there is no way at present to enforce this requirement.)

Richard


So if I use beamer-flex.inc from Guillaume Munch <g...@lyx.org>, then if I try
to insert a frame using insert > custom insets > Frame, there is no way to
then set frame options.  This can only be done using the lyx standard way of
inserting a frame: choosing Frame from environment dropdown list, which will
then activate the "Insert > Frame options" option.  Do I understand
correctly?


Strange. Here it works correctly if I use only beamer-flex.layout. The
version of beamer-flex.inc you point to correctly defines Argument 3 :
"Frame Options". Has the behaviour changed between 2.2 and 2.3?




Re: beamer flex frame options

2017-03-06 Thread Guillaume Munch

Le 06/03/2017 à 14:16, Neal Becker a écrit :

I'm trying beamer(flex insets) document option.  I like it, but I don't
see any way to set frame options.  Any hints?


Insert > Frame options ?



Re: No implication symbol

2017-01-08 Thread Guillaume Munch

Le 08/01/2017 à 18:35, Paul A. Rubin a écrit :

I just encountered something goofy, and I'm not sure if it's a LyX bug
or something odd about what's installed on my system. When I try to
compile the attached document (LyX 2.2.2, Linux Mint 18.1, TeXLive) I'm
told that \implies is an undefined control sequence. Looking at the
source window, LyX is not loading any math-related packages. If I go
into document settings and change amsmath from "load automatically" to
"load always", things work.

To be honest, I'm not sure what LaTeX packages provide \implies. If in
fact it's not in base LaTeX, shouldn't LyX recognize that it requires
amsmath?

I don't recall encountering this before, so I'm guessing that I'm
missing a TeXLive package, but I have no idea which.

Paul



This is fixed for 2.2.3, see http://www.lyx.org/trac/ticket/10467



Re: package{mathrsfs}

2017-01-04 Thread Guillaume Munch

Le 04/01/2017 à 19:54, Patrick Dupre a écrit :

Hello,

If I use \mathscr
in a document, then lyx use the package
\usepackage{mathrsfs}
However, mathrsfs conflicts with

\DeclareMathAlphabet{\mathscr}{FMS}{futm}{m}{n}%
\DeclareMathAlphabet{\mathcal}{OMS}{cmr}{m}{n}%

while I do not need mathrsfs
I use fourier

How can I prevent the loading of the package mathrsfs?



Hello Patrick, try adding "Provides mathrsfs 1" to the local format.



Re: Moving around

2017-01-03 Thread Guillaume Munch

Le 28/05/2016 à 17:00, Jean-Marc Lasgouttes a écrit :

Le 27/05/16 à 19:44, Mario D a écrit :

What I can't get used to is what happens when I am inside a (big)
formula. Namely, if I use ctrl+arrow I go to to the end (or beginning,
depending the arrow) of the formula, which is the same that I get using
the Home/End keys.
On the contrary, with ctrl+arrow I would like to be driven to the
end/beginning of current logical element, that is the same place where
the cursor would be if I hit shift+arrow.

So, my question is: can it be changed?
I tried to change some setting in keyboard shortcuts, but without luck.
Maybe I could not figure out the right one.


It cannot be changed with the current code. However, if you manage to
describe what should be done, we can take advantage (or will in next
major release) of the symbol category: binary operation (+ - * etc),
binary relation (< > = etc), operators (\lim \cos etc), open ( ( [ {
etc), close and a couple other categories.

If you come up with a scheme, we can try to use it for Ctrl-Right and
friends.



The new behaviour for Ctrl(+Shift)+Arrows suggested by this discussion
is now in master (981f065b). For now it skips "words" of symbols that
have the same mathclass. But, if somebody comes up with a better scheme,
it should be easy to improve it.




Re: Fragility

2016-11-18 Thread Guillaume Munch

Le 18/11/2016 à 12:36, F M Salter a écrit :

I would like to raise a question for everyone about what I am
describing as fragility in LyX.

I use Lyx as a method of recording my own thinking on various
subjects including mathematical analyses, a tool to annotate material
(usually academic papers which can not be annotated directly) and to
prepare papers for publication.  I feel that the fragility I am
detecting may be increasing and would then be attributibe directly to
LyX.  However, I am increasingly using more advanced techniques and
these may be the cause of the events which am noting rather than with
LyX itself.




Dear Frank,

My recommendation is to take the time to help with the detailed
recording of the bugs you experience, like you have begun to do, on the
bug tracker at http://www.lyx.org/trac/wiki/BugTrackerHome. I have the
same experience that with more advanced use, one sees more bugs. This is
surely because lyx allows many different uses, including ones not
thought about in advance by developers. Sometimes bugs also appear
with new releases. Surely, with everybody using lyx differently, it is
hard to get proper testing before a release. I started reporting bugs a
few years ago, and many have been fixed since. Patience pays off.

Guillaume



Re: Compilation error with lyx 2.2.2 (and not in 2.2.1)

2016-10-27 Thread Guillaume Munch

Le 27/10/2016 à 20:40, Paul A. Rubin a écrit :

I just type \coloneqq in a math inset in LyX 2.2.2 and LyX recognized it
(but pdflatex bombed on it with the same error you saw). So I went to
Document > Settings > Math Options and changed "mathtools" from  "Load
automatically" to "Load always", and the document compiled. Maybe LyX
lost the ability to recognized that \coloneqq requires mathtools (or one
of a few other packages)?



This bug was in master, before being fixed at 338cef2a9. It seems that 
unfortunately 8603655 was backported without the fix. The solution is to 
backport 338cef2a9 (attached--Richard?). You can fix your local 
installation by replacing the symbols file with the attached.
>From 8acb4f61ff5f0ed57abb40aafa82a1dff8e125c3 Mon Sep 17 00:00:00 2001
From: Georg Baum 
Date: Sun, 21 Aug 2016 20:34:40 +0200
Subject: [PATCH] Fix regression of 88603655

The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

(cherry-pick of commit 338cef2a)
---
 lib/symbols | 74 ++---
 1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/lib/symbols b/lib/symbols
index fbe5f43..5dc3e4c 100644
--- a/lib/symbols
+++ b/lib/symbols
@@ -1103,20 +1103,20 @@ podlyxblacktext  0   0 func x amsmath
 
 
 # mathtools.sty
-\def\vcentcolon{\kern4mu:\kern3mu} mathtools :
-\def\dblcolon{\vcentcolon\kern-8mu\vcentcolon} mathtools ::
-\def\coloneqq{\vcentcolon\kern-7mu=}   mathtools 
-\def\Coloneqq{\dblcolon\kern-7mu=} mathtools ::=
-\def\coloneq{\vcentcolon\kern-7mu-}mathtools :-
-\def\Coloneq{\dblcolon\kern-7mu-}  mathtools ::-
-\def\eqqcolon{=\kern-8mu\vcentcolon}   mathtools 
-\def\Eqqcolon{=\kern-8mu\dblcolon} mathtools =::
-\def\eqcolon{-\kern-8mu\vcentcolon}mathtools -:
-\def\Eqcolon{-\kern-8mu\dblcolon}  mathtools -::
-\def\colonapprox{\vcentcolon\kern-7mu\approx}  mathtools :
-\def\Colonapprox{\dblcolon\kern-7mu\approx}mathtools ::
-\def\colonsim{\vcentcolon\kern-7mu\sim}mathtools :
-\def\Colonsim{\dblcolon\kern-7mu\sim}  mathtools ::
+\def\vcentcolon{\kern4mu:\kern3mu}  mathrel :mathtools
+\def\dblcolon{\vcentcolon\kern-8mu\vcentcolon}  mathrel ::   mathtools
+\def\coloneqq{\vcentcolon\kern-7mu=}mathrel  mathtools
+\def\Coloneqq{\dblcolon\kern-7mu=}  mathrel ::=  mathtools
+\def\coloneq{\vcentcolon\kern-7mu-} mathrel :-   mathtools
+\def\Coloneq{\dblcolon\kern-7mu-}   mathrel ::-  mathtools
+\def\eqqcolon{=\kern-8mu\vcentcolon}mathrel  mathtools
+\def\Eqqcolon{=\kern-8mu\dblcolon}  mathrel =::  mathtools
+\def\eqcolon{-\kern-8mu\vcentcolon} mathrel -:   mathtools
+\def\Eqcolon{-\kern-8mu\dblcolon}   mathrel -::  mathtools
+\def\colonapprox{\vcentcolon\kern-7mu\approx}   mathrel :mathtools
+\def\Colonapprox{\dblcolon\kern-7mu\approx} mathrel ::   mathtools
+\def\colonsim{\vcentcolon\kern-7mu\sim} mathrel :   mathtools
+\def\Colonsim{\dblcolon\kern-7mu\sim}   mathrel ::  mathtools
 
 
 #
@@ -1125,7 +1125,7 @@ podlyxblacktext  0   0 func x amsmath
 
 \def\neq{\not=} mathrel 
 \def\ne{\not=}  mathrel 
-\def\notin{\not\in} ""  
+\def\notin{\not\in} mathrel 
 \def\slash{/}
 
 \def\longleftrightarrow{\leftarrow\kern-12.5mu\rightarrow}
@@ -1134,32 +1134,32 @@ podlyxblacktext  0   0 func x amsmath
 \def\doteq{\stackrel{\cdot}{=}}
 
 iffont cmsy
-\def\longrightarrow{\lyxbar\kern-11mu\rightarrow}   ""   
-\def\longleftarrow{\leftarrow\kern-11mu\lyxbar} ""   
-\def\Longrightarrow{\lyxeq\kern-9.5mu\Rightarrow}   ""   
-\def\Longleftarrow{\Leftarrow\kern-9.5mu\lyxeq} ""   
-\def\implies{\Longrightarrow}   amsmath  
-\def\impliedby{\Longleftarrow}  amsmath  
-\def\mapsto{\mapstochar\kern-9mu\rightarrow}""   

Re: my physics book Gpl lyx

2016-10-17 Thread Guillaume Munch

Le 15/10/2016 à 16:35, Uwe Stöhr a écrit :

Am 11.10.2016 um 16:05 schrieb edu Gpl:


this my physics book pdf and source code for free (gpl):
https://sourceforge.net/projects/ohodquizgame/files/Books/physics.pdf/download



Hello edu,

congratulations! Excellent work and a very important one. Education is
so important!


Yes, congratulations!



Especially in Arabic language there are not many science/education books
(except of religious books of course). But religion is not building
bridges, repairing refrigerators etc., people do and therefore need
knowledge how to do this.



Uwe, out of curiosity, how did you learn about the Arab-speaking
countries? You seem to know so much more than I do.




Re: Menu fonts

2016-09-25 Thread Guillaume Munch

Le 25/09/2016 à 06:27, David L. Johnson a écrit :

I just recently got a tablet/laptop, an asus t300 chi.  I have managed
to install debian testing on it, rather than whatever was there beforehand.

Most things are working great, but some, like LyX, do not make it easy
to enlarge the menu fonts.  With a standard HD monitor, 1920x1080 in a
12.6" size (32cm), and my cruddy vision, menu fonts are impossible.  I
found advice to adjust the Qt fonts with "qtconfig" -- but the program
does not exist (its a broken symlink).  The suggestions I read were from
2010.  Does anyone have a more recent experience with this font
problem?  I want to make all of the menu and related fonts considerably
larger.  I am using LyX 2.2.0, with Qt 4.8.7, which is standard on
debian testing.



I recommend compiling LyX 2.2.0 with Qt 5.6. The latter knows about
high-dpi monitors, and it uses the system settings to select the
appropriate magnification.




Re: Make all LyX notes visible on PDF

2016-09-23 Thread Guillaume Munch

Le 22/09/2016 à 13:34, racoon a écrit :

On 22.09.2016 14:29, Jürgen Spitzmüller wrote:



You should also list it here:
http://wiki.lyx.org/Layouts/Modules#toc2


It is not a module. So should I list the "hack" just as a comment there?



Note that my concern regarding the MultiPar change was only for a module 
distributed with LyX.





Re: Make all LyX notes visible on PDF

2016-09-16 Thread Guillaume Munch

Le 16/09/2016 à 18:00, racoon a écrit :


The problem with replacing notes is that pdfcomments from the module are
not visible in the outliner.


Something I plan to implement as soon as I am done with my current patches.



So I had to work with notes themselves. LyX notes don't really have a
LaTeX command that is executed. So I ended up hijacking the Note:Comment
and setting LatexName to pdfcomment (and MultiPar to false).

Seems to work pretty fine so far. Maybe that could be even worth an
option or module in LyX?



Sounds dangerous for a module (because of MultiPar), but it looks like a 
great hack. Having it on the wiki would be good start.





Re: math preview blowing up with math within figure captions

2016-09-13 Thread Guillaume Munch

Le 13/09/2016 à 16:46, Neal Becker a écrit :

This is fedora 24 lyx-2.2.1
This problem maybe new?  If I have math in a figure caption the math is
displayed within a huge pinkish box, really making the display pretty awful.
For example a single \lambda character is shown within a box taking up about
1/2 the screen.




Is this xelatex?

http://www.lyx.org/trac/ticket/10322



Re: Double dash in Lyx 2.2.1 is not printed correctly

2016-09-08 Thread Guillaume Munch

Le 07/09/2016 à 17:19, Danko Georgiev a écrit :

Dear Scott,

If you try typesetting time periods, in old LyX you could just type
"2014--2016". When you print PDF you will read 2014[en-dash]2016. In
other words, old Lyx printed the double dash as if it Latex code.

Now in version 2.2.1 I tried to type 2014--2016 but Lyx automatically
overwrites this double dash with en-dash. This is simply WRONG thing to
do. en-dash is a special character that I do not want in my code!



In which context is this? It is possible to input -- in ERT? (Ctrl+L).





Re: imported gnumeric table with lyx caption results in +2 table counter (expected +1)

2016-09-04 Thread Guillaume Munch

Le 31/08/2016 à 17:58, Jannick a écrit :


Understand. Maybe a question with an easy answer: Assuming that ssconvert
creates a long table or any other kind of table, is there a way to add a
table label (caption) other than using a floating object? This is why I was
using the nested structure which as you say is not necessary.

Thanks,
J.




Yes, you can as follows: add a row at the top, select it, go to the
table properties > multi-page table > row settings > Caption and check
the box.



Re: Reset review toolbar

2016-08-15 Thread Guillaume Munch

Le 15/08/2016 à 11:06, racoon a écrit :

On 14.08.2016 19:21, Guillaume Munch wrote:



Hi, which version? In 2.3 the toolbar now stays as long as there are
tracked changes in the document (long standing requested feature).


Thanks! That explains it. I guess I will get used to it. Maybe I will
move the toolbar to the side now.

By the way, I am using 2.2.1. It actually seems to behave already there
that way...



Maybe yes, I do not remember what I backported to 2.2.1.

FYI your bug is that LyX has three states {on,off,auto} for toolbars but 
only proposes on and auto in the interface. See 
http://www.lyx.org/trac/ticket/6364





Re: Reset review toolbar

2016-08-14 Thread Guillaume Munch

Le 14/08/2016 à 11:39, racoon a écrit :

Hi,

My review toolbar behaves strangely. It does not disappear when I stop
tracking changes even though it is set to auto and in default.ui I have

"review" "auto,review,top".

It is always visible. Setting it to

"review" "auto,math,top"

Makes it toggle automatically with math. But I can't get it to toggle
with track changes. I remember that the behavior started after I moved
the toolbar to the left of the work area.

Is there a way to reset the toolbar somehow? Deleting the line does not
seem to do the trick.




Hi, which version? In 2.3 the toolbar now stays as long as there are
tracked changes in the document (long standing requested feature).




Re: bullets in version 2.2

2016-08-07 Thread Guillaume Munch

Le 06/08/2016 à 11:42, Patrick Dupre a écrit :

Hello,

I moved to version 2.2.1 (from 2.1.5).
Now, even if I specify that I want the standard filled bullets
I get a straight horizontal line (default?) if I set the language to french
while in the previous version I got the real black bullet that I
wanted.
Is it a bug or a new way of doing ? In that latter case, how can I
get the bullet in french language ?
It looks like that the 2 sets are the standard behavior in English and
French
but cannot be forced properly.

Thank for your help.

Regards.


===
Patrick DUPRÉ | | email: pdu...@gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===



Dear Patrick,

This is an old issue, please see http://www.lyx.org/trac/ticket/6932 for
a solution (some babel command to put in the preamble) and a discussion
of the issue.

Regards,
Guillaume



Re: leftside superscript

2016-07-18 Thread Guillaume Munch

Le 18/07/2016 16:25, Richard Heck a écrit :

On 07/18/2016 07:32 AM, Kiuhnm wrote:

On 18/07/2016 13:25, Kiuhnm wrote:

Hello,

what's the best way to write leftside superscripts in Lyx (latest
version) with /correct spacing/?


\prescript from mathtools seems to work well. It'd be great if
leftside prescripts were supported directly by Lyx.


I'd suggest you file an enhancement request for this at lyx.org/trac/.
It may not be too difficult.



What about using a LyX macro to encapsulate \prescript?



Re: epub output in version 2.2?

2016-07-09 Thread Guillaume Munch

Le 07/07/2016 19:25, Steve Litt a écrit :

On Wed, 6 Jul 2016 16:57:23 -0400
Richard Heck  wrote:


On 07/06/2016 04:45 PM, Robert Alvarez wrote:

Epub output  questions appear here periodically.

An answer in one thread said that it might appear in version 2.2

I looked in the release notes but could not find it.

Is epub output in 2.2?


No, it is not. It is possible we will see in in the 2.2.x series.


Robert,

Be careful what you wish for. Even if/when LyX finally has ePub
export, the question is "what quality ePub?" Will it be like the HTML
and Xhtml exports, having all sorts of extraneous CSS styles to do
silly stuff, deprecated stuff like , and the like?
Just because something outputs something they call ePub, and it's
decipherable by Calibre's ebook-viewer,  doesn't make it the kind of
ePub you can convert and sell on Amazon, or the kind of ePub that won't
make your readers crazy with anger.

Since about 2008 LyX native format has become more and more "XML like"
without being either valid or well formed XML. If they just made LyX
into valid and well formed XML, creating our own converter, with Python
and Python's XML parser, will become a one person project. And such a
converter will by its very nature be semantic, it won't do stupid stuff
like  having paragraphs all have either "indented" or "unindented"
classes. That's a job for CSS, not for different types of paragraphs.
Converting LyX native format to a valid and well formed XML would make
export to ***ALL*** formats, those known and those yet to be discovered,
easy. And the converters would exist completely outside of LyX and
therefore would be small and modular.





Hi Steve,

There is a lot of wishes in your message. But I must warn, if you
ever happen to find this one person for the task, that their time is
better used within the project than outside of it. You can have a look
at the example of eLyXer, which has decided to go on its own. It still
has not caught up with the 2.2 format. Also, implementing things twice
is costly, and for what benefit? I do not see what edge a language like
Python has for this problem.

The problem rather seems to be finding this one person. So, any volunteer?

Guillaume



Re: LyX Tutorial, LyX settings

2016-07-06 Thread Guillaume Munch

Hi Bernt, please send your reply to the list and not privately.

Le 06/07/2016 14:33, Bernt Lie a écrit :

Hi Guillaume

Thanks for very quick response!


LyX 2.2 on Windows is compatible with Hi-DPI screens

Super! Works perfectly!


I highly recommend Inkscape with the textext plugin...

Inkscape exists on Windows. In fact, Scientific WorkPlace 6.0 uses Inkscape. 
I'll look into the textext plug-in. Thanks for suggestion!

  >> > (i) smooth scrolling of math, figures, tables,


What do you meant with this?

Ah. One of the downsides of SWP is that tables, figures + lengthy equations 
(equation arrays, I guess) don't scroll smoothly... there is a sudden *jump*, 
so it is difficult to edit equations and tables at times.


Please, do not hesitate to give us feedback in this area.

Guillaume



Re: LyX Tutorial, LyX settings

2016-07-06 Thread Guillaume Munch

Hi Bernt, please send your reply to the list and not privately.

Le 06/07/2016 14:33, Bernt Lie a écrit :

Hi Guillaume

Thanks for very quick response!


LyX 2.2 on Windows is compatible with Hi-DPI screens

Super! Works perfectly!


I highly recommend Inkscape with the textext plugin...

Inkscape exists on Windows. In fact, Scientific WorkPlace 6.0 uses Inkscape. 
I'll look into the textext plug-in. Thanks for suggestion!

  >> > (i) smooth scrolling of math, figures, tables,


What do you meant with this?

Ah. One of the downsides of SWP is that tables, figures + lengthy equations 
(equation arrays, I guess) don't scroll smoothly... there is a sudden *jump*, 
so it is difficult to edit equations and tables at times.


Please, do not hesitate to give us feedback in this area.

Guillaume



Re: LyX Tutorial, LyX settings

2016-07-06 Thread Guillaume Munch

Hi Bernt!

I replied to the general list because I think that your message will
meet a wider audience there.

Le 06/07/2016 13:39, Bernt Lie a écrit :

Hi LyX!

I have a question on the LyX user interface, then some
wishes/questions. (I used FrameMaker 1989-1991, LaTeX/emacs
1992-1994, and Scientific WorkPlace 1994-now.)

*Question*: I use Windows 10 on a Dell XPS 13 inch laptop (owned by
employer). I also own a MS Surface Pro 4 privately.

·Both the Dell and the Surface Pro are **high resolution** laptops.

·The menus/icons in LyX are so small that they are **almost**
unreadable.

·Is there a way to switch to a “large icon/text” mode for the user
interface?


LyX 2.2 on Windows is compatible with Hi-DPI screens. To change the size
of icons you can do that from the contextual menu of the tool bars
(right click).



*Question/Wishes*: I like your (partial) support for /literal
programming/. I used Mathematica ca. 1990-1992, and Maple 1992-2000 –
these have some Notebook features. I have also used Scientific
WorkPlace (first Maple, and then MuPad from 1994-now). I also used
Framemaker 1989-1991, which had some built-in symbolic computation
support. Nowadays, there is more interest in “Freeware” in academia.

·I’m moving into Python etc. + Jupyter (Jupyter notebooks support a
large number of languages, starting with Julia, Python and R, and
expanding).

·Any chance of LyX to allow **import** of Jupyter notebooks? Here,
I’m referring to “static” import?

·Any chance of LyX supporting **live** Jupyter notebooks?


No clue about this one.



*Questions/Wishes:* One of the things I really liked with
FrameMaker, was a good built-in /drawing tool/, which allowed me to
insert math into drawings. The drawing tools were not fancy, but
coverend what I needed. Today, I use MS Visio. I essentially use the
same features as in FrameMaker Draw, but with the addition of Layers.
I make physics/engineering type drawings, e.g. velocity profiles in
pipes, tanks with liquid levels, mixers, etc.


I highly recommend Inkscape with the textext plugin. I hope it is
available on Windows. Textext lets you write latex into your drawing.
Then LyX lets you incorporate the resulting svg and converts it into pdf
flawlessly.


*Final comments*: I tested LyX some 10 years ago, but switched back
to SWP due to its efficient math editor. Some things I hope work
better in LyX are:



(i) smooth scrolling of math, figures, tables,


What do you meant with this?


(ii) easier use of specialized classes/styles for conferences and
journals,


Possible, but still painful depending on how far the class is from a
standard one.


(iii) better support of color, minipages, etc,


LyX has that, but I do not know how it compares. But also, the custom
layout mechanism would let you define your own style and insets, so it
is possible to invest into LyX and adapt it to your own way of doing things.


(iv) better support of program listing, large tables, insertion of
pdf files from other sources, etc.


LyX has all that.


Best Regards,

Guillaume



Re: Minor upgrade Issue

2016-07-03 Thread Guillaume Munch

Le 03/07/2016 04:35, gordon cooper a écrit :

My colleague on
this project commented :

" --a hundred or more red hard return icons in the lyx file that
showed up as "\begin_inset Separator latexpar\end_inset" in
the html (took me over an hour to find and delete them!) "


As explained in , your
colleague can remove all latexpar separators using the command:

  inset-forall Separator:latexpar char-delete-forward

to be input in the command bar (Alt-x)



Re: Inserting blackboard bold 1 in LyX

2016-07-03 Thread Guillaume Munch

Le 03/07/2016 05:15, Jonathan Horton a écrit :

To whom this may concern,

I want to insert a blackboard bold 1 in lyx (For the identity matrix)
(Unicode: ퟙ), but I can't seem to find anyway to do it. I tried
changing the encoding to the various unicode types in the document
settings (Document->Settings->Language-Encoding-Other), but all of the
encoding types produce errors. In LaTeX, typically dsfont is used, but
\(\mathds{1}\) produces no result (within lyx).

I could import the package in the preamble (Document>Settings>Preamble)
via \usepackage{dsfont} (untested), but I would like to avoid the Evil
Red Text.

Your guidance on the matter is greatly appreciated,

Cheers,


Dear Jonathan,

If you use \mathbb{1} in LyX, this produces the desired output
after loading a font package such as stix. Now, this does not look so
good in the LyX window currently. Then, what you can do is define a LyX
macro that outputs \mathbb{1}, but displays like \bf{1} insie LyX, for
instance.

Cheers,
Guillaume




Re: Free as in speech fonts?

2016-07-02 Thread Guillaume Munch

Le 02/07/2016 20:20, Steve Litt a écrit :

Hi all,

The second edition of my book "Manager's Guide to Technical
Troubleshooting" will ship as a 3.5" x 5.5" PDF instead of printed
paper. As you can imagine, for any reasonable facimile of decent
reading, I must embed the fonts used. However, most fonts that are
"free" to insert in a document are not free to insert in a document
that is distributed, because in that case you're giving away the font's
source, not just its appearance.


Professional font licences usually allow the distribution of the
necessary subset of the font along with documents, as XeTeX does. Also,
the SIL Open Font license states: "The requirement for fonts to remain
under this license does not apply to any document created using the Font
Software". I am surprised that other open-source font licences do not
appear to include similar exceptions.



As far as I know, the Liberation fonts don't have this problem, but
then again, they're not especially readable. What other fonts are
completely free to give away embedded inside a document you sell?



Adobe's free fonts are of the highest quality and are under the SIL Open
Source license. I eagerly await the release of the italics of Adobe's
Source Serif Pro. If not for this issue, I would recommend that you have 
a look.


There are forums on the internet where people who love to argue about
typography meet, and they love to answer these kind of questions.



Re: cudos for beamer-flx.lyx

2016-06-24 Thread Guillaume Munch

Le 22/06/2016 08:14, Jürgen Spitzmüller a écrit :

2016-06-21 16:44 GMT+02:00 Guillaume Munch <g...@lyx.org <mailto:g...@lyx.org>>:

Yes, something would have to be done about this: a combo box, or an
automatic toolbar. But I think this is a more general issue with custom
insets, not specific to beamer-flex.


Yes, but it's a stopper for beamer-flex. Frames are the most central
component of a presentation. Having to search them in sub-level menus is
not acceptable.



Oh snap! It's a stopper. Then, I guess that I will have to keep
beamer-flex for myself. It is indeed not acceptable to provide an
alternative that fails to reach the perfection of the current beamer class.

Guillaume



Re: How to insert a frame between two frames in lyx2.2?

2016-06-23 Thread Guillaume Munch

Le 23/06/2016 10:30, 本杰明 a écrit :

Hi,

An example file is attached.

I tried several times. Inserting a frame between frame 2 and 3 works as
you described. But inserting a frame between frame 1 and frame 2 is not
easy. Pressing "Alt+P Enter" or "Alt+P Shift Enter", I got "Command
disabled".

Although I can find a workaround, but I am frustrated due to complex
operations. Please have a try.



It does not work if the cursor is at the separator. But it works if you 
place the cursor at the end of the last list item and press Alt+P Shift 
Enter.


Another way to introduce a separator is usually to press Enter enough 
times, but the Frame's KeepEmpty property interferes with it.





Re: cudos for beamer-flx.lyx

2016-06-21 Thread Guillaume Munch

Hi Jürgen,


Le 19/06/2016 13:22, Jürgen Spitzmüller a écrit :

Am Freitag, den 10.06.2016, 11:11 -0400 schrieb Richard Heck:

Can I make it a bit more accessible and not hidden under custom
insets?


This is a major design flaw of this approach, IMHO.


Yes, something would have to be done about this: a combo box, or an
automatic toolbar. But I think this is a more general issue with custom
insets, not specific to beamer-flex.





There is an enhancement request for this sort of thing: a combo box,
like for layouts, that could be put on the toolbars.


But still, you would need to
1. put the cursor outside the inset
2. use the mouse to enter a new frame

whereas currently, starting a new frame from within a frame is a one-
keystroke action.


I agree. I was imagining a new lfun that splits a text inset into two,
at the location of the cursor, similar to the current environment-split
for environments. One use is to create a new inset after the current
one.



Also, these flex insets cannot be reordered by the outliner, and
reordering frames is a crucial function at least for me.


I am not worried about this one. One advantage of flex insets is that
they are easier to select as a whole and also in sequence, making
copy-paste an appropriate tool. (In contrast, the outliner does not let
us move several frames at once.)



IMHO the flex idea sounds neat in theory, but in practice has too many
shortcomings (which all, arguably, can be solved).



I think the new lfun is the only one to be really urgent.


Guillaume



Re: Lyx 2.2 and spaces before displaymath

2016-06-17 Thread Guillaume Munch

Le 17/06/2016 18:40, Kiuhnm a écrit :

Hello,

I wrote a document in Lyx 2.2 and I noticed that I had added extra empty
lines before displaymath elements all over the document.

This happens when one hits return before pressing Ctrl+Shift+M. Did this
happen in Lyx 2.1.4 too? I never noticed. Should this behavior be
considered a feature or a bug?

Kiuhnm



A bug. Both situations are meaningful but one should be able to
distinguish between them. There is "Mark end of paragraphs" in
preferences. But if that remains the only way to see the difference,
then the option should be made default. Please harass the developers
until they agree on a solution.




Re: Refresh child document preview

2016-06-16 Thread Guillaume Munch

Le 16/06/2016 20:55, Andrew Parsloe a écrit :

On 17/06/2016 3:09 a.m., Guillaume Munch wrote:

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)

I've recently discovered this trick, but prefer to do it in a more
systematic way. I've created a command sequence shortcut:

command-sequence buffer-zoom-in; buffer-zoom-out

and associated it with a shortcut key (Tools > Preferences > Editing >
Shortcuts). In fact I've used Alt+Z for no particular reason. This
leaves your screen font at exactly the same size as before but gets all
the previews refreshed.



This is great!




Re: Refresh child document preview

2016-06-16 Thread Guillaume Munch

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)




Re: cudos for beamer-flx.lyx

2016-06-12 Thread Guillaume Munch

Le 12/06/2016 09:42, UD a écrit :

Could you re-provide teh information about the custom inset that was
posted hhere?  I missed it, and would love to use beamer via lyx.
Thanks,
E. Kaplan



See the discussion from April, at
http://mid.gmane.org/nek3qi$l77$1...@ger.gmane.org



Re: Problems to select text in Lyx 2.1.4 / Ubuntu 16.04

2016-06-09 Thread Guillaume Munch

Le 09/06/2016 11:11, Hermann Josef Eckl a écrit :

Thank you, Guillaume, for your advice. I tried this PPA with LyX 2.2.

Unfortunately the problem persists also with this new version.
Additionally, the selection of text is VERY slowly and the selection
breaks again after some words or lines.

Yours, Hermann Josef



Regarding the slowness issues, is there a qt5 version for you to try in 
this PPA for your distribution?





Re: cudos for beamer-flx.lyx

2016-06-09 Thread Guillaume Munch

Le 09/06/2016 12:25, Neal Becker a écrit :

I'm enjoying using the beamer custom inset that was posted here.  I'd like
to see this as the standard method for supporting beamer frames on lyx going
forward.




Thanks for the feedback. The easiest would be to offer it as a separate 
layout and not offer automatic conversion.




Re: Moving around

2016-06-08 Thread Guillaume Munch

Le 06/06/2016 09:37, Mario D a écrit :



2016-05-28 17:39 GMT+02:00 Guillaume Munch <g...@lyx.org <mailto:g...@lyx.org>>:


I agree ctrl+arrows could do better. The attached patch implements your
suggestion.


I guess that I need to apply your patch to the source and the recompile
it, don't I?

Because I am not very keen on recompiling lyx: I would like to use the
repository version


The current version is not good enough. I may come back to it later.



Re: Problems to select text in Lyx 2.1.4 / Ubuntu 16.04

2016-06-08 Thread Guillaume Munch

Dear Hermann Josef,

I fixed a bug like this in 2.2. I would advise you to try 2.2 from the 
PPA https://launchpad.net/~lyx-devel/+archive/ubuntu/release .


Sincerely,
Guillaume


Le 08/06/2016 08:06, Hermann J. Eckl a écrit :

Hello,

I am using Lyx since several years with different Linux distributions
(Ubuntu, Debian Jessie 8.x etc.).

Currently I have installed Ubuntu 16.04 LTS - and am facing a very strange
an annoying problem: I have difficulties to select longer or even shortes
pieces of text with the keyboard or mouse.

If I am trying to select some text, the selection captures only short
passages and fails after some words or paragraphs, regardless of whether I
am selecting with the mouse or with keyboard shortcuts. ALl other programmes
(text editor, Libre Office etc.) are working correctly and I can select text
withput any problems.

I am facing this problem with at least 4 computers, all of them have
installed Ubuntu 16.04 LTS and LyX 2.1.4. I am running another machine with
Debian 8.x and have no problems at all. Of course I have tried different
keyboards and mice, I have also reinstalled Lyx and TexLive and I have
deleted my old Lyx configuration files.

I would very much appreciate all hints and tips to solve this problem.

Yours, Hermann Josef







Re: centered formulas + \iff

2016-06-04 Thread Guillaume Munch

Le 04/06/2016 20:19, Paul A. Rubin a écrit :

Kiuhnm  gmail.com> writes:


I'm using Lyx 2.1.4. I'd like to write a bunch of inequalities with an
\iff on the right side. The inequalities should be centered, like this:
 <=>
 <=>
<...>


Does the appended LyX file do what you want? I used the alignat environment,
and increased the number of columns to five. The left side of each
inequality goes in column 1, the inequality symbol in column 2, the right
side in column 4 and the iff symbol in column 5. Column 3 is intentionally
blank.

Paul

#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
\begin_inset Formula
\begin{alignat*}{3}
ax & \le &  & b & \iff\\
cx+d & \ge &  & e & \iff\\
d+2e & = &  & 3f+g
\end{alignat*}

\end_inset


\end_layout

\end_body
\end_document






What about

\begin{align*}
a & \leq b\tag*{\ensuremath{\iff}}\\
b & \geq a\tag*{\ensuremath{\iff}}\\
a & \leq b
\end{align*}

?

(\ensuremath was added automatically by LyX)



Re: Visible carriage return

2016-06-03 Thread Guillaume Munch

Le 03/06/2016 08:18, Richard Heck a écrit :

On 06/02/2016 08:04 PM, Giorgio Zavarise wrote:

Hi,

I have a question concerning the space around centered equation. When
you type text and then add centered equations you may get a different
results if you add an empty line; e.g. the following text will produce
more spaces in the second case:

Test 1
\[
A_{1}=\frac{h}{2}
\]
End Test 1

Test 2

\[
A_{1}=\frac{h}{2}
\]

End Test 2



When using LyX, the fact that you have generated or not a blank line
is basically hidden. As far as I know, the only way to detect it is
looking at the LateX Source panel.
Hence my question is: Is there a workaround to know where I placed a
blank line?
Is it possible that Lyx shows a special character, or something
similar, to let you know where you put a blank line (I mean something
like the carriage return in WORD, that can be visible or it can be
hidden)?


Tools> Preferences> Document Handling> Mark End of Paragraphs

rh



Which should be the default setting IMO.



Re: Fwd: Moving around

2016-05-30 Thread Guillaume Munch

Le 30/05/2016 20:57, Paul A. Rubin a écrit :

Movement:
   left/right arrow move one character (where entering or exiting an inset,
such as going into/out of a subscript, counts as a "character" for movement
purposes);
   ctrl-left/right jumps the adjacent "grouping", where "grouping" is the
subtree at the current node if we were to diagram the math inset as a tree;
   home/end jumps to the start or end of the entire inset;
   ctrl-home/end jumps to the start or end of the buffer (document).

Selection: shift+any navigation combination selects everything from the
current cursor position to where the unshifted key combination would take you.


As I wrote, this is not entirely possible.



I don't know if Guillaume's patch would fix this or not. Right now, there do
not seem to be any LyX functions (LFUNs) that relate to this notion of a
"grouping" or syntactic tree node.


My patch assigns the behaviour you describe for ctrl+arrows to word-* 
movement lfuns.



Internally (meaning in the C++ code),
something like that seems to exist from what Jean-Marc wrote.


Jean-Marc suggested to skip bigger chunks delimited by their category 
(reation, operator...). This would make sense for both ctrl+arrows and 
ctrl+shift+arrows. This does not exist yet and we can give it a try once 
Jean-Marc commits his patch that defines these categories, which I 
encourage him to do.




Re: Moving around

2016-05-28 Thread Guillaume Munch

Le 28/05/2016 16:56, Jean-Marc Lasgouttes a écrit :



As for ctrl+shift+arrows, I find them useful to select entire
insets quickly.


Why should they be better than Ctrl-A or Shift-end?

I really think that the shifted and non shifted functions should
coincide.



To clarify what I mean: Mario's idea is suitable for flat formulae,
whereas the current behaviour is more suitable for formulae with lots of
nested insets in the shape of trees. Ctrl+A is not enough for moving and
selecting in the latter. But you have a point with shift+end providing
the same functionality as shift+ctrl+right, I had never tried it.



Re: Moving around

2016-05-28 Thread Guillaume Munch

Hi Mario,

Le 28/05/2016 10:36, Mario D a écrit :
...


Consider

   \frac{1}{2}  +  \left(1+1\right)  =  2.5


^   ^   ^^ ^
A  B  C   D E

Wherever I am, if I hit ctrl+right I am driven to E.
What I would like is that if I am in A I land in B and if I am in C I go
to D


...


What I have not been able to understand is which function I should bind
to ctrl+right so that this combination drives me from A to B or from C
to D instead of from everywhere to E


I agree ctrl+arrows could do better. The attached patch implements your
suggestion.

Pro: I find this behaviour more useful. It could be made better by
skipping strings of characters that constitute "words", but I am not
sure how to define this notion properly in mathed. (Jean-Marc speaks of
using the rel/bin/op categories to find a criterion, let's think about it.)

Con: it is a bit unintuitive that ctrl+arrow behaves differently from
ctrl+shift+arrows. But I believe that the current behaviour of
ctrl+shift+arrows is fine and should be kept.



Incidentally, I also do not like very much the fact that if in A then
shift+right selects all the A-B portion of the formula: in my view, this
should be the behavior of
ctrl+shift+right, whereas shift+right should select only the very next
character (that is, the numerator if I am in A).


Selections in LyX correspond to meaningful objects, not portions of
LaTeX code such as \frac{1} in your example. So what you propose for
shift+right does not make sense to LyX.

As for ctrl+shift+arrows, I find them useful to select entire insets
quickly.


Guillaume

>From 96d2db292628d3ab588a24574f9e27e8e076484c Mon Sep 17 00:00:00 2001
From: Guillaume Munch <g...@lyx.org>
Date: Fri, 27 May 2016 21:00:54 +0100
Subject: [PATCH] Make ctrl+arrow behave like shift+arrow in math

Define ctrl+up,down for consistency
---
 src/mathed/InsetMathGrid.cpp |  4 
 src/mathed/InsetMathNest.cpp | 54 
 src/mathed/InsetMathNest.h   |  4 ++--
 3 files changed, 32 insertions(+), 30 deletions(-)

diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index b505886..d9cc469 100644
--- a/src/mathed/InsetMathGrid.cpp
+++ b/src/mathed/InsetMathGrid.cpp
@@ -1665,8 +1665,6 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
 	}
 
 	case LFUN_LINE_BEGIN:
-	case LFUN_WORD_BACKWARD:
-	case LFUN_WORD_LEFT:
 		cur.screenUpdateFlags(Update::Decoration | Update::FitCursor);
 		// fall through
 	case LFUN_LINE_BEGIN_SELECT:
@@ -1690,8 +1688,6 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
 		}
 		break;
 
-	case LFUN_WORD_FORWARD:
-	case LFUN_WORD_RIGHT:
 	case LFUN_LINE_END:
 		cur.screenUpdateFlags(Update::Decoration | Update::FitCursor);
 		// fall through
diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index 7357b5f..dde674e 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -638,6 +638,10 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
 	case LFUN_CHAR_LEFT:
 	case LFUN_CHAR_BACKWARD:
 	case LFUN_CHAR_FORWARD:
+	case LFUN_WORD_RIGHT:
+	case LFUN_WORD_LEFT:
+	case LFUN_WORD_BACKWARD:
+	case LFUN_WORD_FORWARD:
 		cur.screenUpdateFlags(Update::Decoration | Update::FitCursor);
 		// fall through
 	case LFUN_CHAR_RIGHT_SELECT:
@@ -649,6 +653,9 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
 	   || act == LFUN_CHAR_LEFT_SELECT
 	   || act == LFUN_CHAR_BACKWARD_SELECT
 	   || act == LFUN_CHAR_FORWARD_SELECT);
+		// enter insets of possible?
+		bool enter = (act != LFUN_WORD_BACKWARD) && (act != LFUN_WORD_LEFT)
+			&& (act != LFUN_WORD_FORWARD) && (act != LFUN_WORD_RIGHT);
 		// are we moving forward or backwards?
 		// If the command was RIGHT or LEFT, then whether we're moving forward
 		// or backwards depends on the cursor movement mode (logical or visual):
@@ -661,18 +668,21 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
 		FuncCode finish_lfun;
 
 		if (act == LFUN_CHAR_FORWARD
-|| act == LFUN_CHAR_FORWARD_SELECT) {
+		|| act == LFUN_CHAR_FORWARD_SELECT
+		|| act == LFUN_WORD_FORWARD) {
 			forward = true;
 			finish_lfun = LFUN_FINISHED_FORWARD;
 		}
 		else if (act == LFUN_CHAR_BACKWARD
-|| act == LFUN_CHAR_BACKWARD_SELECT) {
+		 || act == LFUN_CHAR_BACKWARD_SELECT
+		 || act == LFUN_WORD_BACKWARD) {
 			forward = false;
 			finish_lfun = LFUN_FINISHED_BACKWARD;
 		}
 		else {
 			bool right = (act == LFUN_CHAR_RIGHT_SELECT
-		  || act == LFUN_CHAR_RIGHT);
+		  || act == LFUN_CHAR_RIGHT
+		  || act == LFUN_WORD_RIGHT);
 			if (lyxrc.visual_cursor || !cur.reverseDirectionNeeded())
 forward = right;
 			else
@@ -688,7 +698,8 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
 		cur.clearTargetX();
 		c

Re: Help with creation of module

2016-05-16 Thread Guillaume Munch

Le 16/05/2016 22:42, Richard Heck a écrit :

On 05/16/2016 05:18 PM, racoon wrote:


A couple more things that would be nice:

- the footnotetext was added to the list of footnotes.


This would definitely take some work.



It's in the works (http://www.lyx.org/trac/ticket/7790).

Guillaume



Re: LyX problem - I need your help

2016-04-28 Thread Guillaume Munch

Le 28/04/2016 12:35, Dr Eberhard Lisse a écrit :

This is so simple, that I wonder about the Computer Science PhD Program
they are running there.
…


Isam is not the only one to understand this comment as offensive.


On 2016-04-27 05:48, Isam Alobaidi wrote:

Dear Sir,
This is Isam Alobaidi, PhD student in computer science department in
Missouri University of Scienec and technology.
I faced a problem with the LyX, I wonder if you can help me with it. I
am writing my thesis by LyX but the university enforce me to
use their temple that written in LaTeX.
I have no idea how I can connect them together and use the temple in LyX
in an other word how to make a given LaTeX template compatible with my
LyX file?
Waiting your kindly response.
Thanks.


If the template comes with a custom class file, then you need a custom 
layout file. First see what class file it is derived from, and create a 
minimal layout, similarly to the following: 
. Then follow the other 
instructions there.


Other clues can be found there: https://wiki.lyx.org/Layouts/CreatingLayouts



Re: Multicol Package: Figures Not Displayed

2016-04-27 Thread Guillaume Munch

Le 27/04/2016 17:04, Rich Shepard a écrit :

On Wed, 27 Apr 2016, Rich Shepard wrote:


 I've looked for the source of the problem but have not seen it. A
hint as
to why the figures are not displayed when the multicol package is used
will
be much appreciated.


   Brief example attached (with separate figure so you can include it more
easily).



This appears to be an issue on the latex side. Since you are using ERT,
you will have to use one of the solutions from
https://tex.stackexchange.com/questions/12262/multicol-and-figures by hand.




Re: beamer frame in lyx-2.2

2016-04-14 Thread Guillaume Munch

Le 14/04/2016 13:39, Neal Becker a écrit :

What is the procedure to produce beamer frames in lyx-2.2?

I don't see anything written about it http://wiki.lyx.org/LyX/NewInLyX22

We used to insert a separator between frames, but that's no longer an option
on the choices.  If I don't put a separator between frames, the lyx display
is visually incorrect, and the latex output is incorrect.



Please, see the discussion from two days ago: 
http://thread.gmane.org/gmane.editors.lyx.general/86361




Re: Separators between frames in beamer template

2016-04-13 Thread Guillaume Munch

Le 13/04/2016 08:11, Wolfgang Engelmann a écrit :

Yes, I am interested
Wolfgang


Please see my other message from yesterday



Re: Separators between frames in beamer template

2016-04-13 Thread Guillaume Munch

Le 13/04/2016 06:12, Guenter Milde a écrit :

Dear Guillaume,

On 2016-04-13, Guillaume Munch wrote:

Le 12/04/2016 21:37, Guenter Milde a écrit :


...


Here's beamer-flex.layout, beamer-flex.module and an example document
(the original conference template).


Thanks a lot.


The goal is to replace the various Frame, Block and Columns styles with
corresponding flex insets all the while inheriting the original layout
for all the rest. These are now found in Insert > Custom insets. I have
already used it successfully to prepare a few talks and found that flex
insets let me focus on the contents.



In addition, the module can be used on top of the original beamer.layout
to have both methods at the same time, for instance for converting a
beamer presentation into the new layout.


I simply kept the old Styles in beamer-flex - however your approach is
cleaner for creating new documents.


Yes, I also wanted not to clog the interface, and with the module it is
easy to have both.



There is an years-old feature request to allow auto-converting of Style to
FlexInset via an ObsoletedBy keyword.
It was, however deemed too exotic as this might easier be implemented via a
lyx2lyx routine. (However, the latter cannot be used with a local install
without changing lyx versions :-(


I am sceptical about the lyx2lyx approach because you have to join
adjacent paragraphs. It would seem easier to deal
with with an ObsoletedBy tag to me. But being able to convert
automatically is not that important I find.




Re: Separators between frames in beamer template

2016-04-12 Thread Guillaume Munch

Le 12/04/2016 21:37, Guenter Milde a écrit :

Dear Guillaume,

On 2016-04-12, Guillaume Munch wrote:


I do not really like the current way of doing beamer presentations with
LyX so I have written an alternate layout that relies on flex insets for
frames and columns, which I find more convenient. Please anybody tell me
if they are interested or curious, as I might make the effort of
packaging it.


I've started a similar approach (based on experience with my
seminar.layout), so yes, I am interested in sharing.




Here's beamer-flex.layout, beamer-flex.module and an example document
(the original conference template).

The goal is to replace the various Frame, Block and Columns styles with
corresponding flex insets all the while inheriting the original layout
for all the rest. These are now found in Insert > Custom insets. I have
already used it successfully to prepare a few talks and found that flex
insets let me focus on the contents.

In addition, the module can be used on top of the original beamer.layout
to have both methods at the same time, for instance for converting a
beamer presentation into the new layout.

I have additional tweaks such as making the frame title automatically
match the subsection title, but I did not include it in the attached.

I am interested in any feedback that you may have.
#% Do not delete the line below; configure depends on this
#  
\DeclareLaTeXClass[beamer,amssymb.sty,hyperref.sty,pgf.sty,xcolor.sty,xxcolor.sty]{Beamer
 (flex insets)}
#  \DeclareCategory{Presentations}
# Author: Guillaume Munch <g...@lyx.org>
# Modifies beamer.layout by Till Tantau, Jürgen Spitzmüller, Uwe Stöhr, Richard 
Heck, Martin Vermeer and probably others.
# To convert a file from beamer.layout, see beamer-flex.module. 


Format 60

Input beamer.layout

NoStyle Frame
NoStyle PlainFrame
NoStyle FragileFrame
NoStyle Columns
NoStyle ColumnsCenterAligned
NoStyle ColumnsTopAligned
NoStyle Block
NoStyle ExampleBlock
NoStyle AlertBlock

Input beamer-flex.inc#\DeclareLyXModule{Beamer (flex)}
#DescriptionBegin
# Adds flex insets to replace the following styles: Frame, PlainFrame,
# FragileFrame, Columns, ColumnsTopAligned, ColumnsCenterAligned,
# Block, AlertBlock, ExampleBlock. This module can be used to convert
# a lyx document from the Beamer layout to the Beamer-flex layout
# (which must be done by hand).
#DescriptionEnd
#
# Author: Guillaume Munch <g...@lyx.org>

Format 60

Input beamer-flex.inc
# Definition of flex insets for beamer-flex
# Author: Guillaume Munch <g...@lyx.org>
# Based on beamer.layout by Till Tantau and others.

# This file is included by beamer-flex.layout and beamer-flex.module

Format 60

InsetLayout Flex:Frame
  LatexTypeEnvironment
  LatexNameframe
  LabelString  "Frame"
  LyxType  custom
  Decoration   classic
  BgColor  white
  LabelFont
Color  latex
Family Roman
Size   Small
  EndFont
  MultiPar true
  ResetsFont   true
  Argument 1
LabelString "Action"
MenuString  "Overlay Specifications|v"
Tooltip "Overlay specifications for this frame"
LeftDelim   <
RightDelim  >
  EndArgument
  Argument 2
LabelString "Default Overlay Specifications"
Tooltip "Default overlay specifications within this frame"
LeftDelim   [<
RightDelim  >]
  EndArgument
  Argument 3
MenuString  "Frame Options"
LabelString "Options"
Tooltip "Frame options (see beamer manual)"
  EndArgument
  Argument 4
LabelString"Frame Title"
Tooltip"Enter the frame title here"
LeftDelim  {
RightDelim }
Decoration conglomerate
Font
  Colorblue
  Size largest
EndFont
AutoInsert 1
  EndArgument
End

InsetLayout Flex:Frame_(plain)
  CopyStyle Flex:Frame
  LabelString   "Frame (plain)"
  Argument 3
MenuString  "Frame Options"
LabelString "Options"
Tooltip "Frame options (see beamer manual)"
PresetArg   "plain"
  EndArgument
End

InsetLayout Flex:Frame_(fragile)
  CopyStyle Flex:Frame
  LabelString   "Frame (fragile)"
  Argument 3
MenuString  "Frame Options"
LabelString "Options"
Tooltip "Frame options (see beamer manual)"
PresetArg   "fragile"
  EndArgument
End

InsetLayout Flex:Columns
  LatexTypeEnvironment
  LyxType  custom
  Decoration   classic
  BgColor  white
  LabelFont
Color  latex
Family Roman
Size   Small
  EndFont
  MultiPar true
  ResetsFont   true
  LatexNamecolumns
  LabelString  "Columns"
  Argument 1
LabelString

Re: Separators between frames in beamer template

2016-04-12 Thread Guillaume Munch

Le 12/04/2016 19:18, Guenter Milde a écrit :

On 2016-04-12, S Shieh wrote:


In this template the frames are separated by what appears as red
underlining, but is a blank line in the source. Is there a way of
inserting this? I have been inserting a blank ERT box in order to
start a new frame, but this red underlining looks better :-)


It is available in the list of Styles (Alt-P Space in an English-speaking
LyX) a Separator.




In 2.2, this is going to be Edit > Start new environment (Alt+P Enter).

I do not really like the current way of doing beamer presentations with
LyX so I have written an alternate layout that relies on flex insets for
frames and columns, which I find more convenient. Please anybody tell me
if they are interested or curious, as I might make the effort of
packaging it.



Re: IEEE: The paper PDF file cannot be accepted

2016-03-31 Thread Guillaume Munch

Le 31/03/2016 20:11, Neal Becker a écrit :

Guillaume Munch wrote:


Le 31/03/2016 19:36, Neal Becker a écrit :

Trying to upload final paper, and it's not accepted.  I get:

The paper PDF file cannot be accepted: Publishers require that PDF fonts
are embedded so that documents can be printed everywhere; one or more of
your document fonts are not embedded. See EDAS FAQ.

I used export lualatex, with Use Non-Tex fonts option.

Any advice (it's due by tomorrow!)




  From EDAS:
"The PDF checker will sometimes complain about missing embedded fonts.
Authors should consult the EDAS FAQ item (under Help) on that topic."
What does it say?

What is the result of "pdffonts yourfile.pdf" ? (assuming Linux)

Did you try xetex instead?


The problem is coming from pdf drawings which were created by lucidchart
(online).

  pdffonts ~/Documents/SA-SCMA_block_diagram.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
HelveticaType 1WinAnsi  no
no  no  17  0
Helvetica-Bold   Type 1WinAnsi  no
no  no  18  0
Helvetica-ObliqueType 1WinAnsi  no
no  no  19  0
Helvetica-BoldObliqueType 1WinAnsi  no
no  no  20  0

Not sure yet what to do about that.




I suggest embedding the fonts in your drawings using tricks found at
https://stackoverflow.com/questions/4231656/how-do-i-embed-fonts-in-an-existing-pdf
before generating your main pdf file.



Re: IEEE: The paper PDF file cannot be accepted

2016-03-31 Thread Guillaume Munch

Le 31/03/2016 19:36, Neal Becker a écrit :

Trying to upload final paper, and it's not accepted.  I get:

The paper PDF file cannot be accepted: Publishers require that PDF fonts are
embedded so that documents can be printed everywhere; one or more of your
document fonts are not embedded. See EDAS FAQ.

I used export lualatex, with Use Non-Tex fonts option.

Any advice (it's due by tomorrow!)




From EDAS:
"The PDF checker will sometimes complain about missing embedded fonts. 
Authors should consult the EDAS FAQ item (under Help) on that topic."

What does it say?

What is the result of "pdffonts yourfile.pdf" ? (assuming Linux)

Did you try xetex instead?



Re: not a readeable lyx

2016-03-25 Thread Guillaume Munch

Le 25/03/2016 19:15, Kornel Benko a écrit :

Am Freitag, 25. März 2016 um 19:56:11, schrieb victorarturobernal . 


Dear Sir,

I am experiencing the following problem. When trying to open these 2  .lyx
docs its displays ''is not a readeable lyx document''. This file was
working properly before and I need o recover what is inside. Could you help
me?

Please find the .lyx attached

Regards,

Victor Bernal


Have you accidentally  encrypted this files? If so, I doubt someone is able to 
decrypt.
This are definitely no text files.




To add to Kornel's questions, have you checked the "compressed" option
in the document menu for these files recently? The files would look end
up looking like this (but your files are not recognised as compressed
files here).

What is your operating system? An infection by a ransomware is not to be
excluded. One has recently been found to target lyx files, among other
(http://www.bleepingcomputer.com/news/security/new-radamant-ransomware-kit-adds-rdm-extension-to-encrypted-files/).




Re: Footnotes, Authors and Symbols.

2016-03-18 Thread Guillaume Munch

Le 16/03/2016 09:24, Pedro Ramos a écrit :

Hello. I've been writing an article-class document using Lyx 2.1.4 and
I've had trouble with the symbols which precede  the footnotes I've used
for displaying each author's e-mail. Before generating the .pdf
document, Lyx does display all the different symbols I'd like (asterisk,
dagger, ddagger,,,), but once the pdf is generated, they all turn into
asterisks (one, two or more, depending on the order).

How colud I fix it?


Hi

This is a feature of the spanish babel package you are using. If babel 
does this then I assume that daggers are not in use in spanish 
typography, so I would leave it that way. Or you could copy the original 
definition of @fnsymbol (see e.g. 
https://tex.stackexchange.com/a/78223/87201) into your preamble (maybe 
inside an \AtBeginDocument command).





Re: anyone use synctex?

2016-02-10 Thread Guillaume Munch

Le 04/02/2016 15:31, Neal Becker a écrit :

I tried configuring converters
lyx (LuaTeX) -> pdf (LuaTeX) convert to
lualatex --synctex=1

But didn't seem to work for export->pdf(luatex).

I suspect maybe the synctex.gz file was written to a cache directory, and
not exported to the correct (source) directory?

How would I fix this?





Dear Neal

I do use synctex and do not have trouble with it. I do not remember
having to manually configure converters as you did. First things first,
did you try to follow the instructions given at
 ?

Sincerely
Guillaume



Re: Math Instant Preview Failing due to Fontspec

2016-02-01 Thread Guillaume Munch

Le 31/01/2016 17:34, Robert Susmilch a écrit :

Are we talking within the instant preview settings section? I have an older
2.2.0 dev version, and did not see it in there (though I switched back to
stable 2.1.4 on Fedora 22.)



We are talking of Document settings > Output > Output format.



Re: Help with arxiv

2016-01-31 Thread Guillaume Munch
Sorry, I do not have further ideas to help you... Let us know if you 
find the solution.


Guillaume

Le 22/01/2016 01:00, Myriam Abramson a écrit :


Yes, I've done that. It's in the arxiv instructions. But I still get
the same error: the images are not included.

myriam


Guillaume Munch <g...@lyx.org> writes:

 >Le 18/01/2016 18:02, Myriam Abramson a écrit :


Hello,

I've posted about that before but I still have some problems.

If you were successful posting to arxiv.org from a lyx document, I
would like to hear from you.

My problem is now the insertion of images in the generation of a .pdf
document. Here are my steps:

1. In Lyx: export to latex (pdflatex)
2. run latex twice on the .tex file produced. This will generate .pdf
 images to be included.
3. zip everything in the directory for submission to arxiv.

Running pdflatex produces a correct document that includes the
images. Unfortunately, it seems that arxiv is not using pdflatex
(although it claims to be able to process pdflatex files).

Anyother incantation does not seem to include the images in the
document. The images are in the directory and it seems that the images
are found wrapping \includegraphics with \fbox.

Any ideas?





 >Hello,



 >I suggest adding \pdfoutput=1 by hand as the first line of your .tex
 >file. This should trigger the compilation with pdflatex according to
 ><https://arxiv.org/help/submit_tex#pdflatex>.




 >Guillaume






Re: Math Instant Preview Failing due to Fontspec

2016-01-31 Thread Guillaume Munch

Le 31/01/2016 08:41, Jürgen Spitzmüller a écrit :


Switch on "Use non-TeX fonts" in Document > Settings > Fonts. This
should cause LyX to use XeTeX for preview generation.




You can also just set "default output format" to XeTeX, though this 
might be a new feature of 2.2.





Re: Help with arxiv

2016-01-18 Thread Guillaume Munch

Le 18/01/2016 18:02, Myriam Abramson a écrit :


Hello,

I've posted about that before but I still have some problems.

If you were successful posting to arxiv.org from a lyx document, I
would like to hear from you.

My problem is now the insertion of images in the generation of a .pdf
document. Here are my steps:

1. In Lyx: export to latex (pdflatex)
2. run latex twice on the .tex file produced. This will generate .pdf
images to be included.
3. zip everything in the directory for submission to arxiv.

Running pdflatex produces a correct document that includes the
images. Unfortunately, it seems that arxiv is not using pdflatex
(although it claims to be able to process pdflatex files).

Anyother incantation does not seem to include the images in the
document. The images are in the directory and it seems that the images
are found wrapping \includegraphics with \fbox.

Any ideas?




Hello,

I suggest adding \pdfoutput=1 by hand as the first line of your .tex 
file. This should trigger the compilation with pdflatex according to 
.



Guillaume



Re: Equation numbering variants

2015-12-16 Thread Guillaume Munch

Le 16/12/2015 23:05, Franci Žižek a écrit :

Paul A. Rubin  msu.edu> writes:


I'm going to assume that you want the marked equations not to interrupt the
equation numbering scheme. In other words, you want (2.3.3)DELTA consecutive
between (2.3.2) and (2.3.4), rather than having both a (2.3.3) and a
(2.3.3)DELTA.

Create a math macro (Insert > Math > Macro), name it something like \mytag,
and fill the TeX code slot with

\stepcounter{equation}\tag{\theequation\Delta}

and the LyX display slot with ?\Delta?. There's nothing sacred about what
goes in the LyX slot; feel free to change it at will. More about that in a
second.

Then, in any equation you want to flag, just type \mytag in the equation
body. LyX will display ?\Delta? (or whatever you substituted) in the
equation, and will annotate the equation number correctly in the output. If
you leave the LyX portion of the macro empty, LyX will expand the macro
inside the equation. That still works, but it makes for some remarkably ugly
equations in the LyX GUI.

Paul



Thank you Paul!

I tried it and it works good. I see what you mean with the Lyx portion of
the macro - it is only for my reference.

But the DELTA is inside the round brackets. Is there a way to have it
outside the brackets?



Use \tag* instead: \stepcounter{equation}\tag*{(\theequation)\Delta}

Guillaume



Re: Why does Lyx insert a \par in a center environment?

2015-12-13 Thread Guillaume Munch

Le 14/12/2015 03:01, Richard Heck a écrit :

On 12/13/2015 09:09 AM, David wrote:

Hi,

I've noticed that Lyx inserts a \par before the end of a center
environment. I'm curious: why is that done and can it be prevented?


There is an answer to this, but to be honest I do not remember what it
is. It cannot be
prevented, as it is hardcoded. But if you don't want it, you can always
use ERT.




The good news is that this is fixed in 2.2 according to my tests. As I 
just learnt, this is thanks to Enrico who removed many superfluous par 
breaks in Lyx's output.





Re: Why does Lyx insert a \par in a center environment?

2015-12-13 Thread Guillaume Munch

Le 14/12/2015 03:32, Richard Heck a écrit :

On 12/13/2015 10:11 PM, Guillaume Munch wrote:

Le 14/12/2015 03:01, Richard Heck a écrit :

On 12/13/2015 09:09 AM, David wrote:

Hi,

I've noticed that Lyx inserts a \par before the end of a center
environment. I'm curious: why is that done and can it be prevented?


There is an answer to this, but to be honest I do not remember what it
is. It cannot be
prevented, as it is hardcoded. But if you don't want it, you can always
use ERT.




The good news is that this is fixed in 2.2 according to my tests. As I
just learnt, this is thanks to Enrico who removed many superfluous par
breaks in Lyx's output.


I still see it in current master.

% Preview source code for paragraph 1

\begin{center}

this is centered

\par\end{center}

See Paragraph::Private::endTeXParParams.

Richard




Sorry, I misunderstood. I thought David was speaking of the additional 
line break *before* the centering environment, which indeed disappears 
from 2.1 to 2.2. I completely missed the \par!





Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Guillaume Munch

Le 01/12/2015 20:04, Richard Heck a écrit :

On 12/01/2015 02:41 PM, Guillaume Munch wrote:

Dear David,


Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.


There's a dirty, but quite general hack that I have often used in the
past. In "class options", add:

   ]{myClass}\PassOptionsToPackage{myOptions}{todonotes}%

I'd be happy to hear about a better solution...


That really is a hack!!


Yeah sorry about that.

(Please please do not attempt anything at preventing such things because
I have no alternative for the moment.)




A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use.)



It is possible to redefine insets in "Local Format". I'm curious as
well to hear whether something can be done there to pass new package
options. If not, would it make sense to implement a
PassOptionToPackage layout command?


What happens if you just do:

 AddToPremable
 \PassOptionsToPackage...
 EndPreamble

in local layout? I'll guess it may not work, since this line will be
output too late


Yes, it's too late.



If so, then a PassOptionToPackage tag would be a very good idea. These
could be output very early, yes?


I do like the idea of a PassOptionToPackage tag.

But in regards to my hack, I could completely get rid of it only if we
had an AddToEarlyPreamble section the adds lines before the
LyX-generated preamble.

Some options like \zoomfactor even want to be output before the document
class, and I think some command had also to be moved to before the
documentclass recently. Maybe we need a general solution for such issues.



Re: Options of packages loaded by modules/Lyx

2015-12-01 Thread Guillaume Munch

Dear David,

Le 30/11/2015 10:22, David Rörich a écrit :

(sorry if this is a double post)


The lists now work again.



Adding another \usepackage[myOptions]{todonotes} to my preamble causes
an options clash. I tried to

*) Set the options globally by passing them to the document class (as
suggested by LaTex). No error, but also no effect.
*) Use \PassOptionsToPackage. No error, but also no effect. I think this
command must be used *before* loading the package, which I can't do as
the module's preamble additions are done *before* the user's additions.


There's a dirty, but quite general hack that I have often used in the 
past. In "class options", add:


  ]{myClass}\PassOptionsToPackage{myOptions}{todonotes}%

I'd be happy to hear about a better solution...



A possible solution would be to change the module itself. But I don't
like this solution much because it would have a system wide effect where
I only want it to affect the document. (Also, I don't want to change the
moule on all systems I use.)



It is possible to redefine insets in "Local Format". I'm curious as well 
to hear whether something can be done there to pass new package options. 
If not, would it make sense to implement a PassOptionToPackage layout 
command?




Re: Paste becomes disabled after a while in Windows

2015-11-12 Thread Guillaume Munch

Le 12/11/2015 03:57, Joon Ro a écrit :

While I still do not know the culprit of this problem, I think I have
found a workaround. Even when `paste` is disabled, `paste recent` is
still active, so I just binded ctrl+v to `paste 0` instead of `paste`.
It seems to be working well so far.


But can you still paste from outside of LyX with this?




Re: display change after upgrading to 2.1.4

2015-11-10 Thread Guillaume Munch

Le 10/11/2015 18:53, Joel VanderWerf a écrit :


Hi, after upgrading to 2.1.4, all math is now displayed with the "elbow"
marks around it. (Sorry, don't know what to call them, or what to search
the list archives for.)

Here is the display I expected:

http://www.lyx.org/images/about/main_window.png

But the attached is what I see (on the same UserGuide.lyx document). As
you can see every bit of math has the four markers around it, which is
distracting.

Is this configurable somehow?


Yes, have a look at Preferences ▷ Colors ▷ Math corners



Re: LyX with NewTXMath unable to load metric data

2015-11-08 Thread Guillaume Munch

Le 06/11/2015 11:49, Neal Becker a écrit :

Guillaume Munch wrote:


If you previously needed additional packages containing math symbols,
try to remove those packages from the preamble. Stix should already have
all the symbols that you need. In particular I set amssymb and stmaryrd
to "do not load" in the document settings (but maybe that's also because
I \usepackage[scr=boondoxo,cal=pxtx]{mathalfa} in addition to stix, I
don't remember the details).


I tried removing all other packages, and trying lualatex on this tex file I
still get the same error.  My preamble is down to this:  (This is fedora 23)

%% LyX 2.1.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{beamer}
\usepackage{fontspec}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{graphicx}

\makeatletter

%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


%% Textclass specific LaTeX commands.
  % this default might be overridden by plain title style
  \newcommand\makebeamertitle{\frame{\maketitle}}%
  % (ERT) argument for the TOC
  \AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}
{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
  }

%% User specified LaTeX commands.
\usepackage{stix}
%\usepackage{siunitx}
%\usetheme{CambridgeUS}
%\usecolortheme{dolphin}
%\usepackage{lmodern}

\makeatother

\usepackage{babel}
\begin{document}
...





You may want to try pdflatex instead of luatex, or if you need luatex 
then use the XITS and XITS Math otf fonts (for fontspec and unicode-math 
respectively) which are based on STIX (I even find that XITS has better 
hinting than the usual Times font.)



Guillaume



Re: LyX with NewTXMath unable to load metric data

2015-11-05 Thread Guillaume Munch

Le 05/11/2015 12:36, Neal Becker a écrit :

Guillaume Munch wrote:


Le 04/11/2015 22:46, Robert Susmilch a écrit :

Dear List,

I have been doing quite a few papers in LyX, and tried switching to
LibreOffice for Zotero integration, however the math and figure placement
drove me up the wall so badly, I came back to LyX/LaTeX, cheated, and
entered my citations and references manually via cut and paste.

I have looked at several fonts, and like Libertine, however I cannot get
Libertine to work for the math font.

At first libertine would not show up as installed in LyX, but a reboot
may have fixed that. It now shows up under math font. However, even a
basic document gives me an error while trying LuaTex:

! Font \=zxxrl7z at 10pt not loadable: metric data not found or bad.

relax
l.11 This is a fancy equation $\sum
   _{i=1}^{\infty}b^{i}$.
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font='.


This happens with Times New Roman and Garamond for the NewTX math font.
Euler and Kurier both work (but are ugly IMHO.)

PDFLatex gives a similar error, but complains that there is no font of
size 8.8 pt loadable.

XeXtex coplains about missing temp pdf.

I have tried some suggestions of reinstalling texlive-collection-
fontsrecommended. I have wiped my preamble out and removed all loaded
modules in document settings.

This is all on a Fedora 22 system, using LyX  2.1.4.

What am I missing?



You are trying to use NewTXMath with the libertine option if I
understand correctly. I don't know what goes wrong. But, have you tried
the stix fonts with pdflatex (\usepackage{stix} in the preamble) ? Stix
is self-contained, so you have to remove other font packages first,
including math symbols, to try. I know a couple other fonts for text and
math that give good results.


Out of curiosity I took a beamer presentation and tried adding
\usepackage{stix}.  I got a string of errors, starting with:

No room for a new \mathgroup .





If you previously needed additional packages containing math symbols, 
try to remove those packages from the preamble. Stix should already have 
all the symbols that you need. In particular I set amssymb and stmaryrd 
to "do not load" in the document settings (but maybe that's also because 
I \usepackage[scr=boondoxo,cal=pxtx]{mathalfa} in addition to stix, I 
don't remember the details).




Re: LyX with NewTXMath unable to load metric data

2015-11-04 Thread Guillaume Munch

Le 04/11/2015 23:38, Robert Susmilch a écrit :

Dear Guillaume,

Yes, I am trying to use Libertine with the Math font option under Document-

Settings->Fonts. If I use package stix, it compiles but I cannot use any

other fonts in document settings (kind of defeats the purpose.)



Ok, I misunderstood that you were interested in Libertine specifically
and thought that you were trying various fonts. In any case your example
works well here so it might be an issue with your installation,
though I am not an expert of such issues.



Re: LyX with NewTXMath unable to load metric data

2015-11-04 Thread Guillaume Munch

Le 05/11/2015 00:30, Robert Susmilch a écrit :

Dear Guillaume,

So I take it that Libertine works as both the serif and math font?


Yes, it worked with both at the same time.



Reinstall everything such as texlive* and latex? Am I missing an obscure
package?



Let's hope that somebody else has a reply for you.



Re: Revision Control, Status Control, upmethodology

2015-11-04 Thread Guillaume Munch

Le 07/10/2015 15:07, Bert Zimpel a écrit :


Dear User community,

Is anybody out there who has experience with or has used tex-upmethodology

within LyX?

tex-upmethodology is a LaTeX style which permits to create documents and
reports with version, history, authors, validators, specification, task
management, etc., as for the reports in a Unified Process methodology
(UP or RUP).

I look for a solution an office-assistant can handle, therefore LyX, I
could not use something like TEXstudio or similar for this reason.

Thank you very much!

Bert




Interesting, LyX has:

- Change tracking with author tracking
- compatibility with versioning systems such as git
- TODO notes
- branches
...

What would be the concrete difference with a solution such as 
tex-upmethodology?


If you are willing to try LyX, I would recommend testing Change tracking 
for a start.





Re: LyX with NewTXMath unable to load metric data

2015-11-04 Thread Guillaume Munch

Le 04/11/2015 22:46, Robert Susmilch a écrit :

Dear List,

I have been doing quite a few papers in LyX, and tried switching to
LibreOffice for Zotero integration, however the math and figure placement
drove me up the wall so badly, I came back to LyX/LaTeX, cheated, and entered
my citations and references manually via cut and paste.

I have looked at several fonts, and like Libertine, however I cannot get
Libertine to work for the math font.

At first libertine would not show up as installed in LyX, but a reboot may
have fixed that. It now shows up under math font. However, even a basic
document gives me an error while trying LuaTex:

! Font \=zxxrl7z at 10pt not loadable: metric data not found or bad.

relax
l.11 This is a fancy equation $\sum
  _{i=1}^{\infty}b^{i}$.
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font='.


This happens with Times New Roman and Garamond for the NewTX math font. Euler
and Kurier both work (but are ugly IMHO.)

PDFLatex gives a similar error, but complains that there is no font of size
8.8 pt loadable.

XeXtex coplains about missing temp pdf.

I have tried some suggestions of reinstalling texlive-collection-
fontsrecommended. I have wiped my preamble out and removed all loaded modules
in document settings.

This is all on a Fedora 22 system, using LyX  2.1.4.

What am I missing?



You are trying to use NewTXMath with the libertine option if I 
understand correctly. I don't know what goes wrong. But, have you tried 
the stix fonts with pdflatex (\usepackage{stix} in the preamble) ? Stix 
is self-contained, so you have to remove other font packages first, 
including math symbols, to try. I know a couple other fonts for text and 
math that give good results.


For Zotero have you tried LyZ ? https://github.com/willsALMANJ/lyz




Re: Finding the generated latex file

2015-11-02 Thread Guillaume Munch

Le 28/10/2015 14:09, Ilan a écrit :

After compiling a file in Lyx, I no longer see the full path to the Latex file
in the log.
It used to be in the first lines of the Latex log window.

Is there any way to get it back? That way I can easily copy and paste the path
in order to debug the Latex file directly.





There is now an "Open Containing Directory" button in the log dialog in
place of the "Copy to Clipboard" button, in the upcoming 2.2 alpha.



Re: LyX Docker container?

2015-10-13 Thread Guillaume Munch

Le 13/10/2015 18:47, Steve Litt a écrit :

On Tue, 13 Oct 2015 09:02:17 +0200 Jean-Marc Lasgouttes
 wrote:


Le 12/10/15 18:19, Steve Litt a écrit :

What's so special about void linux?


Minimal, solid, modular, adaptable, DIY friendly. Matter of fact,
the only software that didn't run on it was LyX.


A bit too minimal, then. Complain to them :)

JMarc



Thanks JMarc,

I'm not going to complain to Void. LyX is the only piece of software
 didn't work on Void, but Void is not the only environment I've had
trouble with LyX. I've had trouble compiling LyX on most of my
upgrades. Ever since the end of xforms, you've needed just the right
 Qt4 version combination. I'm not going to complain to them over one
 single app, when they give me a clean, fast, simple, always-works
distro.


It is unclear to me whether you came here to seek help or complain,
given that you do not give any information that would allow people on
this list to help you. Not many people here knows “Void” or what is a
“Docker container”. You don't even describe the issue that “Void” has
with LyX.



For now, I'm running LyX in a Ubuntu 14.04 LTS Qemu VM. Soon it will
be a Docker container.


This is great if you can contribute with a “Docker container”. For real
technical discussions if you seek help I would direct you towards the
lyx-devel list.


In the long run, I'll need to finish the Stylz project I started,
which will replace both LyX and Sigil and provide write once,
publish everywhere.


I wish you the best of luck, a document processor better than LyX
promises to be awesome.



By the way, if LyX native format ever becomes a true, valid and
well-formed XML,


I do not understand your point with XML.


then all LaTeX dependency can be moved to a separate executable,


LyX already does not depend on a LaTeX distribution for non-LaTeX
output, and I don't see the link with what comes before.


valid, non-kludge eBook conversion becomes possible,


Feel free to help! And I still do not see the link with LyX's file format.


LyX will be write-once;deploy-everywhere,


I do not understand what you mean with that.


and LyX will be relevant well into the future.


I find your list rather short for the task that you describe.


Guillaume



Re: Searching in math macros

2015-10-02 Thread Guillaume Munch

Le 02/10/2015 09:58, Liviu Andronic a écrit :

On Fri, Oct 2, 2015 at 10:40 AM, Guenter Milde <mi...@users.sf.net> wrote:

On 2015-10-02, Liviu Andronic wrote:

On Thu, Oct 1, 2015 at 11:49 PM, Guillaume Munch <g...@lyx.org> wrote:

Le 01/10/2015 12:03, David a écrit :


...


As of now, there is a list of math macros in the navigation menu and the
outline pane. Especially the outline pane works well for that: math macros
can now be accessed and ordered either by appearance or alphabetically, and
can be searched for using the filter.



Is a list of math macros very different from a list of ERT insets?
Will both contain cryptic code?


Every math-macro has a unique name (as it defines a macro which is later
used by this name), while an ERT inset can contain arbitrary
LaTeX code, usually just calling already defined macros.


Right. So this is about a collection of macro names. Same approach
would be useful with Sweave/knitr chunks, using their labels (and
numbering, especially when labels are missing) in the Outliner.

Liviu




Yes if we implement lists of custom insets then it would be easy to make 
an inset argument behave like a caption from the outliner point of view 
using the new 2.2 implementation. This can be discussed in 
<http://www.lyx.org/trac/ticket/7790>.


Guillaume



Re: Searching in math macros

2015-10-01 Thread Guillaume Munch

Le 01/10/2015 12:03, David a écrit :

Dear Lyx users,

I work on a document that contains a long list of math macros
defining various mathematical symbols. I would like to search in
this list.

Please consider the example Lyx file attached. How could I find, for
 example, \speedOfLight ?  I have tried Edit > Find (Quick) and Edit

Find (Advanced), but without luck.


Do you know a way to do this? Thanks in advance.

Regards, David



I often found myself in the same situation and there was no solution to 
my knowledge.


As of now, there is a list of math macros in the navigation menu and the 
outline pane. Especially the outline pane works well for that: math 
macros can now be accessed and ordered either by appearance or 
alphabetically, and can be searched for using the filter.


One more reason to be impatient for the 2.2 release.


Guillaume



IBus incompatibility

2015-09-28 Thread Guillaume Munch

There is currently a serious incompatibility between LyX and IBus (the
default input method in Ubuntu and Fedora) that causes various problems:

 * The keyboard starts outputting the wrong keys

 * LyX completely and definitely stops responding

 * When using arrow keys or page up/down, the movement continues for a
long while after the key has been released.

If you have experienced these bugs and use Linux, then you may be a
victim of this incompatibility. The main trigger is a heavy system load
so it happen more often to users with long documents with which LyX is slow.

I have just found the reason to these bugs so I wanted to share the
workarounds:

 * Disable IBus just for LyX (if you don't need a special input method):
   Run LyX with the command line:
 XMODIFIERS= lyx
   or equivalently (in Ubuntu) adapt /usr/share/applications/lyx.desktop
   as follows:
 Exec=env XMODIFIERS= lyx %F

or:

 * Set IBus to synchronous system-wide (keeps IBus in LyX, but does not
   solve the third issue and causes problems with the hangul input
   method):
   Add the following line to .xsessionrc (create if needed):
 export IBUS_ENABLE_SYNC_MODE=1

Follow the bug at .



Re: Convert my thesis .tex file into .lyx

2015-09-27 Thread Guillaume Munch

Le 25/09/2015 03:34, Nader Mahmoudi a écrit :

Dear Sir/Madam,

I am writing my M.Sc. thesis in latex template provide by my university
(You may find the template folder here
).
As Lyx provides more user-friend space to write the science, I would
like to convert to .lyx file. However, because the document class is not
available on Lyx, it could not do so. I tried to import from
File/Import/latex(plain), but the error occurred while running. As I am
very new in Lyx, I could not understand the information given here
. Please let me know there
is any simple way to do so.

Best regards,
Nader Mahmoudi



Dear Nader,


After having looked at the files it seems that creating a dedicated 
layout is the only option. The class ozu-thesis.cls is based on the 
report class so we can start from there. See the attached file 
ozu-thesis.layout which would be your starting point and which just 
loads the layout for the report class.


To use it you need to create a lyx file and select a local format file 
under "Class". See the attached example lyx file which needs to be saved 
in the same directory as ozu-thesis.layout, ozu-thesis.cls and the other 
files.


At this point it only has the features from the report class. You can 
then extend it with the features from ozu-thesis.cls in two ways:


* Use ERT to directly input LaTeX commands (this is quickly cumbersome 
for environments that you are going to use often but will allow you to 
move forward).


* You can progressively define the missing environments in the "Local 
format" pane after reading the "Customization" guide and the many 
examples located in the "layouts" dir of your lyx installation.


Try to compare the "view source" pane with the example tex file if you 
encounter problems.


Hopefully, once you are done, you can send us the final state of your 
layout so that others will benefit from your work.



Best,
Guillaume


ozu-thesis.lyx
Description: application/lyx
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[ozu-thesis]{OZU-thesis}
#  \DeclareCategory{Reports}
# Stub for ozu-thesis.cls.

Format 49

# ozu-thesis.cls is based on report.cls
Input report.layout


Re: padding at edges of equations

2015-09-21 Thread Guillaume Munch

Le 21/09/2015 09:57, Guenter Milde a écrit :

On 2015-09-20, Jack Sankey wrote:


[-- Type: text/plain, Encoding:  --]



Hello!



Is there any way to change the padding (i.e. the number of pixels) on the
sides of equations?



The reason I ask is when I'm trying to select part of an equation I often
need single-pixel mouse precision to avoid grabbing everything. Adding a
pixel or two of buffer on the edge would be pretty helpful. This is also
true for things like "the stuff inside a square root" though adding pixels
there might make things ugly..


I agree that selecting stuff in a formula can be quite tricky.
However, there is one important reason speaking against more padding:

If you press the space bar inside mathed, this has the effect of an
"escape"¹ but it does *not* insert whitespace. This is easily overlooked
already with the current display, adding a padding makes it even harder
to detect if the formula is followed by whitespace or directly by text.

(There are use-cases for both: "$x$-axis" or a formula followed by
punctuation as well as formulas in the middle of a sentence requiring
whitespace around.)




A better solution would be to only need to go over half the inset to 
select it, as suggested in http://www.lyx.org/trac/ticket/9748