test - ignore

2016-05-05 Thread Jerry
test - ignore


Re: microtype usage

2016-02-22 Thread Jerry
1.
Jerry

On Feb 22, 2016, at 7:23 PM, Pavel Sanda  wrote:

> Hi LyXers,
> 
> we will add support for microtype into LyX.
> 
> I would like to get some feedback from users who already use this package
> about their workflow. Do you
> 
> 1. just load the package in preamble via \usepackage{microtype}
> 2. usually add few more parameters via \usepackage[param1]{microtype}
> 3. use heavy loaded settings to get what you need
> ?
> 
> (I'm trying to figure out how much space for param tuning should
> be left for user in the interface.)
> 
> Pavel



Graphics shift slightly right when part of a sub-figure

2015-11-09 Thread Jerry
I have graphics that I want to present as figures in two-column format 
(IEEEtrans). I have prepared the graphics and when loaded into LyX they 
perfectly fit the column width, as I have set the width to be 100% of the 
column width. This is good.

However, for some figures, I want two graphics to be presented as parts (a) and 
(b). Following the Embedded Objects manual, I first made a figure float with 
caption and then into that I pasted two more figure floats which LyX identifies 
as sub-figures. So far so good. But when I insert the graphics into the 
sub-figure floats and render to PDF, the graphics have moved very slightly to 
the right, about half the width of a character or I supposed 1-2 mm, causing 
the figures to protrude very slightly into either the gutter or the right-hand 
margin, depending on what column they appear in. There is also a slight bit of 
movement of the left side of the graphics,by the same amount--the entire 
graphic has shifted right.

I can scale the graphics by 98% and prevent the right-hand overhang, but there 
is still a noticeable bit of white space to the left.

What is causing this slight shift of graphics to the right when they are part 
of a sub-figure?

Jerry

Re: Setting double-spaced output also causes double-spaced on-screen LyX display

2015-11-03 Thread Jerry

On Nov 2, 2015, at 5:43 PM, Jerry  wrote:

> 
> On Oct 27, 2015, at 5:58 PM, Scott Kostyshak  wrote:
> 
>> On Tue, Oct 27, 2015 at 05:24:41PM -0700, Jerry wrote:
>>> 
>>> I hope the devs see this post wrt providing different on-screen versus 
>>> rendered appearance regarding line spacing. Maybe I'll file a feature 
>>> request.
>> 
>> Hi Jerry,
>> 
>> I think it would be a good feature request. Also note that 2.2 beta has
>> not been released yet (alpha will be released soon). But perhaps you
>> just meant 2.2dev.
>> 
>> Scott
> 
> I'll file a feature request soon. Yes, I meant 2.2dev. Not sure the hash but 
> I don't think it matters for this.
> 
> Jerry

Done. Feature request ticket is http://www.lyx.org/trac/ticket/9838
Jerry

Re: Setting double-spaced output also causes double-spaced on-screen LyX display

2015-11-02 Thread Jerry

On Oct 27, 2015, at 5:58 PM, Scott Kostyshak  wrote:

> On Tue, Oct 27, 2015 at 05:24:41PM -0700, Jerry wrote:
>> 
>> I hope the devs see this post wrt providing different on-screen versus 
>> rendered appearance regarding line spacing. Maybe I'll file a feature 
>> request.
> 
> Hi Jerry,
> 
> I think it would be a good feature request. Also note that 2.2 beta has
> not been released yet (alpha will be released soon). But perhaps you
> just meant 2.2dev.
> 
> Scott

I'll file a feature request soon. Yes, I meant 2.2dev. Not sure the hash but I 
don't think it matters for this.

Jerry

Re: Setting double-spaced output also causes double-spaced on-screen LyX display

2015-10-27 Thread Jerry

On Oct 27, 2015, at 1:15 PM, John Kane  wrote:

> I don't know if you have missed anything or not but one way to do this seems 
> to be to use the setspace package and a bit of ERT. A quick test seems to 
> indicate that \usepackage{setspace} in the preamble and a 
> |\begin{doublespacing} and \ end{doublespacing} before and after any text in 
> the article turns out a doublespaced PDF.
> 
> See 
> http://tex.stackexchange.com/questions/122487/linespacing-latex-for-just-a-few-lines
>  
> 
> On 27 October 2015 at 01:58, Jerry  wrote:
> The journal to which I plan to submit a manuscript requires double spacing. 
> So I went to Document -> Settings... -> Text Layout -> Line Spacing and 
> selected Double. (I'm using Article (Standard Class).)
> 
> This made the rendered PDF double spaced but much to my surprise, the LyX 
> display also became double spaced! This is BAD. This is a lot WYSIWYG, not 
> WYSISYM. Now I can see only half as much stuff in LyX and I have to scroll a 
> lot etc.
> 
> How can I make the LyX display maintain a nice compact appearance while still 
> having a PDF that is double-spaced?
> 
> More to the point of LyX design: Things under Document -> Settings seem to 
> relate to how the _document_ looks, and things under LyX -> Preferences -> 
> Look and Feel (on OS X) affect how LyX looks. So there should be a setting in 
> Look and Feel for on-screen line spacing, separate from how the rendered 
> output will look.
> 
> Please tell me that I've missed something.
> 
> I'm using a 2.2 beta.
> 
> Jerry
> -- 
> John Kane
> Kingston ON Canada

Thanks, John. Good tip. I should have found it myself but I was a little cranky 
with LyX. It seems that when you select double spacing in Settings in LyX, it 
incorporates the setspace package but then applies double spacing for the 
entire document with \doublespacing. Your way lets me keep the title and author 
lines single spaced.

I hope the devs see this post wrt providing different on-screen versus rendered 
appearance regarding line spacing. Maybe I'll file a feature request.

Jerry

Setting double-spaced output also causes double-spaced on-screen LyX display

2015-10-26 Thread Jerry
The journal to which I plan to submit a manuscript requires double spacing. So 
I went to Document -> Settings... -> Text Layout -> Line Spacing and selected 
Double. (I'm using Article (Standard Class).)

This made the rendered PDF double spaced but much to my surprise, the LyX 
display also became double spaced! This is BAD. This is a lot WYSIWYG, not 
WYSISYM. Now I can see only half as much stuff in LyX and I have to scroll a 
lot etc.

How can I make the LyX display maintain a nice compact appearance while still 
having a PDF that is double-spaced?

More to the point of LyX design: Things under Document -> Settings seem to 
relate to how the _document_ looks, and things under LyX -> Preferences -> Look 
and Feel (on OS X) affect how LyX looks. So there should be a setting in Look 
and Feel for on-screen line spacing, separate from how the rendered output will 
look.

Please tell me that I've missed something.

I'm using a 2.2 beta.

Jerry

Re: could not find example

2015-07-14 Thread Jerry

On Jul 14, 2015, at 3:07 AM, Marco Gerlach  wrote:

> 
>>> Hey, 
>>> 
>>> could not find my stupid little problem in the archive list. i just wanted 
>>> to start with the the tutorial- i’m sorry- i could not find
>>> beispiel_roh.lyx  
>>> 
>>> or any data in the example folder?
>>> lyx is properly installed. 
>>> 
>>> 
>>> i’m using OS X 10.10.4
>>> or am i’just looking in the wrong folder?- but could not find the data with 
>>> a normal search...
>>> 
>>> 
>>> 
>>> thanks you,
> M.
> 
The Examples folder is hidden from OS X users. It is inside the application 
bundle. From your app root, your file is here:
/LyX.app/Contents/Resources/examples/de/beispiel_roh.lyx
You have to first Control-click on the application icon and then select Show 
Package Contents, then follow the above path with more clicking.

At one point, either the examples or templates folders—I can't remember which— 
did not have the correct paths set to it. You can check this out in the 
preferences. Open Preferences, click on Paths, and see what is in the fields 
for Document templates and Example files. They should be
/path/to/LyX/LyX.app/Contents/Resources/templates/
/path/to/LyX//LyX.app/Contents/Resources/examples/
So you will by now have noticed that the templates are similarly placed inside 
the app bundle.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry

On Mar 24, 2015, at 9:36 PM, Jerry  wrote:

> On Mar 20, 2015, at 7:38 AM, Benedict Holland  
> wrote:
> 
>> Equation labels should be human readable and make sense to you and the 
>> document. That is the proper use. If you are making them all a1, a2,... aN, 
>> I can't help you but typically there are not many equations in documents 
>> anyway. Each one is a bit different and requires a slightly different human 
>> readable note attached with a number that you don't care about. It seems 
>> perfect to me. 
> 
> Responding to Benedict and others...
> 
> This assumes something that isn't necessarily true. It assumes one person's 
> writing style or habits or needs. Other people have dozens and hundreds of 
> equations in a document and having to invent meaningful labels for then is 
> truly a nuisance because equations don't naturally have names. The same goes 
> of course for figures and tables but at least in those cases one might pick a 
> few choice words from their captions.
> 
> To make a meaningful name can easily take 10-20 words in many cases. One can 
> make shorter labels but then the meaning is lost so one may as well do A1, 
> A2,  And short labels or longer descriptions as labels doesn't matter 
> that much when one is scrolling through a list of dozens or hundreds of 
> labels trying to remember what "Laplace distribution modified by AM after 
> substitution of cross-correlaction factor from AR process" means. And the 
> outline doesn't show display equations that aren't labelled. The only easily 
> meaningful thing is the equation itself, which is why one spends tons of time 
> looking around for the actual equation to make sure it's the right one. Thus 
> my argument for a graphical equation browser.
> 
> Jerry

(Bottom-posting on myself)

I'll add that the Outline pane in any kind of normal configuration is so narrow 
that, again, only a bit of any label is visible. One could of course have it 
span the width of one's screen to see more of any longer labels, but this 
wastes enormous amounts of screen space (especially important to laptop users) 
and this exercise is further foiled by the Outline pane's annoying behavior of 
floating on top of the main document window at all times when it is detached.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry
On Mar 20, 2015, at 7:38 AM, Benedict Holland  
wrote:

> Equation labels should be human readable and make sense to you and the 
> document. That is the proper use. If you are making them all a1, a2,... aN, I 
> can't help you but typically there are not many equations in documents 
> anyway. Each one is a bit different and requires a slightly different human 
> readable note attached with a number that you don't care about. It seems 
> perfect to me. 

Responding to Benedict and others...

This assumes something that isn't necessarily true. It assumes one person's 
writing style or habits or needs. Other people have dozens and hundreds of 
equations in a document and having to invent meaningful labels for then is 
truly a nuisance because equations don't naturally have names. The same goes of 
course for figures and tables but at least in those cases one might pick a few 
choice words from their captions.

To make a meaningful name can easily take 10-20 words in many cases. One can 
make shorter labels but then the meaning is lost so one may as well do A1, A2, 
 And short labels or longer descriptions as labels doesn't matter that much 
when one is scrolling through a list of dozens or hundreds of labels trying to 
remember what "Laplace distribution modified by AM after substitution of 
cross-correlaction factor from AR process" means. And the outline doesn't show 
display equations that aren't labelled. The only easily meaningful thing is the 
equation itself, which is why one spends tons of time looking around for the 
actual equation to make sure it's the right one. Thus my argument for a 
graphical equation browser.

Jerry

Re: Lyx 2.1.3 on Mavericks not converting pdfs

2015-03-20 Thread Jerry

On Mar 16, 2015, at 5:40 AM, Graham Smith  wrote:

> I have just upgraded to Lyx 2.1.3 on Mac (Mavericks) and I am now getting an 
> error about PDFs
> 
> "Error converting to loadable  format"  and the file won't compile which may 
> or may not be associated with this issue, as I am getting dozens of errors, 
> which I am slowly working through.
> 
> Regardless it would be nice to get some help with this as I routinely have my 
> graphics as pdfs.
> 
> Any help appreciated.
> 
> Cheers,
> 
> Graham
> 
Graham, I don't know if this will solve your problem but you should know about 
it. It's the wiki for LyX on OS X. 

http://wiki.lyx.org/Mac/Mac

Specifically, refer to the section "On screen quality of included PDF files". 

As far as I'm concerned, this should be made the default for OS X; the current 
default renders crappy PNGs that don't look good on screen and don't scale well.

Jerry

Re: Lyx numbering equations

2015-03-20 Thread Jerry

On Mar 14, 2015, at 9:56 AM, Robert Susmilch  wrote:

> This seems absurd given that Lyx purports to free you to write and not
> micromanage things like this. The tutorial goes on and on about using
> citations, bibliography, automatic section and chapter title numbering
> that takes care of itself. If I can number an equation and it's
> automatic that means the equation numbering can / will change as they
> are moved about, added or deleted, etc.

I agree, but would stop short of "absurd" and simply say "awkward," "clumsy," 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica 
require the same sort of tedious labeling, and those are not necessarily good 
models. I know for a fact that this problem can be handled better because I 
used the long-gone and much-loved FullWrite Professional for about 10 years, 
from 1988 to 1998, and it did not require labeling of anything. You simply 
inserted, as a reference, the current equation number and then FullWrite 
automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case  wrote:

> On Sat, Mar 14, 2015, Robert Susmilch wrote:
>> 
>> I have Googled a way to refer to numbered equations in text, such as
>> "See equation (3)" in Lyx but everything I read, whether from other
>> users or wikis, suggests labeling the already numbered equations and
>> then using the label to cross reference.
>> 
>> This seems absurd 
> 
> This has been discussed before on this list.  The requirement to have a
> label makes good sense: how do you propose to refer to an equation that
> does not have a label?  Remember that its number will change as equations
> are added or removed, whereas the label will not change.
> 
> It seems like you may wish to have a cross reference that says the
> following: "refer to the *current* equation (3), and update the number in
> the cross reference if the corresponding equation number changes."  This
> might be implemented by having LyX create a unique but hidden label for
> every numbered equation, and providing some sort of user interface to
> refer to it.

Nice answer.
> 
> For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.

>  Note that
> numbered equations are no different in this respect than are numbered
> sections, etc.
> 
> dave case
> 
Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry

Re: Can I specify the css file in output?

2015-03-09 Thread Jerry Bond
Thanks to both for the suggestions, will take a look at what works best 
in our context.


Jerry

On 03/09/2015 10:17 AM, Kornel Benko wrote:

Am Montag, 9. März 2015 um 10:08:28, schrieb Richard Heck 

On 03/09/2015 06:44 AM, Jerry Bond wrote:

Sure, but at that point I might just as well change it manually with
an editor.

As I said in OP, I am looking for a way to do it inside LyX.

It is possible to add additional material to the HTML preamble (using
the HTMLPremable or AddToHTMLPreamble layout tags). But it's not
possible to suppress the output of:
  
So you'd have to do something manually anyway.

Richard

Why not create a new html format, say e.g. html7
and create a converter from LyXHTML to html7 ?

Kornel




Re: Can I specify the css file in output?

2015-03-09 Thread Jerry Bond
Sure, but at that point I might just as well change it manually with an 
editor.


As I said in OP, I am looking for a way to do it inside LyX.

Thanks.

Jerry

On 03/09/2015 12:51 AM, Steve Litt wrote:

Awk or sed shellscript, or simple Python program.




Re: Can I specify the css file in output?

2015-03-08 Thread Jerry Bond
Thanks for getting back to me. Let me just respond to this section of 
your email, since I may have been unclear in my original post.


On 03/07/2015 08:54 PM, Steve Litt wrote:

But in answer to your specific question, IMHO you really*don't*  want
your CSS to come directly from LyX, because ePubs should look very
different from their PDF counterparts. So I'd recommend making your own
CSS styles, and either copying them over the LyX-bestowed CSS, or
including a link to*your*  CSS below the link to the LyX-bestowed.
We do not, in fact, use the LyX or ElyXer css, but have our own whose 
reference for the header must be "*style/mx-lyx.css*" The question I was 
trying to ask was how to specify that proprietary css in the header of 
the output html file so that I do not have to change it manually each time.


I hope this clarifies the problem I am having.

Jerry


Can I specify the css file in output?

2015-03-07 Thread Jerry Bond

Hi List --

Using Lyx 2.1.3 on a Linux (Debian Stable) platform.

I have gotten my problems in the lyx > html process down to a single 
item, thanks to the answer from the List to my earlier question (2/25) 
and my continued snooping around.


The only one left: whether I use HTML or LyXHTML, the html export 
contains a generic entry in the header for the css. For HTML is a link 
to the source of the converter ElyXer file:


*http://elyxer.nongnu.org/lyx.css  
http://elyxer.nongnu.org/lyx.css>"type="text/css"media="all"/>*


And for LyXHTML it is:

*
**

how can I insert an html id tag

2015-02-25 Thread Jerry Bond

Hi List --

Using Lyx 2.1.3 on a Linux platform.

We have just gone live with a Users Manual for a Linux distribution in 
both html and pdf format. For the most part, the conversion to html goes 
well, and only minor adjustments need to be made to the css or the html 
itself. If it helps, the html Manual is here:


http://www.mepiscommunity.org/user_manual_mx15/mxum.html

One annoying problem I have not been able to solve is how to avoid 
inserting a large number of id tags manually into the converted html 
every time we do a revision of any kind. As you know, these tags are 
used to direct outside links to a specific portion of the document. For 
instance, I insert  to direct the Help link from an 
application about managing users to the appropriate location.


I have searched the documentation without luck so far, and a general web 
search has also not been productive. Is there a way to do this inside Lyx?


Thanks for any help.

Jerry Bond
Project Manager
MX Linux


Re: LyX+Scilab

2015-01-28 Thread Jerry

On Jan 25, 2015, at 2:56 PM, Benedict Holland  
wrote:

> On Sun, Jan 25, 2015 at 4:38 PM, Francesco Menoncin 
>  wrote:
> Hello Benedict,
> thank you for your answer.
> I give you an example about how R is difficult for dealing with matrices: if 
> in Matlab (or Scilab or Octave or simila) I write:
> 
> x(2,2)=10
> 
> the following matrix is automatically created:
> 
> [0 0
> 0 2]
> 
> while in R
> 
> x[2,2]=10
> 
> gives an error because I first have to declare to R that x is a matrix and, 
> furthermore, give it the right dimension.
> If, afterward, I want to add an element to the matrix x, in Matlab I simply 
> write:
> 
> x(3,1)=5
> 
> and I obtain the matrix:
> 
> [0 0
> 0 10
> 5 0]
> 
> while in R I cannot do that, because x has already been defined as a 2 by 2 
> matrix.
> I find all this very inefficient for dealig with matrices.
> This is my point :-)
> 
> Francesco
> 
I'm not familiar with R but what you are saying about R in comparison with 
Matlab or Octave is that Matlab/Octave do not check array bounds. Thus, you 
might erroneously write into a matrix element that doesn't exist and 
Matlab/Octave does not report an error. Array bounds checking is the price to 
pay for having safer code. FWIW, Python and Mathematica are examples of 
languages that are only "half-safe" with respect to array indexing, meaning if 
you write past the beginning of an array (usually negative indexes) it assumes 
you want to index the array backwards, from the end. These are all conveniences 
but of course can also cause erroneous results or increased time spent 
debugging. I personally am happy to write in a safe language (Ada) and spend a 
little bit more time writing code (it's easy to declare a new array and copy 
the old one into it; you can write a subroutine if you want) and virtually zero 
time chasing bugs, but others prefer otherwise and that's fine.

Jerry 

Re: Lyx window exceeds screen size

2014-10-30 Thread Jerry

On Oct 30, 2014, at 11:46 AM, David L. Johnson  wrote:

> On 10/30/2014 01:42 PM, Atanu Ghosh wrote:
>> Hi
>> 
>> I am a user of Lyx in my netbook for the past one year. But recently I 
>> noticed that many windows in Lyx launch to a size that is larger than my 
>> netbook screen. As a result I cannot use the "Ok" button to confirm my 
>> changes/ customizations. Further these windows does not allow resizing.
> You probably had opened that file on a machine with a larger screen earlier.  
> It will often open in that same size the next time it is run.  But there is a 
> trick to use on your laptop (this may vary with your GUI).  Click on the 
> window while holding down the ALT key, then move the mouse.  The window 
> should move.  Then you can find the OK button and resizing tabs.
>> 
>> I faced it specially with the "preferences " option in "Tool" menu   and 
>> when I want to insert any citation from the "Insert -Citation " option.
> Ah, these never allow resizing.  Again, ALT+Left click-hold and drag should 
> work.

FWIW, these are both resizable on OS X.

This thread reminded me of a problem with the size of the dialog box for Insert 
-> Cross-reference, so I filed a ticket for it.

Ticket URL: <http://www.lyx.org/trac/ticket/9316>

Jerry
>> 
>> Please suggest me some way so that I can insert citation in the documents or 
>> can resize that window.
>> 
>> 
>> Thanks in advance
>> -Atanu
> 
> 
> -- 
> David L. Johnson
> Department of Mathematics
> Lehigh University
> 



Re: lyx on Mac - blurred fonts

2014-10-15 Thread Jerry

On Oct 5, 2014, at 10:28 PM, Stephan Witt  wrote:

> Am 05.10.2014 um 21:47 schrieb Tino Langer :
> 
>> Hi all,
>> 
>> I just installed lyx 2.1.2 on OSX 10.9.5, using MacTeX in background. 
>> 
>> I’m a little bit confused because the font in the editor area and also the 
>> icons at the toolbar are very blurred. Are there any options I have to 
>> change to get antialiased fonts and clear icons?
>> 
>> Thanks a lot! - Tino
> 
> 
> Hi Tino,
> 
> you're using a display with very high resolution, the so called 
> Retina-display.
> LyX isn't ready to display the contents of the work area and the icons on
> a Mac with Retina display.  So, no, there is no option to enable the display
> with full screen resolution on your Mac.  You have to wait for a new version
> of LyX.
> 
> Stephan

Surely LyX on a Retina display is no worse than on a normal-resolution display, 
right?
Jerry



Re: Hyphenating a hyphenated word at a line break

2014-09-03 Thread Jerry
On Aug 28, 2014, at 4:03 AM, Jerry  wrote:

> I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
> believe) the proper - which is an n-dash. When this is rendered in the 
> vicinity of a line wrap, the entire thing gets pushed to the next line, 
> leaving a lot of ugly white space in the first line. So I inserted a 
> hyphenation point after the -. This shows on the LyX screen as sort of -- 
> which is my original n-dash and a shorter blue dash, probably supposed to 
> represent a hyphen. This is all great, but when this version is rendered, the 
> line break now appears after crosstalk--, that is, both the n-dash _and_ the 
> hyphenation point are rendered which looks very wrong. What is the 
> typographer's say on this, and is LyX doing the right thing. Also, is this a 
> LyX problem or a TeX problem? My guess the typographer would say, let the 
> n-dash stand alone if it occurs at a line break.
> 
> Jerry

