Re: wiki problem

2012-08-13 Thread Jack Tanner
Richard Heck rgheck at lyx.org writes:

 I've seen this error a lot in the logs. I think the version of pmwiki 
 we're using is old. Can you report this as a bug on trac?

Ticket #8298



Re: wiki problem

2012-08-13 Thread Jack Tanner
Richard Heck  lyx.org> writes:

> I've seen this error a lot in the logs. I think the version of pmwiki 
> we're using is old. Can you report this as a bug on trac?

Ticket #8298



wiki problem

2012-08-12 Thread Jack Tanner
On wiki.lyx.org/LyX/Manuals I get: 

Deprecated: Function eregi() is deprecated in
/home/lyx/www/wiki.lyx.org/farm.d/cookbook/uploadlist.php

Maybe PHP got upgraded there?



lyx manuals

2012-08-12 Thread Jack Tanner
It'd be handy to have easy access to PDF versions of LyX manuals. Is there a
place where current LyX manuals are posted on the web in PDF, or could PDFs be
included with the installer?



wiki problem

2012-08-12 Thread Jack Tanner
On wiki.lyx.org/LyX/Manuals I get: 

Deprecated: Function eregi() is deprecated in
/home/lyx/www/wiki.lyx.org/farm.d/cookbook/uploadlist.php

Maybe PHP got upgraded there?



lyx manuals

2012-08-12 Thread Jack Tanner
It'd be handy to have easy access to PDF versions of LyX manuals. Is there a
place where current LyX manuals are posted on the web in PDF, or could PDFs be
included with the installer?



Re: export to odt and HTML (Word)

2012-07-21 Thread Jack Tanner

On Saturday, July 21, 2012 9:57:22 AM, Richard Heck wrote:

These look like bugs in the tex4ht package you're using to do the
export. tex4ht is known to be problematic on Windows. (It's a bit
flaky sometimes on other platforms, too.)


I've now spent about 12 hours trying to get tex4ht to work. I've tried 
it in MiKTeX 2.9, in TexLive under Cygwin, and under CentOS.


My verdict is that tex4ht is awfully, awfully broken. For one, the file 
tex4ht.env comes with at least two sets of hard-coded paths that cannot 
possibly work on any system other than the developer's. Then there's the 
piece of the xtpipes infrastructure that generates invalid XML that it 
later tries to parse and fails...


I got better results with pandoc for conversion from LyX-exported TeX to 
docx. It's fast and robust. However, pandoc has poor support for input 
from TeX tables. It seems like if LyX could export either to 
pandoc-enhanced markdown or to pandoc's native format, we'd have pretty 
good support for conversion from LyX to a bunch of useful formats. See 
http://johnmacfarlane.net/pandoc/


Re: export to odt and HTML (Word)

2012-07-21 Thread Jack Tanner

On Saturday, July 21, 2012 2:28:06 PM, Richard Heck wrote:

Have you talked to John (another philosopher!) about the LaTeX issues?
I'm sure he'd be interested in fixing them.


I didn't, but only because I found this message, which makes it look 
like he knows about the issues already:


https://groups.google.com/d/topic/pandoc-discuss/_NrHzZoDRd4/discussion


Re: export to odt and HTML (Word)

2012-07-21 Thread Jack Tanner

On Saturday, July 21, 2012 9:57:22 AM, Richard Heck wrote:

These look like bugs in the tex4ht package you're using to do the
export. tex4ht is known to be problematic on Windows. (It's a bit
flaky sometimes on other platforms, too.)


I've now spent about 12 hours trying to get tex4ht to work. I've tried 
it in MiKTeX 2.9, in TexLive under Cygwin, and under CentOS.


My verdict is that tex4ht is awfully, awfully broken. For one, the file 
tex4ht.env comes with at least two sets of hard-coded paths that cannot 
possibly work on any system other than the developer's. Then there's the 
piece of the xtpipes infrastructure that generates invalid XML that it 
later tries to parse and fails...


I got better results with pandoc for conversion from LyX-exported TeX to 
docx. It's fast and robust. However, pandoc has poor support for input 
from TeX tables. It seems like if LyX could export either to 
pandoc-enhanced markdown or to pandoc's native format, we'd have pretty 
good support for conversion from LyX to a bunch of useful formats. See 
http://johnmacfarlane.net/pandoc/


Re: export to odt and HTML (Word)

2012-07-21 Thread Jack Tanner

On Saturday, July 21, 2012 2:28:06 PM, Richard Heck wrote:

Have you talked to John (another philosopher!) about the LaTeX issues?
I'm sure he'd be interested in fixing them.


I didn't, but only because I found this message, which makes it look 
like he knows about the issues already:


https://groups.google.com/d/topic/pandoc-discuss/_NrHzZoDRd4/discussion


export to odt and HTML (Word)

2012-07-18 Thread Jack Tanner
On my LyX 2.0.4, Windows, export to odt and HTML (Word) is very broken. For
example, at times I get this in messages:

23:14:21.748:
C:\Users\lunacy\AppData\Local\Temp\lyx_tmpdir.Hp8096\lyx_tmpbuf3t4ht my-doc.tex
-cooxtpipes -coo -ewin32/tex4ht.env 
23:14:21.751: --- error --- Illegal storage address

but then I also get:

23:14:21.772: Successful export to format: odt
23:18:42.401: Automatic save done.

Naturally, the export fails, i.e., neither the temp dir nor the actual doc dir
contain an exported file.





export to odt and HTML (Word)

2012-07-18 Thread Jack Tanner
On my LyX 2.0.4, Windows, export to odt and HTML (Word) is very broken. For
example, at times I get this in messages:

23:14:21.748:
C:\Users\lunacy\AppData\Local\Temp\lyx_tmpdir.Hp8096\lyx_tmpbuf3>t4ht my-doc.tex
"-cooxtpipes -coo" -ewin32/tex4ht.env 
23:14:21.751: --- error --- Illegal storage address

but then I also get:

23:14:21.772: Successful export to format: odt
23:18:42.401: Automatic save done.

Naturally, the export fails, i.e., neither the temp dir nor the actual doc dir
contain an exported file.





