Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Jürgen Spitzmüller
Am Do., 8. Nov. 2018, 17:13 hat Bert Lloyd 
geschrieben:

> However, there are some further tweaks I would like to make that as
> far as I know cannot be done this way. For example, in plain LaTex, I
> would add
>
> \AtEveryBibitem{%
>   \clearlist{language}
> }
>
> after \usepackage[...]{biblatex
>

Use

\AtBeginDocument{%
\AtEveryBibitem{%
  \clearlist{language}
}
}

Jürgen


> I attempted to implement this via Document Settings - Preamble.
> However, the problem I am having is that it appears that, by default,
> LyX places
> \usepackage[...]{biblatex}
> \addbibresource{are-495.bib}
> at the very end of the latex preamble.
>
> As a result, options I add via Document Settings - Preamble appear
> before \usepackage[...]{biblatex}, leading to an error message:
>
> Undefined control sequence
> \AtEveryBibitem
> {%
> The control sequence at the end of the top line...
>
> I tried including the \AtEveryBibitem{%... material in the body of the
> document using ERT, but this also lead to an error:
> ! LaTeX Error: Can be used only in preamble.
>
> So, is there a way I can
> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
> B) Add material to a specific part of the latex preamble (i.e., the
> end, or at least after \usepackage[...]{biblatex})?
> C) Pass options to biblatex a different way?
> D) Other?
>
> Many thanks,
>
> BL
>


Re: Cross-reference Styling Inquiry

2018-11-08 Thread Andrew Parsloe



On 9/11/2018 7:00 AM, Joel Kulesza wrote:

Colleagues,

As I'm writing a paper, I have a mix of Ref:... and EqRef:... cross 
references.  I also, unfortunately, sometimes manage to break them and 
achieve BROKEN:... cross references.


Has anyone identified a way to color the associated boxes/buttons 
differently based on their status (Ref, EqRef, BROKEN, etc.)?  By 
default, they are all gray and it can be easy to overlook the 
miscategorization of an EqRef style to a typical Ref and vice versa.  
It can also be hard to quickly see or incidentally notice BROKEN cross 
references.


What I'd like to see is something like Ref (light blue), EqRef (light 
green), BROKEN (light red).  Has anyone identified a way to do this?  
Is this an enhancement request that I should enter?


Thank you,
Joel


This doesn't answer your question, but the Outliner, Labels and 
References, with the Sort checkbox set is an easy way to find BROKEN 
refs. They cluster in a block near the top. Clicking on any one, jumps 
straight to the ref in the document.


Looking at all the different AMS environments suggests it would be too 
much for LyX to provide a different colour for each kind of ref, but 
being able to customize the label colour would be good. (I can find 
stdrefprefix.inc in the LyX Resources/layouts directory but nothing that 
sets the appearance of ref labels.)


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: LyX on iPad

2018-11-08 Thread Steve Litt
On Tue, 6 Nov 2018 18:51:50 +0200
Dr Eberhard Lisse  wrote:

> On 2018-11-05 23:45 , Steve Litt wrote:

> > Retina display and iOS and all this Apple compatibility is nice, but
> > I'll repeat, it's not 2008 and PDF is no longer the only game in
> > town, and I think priority should be placed on finishing what was
> > started in July of 2008.  
> 
> So you are joing the development team?

A timely question. I've joined the development team, just not the *LyX*
development team.

Instead, I'm developing Stylz, a native format dedicated to fast
authoring via an editor, dedicated to easily enabling the author to
declare and use custom styles, and dedicated to be exportable, *with
semantic completeness and correctness*, to any conceivable output
format.

Stylz is new and raw, but right now it does an excellent job of
outputting HTML and ePub. The PDF export (via Plain TeX plus a small
handful of addons) currently gives wrong results, and I need help on
the PDF export.

Unlike LyX' "HTML export", Stylz' style to appearance conversion
happens via style files such as CSS for HTML and TeX macros for PDF.
Styles are preserved to the very last moment, and Style to appearance
conversion is different on each output format. So, for instance, an
emphasis character style could be italic in PDF, but straight and
backgrounded by light yellow in HTML or ePub.

To assist the author in style definitions, Stylz includes a style
lister that lists every style used in a document. It also includes a
CSS boilerplate maker that makes boilerplate CSS for every style in the
document. I'll probably do the same thing for boilerplate Plain TeX
style-implementing macros.