Thanks for all your kind responses.

I need to clear up this thread for a few reasons.

I started it with a muddle-headed premise--that the n-dash is appropriately 
used in places such as crosstalk-cancelled; it is not. A hyphen should be used 
there. I've known this since grammar school and for some reason a bit in my 
brain flipped (bit rot's a bitch) a couple months ago and I started doing it 
wrong. So the best thing would be to ignore this whole thread. However...

LyX, apparently like LaTeX and I suppose TeX, denotes the hyphen as an actual 
hyphen -, the n-dash as two hyphens --, and the m-dash as three hyphens ---. 
When entered this way in LyX, line breaking, if necessary, happens as expected, 
after the hyphen or dash. However...

Something curious happens on my computer which is a Macintosh. I don't know if 
it happens on other computers but it would be interesting to know. (Hint.) 
Specifically, on Macs the n-dash is entered with Option-hyphen and the m-dash 
with Shift-Option-hyphen; this has been the case since 1984 and my fingers know 
it well. The LyX documentation says that the - -- --- method should be used. 
(It does not say _not_ to do the Mac-like thing.) Being contrary (and a newish 
LyX user) I tried the traditional Mac way, and it works--the desired character 
is displayed on the LyX window and also is rendered correctly in printed 
output. So that is the habit I continued for working in LyX. Therein lies my 
problem. Even though the traditional Mac entry method displays correctly 
on-screen and in-print, the n- and m-dash so entered DO NOT ALLOW LINE BREAKS. 
And that's why I wrote.

Is this worth a request ticket--to make these alternate entry methods 
compatible with LyX?

Jerry

Some remedial reading for me:
http://www.dashhyphen.com/
http://en.wikipedia.org/wiki/Dash

\usepackage{flushend} on two-column documents causes misplaced footnotes

2014-08-28 Thread Jerry
When I insert 

\usepackage{flushend}

into the preamble and make the setting for two-column output, so that the 
columns on the last page have the same length ("flush end"), _some_ footnotes 
appear in embarrassingly inappropriate places, meaning, in the middle of a 
column, surrounded above and below by normal text.

Is this a TeX problem? Is there a known cure? Should I go to a LaTeX group and 
ask this?

Jerry

Hyphenating a hyphenated word at a line break

2014-08-28 Thread Jerry
I have a fancy hyphenated word, crosstalk-cancelled, where I spell it with (I 
believe) the proper - which is an n-dash. When this is rendered in the vicinity 
of a line wrap, the entire thing gets pushed to the next line, leaving a lot of 
ugly white space in the first line. So I inserted a hyphenation point after the 
-. This shows on the LyX screen as sort of -- which is my original n-dash and a 
shorter blue dash, probably supposed to represent a hyphen. This is all great, 
but when this version is rendered, the line break now appears after 
crosstalk--, that is, both the n-dash _and_ the hyphenation point are rendered 
which looks very wrong. What is the typographer's say on this, and is LyX doing 
the right thing. Also, is this a LyX problem or a TeX problem? My guess the 
typographer would say, let the n-dash stand alone if it occurs at a line break.

Jerry

Re: Templates on Mac OS X

2014-07-22 Thread Jerry

On Jul 16, 2014, at 10:25 AM, Stephen Buonopane  wrote:

> On the Mac installation, they get buried inside of the app package.
> 
> Find LyX.app in your applications folder
> Right click on it and select "show package contents"
> Then go to Contents -> Resources -> templates
> 
> On my installation of LyX, 
> File -> New from Template goes to  /Library/ApplicationSupport/LyX/templates 
> so that may be a more convenient place for the templates to be placed.
> 

Sorry for the late response here.

This issue has been discussed before.

Storing user files in the application bundle like this, and expecting the user 
to discover them by control-clicking or right-clicking on the app icon, IS 
WRONG. Apple DOES NOT EXPECT users to even know that this is possible. It is a 
"power user" concept.

These things should be stored in /Library/Application Support/LyX/templates or 
/Library/Application Support/LyX-2.1/templates (as appropriate) and the path in 
the application should point there.

A possible fallback is to store them in the app bundle, but make them 
accessible from menus within the app so that reverting to control-clicking on 
the app bundle is not necessary.

I thought this had been fixed.

Jerry
> 
> 
> 
> 
> On Jul 16, 2014, at 1:08 PM, Julio Rojas wrote:
> 
>> Thanks, but that is not the problem. The files for the templates are not 
>> copied to the hard drive at installation time, thus they are nowhere to be 
>> found when one tries to create a new document.
>> 
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>> 
>> 
>> On Wed, Jul 16, 2014 at 12:49 PM,  wrote:
>> "Reconfiguration" is under "Tools" menu.
>> 
>> 
>>> Dear all,
>>> 
>>> Is anybody aware that templates are not installed when installing Lyx on OS 
>>> X? Is there something I am missing? I remember that on previous versions 
>>> one should run some configuration tool after installation, but this tool is 
>>> nowhere to be found in Lyx 2.1.1.
>>> 
>>> Regards,
>>> -
>>> Julio Rojas
>>> jcredbe...@gmail.com
>> 
>> 
> 



Re: Image Format Conversion on OS X with Transmute

2014-05-29 Thread Jerry

On May 28, 2014, at 11:12 AM, James Dean Palmer  wrote:

> I recently wrote a little command line utility called transmute that converts 
> between various image formats using only the Quartz, CoreGraphics, and Cocoa 
> APIs.  Apple's sips utility can do the same sort of thing but, oddly, sips 
> doesn't support EPS or PS.
> 
> transmute also has some other neat tricks like clipboard support, input and 
> output from stdin/stdout and setting the page number for conversion (PDF 
> only). It's available here:
> 
> https://bitbucket.org/jdpalmer/transmute
> 
> Once installed, you just need to add this to your preferences file:
> 
> \converter "ps" "png" "transmute $$i $$o" ""
> \converter "eps" "png" "transmute $$i $$o" ""
> \converter "pdf" "png" "transmute $$i $$o" ""
> 
> And then there's no more dependency on ghostscript or XQuartz for EPS, PS, 
> and PDF image previews.
> 
> Best,
> James
> 
James, I haven't tried this but it looks awesomely awesome. Would you mind 
making a note on the LyX wiki about it? And maybe an indication, if not already 
present, how to install without brew, e.g., put in /some/path for those who 
don't know this.

And maybe you can help my confusion. PDF is listed as source-file only but the 
note about -n pageno sort of indicates that pageno can be applied to rendered 
PDFs. I'm probably misreading something.

Jerry



Re: How to get cropped PDF graphic on the clipboard

2014-04-04 Thread Jerry

On Apr 3, 2014, at 10:49 PM, Stephan Witt  wrote:

> Am 04.04.2014 um 07:10 schrieb Stephan Witt :
> 
>> Am 04.04.2014 um 00:13 schrieb Jerry :
>> 
>>> 
>>> On Apr 3, 2014, at 1:53 PM, Scott Kostyshak  wrote:
>>> 
>>>> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic  
>>>> wrote:
>>>> 
>>>>> One idea would be to use a commandline utility that allows copying
>>>>> image files to the clipboard, and create a new converter from
>>>>> PDF(cropped) towards this utility. But so far I couldn't find anything
>>>>> for Linux, let alone cross-platform. Otherwise, I'm wondering if we
>>>>> have an LFUN that would provide this functionality. But I'm not sure
>>>>> how exactly that could work.
>>>> 
>>>> Good idea Liviu. I recommend CopyQ if you want to implement this. It
>>>> works great on Linux, supposedly works on Windows, and support is
>>>> experimental on OS X 10.9+. The author of CopyQ is extremely
>>>> responsive to features and bug reports (he implemented a feature that
>>>> I'm pretty sure only I use, just for me). This is one of the best
>>>> clipboard managers out there (although note the focus is on features
>>>> over lightweight) but it is not well known.
>>>> 
>>>> To put an image on the clipboard, you can do e.g.
>>>> copyq write image/svg - < image.svg
>>>> 
>>>> For more info, see
>>>> https://github.com/hluk/CopyQ
>>>> 
>>>> To install, I believe it's a simple
>>>> cmake .
>>>> make
>>>> sudo make install
>>>> 
>>>> First you must have dependencies. See the INSTALL file for explicit
>>>> instructions for which packages you need for Ubuntu. Let me know if
>>>> you want help with anything.
>>>> 
>>>> Best,
>>>> 
>>>> Scott
>>> 
>>> Interesting solution, looks a bit bloaty as noted by Scott. Also, support 
>>> for OS X is a little concerning, at 10.9+. I wonder if there is a concrete 
>>> reason for this limitation or perhaps it's due to the developer's lack of 
>>> access to other versions. Also, the web site states, "To compile and run 
>>> the application you'll need the latest stable version of Qt library (there 
>>> is also experimental support for Qt 5). To compile on OS X, you will need 
>>> at least Qt 5.2."
>> 
>> Where did you find this? It's not totally correct. It should read: "To 
>> compile with Qt 5 on Mac Qt5.2 is the first feature complete version."
>> 
>>> 
>>> Dumb question: if Qt 5.2 is required to compile on OS X, is it required to 
>>> run?
>> 
>> The official package on Mac OS X contains the private Qt frameworks used to 
>> build it.
>> So, you don't have to install any Qt package to run LyX. The version doesn't 
>> matter.
> 
> Ah, I got it. You're talking about CopyQ, not LyX. Sorry for the confusion.
> 
> Stephan

Oops--shot off a reply to your other note before reading this one.
Jerry



Re: How to get cropped PDF graphic on the clipboard

2014-04-04 Thread Jerry

On Apr 3, 2014, at 10:10 PM, Stephan Witt  wrote:

> Am 04.04.2014 um 00:13 schrieb Jerry :
> 
>> 
>> On Apr 3, 2014, at 1:53 PM, Scott Kostyshak  wrote:
>> 
>>> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic  
>>> wrote:
>>> 
>>>> One idea would be to use a commandline utility that allows copying
>>>> image files to the clipboard, and create a new converter from
>>>> PDF(cropped) towards this utility. But so far I couldn't find anything
>>>> for Linux, let alone cross-platform. Otherwise, I'm wondering if we
>>>> have an LFUN that would provide this functionality. But I'm not sure
>>>> how exactly that could work.
>>> 
>>> Good idea Liviu. I recommend CopyQ if you want to implement this. It
>>> works great on Linux, supposedly works on Windows, and support is
>>> experimental on OS X 10.9+. The author of CopyQ is extremely
>>> responsive to features and bug reports (he implemented a feature that
>>> I'm pretty sure only I use, just for me). This is one of the best
>>> clipboard managers out there (although note the focus is on features
>>> over lightweight) but it is not well known.
>>> 
>>> To put an image on the clipboard, you can do e.g.
>>> copyq write image/svg - < image.svg
>>> 
>>> For more info, see
>>> https://github.com/hluk/CopyQ
>>> 
>>> To install, I believe it's a simple
>>> cmake .
>>> make
>>> sudo make install
>>> 
>>> First you must have dependencies. See the INSTALL file for explicit
>>> instructions for which packages you need for Ubuntu. Let me know if
>>> you want help with anything.
>>> 
>>> Best,
>>> 
>>> Scott
>> 
>> Interesting solution, looks a bit bloaty as noted by Scott. Also, support 
>> for OS X is a little concerning, at 10.9+. I wonder if there is a concrete 
>> reason for this limitation or perhaps it's due to the developer's lack of 
>> access to other versions. Also, the web site states, "To compile and run the 
>> application you'll need the latest stable version of Qt library (there is 
>> also experimental support for Qt 5). To compile on OS X, you will need at 
>> least Qt 5.2."
> 
> Where did you find this? It's not totally correct. It should read: "To 
> compile with Qt 5 on Mac Qt5.2 is the first feature complete version."

It's on the guy's web site https://github.com/hluk/CopyQ, under Dependencies.
Jerry

> 
>> 
>> Dumb question: if Qt 5.2 is required to compile on OS X, is it required to 
>> run?
> 
> The official package on Mac OS X contains the private Qt frameworks used to 
> build it.
> So, you don't have to install any Qt package to run LyX. The version doesn't 
> matter.
> 
> Stephan



Linkback on OS X doesn't work for me

2014-04-04 Thread Jerry
I have never been able to get Linkback to work with LyX. (It's an OS X thing.) 
The usual method is once an object is pasted into the target application (LyX 
in this case), double-clicking opens the object in its originating program for 
editing; Saving there after editing then automatically updates the object back 
in the target program.

Of course, double-clicking the object in LyX opens up the LyX: Graphic dialog 
box instead. So one would think that control-clicking to get the contextual 
menu and then selecting Edit Externally... would work, but nothing happens, not 
even a report of an unavailable editor.


What works:

The Edit Special -> Paste as Linkback PDF menu is available when there is a 
Linkback object on the clipboard.

Doing such a paste causes an image to appear in the LyX window.

The image is associated with a LyX-related file with a .linkback extension.

Examining the contents of this .linkback file shows that it is a PDF with some 
extra information after the %%EOF line that seems to relate to the originating 
program.

There is an LyX LFUN, paste, which has a param, linkback.


What doesn't work:

There is no way to re-open the originating program to edit the object.

There is no information in the documentation or the wiki other than "Linkback 
has been implemented."

Jerry

Re: How to get cropped PDF graphic on the clipboard

2014-04-03 Thread Jerry

On Apr 3, 2014, at 1:17 PM, Liviu Andronic  wrote:

> On Tue, Apr 1, 2014 at 8:27 AM, Jerry  wrote:
>> Nice to see the ability to export a LyX file as a cropped PDF in version 
>> 2.1.0.x. However, the document is actually exported as a file, whereas it 
>> would more useful if it were instead or also placed on the clipboard for 
>> pasting into another document--that would fully allow LyX to be used as a 
>> standalone equation editor for other applications.
>> 
> Good idea. I'm not sure how easy this would be, but do consider
> opening a feature request on the bug tracker.

Done.
Jerry



Re: How to get cropped PDF graphic on the clipboard

2014-04-03 Thread Jerry

On Apr 3, 2014, at 1:53 PM, Scott Kostyshak  wrote:

> On Thu, Apr 3, 2014 at 4:17 PM, Liviu Andronic  wrote:
> 
>> One idea would be to use a commandline utility that allows copying
>> image files to the clipboard, and create a new converter from
>> PDF(cropped) towards this utility. But so far I couldn't find anything
>> for Linux, let alone cross-platform. Otherwise, I'm wondering if we
>> have an LFUN that would provide this functionality. But I'm not sure
>> how exactly that could work.
> 
> Good idea Liviu. I recommend CopyQ if you want to implement this. It
> works great on Linux, supposedly works on Windows, and support is
> experimental on OS X 10.9+. The author of CopyQ is extremely
> responsive to features and bug reports (he implemented a feature that
> I'm pretty sure only I use, just for me). This is one of the best
> clipboard managers out there (although note the focus is on features
> over lightweight) but it is not well known.
> 
> To put an image on the clipboard, you can do e.g.
> copyq write image/svg - < image.svg
> 
> For more info, see
> https://github.com/hluk/CopyQ
> 
> To install, I believe it's a simple
> cmake .
> make
> sudo make install
> 
> First you must have dependencies. See the INSTALL file for explicit
> instructions for which packages you need for Ubuntu. Let me know if
> you want help with anything.
> 
> Best,
> 
> Scott

Interesting solution, looks a bit bloaty as noted by Scott. Also, support for 
OS X is a little concerning, at 10.9+. I wonder if there is a concrete reason 
for this limitation or perhaps it's due to the developer's lack of access to 
other versions. Also, the web site states, "To compile and run the application 
you'll need the latest stable version of Qt library (there is also experimental 
support for Qt 5). To compile on OS X, you will need at least Qt 5.2."

Dumb question: if Qt 5.2 is required to compile on OS X, is it required to run?

Jerry

How to get cropped PDF graphic on the clipboard

2014-03-31 Thread Jerry
Nice to see the ability to export a LyX file as a cropped PDF in version 
2.1.0.x. However, the document is actually exported as a file, whereas it would 
more useful if it were instead or also placed on the clipboard for pasting into 
another document--that would fully allow LyX to be used as a standalone 
equation editor for other applications.

I use OS X and I notice that LyX is now AppleScriptable. Maybe there's a 
solution using AppleScript.

Jerry

Re: Facilitate testing on OSX - WAS: menu bar lost in OS X

2014-02-04 Thread Jerry

On Feb 4, 2014, at 1:27 AM, Rainer M Krug  wrote:

> And then there came homebrew, which works very nicely, and does, in
> contrast to Macports, not require root privileges.

I too once tried to build LyX from source and gave up.

MacPorts already has LyX, currently at 2.0.6
http://www.macports.org/ports.php?by=name&substr=lyx

I have not used MacPorts for LyX. I'm currently using 2.1beta2 which is not 
available there. I wonder if the maintainer could be cajoled into keeping a 
beta version as well.

Jerry

Re: Request for Feature on Mac

2014-01-31 Thread Jerry

On Jan 31, 2014, at 3:00 AM, Dr Eberhard Lisse  wrote:

> Where would I request the following feature:
> 
> Many Mac programs offer you the choice to Save, Don't Save/Discard,
> Cancel in the way that is shown in the enclosed alpha.jpg, ie if you
> use the Return/Enter key it'll save, if you use the Space key it'll
> Not Save (Quit) and you have to use the mouse to click Cancel.
> 
> In Lyx I must use the mouse if I want to discard, because it doesn't
> recognize the Space and it defaults to Save.
> 
> Since I work with the keyboard mostly it is a nuisance, hence this
> request.
> 
> el
> 

If someone is going to change this, please also change "Discard" to "Don't 
Save" which is standard on OS X.

Jerry



Re: LyX very slow on Mac

2014-01-08 Thread Jerry
On Jan 8, 2014, at 12:24 PM, Scott Kostyshak  wrote:

> Thanks for letting us know, Anders. Glad 2.1 is working well for you. Scott
> 
> On Wed, Jan 8, 2014 at 2:03 PM, Anders Host-Madsen
>  wrote:
>> Yes, it seems LyX 2.1 solves the problem. It is definitely
>> faster than LyX 2.0.6. Very good. LyX had become so
>> slow that I almost couldn't use it.
>> 

Whoa, hold on here. I can't let this thread end here. The long-standing 
"classic" scrolling problem on OS X remains with 2.1.0beta2.

Anders seems to have had some sort of other problem where LyX 2.0.6 was getting 
progressively slower over time and was specific to his machine.

The scrolling problem is NOT fixed in 2.1.0beta2 and remains as it has in other 
versions. As has been discussed in detail in the past on this list in various 
threads, setting
  \force_paint_single_char "0"
in the LyX preferences more than doubles the scrolling speed over setting it to 
1. With it set to 0, scrolling behavior is marginally acceptable, where by 
"scrolling" I mean clicking in the elevator bar and advancing the display one 
page at at time as fast as possible, or by using the two-finger swipe to either 
scroll a little bit at a time or with the "ballistic" swipe to 
two-finger-scroll over a larger area. (OS X no longer uses arrows at the ends 
of its elevator bar). I say "marginally" because at 0, scrolling does not make 
me want to kill myself but still lacks the "massless" feel that a native Mac 
program displays while scrolling. And of course, with the setting at 0, text 
spacing is incorrect and for example it is not possible to discern if there is 
a space between some words without placing the cursor there and using the arrow 
keys to see if it moves when an arrow key is pressed.

Here are some scrolling times in seconds for the LyX User Guide versus LyX 
version and the value of force_paint_single_char in the corresponding 
preference file. I am using OS X 10.8.5. I did not check if the User Guides are 
significantly longer for 2.1 versus 2.0.6. However, the length of the document 
does not affect scrolling speed in general. It is important to note that 
scrolling speeds up briefly when little text is displayed such as for graphics 
or sparsely populated tables. And most important, these times do not adequately 
convey the much different user experiences between 0 and 1 settings--it is like 
the difference between running on a track and running in deep mud, plus latency.

LyX 2.1.0beta2 \force_paint_single_char "0"  10
LyX 2.1.0beta2 \force_paint_single_char "1"  23

LyX 2.0.6  \force_paint_single_char "0"  11
LyX 2.0.6  \force_paint_single_char "1"  22

Within measurement error, these times are essentially identical.

My understanding from a not-too-distant post on the list is that there is a 
patch but is incomplete and has not been applied to 2.1.0beta2.

Jerry

Re: Tutorial sample files

2013-12-29 Thread Jerry

On Dec 29, 2013, at 3:13 AM, Richard Talley  wrote:

> That's true for most OS X users, but not all.
> 
> If you want to use multi-platform programs, you have to put up with a certain 
> amount of non-Mac behavior. (As do Windows and Linux users, when using 
> programs primarily written to run on a different system.)
> 
> I'm just glad that LyX is available on OS X, even though it doesn't quite fit 
> into the system the way only for OS X programs do.
> 
> -- Rich

The package builder can and should put auxiliary files next to the app bundle, 
not inside it. This does not complicate user-level installation since all 
files/folders that exist on the .dmg can be dragged and dropped as easily as a 
single file. Of course, this would in some cases require minor code changes but 
if the code is looking inside an app bundle (which does not exist on other 
platforms, or if so, not in the OS X form), then it has already been 
specialized for OS X and might as well be specialized differently.

The vast majority of OS X users do not know that there is anything in the app 
bundle. LyX is intended for use by writers, not by hackers.

Yes, I'm glad LyX is available to OS X too—really glad. I hope these comments 
(and others by me) are taken in the spirit in which they are intended, that is, 
helpful suggestions. And most of my suggestions are and will be on the user 
interface which might or might not be OS X-specific.

Jerry
> 
> 
> On Fri, Dec 27, 2013 at 3:33 PM, Jerry  wrote:
> 
> 
> The OS X user should __never__ be required to look inside an app bundle from 
> the Finder (by right-clicking or Control-clicking). This is anathema to the 
> OS X user.
> 
> Jerry
> 



Re: Tutorial sample files

2013-12-27 Thread Jerry

On Dec 26, 2013, at 4:29 PM, justin  wrote:

> 
>> On the Mac installation, they get buried inside of the app package.
>> 
>> Find LyX.app in your applications folder
>> Right click on it and select "show package contents"The go to Contents ->
> Resources -> examples
>> It might be a good idea to copy the folder to somewhere more convenient
> outside of the app if you are going to use them often.

[Sorry, I don't seem to have the entire thread for this.]

The OS X user should __never__ be required to look inside an app bundle from 
the Finder (by right-clicking or Control-clicking). This is anathema to the OS 
X user.

Jerry

>> 
>> hope that helps
>> Steve
>> 
>> 
>> 
> 
> I am using Mac OS 10.9 and this trick does not work. Doing "show package
> contents" shows an empty folder! Help would be much appreciated.
> 
> Thanks
> 
> 
> 



Re: IEEE conferences class missing in LyX 2.1?

2013-12-20 Thread Jerry

On Dec 20, 2013, at 12:18 AM, Stephan Witt  wrote:

> Am 20.12.2013 um 05:02 schrieb Jerry :
> 
>> 
>> On Dec 19, 2013, at 12:53 AM, Stephan Witt  wrote:
>> 
>>> Am 19.12.2013 um 01:25 schrieb Jerry :
>>> 
>>>> 
>>>>> 
>>>>> I'm using Ubuntu and don't know anything about the modern Macs so I don't 
>>>>> understand the problem with locating the templates.  I just went to File  
>>>>> > Open from templates > and found the appropriate template.
>>>> 
>>>> On OS X, the equivalent is apparently File -> New from Template... . When 
>>>> this is done, one is taken by file browser to 
>>>> /Users/someuser/Library/Application Support/LyX-2.1/templates/ where the 
>>>> only file is defaults.lyx.
>>>> 
>>>> On OS X, an application package (aka bundle) is a special directory with a 
>>>> specified structure of subdirectories. See
>>>> https://developer.apple.com/library/mac/documentation/porting/conceptual/portingunix/distributing/distibuting.html
>>>> For example, from the directory's root, the executable is always in the 
>>>> same (relative) location. To the user, the special directory looks like an 
>>>> application (icon) and when s/he double clicks on it, instead of opening 
>>>> the folder to reveal its contents, the OS instead launches the application 
>>>> inside it. This approach allows for easy distribution of most software; 
>>>> LyX is installed by dragging a single icon from the distribution image 
>>>> anywhere onto a disk.
>>>> 
>>>> Any other code or resources may be stored in this directory structure, and 
>>>> LyX stores examples and templates in this structure. So doing File -> New 
>>>> From Template ... should open the file browser to the appropriate 
>>>> directory in this application package, not to the Application Support 
>>>> folder for LyX.
>>> 
>>> This is an old and not so easy to solve problem. There are tickets for it 
>>> in the trac system, e.g. here: 
>>> http://www.lyx.org/trac/ticket/7896
>>> 
>>> We have two places to look for templates: user templates and system 
>>> templates.
>>> IMHO, the Linux "Open file dialog" has an additional button to navigate to 
>>> the 
>>> system templates location. This button is not provided with the native OSX
>>> open file dialog and the home-brewed LyX open file dialog is not usable on 
>>> OSX.
>>> 
>>> The location of the system templates isn't well known either. You may have 
>>> more 
>>> than one LyX on your system. It has to be passed to the open file dialog at 
>>> runtime.
>>> These LyX packages may have different versions and therefor different 
>>> templates.
>>> 
>>> The best solution would be a dynamically created entry in the left side bar 
>>> of the
>>> native open file dialog. But I didn't find any API for it documented nor 
>>> any working
>>> example. It looks like the Finder only is able to create such entries.
>>> 
>>> The next idea is to add an button to the standard open file dialog, but I 
>>> don't have
>>> the skills to do this until now.
>>> 
>>> Stephan
>> 
>> That shouldn't be necessary.
>> 
>> First, the more-or-less random location of the LyX application bundle icon 
>> (the special directory that I double-click on to launch LyX) is
>> /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 2/
>> 
>> Now, in Preferences -> Paths, the following appears. I did not edit these.
>> Document Templates:
>> /Users/jb/Library/Application Support/LyX-2.1/templates
>> Example Files:
>> /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 
>> 2/LyX.app/Contents/Resources/examples/
>> 
>> I did not edit either of these. Yet, the Example Files path correctly points 
>> inside the LyX bundle whose root is LyX.app. And the Document Templates path 
>> incorrectly points to another location where the only template file is 
>> default.lyx (which was apparently installed there by the LyX program itself).
>> 
>> Now, I'll quit LyX, move the LyX icon into a dummy folder that I'll call 
>> Dummy_Folder which is just one level deeper from where it was, so that the 
>> path to the LyX icon is now 
>> /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 2/Dummy_Folder/
>> and restart LyX, th

Re: IEEE conferences class missing in LyX 2.1?

2013-12-19 Thread Jerry

On Dec 19, 2013, at 12:53 AM, Stephan Witt  wrote:

> Am 19.12.2013 um 01:25 schrieb Jerry :
> 
>> 
>>> 
>>> I'm using Ubuntu and don't know anything about the modern Macs so I don't 
>>> understand the problem with locating the templates.  I just went to File  > 
>>> Open from templates > and found the appropriate template.
>> 
>> On OS X, the equivalent is apparently File -> New from Template... . When 
>> this is done, one is taken by file browser to 
>> /Users/someuser/Library/Application Support/LyX-2.1/templates/ where the 
>> only file is defaults.lyx.
>> 
>> On OS X, an application package (aka bundle) is a special directory with a 
>> specified structure of subdirectories. See
>> https://developer.apple.com/library/mac/documentation/porting/conceptual/portingunix/distributing/distibuting.html
>> For example, from the directory's root, the executable is always in the same 
>> (relative) location. To the user, the special directory looks like an 
>> application (icon) and when s/he double clicks on it, instead of opening the 
>> folder to reveal its contents, the OS instead launches the application 
>> inside it. This approach allows for easy distribution of most software; LyX 
>> is installed by dragging a single icon from the distribution image anywhere 
>> onto a disk.
>> 
>> Any other code or resources may be stored in this directory structure, and 
>> LyX stores examples and templates in this structure. So doing File -> New 
>> From Template ... should open the file browser to the appropriate directory 
>> in this application package, not to the Application Support folder for LyX.
> 
> This is an old and not so easy to solve problem. There are tickets for it in 
> the trac system, e.g. here: 
> http://www.lyx.org/trac/ticket/7896
> 
> We have two places to look for templates: user templates and system templates.
> IMHO, the Linux "Open file dialog" has an additional button to navigate to 
> the 
> system templates location. This button is not provided with the native OSX
> open file dialog and the home-brewed LyX open file dialog is not usable on 
> OSX.
> 
> The location of the system templates isn't well known either. You may have 
> more 
> than one LyX on your system. It has to be passed to the open file dialog at 
> runtime.
> These LyX packages may have different versions and therefor different 
> templates.
> 
> The best solution would be a dynamically created entry in the left side bar 
> of the
> native open file dialog. But I didn't find any API for it documented nor any 
> working
> example. It looks like the Finder only is able to create such entries.
> 
> The next idea is to add an button to the standard open file dialog, but I 
> don't have
> the skills to do this until now.
> 
> Stephan

That shouldn't be necessary.

First, the more-or-less random location of the LyX application bundle icon (the 
special directory that I double-click on to launch LyX) is
  /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 2/

Now, in Preferences -> Paths, the following appears. I did not edit these.
Document Templates:
  /Users/jb/Library/Application Support/LyX-2.1/templates
Example Files:
  /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 
2/LyX.app/Contents/Resources/examples/

I did not edit either of these. Yet, the Example Files path correctly points 
inside the LyX bundle whose root is LyX.app. And the Document Templates path 
incorrectly points to another location where the only template file is 
default.lyx (which was apparently installed there by the LyX program itself).

Now, I'll quit LyX, move the LyX icon into a dummy folder that I'll call 
Dummy_Folder which is just one level deeper from where it was, so that the path 
to the LyX icon is now 
  /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 2/Dummy_Folder/
and restart LyX, then look again at the paths.

Document Templates:
  /Users/jb/Library/Application Support/LyX-2.1/templates
Example Files:
  /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 
2/Dummy_Folder/LyX.app/Contents/Resources/examples/

So somehow the program is discovering where it is on my disk and automatically 
inserting the correct path for the examples, but the templates path is 
hardwired (to the wrong place), and not getting updated.

So all that is necessary to fix this problem is to find the code that updates 
the examples path and apply it to the templates path.

Or alternately, have the templates installed in (assuming a user named jb)
  /Users/jb/Library/Application Support/LyX-2.1/templates
and, for consistency, the examples installed in
  /Users/jb/Library/Application Support/LyX-2.1/examples
and hardwire both paths to each of these locations, respectively.

I don't care which it is but both should be easy to do.

The current work-around is to manually hardwire the Document Templates path to
  /Applications/Words/LyXOuterFolder/LyX 2.1.0 beta 
2/LyX.app/Contents/Resources/templates/
and then remember to change it if the application moves.

Jerry

Re: IEEE conferences class missing in LyX 2.1?

2013-12-18 Thread Jerry

On Dec 18, 2013, at 8:36 AM, John Kane  wrote:

> I kinda see the problem but it looks to me like IEEEtran-Conference.lyx is 
> simply a customized layout for the IEEtrans class so essentially this means 
> that you can create a conference layout from that document class. It is 
> pretty basic with nothing more than one entry in the LaTeX preamble about 
> subfigure layouts.

I don't fully understand this so I can't comment usefully--the extent of my 
knowledge right now is that "class" is  LaTeX thing and "layout" is LyX thing 
that defines how LyX draws the document on-screen.

The IEEE apparently has slightly different requirements for journals 
(frequently called transactions) and conferences. I've looked into 
IEEEtrans.cls a bit and it seems that there is a "conference" option or mode, 
possibly related to the term \ifCLASSOPTIONconference\. I don't know whether 
this requires a separate layout for LyX or whether it requires a separate menu 
item in the Document Class pop-up. (However, there are Document Class separate 
Document Class menu items for the other IEEE variants, Computer Society and 
Magnetics, and these too appear as options within the IEEEtrans.cls.) I suspect 
that a person with a little more LaTeX skills could figure this out pretty 
quickly from the following links.

* For Transactions and Journals
http://www.ieee.org/publications_standards/publications/authors/author_templates.html

* For Conferences
http://www.ieee.org/conferences_events/conferences/publishing/templates.html

* Quick details on IEEEtran (linked from the above)
http://www.ieee.org/documents/LaTeX_letter5March2007.pdf

* More details linked from the above PDF:
http://www.michaelshell.org/tex/ieeetran/

* CTAN link (current version is 1.8)
http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/

* And (finally), the official How-To manual at CTAN
http://mirrors.rit.edu/CTAN/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf
Search this PDF for "Conference Mode Details:"

> 
> I'm using Ubuntu and don't know anything about the modern Macs so I don't 
> understand the problem with locating the templates.  I just went to File  > 
> Open from templates > and found the appropriate template.

On OS X, the equivalent is apparently File -> New from Template... . When this 
is done, one is taken by file browser to /Users/someuser/Library/Application 
Support/LyX-2.1/templates/ where the only file is defaults.lyx.

On OS X, an application package (aka bundle) is a special directory with a 
specified structure of subdirectories. See
https://developer.apple.com/library/mac/documentation/porting/conceptual/portingunix/distributing/distibuting.html
For example, from the directory's root, the executable is always in the same 
(relative) location. To the user, the special directory looks like an 
application (icon) and when s/he double clicks on it, instead of opening the 
folder to reveal its contents, the OS instead launches the application inside 
it. This approach allows for easy distribution of most software; LyX is 
installed by dragging a single icon from the distribution image anywhere onto a 
disk.

Any other code or resources may be stored in this directory structure, and LyX 
stores examples and templates in this structure. So doing File -> New From 
Template ... should open the file browser to the appropriate directory in this 
application package, not to the Application Support folder for LyX.

> 
> Is it possible that you misread the notice and it meant that there was now a 
> Template for IEEEtran-Conference and not that there was a new document class? 
>  

Yes it is possible that I misread--that's what I do. 8^) Here is the whole 
quote from the LyX wiki:
"LyX supports now not only papers for IEEE journals but also contributions to 
IEEE conferences, IEEE Computer Science publications and the journal IEEE 
Transactions on Magnetics. See the corresponding LyX template files for a brief 
description. Contributed by Uwe Stöhr." So yes, it does say, see the template 
file. But instead I looked at the Document Class popup and saw three other IEEE 
entires (two new relative to 2.0.6) but no IEEE conference item.

> 
> 
> 
> On Wednesday, December 18, 2013 5:41:37 AM, Jerry  
> wrote:
> 
> On Dec 17, 2013, at 8:24 AM, John Kane  wrote:
> 
> > I see something called IEETran-Conference.lyx in the templates folder with 
> > LyX2.1 beta under Ubuntu 13.10. 
> 
> OK, here's what I'm seeing. When I look in the Documents -> Settings -> 
> Document Class I expected to see something like IEEE Conferences. What I did 
> see was IEEE Transactions, IEEE Transactions Computer Society, and IEEE 
> Transactions on Magnetics, but nothing like IEEE Conferences. 
> 
> However, when I look where the templates are st

Re: IEEE conferences class missing in LyX 2.1?

2013-12-18 Thread Jerry

On Dec 17, 2013, at 8:24 AM, John Kane  wrote:

> I see something called IEETran-Conference.lyx in the templates folder with 
> LyX2.1 beta under Ubuntu 13.10. 

OK, here's what I'm seeing. When I look in the Documents -> Settings -> 
Document Class I expected to see something like IEEE Conferences. What I did 
see was IEEE Transactions, IEEE Transactions Computer Society, and IEEE 
Transactions on Magnetics, but nothing like IEEE Conferences. 

However, when I look where the templates are stored, I see four IEEE .lyx 
files: IEEEtran-CompSoc.lyx, IEEEtran-Conference.lyx, IEEEtran-Journal.lyx, 
IEEEtran-TransMag.lyx, and indeed the IEEEtran-Conference.lyx opens and 
displays what I suppose is expected.

So the _template_ is present but the _document_class_ item in the Document 
Class pop-up is missing.

Finally, in Preferences -> Paths, the "Document templates:" path is
"/Users/me/Library/Application Support/LyX-2.1/templates" 
but the templates are stored in the LyX.app _packge_,
/path/to/LyX/LyX.app/Contents/Resources/templates/
and so one must (1) discover the discrepancy, and (2) navigate to the proper 
directory.

I'll add that the path to the examples does lead to inside the application 
package, where they are stored. However, I don't see any way to access the 
examples from the LyX program, so I'm not sure how the user would access them 
because the Mac user is not expected to dive into the application package 
directly--if something in the app package is accessible by menu, such as is the 
templates (File -> New From Template), then that seems OK. (Many of not most 
Mac users don't even know that they can look inside the app package.) One 
possible menu choice would be under Help, even if all it did was to open a file 
browser in the proper place.

I believe that I've seen this subject (where to store stuff like templates and 
examples) discussed on either this list or the dev list. I think either is OK 
but the path needs to be made consistent with the actual location, and the 
stuff made accessible by menu.

Jerry

> 
> 
> 
> On Tuesday, December 17, 2013 4:51:07 AM, Jerry  wrote:
> 
> On Dec 12, 2013, at 4:59 AM, Vincent van Ravesteijn  wrote:
> 
>> 
>> 
>> On Sun, Dec 8, 2013 at 1:58 AM, Jerry  wrote:
>> At the "What's new in LyX 2.1" at http://wiki.lyx.org/LyX/NewInLyX21 says 
>> that "LyX supports now not only papers for IEEE journals but also 
>> contributions to IEEE conferences" I'm using LyX 2.1.0 beta 2 and I 
>> don't see the IEEE conferences class listed.
>> 
>> Jerry
>>  
>> On which platform are you ?
>>  
>> Vincent
>>  
>> 
> Sorry for the slow reply.
> 
> I'm on OS X 10.8.5, Mountain Lion. Sorry, I should have mentioned that but 
> this problem didn't seem OS-specific.
> 
> Jerry
> 
> 



Re: Search - highlight of all occurrences of search term on display?

2013-12-17 Thread Jerry
Sorry for the slow reply.
Jerry

On Dec 12, 2013, at 1:51 AM, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> 
> On 12/11/13, 24:30 , Jerry wrote:
>> 
>> On Dec 10, 2013, at 4:04 AM, Rainer M Krug 
>> wrote:
>> 
>>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
>>> 
>>> Hi
>>> 
>>> Sometimes it is useful to highlight all occurrences of the
>>> search term, e.g. when navigating to locations in the text where
>>> a certain term occurs. Is this possible in LyX? I couldn't find
>>> anything in the search dialog.
>>> 
>>> I am only referring to highlighting on the screen, not the 
>>> compiled document.
>>> 
>>> Is there something I have overlooked?
>>> 
>>> Cheers,
>>> 
>>> Rainer
>>> 
>> This is indeed a useful function. However, there is another
>> function that achieves similar results and in some ways is better.
>> 
>> It works like this: Once the Find function finds its first result, 
>> pressing a specified key combination takes you to the next result
>> no matter if the Find dialog window is open or not--there is no
>> need to constantly mess with the Find dialog or remove your fingers
>> from the keyboard to re-open it or to click a button.
> 
> Agreed - this would be very useful and time saving.
> 
>> 
>> To find the previous occurrence of the find-string, press another
>> key combination.
> 
> Also agreed - forward and backward search by keyboard would be very
> useful.
> 
>> One way that this is superior to the highlight-all approach is that
>> the screen is scrolled for you. In the highlight-all approach,
>> scrolling to the next or previous find result can be difficult
>> especially when the results are far apart.
> 
> Both are useful - It is advantageous to see all occurrences
> highlighted to assess the context of the search term, but moving to
> the next one by keyboard shortcut would be a very useful addition to
> this - they would supplement each other. See e.g. the search in
> Firefox: one Button which says "Highlight All" and one to search
> backward and forward - just also via keyboard shortcuts.

Agreed--I forgot to mention that this is the way many recent OS X programs 
work. For example, here is a screen shot from Apple's TextEdit. I'm not crazy 
about darkening the background when the multiple selection is active but I 
suppose that that is the programmer's option. (I hope this list allows 
attachments--there should be a screen shot right here.) Hitting Command-G moves 
the yellow-highlighted selection to the next "of."



PastedGraphic-1.pdf
Description: Adobe PDF document


> 
>> 
>> When this functionality is combined with the ability to pass
>> selected text to the Find function with still another key
>> combination (without the need to copy the selected text, open the
>> Find dialog, paste the selected text, then click some more to
>> search forward or backward), the searching process becomes
>> unbelievably streamlined.
> 
> Sounds great - effectively a search in the background. If pone wants
> to see a dialog, just press a different key combination.

Right. And on OS X, the "Find buffer," if that is a good term, is global, 
across all applications. So you can select text in one program, hit Command-E, 
switch to another program and hit (Shift-)Command-G to find the next (previous) 
occurrence of the text. BTW these are the long-standardized keyboard shortcuts 
on OS X and are essentially universal--Microsoft and I suppose a few others 
with long-term cross-platform programs still insist on doing it their own way. 
But note that OS X users can easily modify the keyboard shortcuts of nearly all 
programs using the Keyboard System Preference. Not sure if this works on e.g. 
Word but it certainly works on Qt programs including LyX.
> 
>> 
>> This functionality has been a standardized feature in OS X
>> programs from the beginning (going on 12 years) and might have been
>> present in pre-OS X OS's from Apple (I can't recall for sure).
> 
> Interesting - I am using Mac, but was never aware of this - what are
> the shortcuts there?

See the above remark. They are described on the "Find" menu on every Mac 
program. 8^)