LyX functions for Zotero

2012-06-13 Thread Jack Tanner
So long as we're talking about bibliography workflow: could LyX integrate better
with Zotero?

Zotero is historically a Firefox add-on that has expanded to other platforms. It
can collect references, files that go with those references, and it can plug in
to Word and other word processors to manage citations in a document.

With LyX, the best Zotero integration today is via the LyZ Firefox add-on. You
can select a reference in Zotero, and then click on send to LyX. LyZ will
place the reference in a bib file and send it to LyX via pipe. But what if you
change the reference in Zotero that is already in the bib file? Then LyZ needs
to find it in the bib file, which is not robust. And if you edit the bib file
manually, then a later export from Zotero will overwrite your changes. Also,
Zotero may use a different encoding than the bib file, so non-ASCII characters
may be broken. You can escape characters in Zotero for LaTeX with {}, but that
breaks citations of those words in other word processors.

What would be useful is bi-directional communication between LyX and Zotero so
that references can be changed on either end and so that there's no intermediate
bib format. Zotero has plug-ins for Word and LibreOffice. Perhaps LyX could have
an API that is similar to what these plug-ins require, and the Zotero folks
could be convinced to extend their plug-ins to cover LyX. Some more info
http://www.zotero.org/support/word_processor_plugin_installation_for_zotero_2.1



LyX functions for Zotero

2012-06-13 Thread Jack Tanner
So long as we're talking about bibliography workflow: could LyX integrate better
with Zotero?

Zotero is historically a Firefox add-on that has expanded to other platforms. It
can collect references, files that go with those references, and it can plug in
to Word and other word processors to manage citations in a document.

With LyX, the best Zotero integration today is via the LyZ Firefox add-on. You
can select a reference in Zotero, and then click on "send to LyX". LyZ will
place the reference in a bib file and send it to LyX via pipe. But what if you
change the reference in Zotero that is already in the bib file? Then LyZ needs
to find it in the bib file, which is not robust. And if you edit the bib file
manually, then a later export from Zotero will overwrite your changes. Also,
Zotero may use a different encoding than the bib file, so non-ASCII characters
may be broken. You can escape characters in Zotero for LaTeX with {}, but that
breaks citations of those words in other word processors.

What would be useful is bi-directional communication between LyX and Zotero so
that references can be changed on either end and so that there's no intermediate
bib format. Zotero has plug-ins for Word and LibreOffice. Perhaps LyX could have
an API that is similar to what these plug-ins require, and the Zotero folks
could be convinced to extend their plug-ins to cover LyX. Some more info
http://www.zotero.org/support/word_processor_plugin_installation_for_zotero_2.1



Re: Suggestions: Vertically centering of the line with cursor

2012-03-05 Thread Jack Tanner
Niklas Burtscheid Niklas.Burtscheid at gmx.de writes:

 
 Lyx 2.0.2. on Windows 7. Qt I don't know.

Works for me using LyX 2.0.2 on Windows 7 x64.



Re: Suggestions: Vertically centering of the line with cursor

2012-03-05 Thread Jack Tanner
Niklas Burtscheid  gmx.de> writes:

> 
> Lyx 2.0.2. on Windows 7. Qt I don't know.

Works for me using LyX 2.0.2 on Windows 7 x64.



Re: forwarding questions from tex.stackexchange to lyx-users list

2012-03-01 Thread Jack Tanner
Scott Kostyshak skostysh at Princeton.EDU writes:

 Would it be desirable to have questions posted there forwarded 
 to the lyx-users list? 

I like (and occasionally use) tex.stackexchange.com. I don't see the point in
forwarding questions. But it is a really nice QA site. In some ways the format
is much more appropriate than a mailing list and then web forum software both
for getting users answers to their questions and for creating good content that
search engines can find to help people with the same question in the future.

Some ideas: 

- link to tex.stackexchange.com from lyx.org/MailingLists

- mention tex.stackexchange.com on lyx-users




Re: Suggestion: Option for showing live-statistics in statusbar

2012-03-01 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 
 If someone wants to implement this, and have it off by default, I 
 suppose they can do so, but I can't see the point of it. Do you really 
 need to know, as you type each character, how many characters there are?

I never understood the need for the number of characters count in any case,
including under Tools-Statistics.

But an auto-updating number of words (say, when idle, every 5 seconds) is really
handy.



Re: Suggestion: Option for showing live-statistics in statusbar

2012-03-01 Thread Jack Tanner
Liviu Andronic landronimirc at gmail.com writes:

 
 Some ask for 500 words, others require 2000 characters.

Do you know of situations where one needs both the word count and the character
count?



Re: forwarding questions from tex.stackexchange to lyx-users list

2012-03-01 Thread Jack Tanner
Scott Kostyshak  Princeton.EDU> writes:

> Would it be desirable to have questions posted there forwarded 
> to the lyx-users list? 

I like (and occasionally use) tex.stackexchange.com. I don't see the point in
forwarding questions. But it is a really nice Q site. In some ways the format
is much more appropriate than a mailing list and then web forum software both
for getting users answers to their questions and for creating good content that
search engines can find to help people with the same question in the future.

Some ideas: 

- link to tex.stackexchange.com from lyx.org/MailingLists

- mention tex.stackexchange.com on lyx-users




Re: Suggestion: Option for showing live-statistics in statusbar

2012-03-01 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> 
> If someone wants to implement this, and have it off by default, I 
> suppose they can do so, but I can't see the point of it. Do you really 
> need to know, as you type each character, how many characters there are?

I never understood the need for the number of characters count in any case,
including under Tools->Statistics.

But an auto-updating number of words (say, when idle, every 5 seconds) is really
handy.



Re: Suggestion: Option for showing live-statistics in statusbar

2012-03-01 Thread Jack Tanner
Liviu Andronic  gmail.com> writes:

> 
> Some ask for 500 words, others require 2000 characters.

Do you know of situations where one needs both the word count and the character
count?



Re: Suggestions: Vertically centering of the line with cursor