Like all software, Stylz fills a niche. If you know for sure your
document will never need to be in a format other than PDF/paper, use
LyX. As many have noted in this thread, LyX is dedicated to being a
front end to LaTeX for the purpose of PDF/paper output. If you want
some degree of choice in output format, including PDF and HTML, and
your output needs are so simple as not to require custom styles, use
asciidoc. And if you need exportability to PDF, HTML, ePub, and
anything in the future for which a Stylz export has been authored, and
you also need to make and use customized styles, Stylz fills your needs.

Stylz works as follows: stylz2xml parses the author-friendly Stylz
format and converts to XML, from where anything can be done. The XML
has *all* information contained in the Stylz file, with absolutely no
regard to its own viewability. xml2html converts the XML to HTML. From
there, html2epub converts it to ePub. It takes less than a second for
my dual core AMD with 16GB RAM to convert all the way from stylz to
ePub,  and as I mentioned, for the most part the produced ePub is ready
for prime time.

Where I need help is xml2tex, or, if you choose, perhaps a pandoc or
XSLT solution if it's reasonably simple and well documented and
commented. I want to avoid using LaTeX in the conversion because it
would require too much "other peoples code", increasing the error
surface, and making troubleshooting harder.

I'm only one guy, wedging Stylz development between my other activities
and responsibilities, so in most cases I did what seemed the quickest,
so Stylz is a mix of Python, awk, sed, and /bin/sh. Python has some
great XML parsers, which is what I really needed. I anticipate the
license will be either GPL2 or Expat
(https://directory.fsf.org/wiki/License:Expat).

So anyone interested in writing the Stylz XML to PDF converter, please
get in touch with me.

SteveT

Steve Litt
November 2018 featured book: Manager's Guide to Technical
Troubleshooting Brand new, second edition
http://www.troubleshooters.com/mgr


Cross-reference Styling Inquiry

2018-11-08 Thread Joel Kulesza
Colleagues,

As I'm writing a paper, I have a mix of Ref:... and EqRef:... cross
references.  I also, unfortunately, sometimes manage to break them and
achieve BROKEN:... cross references.

Has anyone identified a way to color the associated boxes/buttons
differently based on their status (Ref, EqRef, BROKEN, etc.)?  By default,
they are all gray and it can be easy to overlook the miscategorization of
an EqRef style to a typical Ref and vice versa.  It can also be hard to
quickly see or incidentally notice BROKEN cross references.

What I'd like to see is something like Ref (light blue), EqRef (light
green), BROKEN (light red).  Has anyone identified a way to do this?  Is
this an enhancement request that I should enter?

Thank you,
Joel


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Bert Lloyd
I suppose it would, but I would prefer to load biblatex through LyX in
the standard way if possible.
On Thu, Nov 8, 2018 at 12:04 PM Benedict Holland
 wrote:
>
> If you don't include biblatex in the UI (remove any bibliography settings in 
> Lyx), it shouldn't load anything. Of course, then it is on you to include 
> biblatex with all options and customizations you would like.
>
> Does that work?
>
> Thanks,
> ~Ben
>
> On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:
>>
>> Dear LyX Users,
>>
>> I am using biblatex in LyX 2.3. I have added several options through
>> the standard approach (Document Settings - Bibliography - Citation
>> Style - Options; for example: hyperref=true), and this works fine.
>>
>> However, there are some further tweaks I would like to make that as
>> far as I know cannot be done this way. For example, in plain LaTex, I
>> would add
>>
>> \AtEveryBibitem{%
>>   \clearlist{language}
>> }
>>
>> after \usepackage[...]{biblatex}
>>
>> I attempted to implement this via Document Settings - Preamble.
>> However, the problem I am having is that it appears that, by default,
>> LyX places
>> \usepackage[...]{biblatex}
>> \addbibresource{are-495.bib}
>> at the very end of the latex preamble.
>>
>> As a result, options I add via Document Settings - Preamble appear
>> before \usepackage[...]{biblatex}, leading to an error message:
>>
>> Undefined control sequence
>> \AtEveryBibitem
>> {%
>> The control sequence at the end of the top line...
>>
>> I tried including the \AtEveryBibitem{%... material in the body of the
>> document using ERT, but this also lead to an error:
>> ! LaTeX Error: Can be used only in preamble.
>>
>> So, is there a way I can
>> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
>> B) Add material to a specific part of the latex preamble (i.e., the
>> end, or at least after \usepackage[...]{biblatex})?
>> C) Pass options to biblatex a different way?
>> D) Other?
>>
>> Many thanks,
>>
>> BL