> 
>> 
>> Some will recall that I have discussed this before, so I hate to
>> be redundant, but I believe this is a very useful approach (and
>> not exclusive to the highlight-all approach) and is sorely missed
>> by OS X users. And it can be implemented in such a way that the
>> more laborious approach is avai

Re: IEEE conferences class missing in LyX 2.1?

2013-12-17 Thread Jerry

On Dec 12, 2013, at 4:59 AM, Vincent van Ravesteijn  wrote:

> 
> 
> On Sun, Dec 8, 2013 at 1:58 AM, Jerry  wrote:
> At the "What's new in LyX 2.1" at http://wiki.lyx.org/LyX/NewInLyX21 says 
> that "LyX supports now not only papers for IEEE journals but also 
> contributions to IEEE conferences" I'm using LyX 2.1.0 beta 2 and I don't 
> see the IEEE conferences class listed.
> 
> Jerry
>  
> On which platform are you ?
>  
> Vincent
>  
> 
Sorry for the slow reply.

I'm on OS X 10.8.5, Mountain Lion. Sorry, I should have mentioned that but this 
problem didn't seem OS-specific.

Jerry

Re: Search - highlight of all occurrences of search term on display?

2013-12-10 Thread Jerry

On Dec 10, 2013, at 4:04 AM, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi
> 
> Sometimes it is useful to highlight all occurrences of the search term,
> e.g. when navigating to locations in the text where a certain term
> occurs. Is this possible in LyX? I couldn't find anything in the
> search dialog.
> 
> I am only referring to highlighting on the screen, not the compiled
> document.
> 
> Is there something I have overlooked?
> 
> Cheers,
> 
> Rainer
> 
This is indeed a useful function. However, there is another function that 
achieves similar results and in some ways is better.