2012-02-29 Thread Jack Tanner
Niklas Burtscheid Niklas.Burtscheid at gmx.de writes:

 
 There should be an option to (vertically) center the line with the cursor. 

There's the F5 key (at least when using CUA key bindings). Until I saw your
question, I didn't know that it existed, but I found it by going to
Tools-Preferences-Editing-Shortcuts and searching for center.



Re: Suggestion: Option for showing live-statistics in statusbar

2012-02-29 Thread Jack Tanner
Niklas Burtscheid Niklas.Burtscheid at gmx.de writes:

 
 There should be an option in the general preferences to show the statistics
(number of characters  number
 of words) permanently in the status-bar (at the right side of it).

Recent versions of Word do exactly this, and it's pretty handy. Implementing
this would allow LyX to lose the Tools-Statistics menu entry and corresponding
dialog, so that's a usability win in my book. I'm not a developer, but I'd
suggest filing an RFE.



Re: Suggestions: Vertically centering of the line with cursor

2012-02-29 Thread Jack Tanner
Niklas Burtscheid  gmx.de> writes:

> 
> There should be an option to (vertically) center the line with the cursor. 

There's the F5 key (at least when using CUA key bindings). Until I saw your
question, I didn't know that it existed, but I found it by going to
Tools->Preferences->Editing->Shortcuts and searching for "center".



Re: Suggestion: Option for showing live-statistics in statusbar

2012-02-29 Thread Jack Tanner
Niklas Burtscheid  gmx.de> writes:

> 
> There should be an option in the general preferences to show the statistics
(number of characters & number
> of words) permanently in the status-bar (at the right side of it).

Recent versions of Word do exactly this, and it's pretty handy. Implementing
this would allow LyX to lose the Tools->Statistics menu entry and corresponding
dialog, so that's a usability win in my book. I'm not a developer, but I'd
suggest filing an RFE.



Re: Adjustable cursor-width

2012-02-27 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 
  The default is 0 - dynamic scaling. It depends on the text height then.
 This can also be controlled, to some extent, via Qt.

Perhaps the point here is to increase the default scaling factor (in the case of
0 - dynamic scaling) to make the cursor a bit wider and more prominent? It's
wider in Word, FWIW.



Re: Adjustable cursor-width

2012-02-27 Thread Jack Tanner
Stephan Witt st.witt at gmx.net writes:

 
 And how much? And when this is done, the next person steps up and says it's 
 too wide and the world was better before that change. I think one can adjust
 the cursor width and that's not bad.

That's also true. But I do think the the prefs dialog should suggest that
dynamic scaling is available via the magic value of 0.



Re: More paragraph-settings

2012-02-27 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 
 If you want to have some paragraphs that are indented, then the way to 
 do it is to write something like an Indented style. This can be put in 
 a module or just in Local Layout. The LaTeX needed to do it should be 
 fairly straightforward: I would think it just involved setting \parindent.

Could LyX make it easier to create character styles and paragraph styles in
local layout? I'm thinking of a GUI that has the most frequently used options;
power users would still edit the local layout directly. With that, Paragraph
Settings could indeed go away.



Re: Showing standard-values of margins in greyed out fields

2012-02-27 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 I'd be happy to include such a document, actually, if you or someone 
 else wanted to create it. I'd suggest using the layouts package, which 
 of course the user would need to have installed. It'd be a simple 
 document---perhaps a template---that one could load, and then compile. 
 You'd have to set the document class to what you wanted, but then it 
 would display the page layout, etc, for that class.

The document class could be automatically set to the same document class as the
real document being edited in LyX. Would this work for title pages and other
unusual pages?



Re: Adjustable cursor-width

2012-02-27 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> 
> > The default is 0 - dynamic scaling. It depends on the text height then.
> This can also be controlled, to some extent, via Qt.

Perhaps the point here is to increase the default scaling factor (in the case of
0 - dynamic scaling) to make the cursor a bit wider and more prominent? It's
wider in Word, FWIW.



Re: Adjustable cursor-width

2012-02-27 Thread Jack Tanner
Stephan Witt  gmx.net> writes:

> 
> And how much? And when this is done, the next person steps up and says it's 
> too wide and the world was better before that change. I think one can adjust
> the cursor width and that's not bad.

That's also true. But I do think the the prefs dialog should suggest that
dynamic scaling is available via the magic value of 0.



Re: More paragraph-settings

2012-02-27 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> 
> If you want to have some paragraphs that are indented, then the way to 
> do it is to write something like an "Indented" style. This can be put in 
> a module or just in Local Layout. The LaTeX needed to do it should be 
> fairly straightforward: I would think it just involved setting \parindent.

Could LyX make it easier to create character styles and paragraph styles in
local layout? I'm thinking of a GUI that has the most frequently used options;
power users would still edit the local layout directly. With that, Paragraph
Settings could indeed go away.



Re: Showing standard-values of margins in greyed out fields

2012-02-27 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> I'd be happy to include such a document, actually, if you or someone 
> else wanted to create it. I'd suggest using the layouts package, which 
> of course the user would need to have installed. It'd be a simple 
> document---perhaps a template---that one could load, and then compile. 
> You'd have to set the document class to what you wanted, but then it 
> would display the page layout, etc, for that class.

The document class could be automatically set to the same document class as the
real document being edited in LyX. Would this work for title pages and other
"unusual" pages?



Re: Spellchecker as you type