Re: Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Benedict Holland
If you don't include biblatex in the UI (remove any bibliography settings
in Lyx), it shouldn't load anything. Of course, then it is on you to
include biblatex with all options and customizations you would like.

Does that work?

Thanks,
~Ben

On Thu, Nov 8, 2018 at 11:13 AM Bert Lloyd  wrote:

> Dear LyX Users,
>
> I am using biblatex in LyX 2.3. I have added several options through
> the standard approach (Document Settings - Bibliography - Citation
> Style - Options; for example: hyperref=true), and this works fine.
>
> However, there are some further tweaks I would like to make that as
> far as I know cannot be done this way. For example, in plain LaTex, I
> would add
>
> \AtEveryBibitem{%
>   \clearlist{language}
> }
>
> after \usepackage[...]{biblatex}
>
> I attempted to implement this via Document Settings - Preamble.
> However, the problem I am having is that it appears that, by default,
> LyX places
> \usepackage[...]{biblatex}
> \addbibresource{are-495.bib}
> at the very end of the latex preamble.
>
> As a result, options I add via Document Settings - Preamble appear
> before \usepackage[...]{biblatex}, leading to an error message:
>
> Undefined control sequence
> \AtEveryBibitem
> {%
> The control sequence at the end of the top line...
>
> I tried including the \AtEveryBibitem{%... material in the body of the
> document using ERT, but this also lead to an error:
> ! LaTeX Error: Can be used only in preamble.
>
> So, is there a way I can
> A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
> B) Add material to a specific part of the latex preamble (i.e., the
> end, or at least after \usepackage[...]{biblatex})?
> C) Pass options to biblatex a different way?
> D) Other?
>
> Many thanks,
>
> BL
>


Customizing biblatex beyond Citation Style - Options field

2018-11-08 Thread Bert Lloyd
Dear LyX Users,

I am using biblatex in LyX 2.3. I have added several options through
the standard approach (Document Settings - Bibliography - Citation
Style - Options; for example: hyperref=true), and this works fine.

However, there are some further tweaks I would like to make that as
far as I know cannot be done this way. For example, in plain LaTex, I
would add

\AtEveryBibitem{%
  \clearlist{language}
}

after \usepackage[...]{biblatex}

I attempted to implement this via Document Settings - Preamble.
However, the problem I am having is that it appears that, by default,
LyX places
\usepackage[...]{biblatex}
\addbibresource{are-495.bib}
at the very end of the latex preamble.

As a result, options I add via Document Settings - Preamble appear
before \usepackage[...]{biblatex}, leading to an error message:

Undefined control sequence
\AtEveryBibitem
{%
The control sequence at the end of the top line...

I tried including the \AtEveryBibitem{%... material in the body of the
document using ERT, but this also lead to an error:
! LaTeX Error: Can be used only in preamble.

So, is there a way I can
A) Control where LyX puts \usepackage[...]{biblatex} in the latex preamble?
B) Add material to a specific part of the latex preamble (i.e., the
end, or at least after \usepackage[...]{biblatex})?
C) Pass options to biblatex a different way?
D) Other?

Many thanks,

BL


Beamer overprint

2018-11-08 Thread F M Salter
Hi

    I am attempting to overprint text and equations to identify
significant text and the corresponding parts of the equations successively..

    I am attaching an example for which I expected the text and
equations to over print. Not to have non-overlaid text and two equations.

    Is this a bug or am I misunderstanding what is required?

    Any suggestions of how to do this will be appreciated.

Regards

Frank Salter.



beamer_test.lyx
Description: application/lyx


How to hyphenate a long word in a cited reference

2018-11-08 Thread list_email
How does one hyphenate a long word that appears in a citation, in the list of 
references? The problematic long word appears in the title of a paper and is 
not editable as normal text in LyX.

Jerry

Program listing: Julia syntax? inserint "\" and "$"?

2018-11-08 Thread Bernt Lie
Three questions on LyX 2.2.x and newer:
1. Is it possible to choose Julia as language for typesetting program listing?
2. Is it possible to insert Jupyter segments and have them typeset "correctly"?
3. How do I include symbols "\" and "$" in program listing, e.g., if I want to 
include LaTeX code or Julia code?

-B