It works like this: Once the Find function finds its first result, pressing a 
specified key combination takes you to the next result no matter if the Find 
dialog window is open or not--there is no need to constantly mess with the Find 
dialog or remove your fingers from the keyboard to re-open it or to click a 
button.

To find the previous occurrence of the find-string, press another key 
combination. One way that this is superior to the highlight-all approach is 
that the screen is scrolled for you. In the highlight-all approach, scrolling 
to the next or previous find result can be difficult especially when the 
results are far apart.

When this functionality is combined with the ability to pass selected text to 
the Find function with still another key combination (without the need to copy 
the selected text, open the Find dialog, paste the selected text, then click 
some more to search forward or backward), the searching process becomes 
unbelievably streamlined.

This functionality has been a standardized feature in OS X programs from the 
beginning (going on 12 years) and might have been present in pre-OS X OS's from 
Apple (I can't recall for sure).

Some will recall that I have discussed this before, so I hate to be redundant, 
but I believe this is a very useful approach (and not exclusive to the 
highlight-all approach) and is sorely missed by OS X users. And it can be 
implemented in such a way that the more laborious approach is available in its 
current form--that's the way OS X does it, with sort of the "long" way and the 
"power user" way both available.

Jerry

Re: How to turn off justified text display in LyX 2.1 beta

2013-12-09 Thread Jerry

On Dec 9, 2013, at 6:50 AM, Liviu Andronic  wrote:

> On Mon, Dec 9, 2013 at 11:16 AM, Jerry  wrote:
>> 
>> On Dec 8, 2013, at 3:15 AM, Jürgen Spitzmüller  wrote:
>> 
>>> Liviu Andronic wrote:
>>>> @Juergen: I think this report confirms my intuitions that we discussed
>>>> previously, namely that this functionality is more appropriate as a
>>>> global pref rather than a per-document setting. Otherwise the current
>>>> arrangement can induce user confusion. Should I open a ticket for
>>>> this?
>> 
>> I believe that a per-document setting is more appropriate since that is what 
>> people are accustomed to in other programs.
>> 
> I would only note that in other programs (Word, LibO, etc.) changing
> the justification on-screen modifies the output of the printed
> document, which is not the case in LyX.
> 
> Liviu
> 
Well, hmmm That's a good point.
Jerry

> 
>> However, putting the switch in the preference panel along with only things 
>> that affect printed output is perhaps confusing. Right now I don't have 
>> another idea, however.
>> 
>> Jerry
>>> 
>>> I rather think this is because the feature is not properly described. I
>>> changed that.
>>> 
>>> Regards,
>>> Jürgen
>> 
> 
> 
> 
> -- 
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



Re: How to turn off justified text display in LyX 2.1 beta

2013-12-09 Thread Jerry

On Dec 8, 2013, at 3:15 AM, Jürgen Spitzmüller  wrote:

> Liviu Andronic wrote:
>> @Juergen: I think this report confirms my intuitions that we discussed
>> previously, namely that this functionality is more appropriate as a
>> global pref rather than a per-document setting. Otherwise the current
>> arrangement can induce user confusion. Should I open a ticket for
>> this?

I believe that a per-document setting is more appropriate since that is what 
people are accustomed to in other programs. However, putting the switch in the 
preference panel along with only things that affect printed output is perhaps 
confusing. Right now I don't have another idea, however.

Jerry
> 
> I rather think this is because the feature is not properly described. I 
> changed that.
> 
> Regards,
> Jürgen



Re: How to turn off justified text display in LyX 2.1 beta

2013-12-08 Thread Jerry

On Dec 8, 2013, at 1:36 AM, Liviu Andronic  wrote:

> On Sun, Dec 8, 2013 at 1:53 AM, Jerry  wrote:
>> I'm using the LyX 2.1.0 beta 2. The "What's new in LyX 2.1" page at
>> http://wiki.lyx.org/LyX/NewInLyX21
>> says "Users can now turn off the "justified text" and it is indicated as 
>> being documented but I can't find anything about in the documentation nor 
>> can I find anything in the Preferences. I'm using OS X.
>> 
> This is a per-document pref in Doc > Settings > Text Layout > Use
> justification, and not a Tools > Prefs.

Thanks for the tip and for the new feature!
Jerry

> 
> @Juergen: I think this report confirms my intuitions that we discussed
> previously, namely that this functionality is more appropriate as a
> global pref rather than a per-document setting. Otherwise the current
> arrangement can induce user confusion. Should I open a ticket for
> this?
> 
> Regards,
> Liviu



IEEE conferences class missing in LyX 2.1?

2013-12-07 Thread Jerry
At the "What's new in LyX 2.1" at http://wiki.lyx.org/LyX/NewInLyX21 says that 
"LyX supports now not only papers for IEEE journals but also contributions to 
IEEE conferences" I'm using LyX 2.1.0 beta 2 and I don't see the IEEE 
conferences class listed.

Jerry

How to turn off justified text display in LyX 2.1 beta

2013-12-07 Thread Jerry
I'm using the LyX 2.1.0 beta 2. The "What's new in LyX 2.1" page at 
http://wiki.lyx.org/LyX/NewInLyX21 
says "Users can now turn off the "justified text" and it is indicated as 
being documented but I can't find anything about in the documentation nor can I 
find anything in the Preferences. I'm using OS X.

Jerry

Re: Can't insert PDF image into LyX

2013-12-04 Thread Jerry

On Dec 4, 2013, at 7:45 AM, Murat Yildizoglu  
wrote:

> Thanks Jens and Jerry, I was not aware of this program (sips) and it 
> generates nice bitmaps indeed, and quite quickly in comparison with the 
> gs+convert solution that was rather slow on my macbook air.
> 
> The version I use is the following (adapted for the 128dpi display of my MBA):
> 
> sips  -s dpiHeight 128.0 -s dpiWidth 128.0 --resampleWidth 600 --setProperty 
> format png $$i --out $$o

I don't see what the effect of dpiHeight and dpiWidth is. I tried several 
different values and saw no change in the rendered graphic.

FWIW, this page http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density 
can help you to easily find the pixels per inch or centimeter of your display. 
My MacBook Pro is 110 dpi. Of course you could do Apple Menu -> About This Mac 
and do the math yourself.

Jerry

P.S. I also tried to edit the wiki the found the given password didn't work.
> 
> 
> 2013/12/4 Jerry 
> 
> On Dec 3, 2013, at 6:44 PM, Jens Nöckel  wrote:
> 
> >
> > On Dec 3, 2013, at 2:14 PM, Jerry wrote:
> >
> >>
> >> On Dec 3, 2013, at 1:53 PM, Stephen Buonopane  
> >> wrote:
> >>
> >>> Try the solution given here…
> >>> http://michael.orlitzky.com/articles/fixing_pdf_graphics_in_lyx.php
> >>> which creates a direct conversion from pdf to png.
> >>>
> >>> It solved a related problem for me in the past where the conversion 
> >>> through eps subtly changed the graphics dimensions making on screen 
> >>> cropping near impossible.
> >>
> >> Thanks, Stephen! That has fixed the problem.
> >>
> >> There remain some unanswered questions. It looks like the converter 
> >> pdftops is broken, at least on my machine. Your fix bypassed it, and 
> >> elsewhere in this thread I reported that a manual conversion created an 
> >> EPS file that was invalid. Is this a known problem?
> >>
> >> Since PDF is truly a native file format on OS X, it seems that your fix 
> >> should be incorporated into LyX permanently because OS X users are trying 
> >> to paste PDFs into LyX very frequently. Have you suggested this fix to the 
> >> developers?
> >>
> >> Jerry
> >
> >
> > As an alternative to Stephen's suggestion, you could also add the following 
> > converter for PDF to PNG. In my preferences, I chose the "From format" as
> >
> > PDF (ps2pdf)
> >
> > and entered this code for "Converter":
> >
> > sips -s format png $$i --out $$o
> >
> > This uses the OS X built-in command sips instead of Ghostscript.
> 
> Thanks for that tip, Jens. I really like the idea of using OS X's built-in 
> image processing. However, this command scales the image by 200% so I added 
> an option to scale to a width of 560 pixels which seems comfortable for me, 
> and preserves the aspect ratio. (I know that I could use LyX to scale the 
> on-screen size manually but this is laborious and makes the image ugly.)
> 
> In addition, there is a pink background behind the image which I don't like 
> and which the GhostScript-and-convert command suggested earlier in the thread 
> does not do. This is fixed by Preferences -> Look and Feel -> Colors -> 
> graphics background to white, but that leaves the question of why the 
> GhostSript approach did not result in a pink background--I'l bet it did not 
> render the PDF with a solid background but left it transparent. This (putting 
> a solid background) can be an issue which causes the image to appear bigger 
> than it is and can cause centering problems in the output PDF, but I'll leave 
> that to solve another day.
> 
> So for the record, the sips command I'm using is:
> 
> sips --resampleWidth 560 --setProperty format png $$i --out $$o
> 
> Again, thanks.
> 
> Jerry
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info



Re: Can't insert PDF image into LyX

2013-12-04 Thread Jerry

On Dec 3, 2013, at 6:44 PM, Jens Nöckel  wrote:

> 
> On Dec 3, 2013, at 2:14 PM, Jerry wrote:
> 
>> 
>> On Dec 3, 2013, at 1:53 PM, Stephen Buonopane  wrote:
>> 
>>> Try the solution given here…
>>> http://michael.orlitzky.com/articles/fixing_pdf_graphics_in_lyx.php
>>> which creates a direct conversion from pdf to png.
>>> 
>>> It solved a related problem for me in the past where the conversion through 
>>> eps subtly changed the graphics dimensions making on screen cropping near 
>>> impossible.
>> 
>> Thanks, Stephen! That has fixed the problem.
>> 
>> There remain some unanswered questions. It looks like the converter pdftops 
>> is broken, at least on my machine. Your fix bypassed it, and elsewhere in 
>> this thread I reported that a manual conversion created an EPS file that was 
>> invalid. Is this a known problem?
>> 
>> Since PDF is truly a native file format on OS X, it seems that your fix 
>> should be incorporated into LyX permanently because OS X users are trying to 
>> paste PDFs into LyX very frequently. Have you suggested this fix to the 
>> developers?
>> 
>> Jerry
> 
> 
> As an alternative to Stephen's suggestion, you could also add the following 
> converter for PDF to PNG. In my preferences, I chose the "From format" as 
> 
> PDF (ps2pdf)
> 
> and entered this code for "Converter":
> 
> sips -s format png $$i --out $$o
> 
> This uses the OS X built-in command sips instead of Ghostscript.

Thanks for that tip, Jens. I really like the idea of using OS X's built-in 
image processing. However, this command scales the image by 200% so I added an 
option to scale to a width of 560 pixels which seems comfortable for me, and 
preserves the aspect ratio. (I know that I could use LyX to scale the on-screen 
size manually but this is laborious and makes the image ugly.)

In addition, there is a pink background behind the image which I don't like and 
which the GhostScript-and-convert command suggested earlier in the thread does 
not do. This is fixed by Preferences -> Look and Feel -> Colors -> graphics 
background to white, but that leaves the question of why the GhostSript 
approach did not result in a pink background--I'l bet it did not render the PDF 
with a solid background but left it transparent. This (putting a solid 
background) can be an issue which causes the image to appear bigger than it is 
and can cause centering problems in the output PDF, but I'll leave that to 
solve another day.

So for the record, the sips command I'm using is:

sips --resampleWidth 560 --setProperty format png $$i --out $$o

Again, thanks.

Jerry

Re: Can't insert PDF image into LyX

2013-12-03 Thread Jerry

On Dec 3, 2013, at 1:53 PM, Stephen Buonopane  wrote:

> Try the solution given here…
> http://michael.orlitzky.com/articles/fixing_pdf_graphics_in_lyx.php
> which creates a direct conversion from pdf to png.
> 
> It solved a related problem for me in the past where the conversion through 
> eps subtly changed the graphics dimensions making on screen cropping near 
> impossible.

Thanks, Stephen! That has fixed the problem.

There remain some unanswered questions. It looks like the converter pdftops is 
broken, at least on my machine. Your fix bypassed it, and elsewhere in this 
thread I reported that a manual conversion created an EPS file that was 
invalid. Is this a known problem?

Since PDF is truly a native file format on OS X, it seems that your fix should 
be incorporated into LyX permanently because OS X users are trying to paste 
PDFs into LyX very frequently. Have you suggested this fix to the developers?

Jerry

> 
> 
> 
> On Dec 3, 2013, at 1:00 AM, Jerry wrote:
> 
>> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When I 
>> try to do this, in the area where the graphic would be displayed, I first 
>> see the message "Converting to loadable format" and then "Error converting 
>> to loadable format." The name of the file is then displayed but not the 
>> image.
>> 
>> I am trying this in a new LyX document. The graphic is a simple plot saved 
>> from Mathematica in several file formats. Of those other formats, I am able 
>> to successfully insert bmp, eps, gif, jpg, png and tiff. (svg displays 
>> incorrectly in LyX as a black rectangle even though it is displayed 
>> correctly in other viewers.)
>> 
>> I thought PDF was a "native" format for LyX, so I don't understand why it is 
>> trying to convert the PDF file into anything. Have I set a preference to 
>> something stupid?
>> 
>> Jerry
>> 
> 



Re: Can't insert PDF image into LyX

2013-12-03 Thread Jerry

On Dec 3, 2013, at 1:22 PM, Scott Kostyshak  wrote:

> On Tue, Dec 3, 2013 at 4:41 AM, Murat Yildizoglu
>  wrote:
>> Scott, are you sure that Lyx uses EPS for showing the graphics on the
>> screen? I have had the impression that it was rather using a bitmap format
>> like PNG.
> 
> Not all formats are converted to .eps. If you insert a .png it will
> not be converted to a .eps. I agree that in the end to display on a
> screen a bitmap is more useful but I think that Qt takes care of that.
> If you go to Insert > Graphics and choose a .pdf, at least on Ubuntu,
> it is converted to a .eps. You can see this by starting LyX with lyx
> -dbg graphics and looking at the output.
> 
> Below is some useful information from the output. Note all the way at
> the bottom "from_format:  pdf6
> to_format:eps"
> 

> 
> Scott

Scott, I ran LyX with the -dbg graphics command and got the following output. 
Not sure what to make of it but there seems to be a lot of complaining. FWIW I 
ran it again with spaces removed from path names and got the same result.

Jerry


Last login: Tue Dec  3 14:16:34 on ttys004
Hello, Jerry. Your profile is at ~/.profile.
MBPro:bin jerrybauck$ cd 
/Applications/Words/LyXOuterFolder/LyX.app/Contents/MacOS 
MBPro:MacOS jerrybauck$ ./lyx -dbg graphics
Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (945): Recognised Fileformat: agr
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (832): filetools(getFormatFromContents)
File type not recognised before EOF!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (832): filetools(getFormatFromContents)
File type not recognised before EOF!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (832): filetools(getFormatFromContents)
File type not recognised before EOF!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (945): Recognised Fileformat: eps
support/FileName.cpp (945): Recognised Fileformat: eps
support/FileName.cpp (945): Recognised Fileformat: eps
support/FileName.cpp (945): Recognised Fileformat: pdf
support/FileName.cpp (945): Recognised Fileformat: pdf
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
Format.cpp (147):   will guess format from file extension: svg -> svg
support/FileName.cpp (945): Recognised Fileformat: eps
support/FileName.cpp (945): Recognised Fileformat: pdf
support/FileName.cpp (945): Recognised Fileformat: pdf
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (832): filetools(getFormatFromContents)
File type not recognised before EOF!
support/FileName.cpp (950): filetools(getFormatFromContents)
Couldn't find a known format!
support/FileName.cpp (950): filetools(getFormatFro

Re: Can't insert PDF image into LyX

2013-12-03 Thread Jerry

On Dec 3, 2013, at 3:49 AM, Murat Yildizoglu  
wrote:

> Hi Jerry,
> 
> It seems that convert in on your Path.
> I do not know if this is enough, but the Path in my Lyx preferences 
> (Preferences/Paths/Path prefix) contains the MacPorts binary folder: 
> /opt/local/bin
> If it is not in your's, you could maybe add it and reconfigure Lyx.
> Maybe that could help?
> 
> Murat

Thanks for that tip, Murat. I checked the path prefix as you suggest and 
/opt/local/bin is in fact listed, as is /usr/local/bin/ where a slightly older 
version of convert exists. Since /opt/local/bin is first in the list, 
presumably the convert there is used, but which one is used shouldn't matter, I 
suppose.

So the path list shouldn't be the problem.

Jerry

> 
> 
> 2013/12/3 Jerry 
> 
> On Dec 3, 2013, at 2:41 AM, Murat Yildizoglu 
>  wrote:
> 
>> Scott, are you sure that Lyx uses EPS for showing the graphics on the 
>> screen? I have had the impression that it was rather using a bitmap format 
>> like PNG.
>> 
>> Jerry, is the ImageMagick command convert attainable from the console? What 
>> happens when you execute
>> convert -version
>> in the console?
> 
> MBPro:~ me$ convert -version
> Version: ImageMagick 6.8.0-2 2012-11-21 Q16 http://www.imagemagick.org
> Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
> Features:  OpenCL   
> 
> Jerry
> P.S. I'll be "offline" for a few hours beginning now. 8^)
> 
>> 
>> 
>> 2013/12/3 Jerry 
>> 
>> On Dec 2, 2013, at 11:20 PM, Scott Kostyshak  wrote:
>> 
>> > On Tue, Dec 3, 2013 at 1:00 AM, Jerry  wrote:
>> >> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When 
>> >> I try to do this, in the area where the graphic would be displayed, I 
>> >> first see the message "Converting to loadable format" and then "Error 
>> >> converting to loadable format." The name of the file is then displayed 
>> >> but not the image.
>> >>
>> >> I am trying this in a new LyX document. The graphic is a simple plot 
>> >> saved from Mathematica in several file formats. Of those other formats, I 
>> >> am able to successfully insert bmp, eps, gif, jpg, png and tiff. (svg 
>> >> displays incorrectly in LyX as a black rectangle even though it is 
>> >> displayed correctly in other viewers.)
>> >>
>> >> I thought PDF was a "native" format for LyX, so I don't understand why it 
>> >> is trying to convert the PDF file into anything. Have I set a preference 
>> >> to something stupid?
>> >>
>> >> Jerry
>> >
>> > Hi Jerry,
>> >
>> > I believe that LyX converts PDFs to EPS files. To see the command that
>> > is being run, go to Tools > Preferences > File Handling > Converters
>> > and select "PDF (graphics) -> EPS"
>> > For me the command is:
>> > pdftops -eps -f 1 -l 1 $$i $$o
>> >
>> > Best,
>> >
>> > Scott
>> 
>> Thanks, Scott. I have an item in the Converters list called PDF (ps2pdf) -> 
>> EPS which is probably the equivalent. In any case, the Converter command is 
>> pdftops -eps -f 1 -l 1 $$i $$o, the same as yours.
>> 
>> Jerry
>> 
>> P.S. Did you see Murat's comment in this thread?
>> 
>> 
>> 
>> -- 
>> Prof. Murat Yildizoglu
>> 
>> Université Montesquieu Bordeaux IV 
>> GREThA (UMR CNRS 5113)
>> Avenue Léon Duguit
>> 33608 Pessac cedex
>> France
>> 
>> Bureau : E-331
>> 
>> mail: yildi-at-u-bordeaux4.fr
>> 
>> web: yildizoglu.info
> 
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info



Re: Can't insert PDF image into LyX

2013-12-03 Thread Jerry

On Dec 3, 2013, at 2:41 AM, Murat Yildizoglu  
wrote:

> Scott, are you sure that Lyx uses EPS for showing the graphics on the screen? 
> I have had the impression that it was rather using a bitmap format like PNG.
> 
> Jerry, is the ImageMagick command convert attainable from the console? What 
> happens when you execute
> convert -version
> in the console?

MBPro:~ me$ convert -version
Version: ImageMagick 6.8.0-2 2012-11-21 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:  OpenCL   

Jerry
P.S. I'll be "offline" for a few hours beginning now. 8^)

> 
> 
> 2013/12/3 Jerry 
> 
> On Dec 2, 2013, at 11:20 PM, Scott Kostyshak  wrote:
> 
> > On Tue, Dec 3, 2013 at 1:00 AM, Jerry  wrote:
> >> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When 
> >> I try to do this, in the area where the graphic would be displayed, I 
> >> first see the message "Converting to loadable format" and then "Error 
> >> converting to loadable format." The name of the file is then displayed but 
> >> not the image.
> >>
> >> I am trying this in a new LyX document. The graphic is a simple plot saved 
> >> from Mathematica in several file formats. Of those other formats, I am 
> >> able to successfully insert bmp, eps, gif, jpg, png and tiff. (svg 
> >> displays incorrectly in LyX as a black rectangle even though it is 
> >> displayed correctly in other viewers.)
> >>
> >> I thought PDF was a "native" format for LyX, so I don't understand why it 
> >> is trying to convert the PDF file into anything. Have I set a preference 
> >> to something stupid?
> >>
> >> Jerry
> >
> > Hi Jerry,
> >
> > I believe that LyX converts PDFs to EPS files. To see the command that
> > is being run, go to Tools > Preferences > File Handling > Converters
> > and select "PDF (graphics) -> EPS"
> > For me the command is:
> > pdftops -eps -f 1 -l 1 $$i $$o
> >
> > Best,
> >
> > Scott
> 
> Thanks, Scott. I have an item in the Converters list called PDF (ps2pdf) -> 
> EPS which is probably the equivalent. In any case, the Converter command is 
> pdftops -eps -f 1 -l 1 $$i $$o, the same as yours.
> 
> Jerry
> 
> P.S. Did you see Murat's comment in this thread?
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info



Re: Can't insert PDF image into LyX

2013-12-03 Thread Jerry

On Dec 3, 2013, at 1:37 AM, Scott Kostyshak  wrote:

> On Tue, Dec 3, 2013 at 3:19 AM, Jerry  wrote:
>> 
>> On Dec 3, 2013, at 12:41 AM, Scott Kostyshak  wrote:
>> 
>>> On Tue, Dec 3, 2013 at 2:33 AM, Jerry  wrote:
>>>> 
>>>> On Dec 2, 2013, at 11:20 PM, Scott Kostyshak  wrote:
>>>> 
>>>>> On Tue, Dec 3, 2013 at 1:00 AM, Jerry  wrote:
>>>>>> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. 
>>>>>> When I try to do this, in the area where the graphic would be displayed, 
>>>>>> I first see the message "Converting to loadable format" and then "Error 
>>>>>> converting to loadable format." The name of the file is then displayed 
>>>>>> but not the image.
>>>>>> 
>>>>>> I am trying this in a new LyX document. The graphic is a simple plot 
>>>>>> saved from Mathematica in several file formats. Of those other formats, 
>>>>>> I am able to successfully insert bmp, eps, gif, jpg, png and tiff. (svg 
>>>>>> displays incorrectly in LyX as a black rectangle even though it is 
>>>>>> displayed correctly in other viewers.)
>>>>>> 
>>>>>> I thought PDF was a "native" format for LyX, so I don't understand why 
>>>>>> it is trying to convert the PDF file into anything. Have I set a 
>>>>>> preference to something stupid?
>>>>>> 
>>>>>> Jerry
>>>>> 
>>>>> Hi Jerry,
>>>>> 
>>>>> I believe that LyX converts PDFs to EPS files. To see the command that
>>>>> is being run, go to Tools > Preferences > File Handling > Converters
>>>>> and select "PDF (graphics) -> EPS"
>>>>> For me the command is:
>>>>> pdftops -eps -f 1 -l 1 $$i $$o
>>>>> 
>>>>> Best,
>>>>> 
>>>>> Scott
>>>> 
>>>> Thanks, Scott. I have an item in the Converters list called PDF (ps2pdf) 
>>>> -> EPS which is probably the equivalent. In any case, the Converter 
>>>> command is pdftops -eps -f 1 -l 1 $$i $$o, the same as yours.
>>> 
>>> OK then you might want to try running the command manually on the pdf
>>> file. For example, you could run:
>>> pdftops -eps -f 1 -l 1 myfile.pdf myfile.eps
>>> 
>>> To get more information on what LyX is doing in the background, you
>>> could do the following:
>>> lyx -dbg graphics
>>> 
>>> I forget how you're supposed to run the command from the terminal in a
>>> Mac. I remember JMarc said something like you have to specify the full
>>> path. Hopefully you know.
>> 
>> I ran the command that you suggested and a new EPS file was created without 
>> any error code reported. I examined it in a text editor and it at least 
>> superficially looks like a valid EPS file. However, when I then try to 
>> insert it into my document, I get the "Error converting to loadable format" 
>> message in place of the image. (I don't notice the intermediate message 
>> saying that it is "Converting to a loadable format".)
>> 
>> When I attempt to open the EPS which was originally exported by Mathematica 
>> (see my original post) with Apple's Preview.app, it succeeds (by itself 
>> converting the EPS to PDF). However, when I attempt to open the new EPS made 
>> by the above command in Preview, it fails and reports "Warning PostScript 
>> error: No PDF was produced," and there is in fact no image displayed in 
>> Preview.
>> 
>> It looks like pdftops is giving me a bad result. What package
>> 
>> FWIW, the original EPS which was exported from Mathematica (and which 
>> displays correctly in LyX) is 408 KB and the new one created by the pdftops 
>> command above is only 188 KB. I don't necessarily find this worrisome but I 
>> thought I would mention it.
>> 
> 
> Sounds like you've narrowed down the problem. I've heard of similar
> reports. You could try to use a different command (different program
> than pdftops) to do the conversion. I don't have experience with this.
> 
> Best,
> 
> Scott

I see that pdftops is part of xpdf. My installed version of xpdf (via MacPorts) 
is 3.02 and pdftops is 0.20.5.

Does anyone know if there are known problems with these versions? Is it 
normally up to the LyX user to install these things? Surely I'm not the only OS 
X user to run into this problem (inserting PDF to LyX).

Jerry



Re: Can't insert PDF image into LyX

2013-12-03 Thread Jerry

On Dec 3, 2013, at 12:41 AM, Scott Kostyshak  wrote:

> On Tue, Dec 3, 2013 at 2:33 AM, Jerry  wrote:
>> 
>> On Dec 2, 2013, at 11:20 PM, Scott Kostyshak  wrote:
>> 
>>> On Tue, Dec 3, 2013 at 1:00 AM, Jerry  wrote:
>>>> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When 
>>>> I try to do this, in the area where the graphic would be displayed, I 
>>>> first see the message "Converting to loadable format" and then "Error 
>>>> converting to loadable format." The name of the file is then displayed but 
>>>> not the image.
>>>> 
>>>> I am trying this in a new LyX document. The graphic is a simple plot saved 
>>>> from Mathematica in several file formats. Of those other formats, I am 
>>>> able to successfully insert bmp, eps, gif, jpg, png and tiff. (svg 
>>>> displays incorrectly in LyX as a black rectangle even though it is 
>>>> displayed correctly in other viewers.)
>>>> 
>>>> I thought PDF was a "native" format for LyX, so I don't understand why it 
>>>> is trying to convert the PDF file into anything. Have I set a preference 
>>>> to something stupid?
>>>> 
>>>> Jerry
>>> 
>>> Hi Jerry,
>>> 
>>> I believe that LyX converts PDFs to EPS files. To see the command that
>>> is being run, go to Tools > Preferences > File Handling > Converters
>>> and select "PDF (graphics) -> EPS"
>>> For me the command is:
>>> pdftops -eps -f 1 -l 1 $$i $$o
>>> 
>>> Best,
>>> 
>>> Scott
>> 
>> Thanks, Scott. I have an item in the Converters list called PDF (ps2pdf) -> 
>> EPS which is probably the equivalent. In any case, the Converter command is 
>> pdftops -eps -f 1 -l 1 $$i $$o, the same as yours.
> 
> OK then you might want to try running the command manually on the pdf
> file. For example, you could run:
> pdftops -eps -f 1 -l 1 myfile.pdf myfile.eps
> 
> To get more information on what LyX is doing in the background, you
> could do the following:
> lyx -dbg graphics
> 
> I forget how you're supposed to run the command from the terminal in a
> Mac. I remember JMarc said something like you have to specify the full
> path. Hopefully you know.

I ran the command that you suggested and a new EPS file was created without any 
error code reported. I examined it in a text editor and it at least 
superficially looks like a valid EPS file. However, when I then try to insert 
it into my document, I get the "Error converting to loadable format" message in 
place of the image. (I don't notice the intermediate message saying that it is 
"Converting to a loadable format".)

When I attempt to open the EPS which was originally exported by Mathematica 
(see my original post) with Apple's Preview.app, it succeeds (by itself 
converting the EPS to PDF). However, when I attempt to open the new EPS made by 
the above command in Preview, it fails and reports "Warning PostScript error: 
No PDF was produced," and there is in fact no image displayed in Preview.