2012-02-26 Thread Jack Tanner
Pascal Fischer pascal.fischer.ac at googlemail.com writes:

 
 In addition to today's spellchecker there should be the possibility to
 activate spell-checking as you type. (With those red wavy lines under

This is available as Tools - Preferences - Language Settings - Spellchecker
- Spellcheck continuously.

I'm not sure if this is on by default, but perhaps it should be. I wonder if
Check spelling as you type would be a clearer option name.



Re: Paragraph settings for headers

2012-02-26 Thread Jack Tanner
Pascal Fischer pascal.fischer.ac at googlemail.com writes:

 
 For headers (section, subsection,...) the paragraph settings (e.g.
 left, right, center) are greyed out. So you can't place headlines of

Traditionally, in TeX land, this is the job of the document class and style. So
you don't change justification for a single heading, you change how all headings
of that level are justified (e.g., via the preamble).

I don't know if there are document classes that allow you to customize that for
each headline, but that would be odd.



Re: Adjustable cursor-width

2012-02-26 Thread Jack Tanner
Pascal Fischer pascal.fischer.ac at googlemail.com writes:

 narrow. There should be an option in the general settings where you
 can change the cursor-width between 4 values: narrow (todays width),
 middle, broad and extra-broad. In addition wiith another color that

Why is 4 options better than a cursor that is just easy to see?



Re: Showing standard-values of margins in greyed out fields

2012-02-26 Thread Jack Tanner
Pascal Fischer pascal.fischer.ac at googlemail.com writes:

 
 In the margin-settings, the fields are greyed out when the standard is
 activated. They should show the values of this standard-setting, so
 that the user sees them.

That would require interrogating the document class to see what the default
margins are. Sounds difficult, but a nice user-friendly feature.



Re: Spellchecker as you type

2012-02-26 Thread Jack Tanner
Pascal Fischer  googlemail.com> writes:

> 
> In addition to today's spellchecker there should be the possibility to
> activate spell-checking as you type. (With those red wavy lines under

This is available as Tools -> Preferences -> Language Settings -> Spellchecker
-> Spellcheck continuously.

I'm not sure if this is on by default, but perhaps it should be. I wonder if
"Check spelling as you type" would be a clearer option name.



Re: Paragraph settings for headers

2012-02-26 Thread Jack Tanner
Pascal Fischer  googlemail.com> writes:

> 
> For headers (section, subsection,...) the paragraph settings (e.g.
> left, right, center) are greyed out. So you can't place headlines of

Traditionally, in TeX land, this is the job of the document class and style. So
you don't change justification for a single heading, you change how all headings
of that level are justified (e.g., via the preamble).

I don't know if there are document classes that allow you to customize that for
each headline, but that would be odd.



Re: Adjustable cursor-width

2012-02-26 Thread Jack Tanner
Pascal Fischer  googlemail.com> writes:

> narrow. There should be an option in the general settings where you
> can change the cursor-width between 4 values: narrow (todays width),
> middle, broad and extra-broad. In addition wiith another color that

Why is 4 options better than a cursor that is just easy to see?



Re: Showing standard-values of margins in greyed out fields

2012-02-26 Thread Jack Tanner
Pascal Fischer  googlemail.com> writes:

> 
> In the margin-settings, the fields are greyed out when the standard is
> activated. They should show the values of this standard-setting, so
> that the user sees them.

That would require interrogating the document class to see what the default
margins are. Sounds difficult, but a nice user-friendly feature.



Re: google summer of code is starting

2012-02-13 Thread Jack Tanner
5) A usability evaluation of a few of the most important LyX workflows to 
ferret out what trips up users.

6) A better left-side pane: replace the sort and keep checkboxes and slider 
with something usable. 

7) A better left-side pane: replace the filter search box with a search 
across all types of lists (toc, figures, tables, etc.); make the search 
smart enough that the top-ranked results belong to whatever type of list is
active in the UI, but also search across the other types.

8) Better support for bibliography managers (e.g., Zotero). LyZ is pretty 
brittle.



Re: google summer of code is starting

2012-02-13 Thread Jack Tanner
5) A usability evaluation of a few of the most important LyX workflows to 
ferret out what trips up users.

6) A better left-side pane: replace the sort and keep checkboxes and slider 
with something usable. 

7) A better left-side pane: replace the "filter" search box with a search 
across all types of lists (toc, figures, tables, etc.); make the search 
smart enough that the top-ranked results belong to whatever type of list is
active in the UI, but also search across the other types.

8) Better support for bibliography managers (e.g., Zotero). LyZ is pretty 
brittle.



Re: timeout when using the Sweave module

2012-02-02 Thread Jack Tanner
Liviu Andronic landronimirc at gmail.com writes:

 
 Can the 'timeout' be configured? Or is it possible to treat
 Sweave/knitr documents differently? Regards

One Sweave/knitr computation is different from another. I'd expect 1+1 to be
computed quickly, but I also have some simulations that take hours, and I'd love
to use knitr to include those results in a LyX document. I'd vote for a global
LyX setting that Sweave/knitr has a longer time-out by default, and a knitr
option that allows different time-outs per chunk.



Re: timeout when using the Sweave module

2012-02-02 Thread Jack Tanner
Yihui Xie xie at yihui.name writes:

 
 The time-out restriction is from LyX, so Sweave/knitr cannot do
 anything about it.

You're right; what I meant to say was that I'd want to tell LyX to allow longer
Sweave/knitr runs for particular chunks.



Re: timeout when using the Sweave module

2012-02-02 Thread Jack Tanner
Jean-Marc Lasgouttes lasgouttes at lyx.org writes:

 
 It is probably doable to set the timeout value per converter. This would 
 be the best solution IMO.

I can be convinced that setting the timeout value on a chunk-by-chunk basis is
excessive, but per converter is too coarse. Maybe per document?



Re: timeout when using the Sweave module

2012-02-02 Thread Jack Tanner
Liviu Andronic  gmail.com> writes:

> 
> Can the 'timeout' be configured? Or is it possible to treat
> Sweave/knitr documents differently? Regards

One Sweave/knitr computation is different from another. I'd expect 1+1 to be
computed quickly, but I also have some simulations that take hours, and I'd love
to use knitr to include those results in a LyX document. I'd vote for a global
LyX setting that Sweave/knitr has a longer time-out by default, and a knitr
option that allows different time-outs per chunk.



Re: timeout when using the Sweave module

2012-02-02 Thread Jack Tanner
Yihui Xie  yihui.name> writes:

> 
> The time-out restriction is from LyX, so Sweave/knitr cannot do
> anything about it.

You're right; what I meant to say was that I'd want to tell LyX to allow longer
Sweave/knitr runs for particular chunks.



Re: timeout when using the Sweave module

2012-02-02 Thread Jack Tanner
Jean-Marc Lasgouttes  lyx.org> writes:

> 
> It is probably doable to set the timeout value per converter. This would 
> be the best solution IMO.

I can be convinced that setting the timeout value on a chunk-by-chunk basis is
excessive, but per converter is too coarse. Maybe per document?



inline sweave / knitr

2012-01-29 Thread Jack Tanner
Over the last week or so, I've been playing with the new knitr 
integration (#7887), with really nice results.


There's a very handy Chunk environment for sweave / knitr code. But is 
there any support for inline knitr in LyX? I'm thinking of, e.g.,


  As our experiments showed, the sum of 1 and 1 equals \Sexpr{1 + 1}.

This works if \Sexpr{1 + 1} is placed in an ERT span, but, unlike Chunk, 
that's not a semantic document structure.


Re: inline sweave / knitr

2012-01-29 Thread Jack Tanner

Ha! It's like magic. I think of something, and it's already there.

There's some sort of a UI bug, though. Insert-Custom Insets-Sexpr 
creates the inset, but I can't type or paste into it. If I click outside 
of the inset and then back into the inset, I can type then. Maybe it has 
to do with me using knitr instead of Sweave?


Also, in what R environment is this inset executed, and how does this 
interact with knitr's previously cached chunks?


On 1/29/2012 2:30 PM, Yihui Xie wrote:

Thanks, Liviu. I think that is it.

Regards,
Yihui
--
Yihui Xiexieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sun, Jan 29, 2012 at 1:21 PM, Liviu Androniclandronim...@gmail.com  wrote:

On Sun, Jan 29, 2012 at 8:13 PM, Jack Tanneri...@hotmail.com  wrote:

Over the last week or so, I've been playing with the new knitr integration
(#7887), with really nice results.

There's a very handy Chunk environment for sweave / knitr code. But is there
any support for inline knitr in LyX? I'm thinking of, e.g.,

  As our experiments showed, the sum of 1 and 1 equals \Sexpr{1 + 1}.

This works if \Sexpr{1 + 1} is placed in an ERT span, but, unlike Chunk,
that's not a semantic document structure.


I'm not sure what you're looking for, but have you tried Insert
Custom Insets  Sexpr?

Liviu



--
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: inline sweave / knitr

2012-01-29 Thread Jack Tanner

On Sunday, January 29, 2012 3:29:01 PM, Yihui Xie wrote:


There's some sort of a UI bug, though. Insert-Custom Insets-Sexpr creates
the inset, but I can't type or paste into it. If I click outside of the
inset and then back into the inset, I can type then. Maybe it has to do with
me using knitr instead of Sweave?


I cannot reproduce this, and I believe this is unlikely to be related
to the knitr module per se. Does the Sweave module work? Both the
Sweave and knitr modules uses identical definitions of the Sexpr
inset.


OK, this is reproducible for me in 2.0.2 with Sweave (not knitr). 
Insert-Custom Insets-S/R Expression creates an inset that does not 
take input until you double-click it. (Maybe the inset is collapsed by 
default, like Liviu suggested, but I don't know how to check that.) Let 
me know if you want me to file a bug.


inline code is evaluated in the global environment. 


How can I make inline code pay attention to R options, e.g., 
options(digits=2)?


inline sweave / knitr

2012-01-29 Thread Jack Tanner
Over the last week or so, I've been playing with the new knitr 
integration (#7887), with really nice results.


There's a very handy Chunk environment for sweave / knitr code. But is 
there any support for inline knitr in LyX? I'm thinking of, e.g.,


  As our experiments showed, the sum of 1 and 1 equals \Sexpr{1 + 1}.

This works if \Sexpr{1 + 1} is placed in an ERT span, but, unlike Chunk, 
that's not a semantic document structure.


Re: inline sweave / knitr

2012-01-29 Thread Jack Tanner

Ha! It's like magic. I think of something, and it's already there.

There's some sort of a UI bug, though. Insert->Custom Insets->Sexpr 
creates the inset, but I can't type or paste into it. If I click outside 
of the inset and then back into the inset, I can type then. Maybe it has 
to do with me using knitr instead of Sweave?


Also, in what R environment is this inset executed, and how does this 
interact with knitr's previously cached chunks?


On 1/29/2012 2:30 PM, Yihui Xie wrote:

Thanks, Liviu. I think that is it.

Regards,
Yihui
--
Yihui Xie<xieyi...@gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sun, Jan 29, 2012 at 1:21 PM, Liviu Andronic<landronim...@gmail.com>  wrote:

On Sun, Jan 29, 2012 at 8:13 PM, Jack Tanner<i...@hotmail.com>  wrote:

Over the last week or so, I've been playing with the new knitr integration
(#7887), with really nice results.

There's a very handy Chunk environment for sweave / knitr code. But is there
any support for inline knitr in LyX? I'm thinking of, e.g.,

  As our experiments showed, the sum of 1 and 1 equals \Sexpr{1 + 1}.

This works if \Sexpr{1 + 1} is placed in an ERT span, but, unlike Chunk,
that's not a semantic document structure.


I'm not sure what you're looking for, but have you tried Insert>
Custom Insets>  Sexpr?

Liviu



--
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: inline sweave / knitr

2012-01-29 Thread Jack Tanner

On Sunday, January 29, 2012 3:29:01 PM, Yihui Xie wrote:


There's some sort of a UI bug, though. Insert->Custom Insets->Sexpr creates
the inset, but I can't type or paste into it. If I click outside of the
inset and then back into the inset, I can type then. Maybe it has to do with
me using knitr instead of Sweave?


I cannot reproduce this, and I believe this is unlikely to be related
to the knitr module per se. Does the Sweave module work? Both the
Sweave and knitr modules uses identical definitions of the Sexpr
inset.


OK, this is reproducible for me in 2.0.2 with Sweave (not knitr). 
Insert->Custom Insets->S/R Expression creates an inset that does not 
take input until you double-click it. (Maybe the inset is collapsed by 
default, like Liviu suggested, but I don't know how to check that.) Let 
me know if you want me to file a bug.


inline code is evaluated in the global environment. 


How can I make inline code pay attention to R options, e.g., 
options(digits=2)?


Re: PATCH: Bug #7975 and Toggling

2012-01-22 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 
 Comments welcome. I guess maybe I'd suggest this is trunk only, rather 
 than changing this kind of thing in a maintenance release.

The current behavior is so bizarre, I never use the toggle feature. I'd be happy
to see it on branch.



Re: PATCH: Bug #7975 and Toggling

2012-01-22 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> 
> Comments welcome. I guess maybe I'd suggest this is trunk only, rather 
> than changing this kind of thing in a maintenance release.

The current behavior is so bizarre, I never use the toggle feature. I'd be happy
to see it on branch.



Re: plans for Sweave

2012-01-18 Thread Jack Tanner
Yihui Xie xie at yihui.name writes:

 
 The first version of knitr was just released to CRAN yesterday, so you
 will need to wait for one or two days for the Windows build on CRAN,
 and probably a few days for your local CRAN mirror to sync.

I just knew that you were going to release knitr the moment I sent my question.
Thanks.

It's already built for Windows on CRAN and installable via the main site (but
not yet all the mirrors).

I tried to test things. I installed lyxknitr.R and knitr.module into
c:/users/me/appdata/roaming/LyX20/scripts and ./layouts, and reconfigured. But
Knitr doesn't show up as a module under Documents - Settings - Modules.
Reconfigure didn't even look under c:/users... , so maybe I need to tell it to?



Re: plans for Sweave

2012-01-18 Thread Jack Tanner
Yihui Xie xie at yihui.name writes:

 
 See http://yihui.github.com/knitr/demo/lyx/
 
 Since you are using Windows, it is recommended to use the first
 approach (it is difficult and very time-consuming to compile LyX from
 source under Windows, as the second approach requires). Basically you
 rename lyxknitr.R to lyxsweave.R and put in under
 c:/users/me/appdata/roaming/LyX20/scripts; then your Sweave module
 will actually become a knitr module.

But recompiling LyX shouldn't be necessary to get it to recognize a new module
under c:/users/me/appdata/roaming/LyX20/layouts, right?



Re: plans for Sweave

2012-01-18 Thread Jack Tanner
Yihui Xie  yihui.name> writes:

> 
> The first version of knitr was just released to CRAN yesterday, so you
> will need to wait for one or two days for the Windows build on CRAN,
> and probably a few days for your local CRAN mirror to sync.

I just knew that you were going to release knitr the moment I sent my question.
Thanks.

It's already built for Windows on CRAN and installable via the main site (but
not yet all the mirrors).

I tried to test things. I installed lyxknitr.R and knitr.module into
c:/users/me/appdata/roaming/LyX20/scripts and ./layouts, and reconfigured. But
Knitr doesn't show up as a module under Documents -> Settings -> Modules.
Reconfigure didn't even look under c:/users... , so maybe I need to tell it to?



Re: plans for Sweave

2012-01-18 Thread Jack Tanner
Yihui Xie  yihui.name> writes:

> 
> See http://yihui.github.com/knitr/demo/lyx/
> 
> Since you are using Windows, it is recommended to use the first
> approach (it is difficult and very time-consuming to compile LyX from
> source under Windows, as the second approach requires). Basically you
> rename lyxknitr.R to lyxsweave.R and put in under
> c:/users/me/appdata/roaming/LyX20/scripts; then your Sweave module
> will actually become a knitr module.

But recompiling LyX shouldn't be necessary to get it to recognize a new module
under c:/users/me/appdata/roaming/LyX20/layouts, right?



plans for Sweave

2012-01-17 Thread Jack Tanner
Sweave works beautifully in 2.0.2, huge thanks to Yihui Xie et al. But the
situation beyond Sweave seems problematic. Ticket #7887 is stalled. There's
neither a pgfSweave module nor a knitr module. knitr is not even available for
2.24.1 for Windows.

RFE: could we have pgfSweave support in 2.0.3? knitr sounds fantastic, but I
don't really want to wait for it, and pgfSweave could work today.



plans for Sweave

2012-01-17 Thread Jack Tanner
Sweave works beautifully in 2.0.2, huge thanks to Yihui Xie et al. But the
situation "beyond" Sweave seems problematic. Ticket #7887 is stalled. There's
neither a pgfSweave module nor a knitr module. knitr is not even available for
2.24.1 for Windows.

RFE: could we have pgfSweave support in 2.0.3? knitr sounds fantastic, but I
don't really want to wait for it, and pgfSweave could work today.



pasting into table

2011-12-04 Thread Jack Tanner
Just got an assertion trying to paste some text into a table. Not sure how to
reproduce it, so not filing a bug, but thought you might like to know.

C:\LyX\lyx-2.0.2\src\support\lassert.cpp(35): ASSERTION anchor_.depth() =
depth() VIOLATED IN C:\LyX\lyx-2.0.2\src\Cursor.cpp:1065



Re: pasting into table

2011-12-04 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 
 Was this in a list somehow?

No list. Sorry, wish I had a way to reproduce it.



pasting into table

2011-12-04 Thread Jack Tanner
Just got an assertion trying to paste some text into a table. Not sure how to
reproduce it, so not filing a bug, but thought you might like to know.

C:\LyX\lyx-2.0.2\src\support\lassert.cpp(35): ASSERTION anchor_.depth() >=
depth() VIOLATED IN C:\LyX\lyx-2.0.2\src\Cursor.cpp:1065



Re: pasting into table

2011-12-04 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> 
> Was this in a list somehow?

No list. Sorry, wish I had a way to reproduce it.



Re: SourceForge FTP server (was: 'Re: MSVC dependencies')

2011-08-11 Thread Jack Tanner
Pavel Sanda sanda at lyx.org writes:

 we want old links eg ftp.lyx.org/pub/lyx/stable/1.6.x/
 to remain working.

This seems achievable by using ProFTPD as an FTP daemon and its mod_rewrite,
which is similar to the Apache httpd mod_rewrite. That is, if any old machine
(or virtual machine) can be assigned to be ftp.lyx.org, no matter that it has
little bandwidth and disk space, and if it runs ProFTPD with mod_rewrite, that
would be enough to redirect links like the one above to serve files from
Sourceforge. 



Re: SourceForge FTP server (was: 'Re: MSVC dependencies')

2011-08-11 Thread Jack Tanner
Pavel Sanda  lyx.org> writes:

> we want old links eg ftp.lyx.org/pub/lyx/stable/1.6.x/
> to remain working.

This seems achievable by using ProFTPD as an FTP daemon and its mod_rewrite,
which is similar to the Apache httpd mod_rewrite. That is, if any old machine
(or virtual machine) can be assigned to be ftp.lyx.org, no matter that it has
little bandwidth and disk space, and if it runs ProFTPD with mod_rewrite, that
would be enough to redirect links like the one above to serve files from
Sourceforge. 



Re: ping re: 2.0.1?

2011-07-07 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 The FTP server has been down for some time. We can't release until it's
 back up, or else we decide to find a new one, or whatever. The intention
 is to release 2.0.1 as soon after that as we can.

Sorry to hear about the server. This is probably one of those situations that
can be fixed only by doing and not by talking. Sourceforge could do as a
temporary hosting service, but that's still work for someone to set it all up.



Re: ping re: 2.0.1?

2011-07-07 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> The FTP server has been down for some time. We can't release until it's
> back up, or else we decide to find a new one, or whatever. The intention
> is to release 2.0.1 as soon after that as we can.

Sorry to hear about the server. This is probably one of those situations that
can be fixed only by doing and not by talking. Sourceforge could do as a
temporary hosting service, but that's still work for someone to set it all up.



ping re: 2.0.1?

2011-07-06 Thread Jack Tanner
There's been a great deal of work done on branch since 2.0.0 came out. (Thanks
for that!) What are the plans for a 2.0.1?



ping re: 2.0.1?

2011-07-06 Thread Jack Tanner
There's been a great deal of work done on branch since 2.0.0 came out. (Thanks
for that!) What are the plans for a 2.0.1?



RFE: findreplace excluding insets

2011-06-18 Thread Jack Tanner
I wonder if this is on somebody's to-do list: it'd be nice to be able to find
and replace but only inside (outside) certain kinds of insets, e.g., only in
program listings, or e.g., everywhere except in notes.



RFE: find excluding insets

2011-06-18 Thread Jack Tanner
I wonder if this is on somebody's to-do list: it'd be nice to be able to find
and replace but only inside (outside) certain kinds of insets, e.g., only in
program listings, or e.g., everywhere except in notes.



LyXHTML fixes for 2.0.1?

2011-06-17 Thread Jack Tanner
Have there been fixes for LyXHTML export since 2.0.0? I have export errors like 
the one below. If this sounds like a new issue, let me know, and I'll try to 
produce a minimal test case.

!-- Output Error: Tags still open in closeFontTags(). 
Probably not a problem, but you might want to check these tags: --
!-- Output Error: pre --
!-- Output Error: div --




Re: LyXHTML fixes for 2.0.1?

2011-06-17 Thread Jack Tanner
Filed as http://www.lyx.org/trac/ticket/7634



LyXHTML fixes for 2.0.1?

2011-06-17 Thread Jack Tanner
Have there been fixes for LyXHTML export since 2.0.0? I have export errors like 
the one below. If this sounds like a new issue, let me know, and I'll try to 
produce a minimal test case.








Re: LyXHTML fixes for 2.0.1?

2011-06-17 Thread Jack Tanner
Filed as http://www.lyx.org/trac/ticket/7634



Re: A thank you! And feature request.

2011-06-05 Thread Jack Tanner
Rick Dearman rick at rdearman.org writes:

 
 - A script that will check for passive vs active language.
 - A script to find –ly adverbs, especially in dialogue tags. Let's me remove
strengthener adverbs and replace with stronger verbs

These two sound like grammar checker type features. Aside from general LyX
scriptability, I believe that AbiWord embeds the Link Grammar parser for this
purpose.




Re: A thank you! And feature request.

2011-06-05 Thread Jack Tanner
Rick Dearman  rdearman.org> writes:

> 
> - A script that will check for passive vs active language.
> - A script to find –ly adverbs, especially in dialogue tags. Let's me remove
strengthener adverbs and replace with stronger verbs

These two sound like "grammar checker" type features. Aside from general LyX
scriptability, I believe that AbiWord embeds the Link Grammar parser for this
purpose.




Re: Poll for the default icon theme in LyX 2.0

2011-03-30 Thread Jack Tanner
Pavel Sanda sanda at lyx.org writes:

 - libreoffice

+1

Neither Libreoffice nor Oxygen are ideal, but it'd be nice to have 
a visual refresh.

The important piece is of course not icons, it's the how the UI 
supports workflows via menus, dialogs, icons, status bars, and 
other affordances. Maybe a design and usability organization could 
have some input into this.



Re: Poll for the default icon theme in LyX 2.0

2011-03-30 Thread Jack Tanner
Pavel Sanda  lyx.org> writes:

> - libreoffice

+1

Neither Libreoffice nor Oxygen are ideal, but it'd be nice to have 
a visual refresh.

The important piece is of course not icons, it's the how the UI 
supports workflows via menus, dialogs, icons, status bars, and 
other affordances. Maybe a design and usability organization could 
have some input into this.



Re: Lyx 2.0 RC1 saves over old format files

2011-03-28 Thread Jack Tanner
Richard Heck rgheck at comcast.net writes:

 
 This is a good idea, and it wouldn't be that hard to do: (i) When we 
 open the file, set a Buffer flag if we have to convert from an older 
 format; (ii) when we try to save, check the flag, and pop a dialog if 
 it's set.
 
 Can you add this to trac, please?

Being confronted with a dialog after making some changes really sounds like
suboptimal workflow. If LyX 2.0 can save in 1.6 format, can it just default to
doing that for files that are already in 1.6 format? It could also provide a
separate command, enabled only for pre-2.0 files, to upgrade the format to 2.0.

FWIW, this is the workflow when opening .doc files (older format) in Word 2007.
The option to upgrade the format to .docx is called Convert. The window title
also contains a special mark [Compatibility Mode] when a .doc file is opened.

If you do use a dialog, it's also unclear what format is used for the
automatically generated back-up file.



Re: Lyx 2.0 RC1 saves over old format files

2011-03-28 Thread Jack Tanner
Richard Heck  comcast.net> writes:

> 
> This is a good idea, and it wouldn't be that hard to do: (i) When we 
> open the file, set a Buffer flag if we have to convert from an older 
> format; (ii) when we try to save, check the flag, and pop a dialog if 
> it's set.
> 
> Can you add this to trac, please?

Being confronted with a dialog after making some changes really sounds like
suboptimal workflow. If LyX 2.0 can save in 1.6 format, can it just default to
doing that for files that are already in 1.6 format? It could also provide a
separate command, enabled only for pre-2.0 files, to upgrade the format to 2.0.

FWIW, this is the workflow when opening .doc files (older format) in Word 2007.
The option to upgrade the format to .docx is called Convert. The window title
also contains a special mark [Compatibility Mode] when a .doc file is opened.

If you do use a dialog, it's also unclear what format is used for the
automatically generated back-up file.



Re: justification in program insets

2011-02-06 Thread Jack Tanner
Paul A. Rubin rubin at msu.edu writes:

  My document is full-justified, which I like. This means that my program 
  listings (LyX 1.6.8) are also full-justified, but that makes no sense. 
  Should I file a bug?
 
 I've not seen this myself.  Maybe you should post a minimal example first, in
 case it's some document settings issue or a property of the document class.

I'm sorry, I wasn't clear. The full justification in program listings happens 
when editing, not when in the generated PDF.

Here's a screenshot:

http://img683.imageshack.us/img683/2216/lyx168programinset.png

See the two myvar lines. Both are indented from the left by two spaces, but one 
gets wrapped and is then full-justified.

This is a new document, article class.



Re: justification in program insets

2011-02-06 Thread Jack Tanner
Thanks for confirming. Filed as http://www.lyx.org/trac/ticket/7282



Re: justification in program insets

2011-02-06 Thread Jack Tanner
Paul A. Rubin  msu.edu> writes:

> > My document is full-justified, which I like. This means that my program 
> > listings (LyX 1.6.8) are also full-justified, but that makes no sense. 
> > Should I file a bug?
> 
> I've not seen this myself.  Maybe you should post a minimal example first, in
> case it's some document settings issue or a property of the document class.

I'm sorry, I wasn't clear. The full justification in program listings happens 
when editing, not when in the generated PDF.

Here's a screenshot:

http://img683.imageshack.us/img683/2216/lyx168programinset.png

See the two myvar lines. Both are indented from the left by two spaces, but one 
gets wrapped and is then full-justified.

This is a new document, article class.



Re: justification in program insets

2011-02-06 Thread Jack Tanner
Thanks for confirming. Filed as http://www.lyx.org/trac/ticket/7282



justification in program insets

2011-02-05 Thread Jack Tanner
My document is full-justified, which I like. This means that my program 
listings (LyX 1.6.8) are also full-justified, but that makes no sense. 
Should I file a bug?


justification in program insets

2011-02-05 Thread Jack Tanner
My document is full-justified, which I like. This means that my program 
listings (LyX 1.6.8) are also full-justified, but that makes no sense. 
Should I file a bug?


creating lyx note causes clipboard copy

2010-12-28 Thread Jack Tanner

In LyX 1.6.8,

1. Create a new document.
2. Type in two words, word1 and word2.
3. Select and copy word2.
4. Highlight word1 and Insert, Note, LyX Note. word1 will be placed 
inside a new note.

5. Paste.

Expected: paste outputs word2, as copied in (3)

Actual: paste outputs word1, from (4)


Re: creating lyx note causes clipboard copy

2010-12-28 Thread Jack Tanner
Pavel Sanda sanda at lyx.org writes:

 
 Jack Tanner wrote:
  1. Create a new document.
  2. Type in two words, word1 and word2.
  3. Select and copy word2.
  4. Highlight word1 and Insert, Note, LyX Note. word1 will be placed inside 
  a new note.
  5. Paste.
 
  Expected: paste outputs word2, as copied in (3)
 
  Actual: paste outputs word1, from (4)
 
 iirc this is because inserting word1 into the note inset (4) is actually done 
via clipboard.

Perhaps creation of the note inset could save and then restore the clipboard 
state? The bug is even more annoying if the clipboard contents come not from 
LyX 
but from some other application. Creation of a note inset may cause data loss.



creating lyx note causes clipboard copy

2010-12-28 Thread Jack Tanner

In LyX 1.6.8,

1. Create a new document.
2. Type in two words, word1 and word2.
3. Select and copy word2.
4. Highlight word1 and Insert, Note, LyX Note. word1 will be placed 
inside a new note.

5. Paste.

Expected: paste outputs word2, as copied in (3)

Actual: paste outputs word1, from (4)


Re: creating lyx note causes clipboard copy

2010-12-28 Thread Jack Tanner
Pavel Sanda  lyx.org> writes:

> 
> Jack Tanner wrote:
> > 1. Create a new document.
> > 2. Type in two words, word1 and word2.
> > 3. Select and copy word2.
> > 4. Highlight word1 and Insert, Note, LyX Note. word1 will be placed inside 
> > a new note.
> > 5. Paste.
> >
> > Expected: paste outputs word2, as copied in (3)
> >
> > Actual: paste outputs word1, from (4)
> 
> iirc this is because inserting word1 into the note inset (4) is actually done 
via clipboard.

Perhaps creation of the note inset could save and then restore the clipboard 
state? The bug is even more annoying if the clipboard contents come not from 
LyX 
but from some other application. Creation of a note inset may cause data loss.



official 1.6.8 windows installer?

2010-11-20 Thread Jack Tanner
I see that Uwe has kindly uploaded the alternative 1.6.8 installer for Windows. 
Is anyone preparing the official one also?



official 1.6.8 windows installer?

2010-11-20 Thread Jack Tanner
I see that Uwe has kindly uploaded the alternative 1.6.8 installer for Windows. 
Is anyone preparing the official one also?