Re: Inset background color change does not work

2016-05-17 Thread racoon

On 17.05.2016 22:11, racoon wrote:

Changing the "inset background" color under Preferences seems not to be
working. I can change the "inset frame" with no problem though. Or is
the "inset background" only for some particular kinds of insets?


Oh, I got confused. There is "inset frame" and "collapsable inset frame" 
(shouldn't it be "collapsible"?). Only the latter changes the color of 
the frames I have in mind. I have no idea what the former does. And 
there is apparently no "collapsable inset background". I don't know why.


Daniel




Inset background color change does not work

2016-05-17 Thread racoon

Hi,

Changing the "inset background" color under Preferences seems not to be 
working. I can change the "inset frame" with no problem though. Or is 
the "inset background" only for some particular kinds of insets?


Daniel



Re: Problem with tables.

2016-05-17 Thread Michael Berger



On 05/17/2016 07:01 PM, Pedro Ramos wrote:
Hello. I've been writing an article-class document using Lyx 2.1.4 and 
I've had trouble with the multiple lines in one table cell. Everytime 
I generate the .pdf it appears disorganized.

How colud I fix it?

Ramos,
I found that the number of rows of column 1 was different of the number 
of rows of some columns to the right. After making the number of rows in 
each column of the table tally the mismatch was gone.

I hope you see what I see here.
You got to be more precise when setting up the tables.

Michael


Tablas_corrected.lyx
Description: application/lyx


Tablas_corrected.pdf
Description: Adobe PDF document


Re: Finding common mistakes

2016-05-17 Thread Scott Kostyshak
On Tue, May 17, 2016 at 07:02:02AM -0600, Joel Kulesza wrote:
> On Tue, May 17, 2016 at 12:13 AM, Scott Kostyshak  wrote:
> 
> > We do have a grammar checker. Worked well for me on Ubuntu last time I
> > tried it:
> > https://wiki.lyx.org/Tools/LyX-GrammarChecker
> > It uses
> > https://www.languagetool.org/
> >
> > It would be great to see some improvements for it so that it works more
> > seamlessly with LyX.
> >
> >
> Gotcha, thanks for making me aware of this.  A search through the User's
> Guide and Additional Features guide for "grammar" didn't produce any
> results for me so I'd given up hope that this functionality was available.
> I'll take a look at what is built-in already.

If we ever make the integration more seamless we can feature it more
prominently so it is easier to find.

> > By the way, please bottom-post as asked for by our list netiquette:
> > https://www.lyx.org/MailingLists#toc7
> > It really does make it easier for others to quote and follow
> > conversations.
> >
> >
> Thanks for the reminder; sorry for the oversight.  When in the flow of
> conversation, it's just *so* much more natural to simply hit reply
> (particularly with GMail / "conversations").

Well, perhaps I'm the only one so dogmatic about it, but I think it does
make it easier for others. I just try to remind users where convenient.
Sorry for the inconvenience for you.

Scott


signature.asc
Description: PGP signature


Re: howto select multiple items in table

2016-05-17 Thread Scott Kostyshak
On Tue, May 17, 2016 at 08:49:31AM -0400, Neal Becker wrote:
> OK, here's a stupid question.  I'm trying to select multiple items in a 
> table with a mouse. shift-mouse1 selects all the intervening items. ctrl-
> mouse1 does not add to the selection, it is overiding the selection, the 
> same as mouse1. Using emacs key bindings.

Not a stupid question. We just have not implemented multiple selections.
See:
http://www.lyx.org/trac/ticket/5603

If you are interested in working on a patch, please let us know and we
can try to help you.

Scott


signature.asc
Description: PGP signature


Re: Problem with tables.

2016-05-17 Thread Jacob Bishop
On Tue, May 17, 2016 at 11:01 AM, Pedro Ramos  wrote:

> Hello. I've been writing an article-class document using Lyx 2.1.4 and
> I've had trouble with the multiple lines in one table cell. Everytime I
> generate the .pdf it appears disorganized.
> How colud I fix it?
>


> Go to the row(s) for which it is happening (row 6 of the first table, row
6 of the second table), right click in the table cell, go to settings, and
uncheck "multirow". That fixes the problem for me.

Jacob


Problem with tables.

2016-05-17 Thread Pedro Ramos
Hello. I've been writing an article-class document using Lyx 2.1.4 and I've
had trouble with the multiple lines in one table cell. Everytime I generate
the .pdf it appears disorganized.
How colud I fix it?


Tablas.lyx
Description: application/lyx


Tablas.pdf
Description: Adobe PDF document


Re: Help with creation of module

2016-05-17 Thread racoon
If you consider it worth uploading the module to the LyX wiki, please 
let me know the password for the ftp.


Daniel



Re: Finding common mistakes

2016-05-17 Thread Joel Kulesza
On Tue, May 17, 2016 at 12:13 AM, Scott Kostyshak  wrote:

> We do have a grammar checker. Worked well for me on Ubuntu last time I
> tried it:
> https://wiki.lyx.org/Tools/LyX-GrammarChecker
> It uses
> https://www.languagetool.org/
>
> It would be great to see some improvements for it so that it works more
> seamlessly with LyX.
>
>
Gotcha, thanks for making me aware of this.  A search through the User's
Guide and Additional Features guide for "grammar" didn't produce any
results for me so I'd given up hope that this functionality was available.
I'll take a look at what is built-in already.


> By the way, please bottom-post as asked for by our list netiquette:
> https://www.lyx.org/MailingLists#toc7
> It really does make it easier for others to quote and follow
> conversations.
>
>
Thanks for the reminder; sorry for the oversight.  When in the flow of
conversation, it's just *so* much more natural to simply hit reply
(particularly with GMail / "conversations").


howto select multiple items in table

2016-05-17 Thread Neal Becker
OK, here's a stupid question.  I'm trying to select multiple items in a 
table with a mouse. shift-mouse1 selects all the intervening items. ctrl-
mouse1 does not add to the selection, it is overiding the selection, the 
same as mouse1. Using emacs key bindings.

This is linux 
LyX Version 2.2.0rc1
(Monday, April 11, 2016)
Built from git commit hash 
Library directory: /usr/share/lyx/
User directory: ~/.lyx/
Qt Version (run-time): 4.8.7
Qt Version (compile-time): 4.8.7




Re: Problem with Inkscape integration: path to SVG file converted to long filename

2016-05-17 Thread Dr Eberhard Lisse
As an aside,

I get very good results with rsvg-convert. LyX sees it at (re)configure.

el

On 2016-05-13 16:34, Richard Heck wrote:
> On 05/13/2016 07:28 AM, Ron Stone wrote:
>> Thanks for the feedback.
>>
>> I got this working by making two changes:
>>
>> 1. The path declaration described in
>>
>> In the *Preferences* under *Paths* you should append
>> /:/Applications/Inkscape.app/Contents/Resources/bin/ at the end if you
>> have Inkscape installed at the default location. (Make sure a colon
>> separates it from the other entries.) 
>>
>> seemed to be ignored. I had to add it to my bash $PATH
>>  
>> 2. Perhaps because of 1, path variables were missing from the
>> converters. For example, SVG -> PDF had --file=$$i instead of
>> —file=$$p/$$i, and similarly for —export-pdf, it was missing the $$p/
> 
> If you haven't done so, adding a note about this to the wiki would be a
> good idea.
> 
> rh
> 




Re: Help with creation of module

2016-05-17 Thread racoon

On 17.05.2016 00:20, Guillaume Munch wrote:

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

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


A couple more things that would be nice:

- the footnotetext was added to the list of footnotes.


This would definitely take some work.



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


Thanks. I'll keep an eye on this.

Daniel





Re: Help with creation of module

2016-05-17 Thread racoon

On 17.05.2016 09:06, racoon wrote:

On 17.05.2016 00:00, racoon wrote:

On 16.05.2016 23:42, Richard Heck wrote:

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

On 16.05.2016 22:52, racoon wrote:

On 16.05.2016 22:22, Richard Heck wrote:

On 05/15/2016 05:20 AM, racoon wrote:

On 15.05.2016 03:41, Richard Heck wrote:

On 05/14/2016 05:46 PM, racoon wrote:

On 14.05.2016 08:29, racoon wrote:

On 14.05.2016 06:21, Richard Heck wrote:

On 05/13/2016 03:38 PM, racoon wrote:

Hi!

The LyX manual on customization has not much explanation. I
want to
create a simple module that inserts a label with
"footnotemark" and
the command \footnotemark in the source.

The LyxType sounds like the right thing to use. But
unfortunately, I
have no idea where I can find this kind of inset. The
documentation
states "Among other things, [LyXType] determines on which menu
this
inset will appear." (46, LyX 2.2) But it does not state where
the
inset will appear.


This does sound like a job for a Flex inset. Can you explain in
detail
what you want to accomplish, in terms of LaTeX? Is there
preamble
code?
What do you want to appear where this new inset would appear?

I'd suggest you look at endnotes.module for an example you
should be
able to adapt.

As for LyXType, the only genuine options here are CharStyle and
Custom.
The former is intended, as it says, for character styles,
such as
noun
and small caps. They appear under Edit> TextStyle. The latter is
intended for custom insets such as endnote. They appear under
Insert>
Custom Insets.


Ah, I see. Then charstyle is seems not to be the right thing.

I want to implement http://www.lyx.org/trac/ticket/9998 via a
module.

I have the current code inserted below. Problems at the moment:

For the Footnotemark:

- It should contain no arguments.
- It should also be possible to insert it in math mode.
- Can it count up the standard footnote counter that is shown on
the
footnote in the editor?



#\DeclareLyXModule{Footnote}
#DescriptionBegin
#Adds the footnotemark and footnotetext command
#DescriptionEnd

Format 59

InsetLayout Flex:Footnotetext
  LyXType custom
  LatexName   footnotetext
  LatexType   command
  Decoration  classic
  Font
Size Small
  EndFont
  MultiPartrue
  LabelString fntext
End

InsetLayout Flex:Footnotemark
  LyXTypecustom
  LatexNamefootnotemark
  LatexTypecommand
  Decorationclassic
  Font
Size Small
  EndFont
  LabelString fnmark
End




Okay, maybe I found my answer: it is not possible for now.

http://lyx-devel.lyx.narkive.com/i8i3itVw/lyx-construct-for-latex-commands-having-no-arguments








Yes, the part about "no arguments" means we're dealing with a
command-type inset, not a collapsable inset, and there are no
custom
versions of the former.



Thanks. Well, I tried to make a virtue out of it and looked up the
\footnotemark command and it can actually has an optional argument.

There are two more obstacles:

1. \footnotetext actually also takes an optional argument. So far I
have implemented it with only with the required argument. Is it
possible to add an optional argument to it?


Yes. See the discussion of the Argument tag in section 5.3.6 of the
Customization manual. You only need to declare the optional
argument, I
believe. Have a look at some of the InsetLayout definitions is
beamer.layout. Most of these have optional arguments.


2. a minor one: \footnotemark receives only an optional argument. Is
it possible to give only an optional argument to a command, i.e. to
give it directly to [] rather than {} in the latex command? Right
now
I just make a new command that gives it's required argument to
footnotemark as an optional argument. It's a bit indirect.


Yes, I see. I don't think we have the ability to output the "main"
argument with customized delimiters. You can ADD delimiters with the
LeftDelim and RightDelim tags, but these just seem to appear inside
the
usual brackets. I suspect this is a bug, actually. With other
arguments
you can specify the delimitersl, and they override the default.

Richard




Thanks. The hint at the beamer.layout was useful. (Somehow I thought
that Argument 1 must be the argument that is always present but it is
actually the first "additional" argument it seems.)

Actually, the \footnotemark command works in math mode as well. But I
guess there is no chance of using my module inset in math mode, right?


A couple more things that would be nice:

- the footnotetext was added to the list of footnotes.


This would definitely take some work.


- one could refer to the standard names of other insets, like the
LabelString of the standard footnotes. For example, I have renamed the
standard "foot x" to "fn x". So I would like to have a reference to
that name ("foot" or "fn") so that others can have whatever they like
and it will automatically be used.


You want something like:
LabelString [[LabelString:Foot]]
where the thing in brackets picks up the other 

Re: Help with creation of module

2016-05-17 Thread racoon

On 17.05.2016 00:00, racoon wrote:

On 16.05.2016 23:42, Richard Heck wrote:

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

On 16.05.2016 22:52, racoon wrote:

On 16.05.2016 22:22, Richard Heck wrote:

On 05/15/2016 05:20 AM, racoon wrote:

On 15.05.2016 03:41, Richard Heck wrote:

On 05/14/2016 05:46 PM, racoon wrote:

On 14.05.2016 08:29, racoon wrote:

On 14.05.2016 06:21, Richard Heck wrote:

On 05/13/2016 03:38 PM, racoon wrote:

Hi!

The LyX manual on customization has not much explanation. I
want to
create a simple module that inserts a label with
"footnotemark" and
the command \footnotemark in the source.

The LyxType sounds like the right thing to use. But
unfortunately, I
have no idea where I can find this kind of inset. The
documentation
states "Among other things, [LyXType] determines on which menu
this
inset will appear." (46, LyX 2.2) But it does not state where
the
inset will appear.


This does sound like a job for a Flex inset. Can you explain in
detail
what you want to accomplish, in terms of LaTeX? Is there preamble
code?
What do you want to appear where this new inset would appear?

I'd suggest you look at endnotes.module for an example you
should be
able to adapt.

As for LyXType, the only genuine options here are CharStyle and
Custom.
The former is intended, as it says, for character styles, such as
noun
and small caps. They appear under Edit> TextStyle. The latter is
intended for custom insets such as endnote. They appear under
Insert>
Custom Insets.


Ah, I see. Then charstyle is seems not to be the right thing.

I want to implement http://www.lyx.org/trac/ticket/9998 via a
module.

I have the current code inserted below. Problems at the moment:

For the Footnotemark:

- It should contain no arguments.
- It should also be possible to insert it in math mode.
- Can it count up the standard footnote counter that is shown on
the
footnote in the editor?



#\DeclareLyXModule{Footnote}
#DescriptionBegin
#Adds the footnotemark and footnotetext command
#DescriptionEnd

Format 59

InsetLayout Flex:Footnotetext
  LyXType custom
  LatexName   footnotetext
  LatexType   command
  Decoration  classic
  Font
Size Small
  EndFont
  MultiPartrue
  LabelString fntext
End

InsetLayout Flex:Footnotemark
  LyXTypecustom
  LatexNamefootnotemark
  LatexTypecommand
  Decorationclassic
  Font
Size Small
  EndFont
  LabelString fnmark
End




Okay, maybe I found my answer: it is not possible for now.

http://lyx-devel.lyx.narkive.com/i8i3itVw/lyx-construct-for-latex-commands-having-no-arguments







Yes, the part about "no arguments" means we're dealing with a
command-type inset, not a collapsable inset, and there are no custom
versions of the former.



Thanks. Well, I tried to make a virtue out of it and looked up the
\footnotemark command and it can actually has an optional argument.

There are two more obstacles:

1. \footnotetext actually also takes an optional argument. So far I
have implemented it with only with the required argument. Is it
possible to add an optional argument to it?


Yes. See the discussion of the Argument tag in section 5.3.6 of the
Customization manual. You only need to declare the optional
argument, I
believe. Have a look at some of the InsetLayout definitions is
beamer.layout. Most of these have optional arguments.


2. a minor one: \footnotemark receives only an optional argument. Is
it possible to give only an optional argument to a command, i.e. to
give it directly to [] rather than {} in the latex command? Right now
I just make a new command that gives it's required argument to
footnotemark as an optional argument. It's a bit indirect.


Yes, I see. I don't think we have the ability to output the "main"
argument with customized delimiters. You can ADD delimiters with the
LeftDelim and RightDelim tags, but these just seem to appear inside
the
usual brackets. I suspect this is a bug, actually. With other
arguments
you can specify the delimitersl, and they override the default.

Richard




Thanks. The hint at the beamer.layout was useful. (Somehow I thought
that Argument 1 must be the argument that is always present but it is
actually the first "additional" argument it seems.)

Actually, the \footnotemark command works in math mode as well. But I
guess there is no chance of using my module inset in math mode, right?


A couple more things that would be nice:

- the footnotetext was added to the list of footnotes.


This would definitely take some work.


- one could refer to the standard names of other insets, like the
LabelString of the standard footnotes. For example, I have renamed the
standard "foot x" to "fn x". So I would like to have a reference to
that name ("foot" or "fn") so that others can have whatever they like
and it will automatically be used.


You want something like:
LabelString [[LabelString:Foot]]
where the thing in brackets picks up the other one's name?


Yes, I think so. However, 

Re: Finding common mistakes

2016-05-17 Thread Scott Kostyshak
On Mon, May 16, 2016 at 07:35:50PM -0600, Joel Kulesza wrote:
> On the command line it appears to have two output formats: the standard one
> which gives some location information and a more complete JSON format
>  that gives complete location and severity
> location (which could used to style markup in the LyX interface).
> 
> Can someone comment on how LyX uses spellchecker diagnostics to perform
> continuous markup?  A similar approach could be useful with proselint (to
> parse the JSON output and style the LyX squiggles, perhaps instead of red
> using blue ala MS Word).  Similarly, it would be instructive to know how
> the spellchecker operates on-demand for running proselint on-demand.
> 
> On Mon, May 16, 2016 at 7:18 PM, Richard Heck  wrote:

We do have a grammar checker. Worked well for me on Ubuntu last time I
tried it:
https://wiki.lyx.org/Tools/LyX-GrammarChecker
It uses
https://www.languagetool.org/

It would be great to see some improvements for it so that it works more
seamlessly with LyX.

By the way, please bottom-post as asked for by our list netiquette:
https://www.lyx.org/MailingLists#toc7
It really does make it easier for others to quote and follow
conversations.

Scott

> > On 05/16/2016 09:00 PM, Paul A. Rubin wrote:
> > > Joel,
> > >
> > > If you decide proselint is useful, it would be worth mentioning in the
> > > user list. Maybe someone could hack a converter script to facilitate
> > > running it against a LyX document.
> >
> > It looks to be text only, so you could export a LyX file to plaintext
> > and run it against that. But it's hard to know how it would deal with
> > footnotes, etc.
> >
> > Richard
> >
> >


signature.asc
Description: PGP signature