It looks like pdftops is giving me a bad result. What package 

FWIW, the original EPS which was exported from Mathematica (and which displays 
correctly in LyX) is 408 KB and the new one created by the pdftops command 
above is only 188 KB. I don't necessarily find this worrisome but I thought I 
would mention it.

Jerry

> 
>> P.S. Did you see Murat's comment in this thread?
> 
> Yes. What I'm telling you is just a guess so if something I say
> contradicts what he says, try both :)
> 
> Best,
> 
> Scott




Re: Can't insert PDF image into LyX [RESEND]

2013-12-02 Thread Jerry
[Sorry for the re-post--the first one seems to have evaporated into the ether.]

On Dec 2, 2013, at 11:22 PM, Murat Yildizoglu  
wrote:

> 
> 
> -- Message transféré --
> De : Murat Yildizoglu 
> Date : mardi 3 décembre 2013
> Objet : Can't insert PDF image into LyX
> À : Jerry 
> 
> 
> Lyx needs to convert the graphic to a bitmap format to show it on the screen. 
> It seems that your installation is missing InageMagick or Ghostscript that 
> are generally used by lyx.

I use MacPorts (like the ports of BSD) which tells me that I have ImageMagick 
@6.8.0-2_0+q16 and ghostscript @9.06_1 installed and active. (The version 
designations are a little weird here because that's the way that MacPorts 
reports them.) Is there a path problem with LyX that is causing these not to be 
seen?
>  

> Your final PDF document should nevertheless compile and contain these 
> graphics if they are correct PDF files. 

The final document does indeed contain the PDF file.

Jerry

> Le mardi 3 décembre 2013, Jerry a écrit :
> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When I 
> try to do this, in the area where the graphic would be displayed, I first see 
> the message "Converting to loadable format" and then "Error converting to 
> loadable format." The name of the file is then displayed but not the image.
> 
> I am trying this in a new LyX document. The graphic is a simple plot saved 
> from Mathematica in several file formats. Of those other formats, I am able 
> to successfully insert bmp, eps, gif, jpg, png and tiff. (svg displays 
> incorrectly in LyX as a black rectangle even though it is displayed correctly 
> in other viewers.)
> 
> I thought PDF was a "native" format for LyX, so I don't understand why it is 
> trying to convert the PDF file into anything. Have I set a preference to 
> something stupid?
> 
> Jerry
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info
> 
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info
> 



Re: Can't insert PDF image into LyX

2013-12-02 Thread Jerry

On Dec 2, 2013, at 11:20 PM, Scott Kostyshak  wrote:

> On Tue, Dec 3, 2013 at 1:00 AM, Jerry  wrote:
>> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When I 
>> try to do this, in the area where the graphic would be displayed, I first 
>> see the message "Converting to loadable format" and then "Error converting 
>> to loadable format." The name of the file is then displayed but not the 
>> image.
>> 
>> I am trying this in a new LyX document. The graphic is a simple plot saved 
>> from Mathematica in several file formats. Of those other formats, I am able 
>> to successfully insert bmp, eps, gif, jpg, png and tiff. (svg displays 
>> incorrectly in LyX as a black rectangle even though it is displayed 
>> correctly in other viewers.)
>> 
>> I thought PDF was a "native" format for LyX, so I don't understand why it is 
>> trying to convert the PDF file into anything. Have I set a preference to 
>> something stupid?
>> 
>> Jerry
> 
> Hi Jerry,
> 
> I believe that LyX converts PDFs to EPS files. To see the command that
> is being run, go to Tools > Preferences > File Handling > Converters
> and select "PDF (graphics) -> EPS"
> For me the command is:
> pdftops -eps -f 1 -l 1 $$i $$o
> 
> Best,
> 
> Scott

Thanks, Scott. I have an item in the Converters list called PDF (ps2pdf) -> EPS 
which is probably the equivalent. In any case, the Converter command is pdftops 
-eps -f 1 -l 1 $$i $$o, the same as yours.

Jerry

P.S. Did you see Murat's comment in this thread?

Re: Can't insert PDF image into LyX

2013-12-02 Thread Jerry
On Dec 2, 2013, at 11:22 PM, Murat Yildizoglu  
wrote:

> -- Message transféré --
> De : Murat Yildizoglu 
> Date : mardi 3 décembre 2013
> Objet : Can't insert PDF image into LyX
> À : Jerry 
> 
> 
> Lyx needs to convert the graphic to a bitmap format to show it on the screen. 
> It seems that your installation is missing InageMagick or Ghostscript that 
> are generally used by lyx.

I use MacPorts (like the ports of BSD) which tells me that I have ImageMagick 
@6.8.0-2_0+q16 and ghostscript @9.06_1 installed and active. (The version 
designations are a little weird here because that's the way that MacPorts 
reports them.) Is there a path problem with LyX that is causing these not to be 
seen?

> Your final PDF document should nevertheless compile and contain these 
> graphics if they are correct PDF files. 

The final document does indeed contain the PDF file.

Jerry

> Le mardi 3 décembre 2013, Jerry a écrit :
> I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When I 
> try to do this, in the area where the graphic would be displayed, I first see 
> the message "Converting to loadable format" and then "Error converting to 
> loadable format." The name of the file is then displayed but not the image.
> 
> I am trying this in a new LyX document. The graphic is a simple plot saved 
> from Mathematica in several file formats. Of those other formats, I am able 
> to successfully insert bmp, eps, gif, jpg, png and tiff. (svg displays 
> incorrectly in LyX as a black rectangle even though it is displayed correctly 
> in other viewers.)
> 
> I thought PDF was a "native" format for LyX, so I don't understand why it is 
> trying to convert the PDF file into anything. Have I set a preference to 
> something stupid?
> 
> Jerry
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info
> 
> 
> 
> 
> -- 
> Prof. Murat Yildizoglu
> 
> Université Montesquieu Bordeaux IV 
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
> 
> Bureau : E-331
> 
> mail: yildi-at-u-bordeaux4.fr
> 
> web: yildizoglu.info
> 



Can't insert PDF image into LyX

2013-12-02 Thread Jerry
I am unable to insert PDF image files into LyX 2.0.6 on OS X 10.8.5. When I try 
to do this, in the area where the graphic would be displayed, I first see the 
message "Converting to loadable format" and then "Error converting to loadable 
format." The name of the file is then displayed but not the image.

I am trying this in a new LyX document. The graphic is a simple plot saved from 
Mathematica in several file formats. Of those other formats, I am able to 
successfully insert bmp, eps, gif, jpg, png and tiff. (svg displays incorrectly 
in LyX as a black rectangle even though it is displayed correctly in other 
viewers.)

I thought PDF was a "native" format for LyX, so I don't understand why it is 
trying to convert the PDF file into anything. Have I set a preference to 
something stupid?

Jerry



Re: How to set up mathematica

2013-11-22 Thread Jerry

On Nov 22, 2013, at 2:17 AM, Liviu Andronic  wrote:

> On Fri, Nov 22, 2013 at 5:47 AM, Sungki Hong  wrote:
>> To whom it may concern,
>> 
>> I have been trying to set up mathematica with my lyx, but I simply got
>> confused. So what is the right step I should follow? I have downloaded
>> mathematica already. My system is Mac.
>> 
> Generally, it should suffice to Tools > Reconfigure in LyX. Then
> within a math inset, right-click and CAS.
> 
> Liviu

Wow--that's obscure. I didn't find this in the documentation.
Jerry

> 
> 
>> best,
>> Sungki
> 



Using LyX for calculations (was Rendering of LyX's math screen fonts.)

2013-11-07 Thread Jerry
I know that LyX has hooks for some computer algebra systems (Mathematica, 
Maple, Maxima) and Octave. I have played with these a little (Octave and 
Mathematica) and it seems potentially useful but possibly not fully developed 
in LyX.

I'm curious to know how you and others have used this corner of LyX.

Jerry

On Nov 7, 2013, at 1:30 PM, Georg Baum  wrote:

> PS: It is funny that you also use the math editor for calculations. I used 
> to do that a lot for my thesis, but always thought I was the only one.



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 11, 2013, at 2:28 AM, Jerry  wrote:

> 
> On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes  wrote:
> 
>> Le 10/10/13 01:03, Gwen Barnes a écrit :
>>> Hi folks,
>>> 
>>> I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
>>> instance, with the mouse wheel, or with trackpad gestures, there is
>>> almost a full second lag before the screen starts to change, and then it
>>> moves jerkily until it gets to where it's going.  Based on some comments
>>> I found online, I have found that the lag goes away if I make my LyX
>>> window tiny -- but then the window is not useful to me.
>>> 
>>> Any ideas what the problem might be, and things I could try to fix it?
>> 
>> The problem is a weakness in LyX display mechanism: text is drawn several 
>> characters at a time, while metrics (measurement of size) is done 
>> character-per-character. On windows and linux, it is not a problem, but on a 
>> Mac, where fonts use ligatures, it means that the cursor does not appear 
>> where it should.
>> 
>> To alleviate that, by default mac builds draws the screen char-by-char too. 
>> It works, but it is quite slow...
>> You can see what the effect is by adding
>> \force_paint_single_char 0
>> in the preferences file.
>> 
>> Unfortunately, this situation will not improve in version 2.1.
> 
> This is discouraging news. This is a serious and longstanding problem. Thanks 
> for the update, J-M.
> Jerry

Surely this is a Qt problem since there are many Qt programs that don't have 
this issue. In fact, there are text-related windows in OS X LyX that don't have 
this problem. (Written by a casual bystander, of course.)
Jerry

> 
>> 
>> There is a branch that tackles this problem, but it is not ready yet.
>> 
>> JMarc
> 



Re: LyX 2.0.6 scroll lag on Mac 10.8.5

2013-10-11 Thread Jerry

On Oct 10, 2013, at 12:17 AM, Jean-Marc Lasgouttes  wrote:

> Le 10/10/13 01:03, Gwen Barnes a écrit :
>> Hi folks,
>> 
>> I am using LyX 2.0.6 on Mac 10.8.5.  Whenever I try to scroll, for
>> instance, with the mouse wheel, or with trackpad gestures, there is
>> almost a full second lag before the screen starts to change, and then it
>> moves jerkily until it gets to where it's going.  Based on some comments
>> I found online, I have found that the lag goes away if I make my LyX
>> window tiny -- but then the window is not useful to me.
>> 
>> Any ideas what the problem might be, and things I could try to fix it?
> 
> The problem is a weakness in LyX display mechanism: text is drawn several 
> characters at a time, while metrics (measurement of size) is done 
> character-per-character. On windows and linux, it is not a problem, but on a 
> Mac, where fonts use ligatures, it means that the cursor does not appear 
> where it should.
> 
> To alleviate that, by default mac builds draws the screen char-by-char too. 
> It works, but it is quite slow...
> You can see what the effect is by adding
> \force_paint_single_char 0
> in the preferences file.
> 
> Unfortunately, this situation will not improve in version 2.1.

This is discouraging news. This is a serious and longstanding problem. Thanks 
for the update, J-M.
Jerry

> 
> There is a branch that tackles this problem, but it is not ready yet.
> 
> JMarc



Import Docbook into LyX?

2013-09-11 Thread Jerry
Is it possible to import Docbook files into LyX?

Jerry


Re: Question: Using LyX as your daily word processor

2013-08-23 Thread Jerry

On Aug 23, 2013, at 7:28 AM, Les Denham  wrote:

> On Thu, 22 Aug 2013 17:26:31 -0700
> Jerry  wrote:
> 
>> 
>> On Aug 21, 2013, at 5:16 AM, Les Denham  wrote:
>> 
>>> On Tue, 20 Aug 2013 18:13:23 -0700
>>> Jerry  wrote:
>>> 
>>>> 
>>>> On Aug 18, 2013, at 6:59 PM, Les Denham  wrote:
>>>> 
>>>>> My general approach to  getting a LyX document into Word format is
>>>>> to us the LyXHTML export, import the exported file into
>>>>> LibreOffice, fix the inevitable problems, and save in DOCX format.
>>>> 
>>>> How do you import the XHTML from LyXHTML into LibreOffice? When I
>>>> try it, I see only raw text; it is not rendered. I let the file
>>>> dialog display all files and assumed that the .xhtml file
>>>> extension would tell LO what to do but obviously this did not
>>>> happen.
>>>> 
>>> Jerry,
>>> 
>>> One of the inevitable problems. Try changing the .xhtml file
>>> extension to .html. I think you can also delve into the advanced
>>> settings of LibreOffice to tell it to treat .xhtml files as HTML.
>>> 
>>> Les
>> 
>> Les, thanks for that tip, but it didn't change anything--still raw
>> text, either with a document with a few equations (and thus MathML in
>> the XHTML file) or just a simple file containing only the word
>> "Hello".
>> 
>> FWIW, when I do open the (x)html file, I get a dialog asking for
>> Character set (default = UTF-8), Default fonts (default = Times New
>> Roman), Language (default = English (US)) and Paragraph break
>> (default = LF). I accepted all the defaults. So it looks at that
>> point like something is about to happen, but then I see only raw
>> text. 
>> 
>> I also looked at Tools -> Options -> Load/Save -> HTML Compatibility
>> but didn't see anything relevant.
>> 
>> Jerry
> 
> Jerry,
> 
> Sorry, I left out one step: before opening the file in LibreOffice,
> open in a text editor and delete the first line (the one that looks
> like this: ). Save it and then
> import into LO.
> 
> Les

Thanks, Les (and Alan). That fixes the import problem.

I was disappointed (but not surprised) to see that LibreOffice (actually, 
NeoOffice, a Macintized version of OpenOffice) does not render the math which 
comes over as MathML.

Firefox and recent versions of Safari (apparently at the WebKit level) do a 
passable job of rendering the math in a browser. "Passable" means easily 
readable and mathematically correct but not up to TeX standards.

The new (4.0 IIRC) version of LibreOffice had problems on the Mac so I deleted 
it for the time being. Maybe LO does the math.

As I ramble more...OpenOffice and LibreOffice leave giant white space on both 
sides of in-line math--completely unacceptable. And it seems impossible to 
understand the math syntax until one accidentally discovers that it is based on 
nroff or troff I'm not sure which because I don't care that much.

Jerry

Re: Question: Using LyX as your daily word processor

2013-08-22 Thread Jerry

On Aug 21, 2013, at 5:16 AM, Les Denham  wrote:

> On Tue, 20 Aug 2013 18:13:23 -0700
> Jerry  wrote:
> 
>> 
>> On Aug 18, 2013, at 6:59 PM, Les Denham  wrote:
>> 
>>> My general approach to  getting a LyX document into Word format is
>>> to us the LyXHTML export, import the exported file into
>>> LibreOffice, fix the inevitable problems, and save in DOCX format.
>> 
>> How do you import the XHTML from LyXHTML into LibreOffice? When I try
>> it, I see only raw text; it is not rendered. I let the file dialog
>> display all files and assumed that the .xhtml file extension would
>> tell LO what to do but obviously this did not happen.
>> 
> Jerry,
> 
> One of the inevitable problems. Try changing the .xhtml file extension
> to .html. I think you can also delve into the advanced settings of
> LibreOffice to tell it to treat .xhtml files as HTML.
> 
> Les

Les, thanks for that tip, but it didn't change anything--still raw text, either 
with a document with a few equations (and thus MathML in the XHTML file) or 
just a simple file containing only the word "Hello".

FWIW, when I do open the (x)html file, I get a dialog asking for Character set 
(default = UTF-8), Default fonts (default = Times New Roman), Language (default 
= English (US)) and Paragraph break (default = LF). I accepted all the 
defaults. So it looks at that point like something is about to happen, but then 
I see only raw text. 

I also looked at Tools -> Options -> Load/Save -> HTML Compatibility but didn't 
see anything relevant.

Jerry

Re: formula numbering

2013-08-20 Thread Jerry

On Aug 19, 2013, at 5:56 AM, Guenter Milde  wrote:

> On 2013-08-08, bieniasz wrote:
>> Richard Heck  lyx.org> writes:
> 
>>> What happens, then, when you add a new equation somewhere in
>>> the middle of the document?
> 
>> This is what LyX already does - it updates automatically the equation
>> numbers. My point is why one cannot use these numbers for referencing
>> the equations in the text, since they are already there, up-to-date.
> 
> But how do you find out the up-to-date number of the equation in chapter
> 3 you want to reference in chapter 14?
> 
> ...
> 
>> LaTeX users are primarily
>> scientists who write scientific texts. In such text one ALWAYS
>> refers to equations by numbers, and not by any peculiar labels.
> 
> Reference by numbers is used in the printout, but reference by label is used
> in all LaTeX source documents.
> 
> In the printed text, I usually use a description of the formula + the
> reference number so that the reader can look it up if required but generally
> does not need to: 
> 
>  The incident radiation is absorbed and distributes in the sensor layer
>  by means of heat conduction (Equations [15] and [16]) resulting in a
>  time-dependent temperature field T(\xyz,t).
> 
>>> Still, making up a label isn't that hard, and it can make it easier
>>> to remeber which equation you want to reference later. You can
>>> of course just use numbers if you wish.
> 
>> Well, yes and no. If I use my own labels, like
>> E1, E2, E3 etc., then I am in trouble when I need to add something
>> between E1 and E2, let's say. The problem is that user-defined labels
>> are not automatically updated, whereas the real equation numbers are.
>> Hence, I have a mess in which labels are in no clear relation to
>> the numbers.
> 
> But IMO, the even bigger problem is, if you insert a new formula between
> E1 and E2 but continue to use E15 for new references to the "heat
> equation" (or whatever) which is now E16!!!
> 
> 
>> So, in conclusion, I daresay the LaTeX/LyX system for equation numbering
>> needs a reasonable revision. If there are any LyX programmers out there,
>> please do something about this!!!

I daresay that all of this would be much easier if LyX had a _graphical_ 
equation browser, built in to the Outline tool. By default, equations would be 
organized by section, subsection, etc., so that you could in most cases find 
the equation that you want to reference by the most natural way--clicking on 
the section that you recall it being in, seeing a rendering of the equations in 
a scrollable list, then clicking once to insert the reference at the cursor 
location. The rendered equation (in the list) would still be immediately 
recognizable in most cases even if only a part of it were visible (without 
expanding the Outline window a lot). Of course, the graphical equation browser 
would also be available in the existing equation list in the Outline.

And somewhat separately, it would sometimes be nice to have multiple instances 
of the Outline so that one would not have to switch between list types as often.

Jerry
> 
> I dare to say that the label/reference system is one of the main
> advantages of LaTeX (and LyX) for scientific writing. It may be more
> complicated to begin with but that effort pays as soon as you write more
> than 10 equations in one paper, say.
> 
> Günter
> 



Re: Question: Using LyX as your daily word processor

2013-08-20 Thread Jerry

On Aug 18, 2013, at 6:59 PM, Les Denham  wrote:

> My general approach to  getting a LyX document into Word format is to
> us the LyXHTML export, import the exported file into LibreOffice, fix
> the inevitable problems, and save in DOCX format.

How do you import the XHTML from LyXHTML into LibreOffice? When I try it, I see 
only raw text; it is not rendered. I let the file dialog display all files and 
assumed that the .xhtml file extension would tell LO what to do but obviously 
this did not happen.

Jerry

Re: Access menu items under OS X

2013-08-06 Thread Jerry

On Aug 6, 2013, at 6:04 AM, Rainer M Krug  wrote:

> Hi
> 
> I recently switched from Linux to OS X.
> 
> One thing I haven't figured out is how I can easily access the menu
> items easily via keyboard shortcut.
> 
> Under Linux, I did CTRL-I -- N - N to insert a Lyx note. Under OS X
> (Mountain Lion) I have to use several keyboard shortcuts and navigate
> with the cursor keys to open the Insert menu and I insert charactars i
> the text:
> 
> -  CRTL-F2 gives focus to the Meu Bar
> -  i navigates to the Insert menu, but does not open it AND inserts an "i"
> in the document.
> -  Cursor Down opens the menu
> -  and so on.
> 
> Am I missing something here (I hope so)?
> 
> Cheers,
> 
> Rainer
> 
> -- 
> Rainer M. Krug
> 
> email: RMKruggmailcom
> 
Hi Ranier,

For all the violence that the Qt widget set does to the Mac interface, it does 
do a lot of things right. One of these is that it plays well with the Keyboard 
System Preference (Apple menu -> System Preferences -> Keyboard -> Keyboard 
Shortcuts -> Application Shortcuts). There, you can set any (available) 
keystroke combination to any menu item, using the modifier keys Shift, Command, 
Option, or Control, plus a normal key. This is a lot of combinations and you 
should be able to find many that do not conflict with already-assigned 
keystrokes.

Maybe someone could take it up with the developers why so many often-used menu 
items in LyX are not assigned key combinations out of the box.

The method you describe is also available but is rarely used by Mac users 
because they don't know it is possible, and because it takes more effort than 
the above method for many instances. As you have discovered, you can get focus 
to move to the menu bar. (I found that Command-F2 is much easier to hit than 
Control-Anything.) Once the menu bar has focus, start typing letters until 
focus moves to the main menu item you want (usually one key is sufficient). 
Then hit Return (easier than down-arrow) and start typing letters again until 
the next level item is selected, hit Return, and so on. This will get you to 
any menu key without using pre-assigned key combinations. It should not insert 
letters into your document as long as focus remains in the menu structure.

Jerry

Re: Converting lyx to odt

2013-05-03 Thread Jerry

On May 1, 2013, at 8:28 PM, Scott Kostyshak wrote:

> On Wed, May 1, 2013 at 10:59 PM, Jerry  wrote:
> 
>> A while back I spent a lot of time evaluating the various  ways to convert 
>> LyX to .odt or .docx and found that none of them work well.
> 
> You seemed more impressed a few months ago :)
> "Mostly successful experiment: LyX -> LaTeX -> Word using pandoc"
> http://comments.gmane.org/gmane.editors.lyx.general/76375
> 
> But I imagine that sometimes "mostly" successful is still a failure if
> a few key features are missing.
> 
> Note that Pandoc support in LyX seems like it's just waiting for
> someone to make a patch:
> http://www.lyx.org/trac/ticket/6042

Good catch, Scott. But with a little more investigation later, my perception of 
this route went down substantially. I commented in a thread, "Re: Word won't 
open simplest LyXHTML file," which mysteriously does not appear in the archive 
at the above site. So here is partial replay from 2013-01-22:

"LyX -> LaTeX (plain) -> docx using pandoc:

Word (Mac 2011) complains "This file is corrupt and cannot be opened." It then 
offers to repair the file. Results are: inline equation translated and editable 
but with two minor errors (it did not recognize lim as a function and set it in 
italics)--this shows that equation translation _can_ work; standalone equation 
not translated, TeX code is displayed between two $ signs, and equation number 
is lost; image caption is lost, but the spurious word "image" is displayed 
nearby; labels (section, equation) are set as ordinary text within their 
respective domains; cross-references are displayed as ordinary text but with 
nonexistent links; comments are displayed as normal text but in a separate 
paragraph, thus splitting the paragraph in which it is contained into two 
paragraphs; and indexed terms are lost.


LyX -> LaTeX (plain) -> odt using pandoc:
Opened with LibreOffice. The file is reported as corrupt and the program offers 
to repair it. Results--similar to above for Word except: inline equation is 
very poorly typeset and is not editable using the built-in equation editor; 
instead of the picture that was supposed to be a figure, a box is displayed 
which reads "Read error"; the word "image" is not displayed; clicking on the 
footnote cross reference moves the cursor to the crossreference;"

Jerry
> 
> Scott



Re: Converting lyx to odt

2013-05-01 Thread Jerry

On May 1, 2013, at 5:21 AM, ehud.kaplan wrote:

> I had tried to convert from a Lyx document (a Ph.D. thesis, ~140 pages) to 
> LibreOffice (File/Export/HTML).  Much of it worked, but there were many 
> problems: 
>   • Equation numbers moved from right to left
>   • Figures were totally distorted (size scaled up),
>   • Some equations and algorithms were mangled
>   • Several sections appeared centered instead of being left justified as 
> they were originally.
> Using File/Export/LYXHTML produced similar results, although the equation 
> numbers were not mangled.
> In short, such conversions do a lot, but they also leave a lot for manual 
> fixing.  I suspect that if such a path were available, many more people would 
> use Lyx.

I agree, as do many others.

A while back I spent a lot of time evaluating the various  ways to convert LyX 
to .odt or .docx and found that none of them work well. (Apologies to those who 
are reading this who have actually worked on the problem and made substantial 
progress.) Some work with certain restricted sets of features but add an 
equation or something else and they break.

One would hope with all the talk on the developers' list recently with the 
Google Summer of Code that this would be at the top of the list of things to do.

Jerry

> -- 
> Ehud Kaplan, Ph.D.
> Jules & Doris Stein Research to Prevent Blindness Professor
> Director, The laboratory of Visual & Computational Neuroscience
> Director, Center for Excellence in Computational & Systems Neuroscience
> The Friedman Brain Institute
> Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology,
> The Ichan School of Medicine at Mount Sinai 
> One Gustave Levy Place,
> NY, NY, 10029
> 
> 
> 
> 
> 
> On 04/29/2013 08:52 AM, Ray Rashif wrote:
>> On 29 April 2013 07:02, Sotiris Hasapis 
>>  wrote:
>> 
>>> I ' m trying to convert lyx to odt file using the methods described here:
>>> 
>>> http://wiki.lyx.org/Tools/LyX2OpenOffice
>>> 
>>> but nothing seems to work. In fact when taking the convert option :
>>> Latex(plain) to openoffice nothing happens and responds : "Error while
>>> exporting format: odtFile 'C:/Documents and Settings/Owner/Local
>>> Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
>>> was not closed properly."
>>> Any help please?
>>> 
>>> I'm using windows xp, lyx 2.0.
>>> Thank you.
>>> Sotiris.
>>> 
>> From experience this has never proven useful. Interoperability is an
>> issue here with LyX and other word processors. Even if one conversion
>> succeeds (to either a .doc, .docx, .odt or .rtf), you'd likely need to
>> do some clean-up here and there.
>> 
>> A fine compromise I have found is to use elyxer¹ as an intermediary
>> tool. Its HTML output is beautiful, and it works with complex
>> parent-child lyx documents including figures. You could also take a
>> look at pandoc (via LaTeX).²
>> 
>> ¹ 
>> http://elyxer.nongnu.org/
>> 
>> ² 
>> http://johnmacfarlane.net/pandoc/
>> 
>> 
>> 
>> --
>> GPG/PGP ID: C0711BF1
>> 
> 



Re: Word won't open simplest LyXHTML file

2013-01-29 Thread Jerry

On Jan 25, 2013, at 10:31 PM, Pavel Sanda wrote:

> Jerry wrote:
>> It has frequently been suggested on this list that, currently, the best way 
>> to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and 
>> then to open that XHTML file with Word. I have Word 2011 for OS X and this 
>> fails because Word will not open the XHTML file, with the message 
> 
> BTW have you tried open LyXHTML in Firefox/whatever, select all, copy to 
> clipboard and then paste it to LibreOffice/Word/..? IIRC I have success with 
> some simpler documents some time ago.
> 
> Pavel

Hmm I had not thought of that, but just now tried it.

Firefox to both Word and LibreOffice: Utter failure. The text is present but 
all formatting is lost and equations are complete garbage. No figures were 
transferred.

Safari to both: Much better. Formatting is preserved. Equations are much less 
mangled but still not usable, and not recognized as equations. Figures were 
lost but captions and figure numbers were intact.

It't not a surprise that figures didn't make it since they aren't included in 
the XHTML file.

Also, it's only a little surprising that Firefox faired much worse than Safari 
because WebKit-based browsers on OS X, when cutting and pasting to any other 
program, retain font and related information perfectly, whereas Firefox passes 
only the generic text with no formatting.

Jerry

Re: Word won't open simplest LyXHTML file

2013-01-25 Thread Jerry

On Jan 25, 2013, at 1:27 AM, Murat Yildizoglu wrote:

> I have in the pas used Tex2word from Chikrii software with success. Equationa 
> are correctly translated in this case, figures not, but I prefer to include 
> them in the optimal format for Word myself. This is commercial software (a 
> plugin for Word), but it is not expensive and has even a lower education 
> pricing policy. It uses MathType (but the free version of it is enough). 
> Murat
> 
Thanks for that information, Murat. Indeed, Tex2word was one of the Windows 
products that I saw near the top of a Google search.

One question about Word that I have not answered for myself is the relation 
between (on the Mac) Word 2011 and older versions of Word. The 2011 version has 
a built-in equation-setting function while older versions of Word used 
MathType, a separate program. I think this development has paralleled Word on 
Windows. So my question is, is the newer version just a better-integrated 
version of MathType or did Microsoft make their own? I gather that they are not 
compatible with one another.

Jerry



Re: Word won't open simplest LyXHTML file

2013-01-25 Thread Jerry

On Jan 25, 2013, at 1:18 AM, Rainer M Krug wrote:

>>> Unless there is progress from other quarters in the meantime, I suppose 
>>> when the occasion 
>>> arises to make a conversion, I'll look into commercial options on Windows.
> 
> Do they work as expected and reliably?

I have no idea. At least one company is charging $99 (USD) for their product. 

> 
>>> As a Mac user, I can of course run Windows, but I don't relish the idea of 
>>> buying another 
>>> copy of Office, plus converter software for Windows. I don't mind paying 
>>> for commercial 
>>> software except Microsoft stuff which I find is generally of poor quality 
>>> (in fact, I often 
>>> prefer it)

Sorry for that confusing sentence. What I meant to say was that I frequently 
find that someone who charges money for their product is committed to keeping 
it up to date and improving it rather than letting it languish. Of course I say 
that with due deference to the amazing LyX team (and many other open source 
volunteer efforts) but not to a lot of one-person freeware projects who leave a 
sometimes large user base hanging, such as the case of the recent abandonment 
of the great word processor called Bean, on the Mac.

>>> but the extra hassle of going this route, with still unknown results, is 
>>> not 
>>> appealing. I think I recall a Windows converter from LaTeX to Word where 
>>> there was also 
>>> offered a manual conversion of anything that their software did not 
>>> convert, for an 
>>> additional fee per megabyte over a certain level of file size. What a mess.
> 
> True - even though commercial, could you please report back if you find a 
> usable solution, as hee
> are quite a few users fighting regul;arly with conversion issues.

Of course.

Jerry



Re: Word won't open simplest LyXHTML file

2013-01-24 Thread Jerry

On Jan 24, 2013, at 1:42 AM, Rainer M Krug wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 24/01/13 01:02, Jerry wrote:
>> 
>> On Jan 23, 2013, at 1:02 AM, Rainer M Krug wrote:
>> 
>> On 22/01/13 23:37, Jerry wrote:
>>>>> 
>>>>> On Jan 22, 2013, at 1:38 AM, Rainer M Krug wrote:
>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Also, I played with pandoc a while back and its conversion of a very 
>>>>>>> simple LyX file 
>>>>>>> to Word was not perfect. I went LyX -> LaTeX -> docx. I did not 
>>>>>>> investigate setting 
>>>>>>> options very much. I recall that equations made the trip and were 
>>>>>>> editable in Word
>>>>>>> 2011 (Mac) built-in equation editor, but equation numbers were lost. 
>>>>>>> Today's effort,
>>>>>>> also on a simple but different document, LyX -> LaTeX -> docx, one 
>>>>>>> equation was not
>>>>>>> typeset (only the markup appeared), a .eps file was not found even 
>>>>>>> though it was
>>>>>>> present, and section labels were translated as literal text. Converting 
>>>>>>> to .odt was
>>>>>>> worse, and at least once caused it to crash when it was attempting to 
>>>>>>> repair what it
>>>>>>> thought was a damaged converted file. (But what _doesn't_ cause 
>>>>>>> LibreOffice to
>>>>>>> crash?)
>>>>>> 
>>>>>> I also tried to go the LyX -> LaTeX -> docx route, but the results were 
>>>>>> not as usable
>>>>>> as via xhtml. So I would suggest to try the route via xhtml.
>>>>> 
>>>>> How did you get from XHTML -> docx? Pandoc (according to the first 
>>>>> paragraph of the
>>>>> user's manual) does not accept XHTML input files. Jerry
>> 
>> Well - using
>> 
>> pandoc -o newfile.docx newfile1.xhtml
>> 
>> works as expected and produces a docx file.
>> 
>> So I can only say it works. I only used the converters and format 
>> definitions as mentioned 
>> earlier.
>> 
>> 
>> Truy it:
>> 
>> simple lyx file, export to LyXhtml and use above command to convert to docx.
>> 
>> Cheers,
>> 
>> Rainer
>> 
>>> Thanks, Ranier. I have just now tried this on a simple document (two 
>>> equations, two sections,
>>> a footnote, a figure with caption, a greyed comment, and two cross 
>>> references (to an equation
>>> and to a section).
>> 
>>> As usual, the LyXHTML looks very good. But in the docx, the equations are 
>>> not rendered and 
>>> contain spurious text, the figure caption and figure name are separated 
>>> from the figure and
>>> are shown as normal text, spurious text is inserted relating to the image, 
>>> and all of the 
>>> cross-references move the cursor to the title rather than to where it 
>>> should move. The
>>> footnote is printed as ordinary text as is the greyed text also.
> 
> Without doubt this is not perfect. As I said, I can't comment on equations 
> and I did not worry
> about the captions. Have you tried LyX -> eLyXer -> pandoc as well?
> 
>> 
>>> pandoc -o newfile.odt newfile1.xhtml
>> 
>>> results in a similar result, but with completely nonfunctional cross 
>>> references and no
>>> spurious text relating to the figure image.
>> 
>>> I'm using OS X, LyX 2.0.5, Word 2011, LibreOffice 4.0.0.1, and pandoc 
>>> 1.9.4.2.
> 
> For my case (no crossreferences, no inseted references, but formating in the 
> text (italic for
> species names) and only some pictures which I deleted anyway to reduce the 
> size of the docx as I
> had to email it for further revisions it worked better and faster then any 
> other solution.
> 
> Have you tried to go ia LaTeX and pandoc?

Yes. I have commented on this recently.

LyX -> LaTeX (plain) -> docx using pandoc:

Word (Mac 2011) complains "This file is corrupt and cannot be opened." It then 
offers to repair the file. Results are: inline equation translated and editable 
but with two minor errors (it did not recognize lim as a function and set it in 
italics)--this shows that equation translation _can_ work; standalone equation 
not translated, TeX code is displa

Re: Word won't open simplest LyXHTML file

2013-01-23 Thread Jerry

On Jan 23, 2013, at 1:02 AM, Rainer M Krug wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 22/01/13 23:37, Jerry wrote:
>> 
>> On Jan 22, 2013, at 1:38 AM, Rainer M Krug wrote:
>> 
>>>> 
>>>> 
>>>> Also, I played with pandoc a while back and its conversion of a very 
>>>> simple LyX file to
>>>> Word was not perfect. I went LyX -> LaTeX -> docx. I did not investigate 
>>>> setting options
>>>> very much. I recall that equations made the trip and were editable in Word 
>>>> 2011 (Mac)
>>>> built-in equation editor, but equation numbers were lost. Today's effort, 
>>>> also on a simple
>>>> but different document, LyX -> LaTeX -> docx, one equation was not typeset 
>>>> (only the
>>>> markup appeared), a .eps file was not found even though it was present, 
>>>> and section labels
>>>> were translated as literal text. Converting to .odt was worse, and at 
>>>> least once caused it
>>>> to crash when it was attempting to repair what it thought was a damaged 
>>>> converted file.
>>>> (But what _doesn't_ cause LibreOffice to crash?)
>>> 
>>> I also tried to go the LyX -> LaTeX -> docx route, but the results were not 
>>> as usable as via 
>>> xhtml. So I would suggest to try the route via xhtml.
>> 
>> How did you get from XHTML -> docx? Pandoc (according to the first paragraph 
>> of the user's 
>> manual) does not accept XHTML input files. Jerry
> 
> Well - using
> 
> pandoc -o newfile.docx newfile1.xhtml
> 
> works as expected and produces a docx file.
> 
> So I can only say it works. I only used the converters and format definitions 
> as mentioned earlier.
> 
> 
> Truy it:
> 
> simple lyx file, export to LyXhtml and use above command to convert to docx.
> 
> Cheers,
> 
> Rainer

Thanks, Ranier. I have just now tried this on a simple document (two equations, 
two sections, a footnote, a figure with caption, a greyed comment, and two 
cross references (to an equation and to a section).

As usual, the LyXHTML looks very good. But in the docx, the equations are not 
rendered and contain spurious text, the figure caption and figure name are 
separated from the figure and are shown as normal text, spurious text is 
inserted relating to the image, and all of the cross-references move the cursor 
to the title rather than to where it should move. The footnote is printed as 
ordinary text as is the greyed text also.

pandoc -o newfile.odt newfile1.xhtml

results in a similar result, but with completely nonfunctional cross references 
and no spurious text relating to the figure image.

I'm using OS X, LyX 2.0.5, Word 2011, LibreOffice 4.0.0.1, and pandoc 1.9.4.2.

Jerry

>> 
>>> You should try both converters (the build in and eLyXe), as they performed 
>>> differently on 
>>> different objects. As my document did not contain any equations, I can not 
>>> comment on that.
>>> 
>>> I must say, that I also used pandoc to convert to odt and then converted 
>>> the odt to docx
>>> with OpenOffice (this was before LibreOffice...) and it also worked well.
>>> 
>>> I can only suggest to try the different paths out and see which works best, 
>>> and then post
>>> your experiences here and add them to  http://www.lyx.org/trac/ticket/6042 
>>> so that there is
>>> some progress with pandoc support in LyX.
>>> 
>>> Cheers,
>>> 
>>> Rainer
>>> 
>>> 
>>>> 
>>>> Jerry
>> 
>> 
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> 
> iQEcBAEBAgAGBQJQ/5kMAAoJENvXNx4PUvmCrMcIAKPlUM39ihrVVGfAWgbyyv9B
> eqNmrpj4VvAgkUppfDmjwD2kK1TMjuvJA7ImQ+zx5/M3mz8otXgQOZIbJzzzYq0u
> NRjsBvIGmrYAPToC8gjcaTkn0S+qoWVO80gmrDVorSutIkZDAzpefgdLIeNQecz7
> 927loMioyZtLhikxtI6WeZfpI423zY7RT0tdQZW1MpNVOXxqP1XU5Dob3ljJe5ZW
> wHDTovgg85r1BEaJX+SfkIkhJOiKu/uPfLbKw3+APlrSKIlZpWGUrvfnKYweCbtr
> dnbFg21rJPlG2gwK+uoatxOAsCLIA+Ybd5eS9l19SxCx5nSNrSk2gWEFgwa9sBU=
> =Lwnd
> -END PGP SIGNATURE-
> 



Re: Word won't open simplest LyXHTML file

2013-01-22 Thread Jerry

On Jan 22, 2013, at 1:38 AM, Rainer M Krug wrote:

>> 
>> 
>> Also, I played with pandoc a while back and its conversion of a very simple 
>> LyX file to Word was
>> not perfect. I went LyX -> LaTeX -> docx. I did not investigate setting 
>> options very much. I
>> recall that equations made the trip and were editable in Word 2011 (Mac) 
>> built-in equation
>> editor, but equation numbers were lost. Today's effort, also on a simple but 
>> different document,
>> LyX -> LaTeX -> docx, one equation was not typeset (only the markup 
>> appeared), a .eps file was
>> not found even though it was present, and section labels were translated as 
>> literal text.
>> Converting to .odt was worse, and at least once caused it to crash when it 
>> was attempting to
>> repair what it thought was a damaged converted file. (But what _doesn't_ 
>> cause LibreOffice to
>> crash?)
> 
> I also tried to go the LyX -> LaTeX -> docx route, but the results were not 
> as usable as via xhtml. So I would suggest to try the route via xhtml.

How did you get from XHTML -> docx? Pandoc (according to the first paragraph of 
the user's manual) does not accept XHTML input files.
Jerry

> You should try both converters (the build in and eLyXe), as they performed 
> differently on different objects. As my document did not contain any 
> equations, I can not comment on that.
> 
> I must say, that I also used pandoc to convert to odt and then converted the 
> odt to docx with OpenOffice (this was before LibreOffice...) and it also 
> worked well.
> 
> I can only suggest to try the different paths out and see which works best, 
> and then post your experiences here and add them to  
> http://www.lyx.org/trac/ticket/6042 so that there is some progress with 
> pandoc support in LyX.
> 
> Cheers,
> 
> Rainer
> 
> 
>> 
>> Jerry



Re: Word won't open simplest LyXHTML file

2013-01-21 Thread Jerry

On Jan 18, 2013, at 1:44 AM, Rainer M Krug wrote:

> On 18/01/13 09:10, Rainer M Krug wrote:
>> On 18/01/13 05:17, Jerry wrote:
>>> 
>>> On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote:
>>> 
>>>> Hi Jerry,
>>>> 
>>>> I am the primary author of eLyXer.
>>>> 
>>>> On Thu, Jan 17, 2013 at 4:49 AM, Jerry >>> <mailto:lancebo...@qwest.net>> wrote:
>>>> 
>>>> Thanks for that tip. I checked it out. It's just a Python thing so it 
>>>> works fine on OS X, 
>>>> and LyX picked it up as advertised.
>>>> 
>>>> 
>>>> Yes, I can confirm that OS X is fully supported.
>>>> 
>>>> 
>>>> The output on my simple test case does look nice in a browser, but I get 
>>>> the same error 
>>>> opening with Word as I first described: "The XML file bla bla bla cannot 
>>>> be opened..."
>>>> etc. I thought maybe my copy of Word was broken but it reads other HTML 
>>>> files fine--I'm
>>>> guessing they don't have the XML stuff in them, however.
>>>> 
>>>> 
>>>> Word does not like XHTML very much; you need to export to HTML 4, using 
>>>> the --html option.
>>>> http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are doing the 
>>>> conversion
>>>> inside LyX, instead of on the command line, you have to add the --html in 
>>>> the conversion
>>>> interface.
>>>> 
>>>> 
>>>> I checked the HTML file that eLyXer made with the W3C page and got: "The 
>>>> uploaded document 
>>>> "-" was successfully checked as XHTML 1.0 Transitional."
>>>> 
>>>> 
>>>> Yes, eLyXer outputs pure XHTML.
>>>> 
>>>> 
>>>> Also--eLyXer does not appear to use MathML so I don't think there is any 
>>>> hope of getting 
>>>> editable math into Word using this method. (But I haven't read all of the 
>>>> eLyXer docs.)
>>>> 
>>>> 
>>>> eLyXer has several options for Math output:
>>>> http://elyxer.nongnu.org/userguide.html#sub:Math Sadly, none of them is 
>>>> MathML, since at
>>>> the time eLyXer was conceived it was not very widely supported, and I have 
>>>> not found the
>>>> time to add it.
>>>> 
>>>> Hope this helps,
>>>> 
>>>> Alex Fernández.
>>>> 
>>> Hi, Alex,
>>> 
>>> Thanks for the comments and for the great tool. It does what it claims to 
>>> to, convert LyX to 
>>> HTML, with lots of math options. The default conversion looks great in a 
>>> browser.
>>> 
>>> I tried your --html suggestion and indeed Word opens it, and displays it 
>>> much as a browser 
>>> does. Unfortunately, the HTML limitations are apparent; this is probably as 
>>> good as a
>>> HTML-only conversion can get.
>>> 
>>> In my slow-witted way, I'm starting to understand why Word will not open 
>>> the various XML 
>>> formats that I'm throwing at it. (I also played with TeXht today (and the 
>>> Mac GUI over it, 
>>> SimpleTeXht. This method also makes XML in some variations, and .odt.) So 
>>> Word isn't 
>>> broken—it's just not made to recognize this particular kind of XML. (I want 
>>> to use the word 
>>> "schema" but don't really know what I'm talking about.) So What is missing, 
>>> as has been
>>> stated in previous threads, is a converter from the XML that we're seeing 
>>> to .docx, it
>>> seems.
>> 
>> check pandoc - I am using pandoc to convert xhtml to docx and odt - works 
>> perfect for me. I
>> just
> 
> Ups - should have been:
> ###
> I just added the following converter:
> 
> \converter "xhtml" "msdocx" "pandoc -o $$o $$i" ""
> \converter "xhtml" "odt lo" "pandoc -o $$o $$i" ""
> ###

Hi Ranier,

I added these two lines to my preferences file and now I see to additional 
items in the Export list, but I don't know how to use them. "Converter" implies 
feeding them xhtml files but all I can see to do is to select them in the 
Export list which merely creates e.g. a .msdocx file, whatever that is.

Also, I played with pandoc a while back and its conversion of a very simple LyX 
file to Word was not perfect. I went LyX -> LaTeX -> docx. I did not 
investigate setting options very much. I recall that equations made the trip 
and were editable in Word 2011 (Mac) built-in equation editor, but equation 
numbers were lost. Today's effort, also on a simple but different document, LyX 
-> LaTeX -> docx, one equation was not typeset (only the markup appeared), a 
.eps file was not found even though it was present, and section labels were 
translated as literal text. Converting to .odt was worse, and at least once 
caused it to crash when it was attempting to repair what it thought was a 
damaged converted file. (But what _doesn't_ cause LibreOffice to crash?)

Jerry
> 
>> 
>> \converter "xhtml" "msdocx" "pandoc -o $$o $$i" "" \converter "xhtml" "odt 
>> lo" "pandoc -o $$o
>> $$i" ""added the following converter:
>> 
>> You have to play with the LyX xhtml or the eLyXer xhtml - I used LyXHTRML 
>> because it workded 
>> better in my case.
>> 
>> I really think that pandoc should be detected automatically by LyX (when 
>> doing reconfigure)
>> and added as it provides very usable conversions.
>> 
>> 
>> Cheers,
>> 
>> Rainer
>> 
>>> 
>>> Jerry
>> 
>> 
> 
> 



Re: Word won't open simplest LyXHTML file

2013-01-21 Thread Jerry

On Jan 18, 2013, at 6:15 AM, Steve Litt wrote:

> On Thu, 17 Jan 2013 21:17:28 -0700, Jerry said:
>> 
>> On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote:
>> 
>>> Hi Jerry,
>>> 
>>> I am the primary author of eLyXer.
>>> 
>>> On Thu, Jan 17, 2013 at 4:49 AM, Jerry  wrote:
>>> Thanks for that tip. I checked it out. It's just a Python thing so
>>> it works fine on OS X, and LyX picked it up as advertised.
>>> 
>>> Yes, I can confirm that OS X is fully supported.
>>> 
>>> The output on my simple test case does look nice in a browser, but
>>> I get the same error opening with Word as I first described: "The
>>> XML file bla bla bla cannot be opened..." etc. I thought maybe my
>>> copy of Word was broken but it reads other HTML files fine--I'm
>>> guessing they don't have the XML stuff in them, however.
>>> 
>>> Word does not like XHTML very much; you need to export to HTML 4,
>>> using the --html option.
>>> http://elyxer.nongnu.org/userguide.html#sub:HTML-Code If you are
>>> doing the conversion inside LyX, instead of on the command line,
>>> you have to add the --html in the conversion interface. I checked
>>> the HTML file that eLyXer made with the W3C page and got: "The
>>> uploaded document "-" was successfully checked as XHTML 1.0
>>> Transitional."
>>> 
>>> Yes, eLyXer outputs pure XHTML.
>>> 
>>> Also--eLyXer does not appear to use MathML so I don't think there
>>> is any hope of getting editable math into Word using this method.
>>> (But I haven't read all of the eLyXer docs.)
>>> 
>>> eLyXer has several options for Math output:
>>>  http://elyxer.nongnu.org/userguide.html#sub:Math
>>> Sadly, none of them is MathML, since at the time eLyXer was
>>> conceived it was not very widely supported, and I have not found
>>> the time to add it.
>>> 
>>> Hope this helps,
>>> 
>>> Alex Fernández.
>>> 
>> Hi, Alex,
>> 
>> Thanks for the comments and for the great tool. It does what it
>> claims to to, convert LyX to HTML, with lots of math options. The
>> default conversion looks great in a browser.
>> 
>> I tried your --html suggestion and indeed Word opens it, and displays
>> it much as a browser does. Unfortunately, the HTML limitations are
>> apparent; this is probably as good as a HTML-only conversion can get.
>> 
>> In my slow-witted way, I'm starting to understand why Word will not
>> open the various XML formats that I'm throwing at it. (I also played
>> with TeXht today (and the Mac GUI over it, SimpleTeXht. This method
>> also makes XML in some variations, and .odt.) So Word isn't
>> broken—it's just not made to recognize this particular kind of XML.
>> (I want to use the word "schema" but don't really know what I'm
>> talking about.) So What is missing, as has been stated in previous
>> threads, is a converter from the XML that we're seeing to .docx, it
>> seems.
>> 
>> Jerry
> 
> Hi Jerry,
> 
> Did you ever consider trying to open the LyXML or whatever it's called
> in LibreOffice, and then from LibreOffice exporting it to MSWord
> format? That just might work.
> 
> Thanks
> 
> SteveT

I also found xhtml2odt at http://xhtml2odt.org/ but I can't get it to work for 
some reason. Also, the docs say that it will not convert graphics--these must 
be imported and linked in LibreOffice manually.

In any case, it looks like any path through (X)HTML is going to convert any 
vector graphics to something else, probably png, which is not a good service to 
e.g. PDFs.

Jerry

Re: Word won't open simplest LyXHTML file

2013-01-17 Thread Jerry

On Jan 17, 2013, at 2:30 AM, Alex Fernandez wrote:

> Hi Jerry,
> 
> I am the primary author of eLyXer.
> 
> On Thu, Jan 17, 2013 at 4:49 AM, Jerry  wrote:
> Thanks for that tip. I checked it out. It's just a Python thing so it works 
> fine on OS X, and LyX picked it up as advertised.
> 
> Yes, I can confirm that OS X is fully supported.
>  
> The output on my simple test case does look nice in a browser, but I get the 
> same error opening with Word as I first described: "The XML file bla bla bla 
> cannot be opened..." etc. I thought maybe my copy of Word was broken but it 
> reads other HTML files fine--I'm guessing they don't have the XML stuff in 
> them, however.
> 
> Word does not like XHTML very much; you need to export to HTML 4, using the 
> --html option.
>   http://elyxer.nongnu.org/userguide.html#sub:HTML-Code
> If you are doing the conversion inside LyX, instead of on the command line, 
> you have to add the --html in the conversion interface.
>  
> I checked the HTML file that eLyXer made with the W3C page and got: "The 
> uploaded document "-" was successfully checked as XHTML 1.0 Transitional."
> 
> Yes, eLyXer outputs pure XHTML.
>  
> Also--eLyXer does not appear to use MathML so I don't think there is any hope 
> of getting editable math into Word using this method. (But I haven't read all 
> of the eLyXer docs.)
> 
> eLyXer has several options for Math output:
>   http://elyxer.nongnu.org/userguide.html#sub:Math
> Sadly, none of them is MathML, since at the time eLyXer was conceived it was 
> not very widely supported, and I have not found the time to add it.
> 
> Hope this helps,
> 
> Alex Fernández.
> 
Hi, Alex,

Thanks for the comments and for the great tool. It does what it claims to to, 
convert LyX to HTML, with lots of math options. The default conversion looks 
great in a browser.

I tried your --html suggestion and indeed Word opens it, and displays it much 
as a browser does. Unfortunately, the HTML limitations are apparent; this is 
probably as good as a HTML-only conversion can get.

In my slow-witted way, I'm starting to understand why Word will not open the 
various XML formats that I'm throwing at it. (I also played with TeXht today 
(and the Mac GUI over it, SimpleTeXht. This method also makes XML in some 
variations, and .odt.) So Word isn't broken—it's just not made to recognize 
this particular kind of XML. (I want to use the word "schema" but don't really 
know what I'm talking about.) So What is missing, as has been stated in 
previous threads, is a converter from the XML that we're seeing to .docx, it 
seems.

Jerry

Re: Word won't open simplest LyXHTML file

2013-01-16 Thread Jerry

On Jan 16, 2013, at 5:28 PM, Doug Laidlaw wrote:

> Jerry wrote:
> 
>> It has frequently been suggested on this list that, currently, the best
>> way to get a LyX file into Microsoft Word is to export from LyX to LyXHMTM
>> and then to open that XHTML file with Word. I have Word 2011 for OS X and
>> this fails because Word will not open the XHTML file, with the message
>> 
>> 
>> The XML file bla bla bla cannot be opened because there are problems with
>> the contents. Details
>> No error detail available
>> Location: 2
>> 
>> 
>> This happens even for the simplest LyX file with only one sentence and no
>> fancy stuff--the entire contents of one test file is simply "Test
>> sentence". However, the exported XHTML files doe open OK in Firefox and
>> displays math in acceptable, if not perfect, form. (Firefox renders MathML
>> out of the box--why can't other browsers join the 20th century.)
>> 
>> On the same "Test sentence" file exported via LyXHTML, I opened it in
>> TextMate, a very popular and extensible text editor on OS X, and applied
>> the "Validate syntax" command that is available therein, resulting in this
>> output:
>> 
>> 
>> xmllint output
>> error: colon are forbidden from PI names 'IS10744:arch'
>> >  ^
>> Test sentence.
>> 
>> 
>> I am using LyX 2.0.5 for OS X. I _think_ I have been able to do this in
>> the past so I don't know why I can't do it now.
>> 
>> I am preparing to start a major writing project and I want to understand
>> as much as I can about this--I'm pretty sure that there will be a huge
>> incentive later to have a usable if not perfect version of my LyX work
>> available in Word; this will include math.
>> 
>> I know that LyX -> Word is a frequent topic on this list so I'm not
>> necessarily looking for a complete rehashing of the topic--only why
>> LyXHTML -> Word fails.
>> 
>> Jerry
> 
> I used eLyxer (http://elyxer.nongnu.org/) to export from Linux to HTML then 
> to epub, but it may not support the Mac.
> 
> HTH
> 
> Doug.
> 
Thanks for that tip. I checked it out. It's just a Python thing so it works 
fine on OS X, and LyX picked it up as advertised.

The output on my simple test case does look nice in a browser, but I get the 
same error opening with Word as I first described: "The XML file bla bla bla 
cannot be opened..." etc. I thought maybe my copy of Word was broken but it 
reads other HTML files fine--I'm guessing they don't have the XML stuff in 
them, however.

I checked the HTML file that eLyXer made with the W3C page and got: "The 
uploaded document "-" was successfully checked as XHTML 1.0 Transitional."

How does your method, LyX -> HTML -> epub, get me into Word? I don't think Word 
reads epub, does it?

Also--eLyXer does not appear to use MathML so I don't think there is any hope 
of getting editable math into Word using this method. (But I haven't read all 
of the eLyXer docs.)

Jerry

Word won't open simplest LyXHTML file

2013-01-16 Thread Jerry
It has frequently been suggested on this list that, currently, the best way to 
get a LyX file into Microsoft Word is to export from LyX to LyXHMTM and then to 
open that XHTML file with Word. I have Word 2011 for OS X and this fails 
because Word will not open the XHTML file, with the message 


The XML file bla bla bla cannot be opened because there are problems with the 
contents.
Details
No error detail available
Location: 2


This happens even for the simplest LyX file with only one sentence and no fancy 
stuff--the entire contents of one test file is simply "Test sentence". However, 
the exported XHTML files doe open OK in Firefox and displays math in 
acceptable, if not perfect, form. (Firefox renders MathML out of the box--why 
can't other browsers join the 20th century.)

On the same "Test sentence" file exported via LyXHTML, I opened it in TextMate, 
a very popular and extensible text editor on OS X, and applied the "Validate 
syntax" command that is available therein, resulting in this output:


xmllint output
error: colon are forbidden from PI names 'IS10744:arch'
 Word is a frequent topic on this list so I'm not necessarily 
looking for a complete rehashing of the topic--only why LyXHTML -> Word fails.

Jerry

Re: [ANNOUNCE] LyX 2.0.5

2012-11-26 Thread Jerry

On Nov 26, 2012, at 2:39 PM, Uwe Stöhr wrote:

> Am 22.11.2012 10:31, schrieb Jean-Marc Lasgouttes:
> 
>>> The scrolling bug was a bug in Qt and is now fixed in Qt 4.8.3:
>>> http://qt-project.org/uploads/community_updates/changes-4.8.3
>> 
>> What is the relevant description? I did not find any obvious windows-only 
>> change.
> 
> I thought the problem was not Windows-specific. However it could have been 
> this:
> 
> - Fix QListWidget scrolling with keys when there are hidden items 
> [QTBUG-21804]
> - Take account of hidden items in QListView when using scrollTo [QTBUG-21804]
> 
> regards Uwe
> 
I doubt that this is relevant. Without knowing anything about Qt, I'll guess 
that scrolling lists are not how the main content is LyX is drawn.

Jerry

Re: [ANNOUNCE] LyX 2.0.5

2012-11-19 Thread Jerry
On Nov 16, 2012, at 2:55 PM, Andrew Parsloe wrote:

> On 16/11/2012 9:52 p.m., Olivier Ripoll wrote:
>> On 12.11.2012 17:26, rgheck wrote:>
>> > We are pleased to announce the release of LyX 2.0.5. This is the fifth
>> > maintenance release in the 2.0.x series.
>> >
>> > LyX 2.0.5 is the result of on-going efforts to make our stable version
>> > even more reliable and stable. We have fixed a number of bugs and made
>> > a number of improvements. These are detailed below. We encourage all
>> > LyX users to upgrade to this version.
>> >
>> [...]
>> 
>> Hi,
>> 
>> I just reported it on the tracker, but although it's not mentioned in
>> the release notes, this version fixes bug 8135 for me. So it's even
>> better that expected :-)
>> 
>> Many thanks to the devs for the good work, and best regards!
>> 
>> Olivier.
>> 
> 
> I also experienced the scrolling problem (Windows Vista) and you're right, it 
> is no longer there in LyX 2.0.5.
> 
> Andrew

Not sure what the Windows scrolling problem was but the much-discussed (at 
least on the developers' list) OS X scrolling problem remains--laggy, sluggish, 
jerky, jumpy, slow, and aggravating.

Jerry

Re: Mostly successful experiment: LyX -> LaTeX -> Word using pandoc

2012-08-08 Thread Jerry

On Aug 8, 2012, at 10:44 AM, Nico Williams wrote:

> On Wed, Aug 8, 2012 at 1:13 AM, Jerry  wrote:
>> I just tried a quick experiment with pandoc, saving a 3.5 page LyX document 
>> (article class) of mostly lorem ipsum as LaTeX and then using pandoc to 
>> convert that to .docx, Word's XML format. I then viewed the .docx in 
>> Microsoft Word 2011 for OS X (Macintosh).
> 
> Sounds very cool, but I would think that anytime you want to convert
> to some XML schema it's probably easier to export to LyXHTML and then
> write and apply an XSLT to convert to the desired schema.  This has
> worked for me before.  It's very possible that pandoc uses XSLT under
> the covers, in which case you may be able to hack on one of those
> stylesheets till you get it to do what you want.
> 
> It would be very cool if LyX could add export formats as the
> composition of LyXHTML and XSLs!
> 
> Nico
> --

Maybe some of you might go to the pandoc mailing list and make these 
suggestions. My understanding is fairly superficial and my interest in LyX so 
far is in learning it a little in preparation for some big upcoming writing 
projects.

pandoc list page:
http://johnmacfarlane.net/pandoc/lists.html

Jerry

Re: Anyone convert LyX to ODT or docx using pandoc?

2012-08-03 Thread Jerry
How did it fail?

I'm currently working with the pandoc OS X packager on a problem with the 
installer.

Jerry

On Aug 3, 2012, at 10:26 AM, UD wrote:

> I tried it a couple of times (lyx --> anything or Latex --> anything.  It 
> failed with files that presented no problems
> to either Lyx or Texworks.
> This was under Lubuntu 12.04, using the version that was in the repositories.
> 
> Ehud
> 
> 
> 
> On 08/02/2012 04:01 AM, Jerry wrote:
>> Has anyone used LyX -> LaTeX -> ODT
>> or  LyX -> LaTeX -> docx
>> 
>> using
>> 
>> pandoc http://johnmacfarlane.net/pandoc/index.html ?
>> 
>> This is an easy-to-use (it says) command line tool. This in particular 
>> caught my attention:
>> 
>> "LaTeX math is rendered in docx using native Word equation objects."
>> 
>> Is this (pandoc) too good to be true?
>> 
>> Jerry
> 



Re: Working in LyX from the get-go---more or less

2012-08-02 Thread Jerry

On Jul 31, 2012, at 4:10 AM, Eric Weir wrote:

> 
> I've been away from LyX for a while, writing in Vim. I now have a document 
> that I need to cut down to 3,500 words from just under 5,000, put references 
> in, and get into APA format in Word. Normally, I would dump the draft in 
> Scrivener, do this work, then compile for Word. I really want to get 
> completely over into working within Vim/LyX/LaTeX. I'm considering dumping 
> the draft in LyX and working from within it. My deadline---probably not a 
> hard one---is tomorrow.
> 
> Having been away from LyX for a while, I'm a little rusty. I don't know if 
> this is even possible. When I click on "View other formats," the RTF format 
> is greyed out. If in fact I can compile for or export to RTF, I'd like to 
> give it a try.

I started a new thread that might be of interest to this one (and how many 
before?):

The thread is "Anyone convert LyX to ODT or docx using pandoc?"

Jerry

Re: Slow scrolling

2012-01-09 Thread Jerry
It looks like it's about time to wrap up this thread. It has been a good 
exchange and I believe that the developers have been helpful and suitably 
notified. If someone thinks it is better to file a formal bug report, please 
let me know.

I will summarize for myself by saying that, even though I am still in 
evaluation mode with LyX and haven't used it for an extended period of time, I 
estimate that the scrolling behavior with a recent version of 2.1svn, with 

\force_paint_single_char false

added to the preferences file *, would not cause undue scrolling fatigue or 
aggravation with extended use. However, this combination does result in a 
misplaced cursor at times.

Thanks everyone.

Jerry

* Although this is the line that I recall pasting into Preferences, the line 
that is there now is
\force_paint_single_char "0". Maybe the program changed it. In any case, 
changing "0" to "1" degrades scrolling substantially and does not misplace the 
cursor.

Re: Slow scrolling

2012-01-06 Thread Jerry

On Jan 6, 2012, at 3:29 AM, Murat Yildizoglu wrote:

> In my case, scrolling the User Guide, I can see Lyx 2.0.2 to peak to 80% for 
> very short moments, but the rest of the time, it takes around 30% (so 15% 
> since I have two processors). My processors remain globally inactive at 60% 
> even if I am compiling Wine in MacPorts in the same time and listening music 
> in iTunes. 

I have found that CPU usage increases (to 100% of a processor) when scrolling 
text-heavy documents or (or text-heavy parts of documents), and is less when 
scrolling through parts of documents that have more white space and/or 
graphics. This is what originally led me to suspect a problem with character 
rendering.

Can you monitor CPU usage while rapidly scrolling back-and-forth over a 
text-heavy document? I suppose that would have the same CPU effect as scrolling 
top-to-bottom of an all-text document.f

Jerry

Re: Slow scrolling

2012-01-06 Thread Jerry

On Jan 6, 2012, at 1:47 AM, Olivier Ripoll wrote:

> For the sake of completness, I have to say I now notice LyX taking 50% CPU in 
> all versions while scrolling fast, with I did not remember seeing with 2.0.1 
> before (perhaps I was using another document and I was scrolling on smaller 
> areas ...).
> 
> Best regards,
> 
> Olivier

50% = 1 processor out of two? I have a two-processor Mac and scrolling takes 
100% of one processor.
Jerry



Re: Slow scrolling

2012-01-05 Thread Jerry

On Jan 4, 2012, at 9:13 PM, Jerry wrote:

> 
> On Jan 4, 2012, at 3:03 PM, Stephan Witt wrote:
> 
>> I've prepared a LyX-package with Qt-4.8.0 and the upload is here:
>> 
>> http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg
>> http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg.sig
>> 
>> The Qt 4.8.0 ChangeLog contains this:
>> 
>> Qt for Mac OS X
>> ---
>> - Alien widgets is now used by default for Qt/Cocoa on Mac OS X. 
>> - Qt/Cocoa on Mac OS X has now full support for the raster paint engine.
>> - QApplication has now implemented macEventFilter for Qt/Cocoa
>> - HarfBuzz can now be used as an optional text layout engine on Mac OS X. 
>> [QTBUG-17728]
>> - Qt shows some love to OS X Lion (10.7).
>> 
>> Perhaps this is an improvement on Lion? Please, can someone give it a try?
>> 
>> Stephan
> 
> 10.6.8, 2.1svn
> Scrolling User's Guide takes 13 seconds.
> No misplaced cursor.
> 
> This scroll rate is between what I measured for 2.0.0 and 2.0.2 using the 
> special preference file line.
> 
> Subjectively, for me, the somewhat slower difference for 2.1svn puts the 
> experience back into "painful" regime, but it is still better than 2.0.2 
> without the special preference file line.
> 
> Jerry

After adding \force_paint_single_char false to the preferences file for 2.1svn:
Scrolling User's Guide takes 9 seconds on first pass, 7-8 seconds for 
subsequent passes.
The cursor is misplaced on long line of m's.

Another artifact with these conditions appears: when click-dragging over text 
to select it, _some_ letters at and to the right of the position of the cursor 
will jump a few pixels left and right as the cursor passes over them. Doing 
this over a long line of m's is especially fun. It's as though characters under 
the selection color are being drawn with a different metric than the ones that 
have not been selected yet.

Normal scrolling (trackpad, thumb bar) is noticeably better than any of the 
other results I have reported. But the cursor problem is present now.

Jerry

Re: Slow scrolling

2012-01-05 Thread Jerry

On Jan 5, 2012, at 1:26 AM, Olivier Ripoll wrote:

> On 04.01.2012 22:39, Jerry wrote:
>> 
>> On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:
> [...]
>>> 
>>> FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2
>>> (binary installation) and Mac OSX 10.7.2. It has occurred for me with
>>> small documents as well as large ones. Mouse-scrolling lags substantially.
>>> 
>>> I just tried it on another Mac system running OSX 10.6.8 and LyX
>>> 2.0.0. No problems there. I then updated to LyX 2.0.2 on 10.6.8 and
>>> there were no problems with that either.
>>> 
>>> So it appears that this issue is unique to LyX on OSX 10.7.x?
>> 
>> No—I'm on OS X 10.6.8.
>> Jerry
>>> 
>>> James
>> 
> 
> If the issue I reported is the same (it seems the definition of "slow 
> scrolling" can cover different behaviours), it happens also on Windows 7.
> 
> BR,
> 
> O.
> 
Interesting. So now we have reports of slow scrolling problems on multiple 
versions of OS X and multiple versions of Windows, where the problem got worse 
with 2.0.2 relative to 2.0.1.

I don't think we have any reports of problems on Linux yet. Don't some versions 
of Linux use Qt as their native GUI engine? If so, maybe somehow there is less 
chance to mess things up since it would then be the native engine for those 
systems.

For those who have reported "no problems" I would respectfully submit that your 
perception is different than that of others and/or your tolerance for interface 
idiosyncrasies is better or you have lower expectations. For anyone who cares 
to compare and who doesn't think their (OS X) box has a problem, simply open 
any PDF into Preview or Skim or any significantly long text file in TextEdit 
and flick through it with the two-finger trackpad swipe or whatever equivalent 
you have with a mouse, then try the same with a LyX file. You should see a 
world of difference. Personally, the two-finger swipe to scroll is totally 
addictive and so effective that often I use that as a shortcut to go all the 
way to the top or bottom of a document instead of using other means.

Jerry

Re: Qt: was Slow scrolling

2012-01-04 Thread Jerry

On Jan 4, 2012, at 11:36 PM, Stephan Witt wrote:

> Am 05.01.2012 um 05:16 schrieb Jerry:
> 
>> Do the developers monitor this list?
> 
> I think so.
> 
>> Or does someone need to file a bug report for the slow scrolling problem?
> 
> Perhaps. But ATM there is no problem description to reproduce it, AFAICS.
> Some users have a problem only on Lion - you have it on Snow Leopard (SL) too.
> I see no problem here on my system (SL) - perhaps I have lower requirements.
> 
> Stephan

BTW, thanks for your help. I gather that you're the person who builds the Mac 
binaries.

Jerry



Qt: was Slow scrolling

2012-01-04 Thread Jerry
Do the developers monitor this list? Or does someone need to file a bug report 
for the slow scrolling problem?

Jerry

Re: Slow scrolling

2012-01-04 Thread Jerry

On Jan 4, 2012, at 3:03 PM, Stephan Witt wrote:

> I've prepared a LyX-package with Qt-4.8.0 and the upload is here:
> 
> http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg
> http://dl.dropbox.com/u/27842660/LyX-2.1.0svn%2Bqt4.8.0-cocoa.dmg.sig
> 
> The Qt 4.8.0 ChangeLog contains this:
> 
> Qt for Mac OS X
> ---
> - Alien widgets is now used by default for Qt/Cocoa on Mac OS X. 
> - Qt/Cocoa on Mac OS X has now full support for the raster paint engine.
> - QApplication has now implemented macEventFilter for Qt/Cocoa
> - HarfBuzz can now be used as an optional text layout engine on Mac OS X. 
> [QTBUG-17728]
> - Qt shows some love to OS X Lion (10.7).
> 
> Perhaps this is an improvement on Lion? Please, can someone give it a try?
> 
> Stephan

10.6.8, 2.1svn
Scrolling User's Guide takes 13 seconds.
No misplaced cursor.

This scroll rate is between what I measured for 2.0.0 and 2.0.2 using the 
special preference file line.

Subjectively, for me, the somewhat slower difference for 2.1svn puts the 
experience back into "painful" regime, but it is still better than 2.0.2 
without the special preference file line.

Jerry

Re: Slow scrolling

2012-01-04 Thread Jerry

On Jan 4, 2012, at 10:14 AM, Murat Yildizoglu wrote:

> Ok, this was exactly what I have done on my system (10.7.2, see my previous 
> mail for full configuration).
> 
> If I use the scroll bars on the left, I can go to the end of the User guide 
> immediately (2 seconds, since I have some difficulty to click on the iPhone's 
> chronometer with the left hand, and start to scroll in Lyx with the right 
> hand). 
> I do not see any lag at all. 
> 
But you don't see _many_ skipped screenfuls, right? In order to get from top to 
bottom of the UG so fast and _appear_ to be scrolling fast, it skips _many_ 
screenfuls. This is because text rendering is so slow (or not buffered) that it 
skips many screenfuls and gives the appearance that it has scrolled rapidly. 
Try scrolling on any native program such as TextEdit or Preview and you will 
see vastly more useful scrolling.

Jerry

Re: Slow scrolling

2012-01-04 Thread Jerry

On Jan 4, 2012, at 2:53 AM, Stephan Witt wrote:

>> 
>> With 2.0.1, there is no cursor placement error.
>> 
>> Oddly, it no longer matters if the line
>> \force_paint_single_char false
>> is in the Preferences file--the behavior is now the same (faster scrolling, 
>> misplaced cursor) with or without that line.
> 
> That's correct. The default for this (internal) preference depends on the 
> Qt-Version.
> 
> Currently I'm looking for the optimal solution... including trying out the 
> Qt-4.8.0 library...
> 
> Stephan

I think that this was a bogus statement by me. I later noticed that the line 
"\force_paint_single_char false" had accidentally been inserted into the 
preferences file in a place that I had not noticed, so when I thought I had 
deleted it or commented it out, the spurious entry was still in the file. My 
tests done later showed that its presence or absence had a factor of 2 on 
scrolling speed in 2.0.2. (See detailed post of scroll tests by me.)

Jerry



Re: Slow scrolling

2012-01-04 Thread Jerry
On Jan 4, 2012, at 4:44 AM, Stephan Witt wrote:

> 
> And this is the result:
> I've opened the users guide and started to page down unto the end once.
> 
> * 2.0.0, 4.6.3 Carbon, 22 Sekunden
> * 2.0.0, 4.6.3 Cocoa, 23 Sekunden
> * 2.0.2, 4.7.2 Cocoa, 20 Sekunden
> * 2.1svn, 4.8.0 Cocoa, 23 Sekunden
> * 2.1svn, 4.8.0 Carbon, 23 Sekunden
> * 2.1svn, 4.6.3 Carbon, 22 Sekunden
> 
> All tests I've made with \force_paint_single_char true and false.
> No real difference.
> 
> You can see it yourself - there is no performance gain or loss on my system 
> (Macbook Pro OS X 10.6.8).
> 
> Jerry, may I ask you to provide some numbers for your use case and for the 
> users guide?
> 
> Stephan

All tests conducted on a MacBook Pro running 10.6.8, with the LyX window taking 
half of the width and the entire height of the screen. Toolbars displayed are 
Standard, View/Update, and Extra. Scrolling was done by clicking and holding in 
the elevator(?) area of the scrolling control area, not on the scroll arrows. 
Scrolling results by Function-downarrow or Function-arrow are the same. All LyX 
were binaries downloaded from lyx.org as of today. As I noted in an earlier 
post to this thread, my attempt to compile 2.1 from SVN failed. Under Energy 
Saver Preferences, the Graphics hardware choice was set to "Better battery 
life."

Preference line "\force_paint_single_char false" out
2.0.2
No cursor misplacement
Scroll User's Guide: 20 seconds
2.0.1
No cursor misplacement
Scroll User's Guide: 10 seconds
2.0.0
No cursor misplacement
Scroll User's Guide: 10 seconds

Preference line "\force_paint_single_char false" in
2.0.2
Cursor misplaced
Scroll User's Guide: 10 seconds
2.0.1
No cursor misplacement
Scroll User's Guide: 10 seconds
2.0.0
No cursor misplacement
Scroll User's Guide: 10 seconds

In all cases where I have indicated UG scrolling in 10 seconds, subsequent 
scrollings of the User's Guide were about 10% faster, presumably because of 
certain objects already being rendered on the first scrolling. However, in the 
20-second UG case, I did not notice any such speed-up.

If the 20-second UG case sounds OK, it isn't—scrolling under thoses conditions, 
whether in UG or a short document, are still excruciatingly slow especially in 
text-heavy parts. (It gets noticeably better in areas of less text.)

In 2.0.2 with the preference line out (the mode related to my complaint), under 
situations of even moderately vigorous two-finger-swipe trackpad scrolling, 
large pieces are skipped in order to make the scrolling happen in a 
"reasonable" time. This makes trying to spot a feature as it speeds by useless, 
as the feature that you are looking for might not be displayed at all. On a 
small file that prints out to a little over two (rather dense—IEEEtrans) pages, 
it is not hard to make the screen jump from the beginning to the end without an 
intervening screenful. (The window width set to 1/2 the screen width, requiring 
3-4 screenfuls to display with normal clicking in the elevator bar.)

Even in the best cases above, scrolling is still laggy relative to native 
applications (but not so bad as to be useless). There is a small but noticeable 
lag from the time two-finger scrolling is initiated and when the screen content 
moves, and another lag between when scrolling is stopped and when the content 
stops moving. Also, try two-finger-scrolling on the trackpad in small rapid 
back-and-forth movements and watch as the screen updates in nearly 180 degree 
opposition to your finger movements, then repeat with e.g. TextEdit or Preview 
or Skim and notice how the content movement matches your finger movement. 
However, I don't want to make that a standard that LyX should meet; the 
behavior under the "10-second" cases above is good enough to be useful.

Jerry



Re: Slow scrolling

2012-01-04 Thread Jerry

On Jan 4, 2012, at 8:46 AM, James Sutherland wrote:

> On Tue, Jan 3, 2012 at 5:08 PM, Jerry  wrote:
> 
> On Jan 3, 2012, at 4:51 PM, Steve Litt wrote:
> 
> > On Monday, January 02, 2012 10:12:47 PM Jerry wrote:
> >> I'm evaluating LyX for a major project and am mightily impressed.
> >>
> >> However, there is one problem that stands out: Scrolling the main
> >> LyX window is excruciatingly slow. I'm using LyX 2.0.2 and OS X
> >> 10.6.8. It doesn't seem to matter how I scroll--two-finger swipe
> >> on MacBook Pro trackpad or using the thumb bar or clicking on the
> >> normal scrolling arrows. When scrolling rather fast or using the
> >> two-finger "ballistic scrolling", there are large jumps between
> >> screen updates; sometimes the jump is more than an entire
> >> screenful so there is little hope of reliably spotting things as
> >> they go by. While scrolling, processor usage goes to 100%
> >>
> 
> Hmmm. I suspect that the problem is worse on my machine because even 
> scrolling small amounts (a few lines or a couple of pages) is so laggy/jumpy 
> that it is easily noticeable/annoying--hard to track features as they go by.
> 
> Scrolling large distances in a short time pretty much takes place as fast as 
> scrolling a native application; it's just that to get the job done in roughly 
> the same amount of time, there are huge jumps.
> 
> In an earlier post in this thread I noted that 2.0.1 was much better in this 
> regard (I just tried 2.0.1 a couple hours ago), so at least in part, this is 
> looks like a recent development.
> 
> Jerry
> 
> 
> FWIW, I have been noticing this issue on my Mac as well with LyX 2.0.2 
> (binary installation) and Mac OSX 10.7.2. It has occurred for me with small 
> documents as well as large ones.  Mouse-scrolling lags substantially.
> 
> I just tried it on another Mac system running OSX 10.6.8 and LyX 2.0.0.  No 
> problems there.  I then updated to LyX 2.0.2 on 10.6.8 and there were no 
> problems with that either.
> 
> So it appears that this issue is unique to LyX on OSX 10.7.x?

No—I'm on OS X 10.6.8.
Jerry
> 
> James
>  



  1   2   >