Re: Lyx-Miktex problems on Windows 10

2016-12-08 Thread Cris Fuhrman
I had a similar problem earlier this week. The cause was the MikTeX mirror
I was using was reporting that versions of LaTeX elements were present, but
when the updater would run from LyX to install missing things, it would
fail. The errors show in LyX message console, but they aren't fatal. I
discovered this by running the update/package manager myself outside of
LyX.

The short term solution was to choose another LaTeX distribution mirror in
MikTeX updater by running it outside LyX.

On Thu, Dec 8, 2016, 23:35 Scott Kostyshak  wrote:

> On Sun, Nov 27, 2016 at 04:20:22PM +, Guillermo Cruces wrote:
> > Hi everyone, I have been a Lyx user for years. Awesome program! Every
> version change has been a bit bumpy, but a reconfigure used to work. Not
> now. Here are my issues, just posted on stackexchange too:
> >
> > I have issues with packages with Lyx 2.2 on Windows 10. I have updated
> packages on MikTex as admin, I have changed the option to ask me first
> instead of update packages on the fly (even though I selected ask me first
> during install, it still got set at on the fly), I have updated directories
> on miktex options (admin), I have reconfigured lyx, and nothing. When I
> open a beamer file, it says the beamer.cls (and set space and many others
> are available) and while it asks for downloading them within lyx, they
> don't seem to "stick".
> >
> > I have managed to compile my file by going to the Miktex package manager
> (as admin) and installing manually every package that lyx complained was
> not available. I get a PDF (although it complains the PDF viewer is
> missing...). While it compiles, it still complains that the beamer class,
> xcolor, etc., are not available when opening the file.
> > It seems to me something in the settings/update/confir of Lyx+Miktex is
> not working. Anyone can confirm this? Any solutions? I'll try running Lyx
> as admin just in case...
>
> Hi Guillermo,
>
> I'm CC'ing Uwe, who is our only developer on Windows. Hopefully he has
> an idea of what's going on.
>
> Sorry for the frustration.
>
> Scott
>


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 15:22 +0100 schrieb Oliver Margraf:
> Am 08.12.2016 um 15:15 schrieb Jürgen Spitzmüller:
> > Am Donnerstag, den 08.12.2016, 14:58 +0100 schrieb Oliver Margraf:
> > > Sure - see attachment (exported for XeTeX).
> > 
> > Strange. I don't get the comma with this file either.
> 
> Strange indeed...

Maybe a biblatex bug. Could you try to upgrade to the most recent
version?

Jürgen

signature.asc
Description: This is a digitally signed message part


Re: another success

2016-12-08 Thread Scott Kostyshak
On Thu, Dec 08, 2016 at 09:46:25AM -0500, Neal Becker wrote:
> Our paper on "Spread Asynchronous Scrambled Coded Multiple Access (SA-SCMA)" 
> was just presented at IEEE Globecom 2016, written with lyx.

Congratulations! Thanks for sharing.

Scott


signature.asc
Description: PGP signature


Re: Lyx-Miktex problems on Windows 10

2016-12-08 Thread Scott Kostyshak
On Sun, Nov 27, 2016 at 04:20:22PM +, Guillermo Cruces wrote:
> Hi everyone, I have been a Lyx user for years. Awesome program! Every version 
> change has been a bit bumpy, but a reconfigure used to work. Not now. Here 
> are my issues, just posted on stackexchange too:
> 
> I have issues with packages with Lyx 2.2 on Windows 10. I have updated 
> packages on MikTex as admin, I have changed the option to ask me first 
> instead of update packages on the fly (even though I selected ask me first 
> during install, it still got set at on the fly), I have updated directories 
> on miktex options (admin), I have reconfigured lyx, and nothing. When I open 
> a beamer file, it says the beamer.cls (and set space and many others are 
> available) and while it asks for downloading them within lyx, they don't seem 
> to "stick".
> 
> I have managed to compile my file by going to the Miktex package manager (as 
> admin) and installing manually every package that lyx complained was not 
> available. I get a PDF (although it complains the PDF viewer is missing...). 
> While it compiles, it still complains that the beamer class, xcolor, etc., 
> are not available when opening the file.
> It seems to me something in the settings/update/confir of Lyx+Miktex is not 
> working. Anyone can confirm this? Any solutions? I'll try running Lyx as 
> admin just in case...

Hi Guillermo,

I'm CC'ing Uwe, who is our only developer on Windows. Hopefully he has
an idea of what's going on.

Sorry for the frustration.

Scott


signature.asc
Description: PGP signature


Re: Icon size in Lyx 2.2.2

2016-12-08 Thread Scott Kostyshak
> > Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not
> > grayed out).

I think we should enable the context menu even if the icons are greyed
out. I think we discussed this elsewhere also. Do others agree?

Scott


signature.asc
Description: PGP signature


Re: Icon size in Lyx 2.2.2

2016-12-08 Thread Paul A. Rubin

On 12/08/2016 04:14 PM, UD wrote:




On 12/08/2016 05:45 PM, Paul A. Rubin wrote:

On 12/08/2016 11:20 AM, UD wrote:
I used to be able to right-click on an icon in Lyx and change the 
size of the icons, but in Lyx 2.2.2 nothing happens when I right 
click an icon.

What am I missing?  I have qt5 installed.
Thanks--
EK


Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active 
(not grayed out).


Paul

Thanks Paul-- silly me-- I was trying it without an open file, 
thinking it had something to do with Lyx itself.
Once I opened a file it worked as it should.  A bit confusing for 
novices like me, but it works once you know how.


EK

Ehud,

It works without a document being open, so long as you pick a live icon. 
With no document open, try the "New Document" or "Open Document" icon on 
the main tool bar.


Working in a GUI where I'm not sure how to do something, I frequently 
resort to "right click anything that can't outrun me" until I find what 
I'm looking for. :-)


Paul



Re: Icon size in Lyx 2.2.2

2016-12-08 Thread UD



On 12/08/2016 05:45 PM, Paul A. Rubin wrote:

On 12/08/2016 11:20 AM, UD wrote:
I used to be able to right-click on an icon in Lyx and change the 
size of the icons, but in Lyx 2.2.2 nothing happens when I right 
click an icon.

What am I missing?  I have qt5 installed.
Thanks--
EK


Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active 
(not grayed out).


Paul

Thanks Paul-- silly me-- I was trying it without an open file, thinking 
it had something to do with Lyx itself.
Once I opened a file it worked as it should.  A bit confusing for 
novices like me, but it works once you know how.


EK

--
Ehud Kaplan, Ph.D.
Jules and Doris Stein Research to Prevent Blindness Professor
Director, Center of Excellence for Computational & System neuroscience,
The Friedman Brain Institute, ISMMS
Director, The laboratory of Visual & Computational Neuroscience
Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
The Icahn School of Medicine at Mount Sinai
One Gustave Levy Place
New York, NY, 10029
USA



Re: Trojan in LyX ?!

2016-12-08 Thread Richard Heck
On 12/08/2016 08:22 AM, Max Peterson wrote:
> I have tried to check it. Result:
>
> Inline-Bild 1

You need to import the LyX key.

Richard



Re: Icon size in Lyx 2.2.2

2016-12-08 Thread Paul A. Rubin

On 12/08/2016 11:20 AM, UD wrote:
I used to be able to right-click on an icon in Lyx and change the size 
of the icons, but in Lyx 2.2.2 nothing happens when I right click an 
icon.

What am I missing?  I have qt5 installed.
Thanks--
EK


Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not 
grayed out).


Paul



Icon size in Lyx 2.2.2

2016-12-08 Thread UD

  
  
I used to be able to right-click on an icon in Lyx and change the
size of the icons, but in Lyx 2.2.2 nothing happens when I right
click an icon. 
What am I missing?  I have qt5 installed.
Thanks--
EK
 

  



another success

2016-12-08 Thread Neal Becker
Our paper on "Spread Asynchronous Scrambled Coded Multiple Access (SA-SCMA)" 
was just presented at IEEE Globecom 2016, written with lyx.

For the presentation version, I used lyx with beamer with the metropolis 
theme, available here

https://github.com/matze/mtheme

and the following preamble (hopefully not mangled by cut/paste)

\providecommand\suppressfontnotfounderror{\luatexsuppressfontnotfounderror}
\usetheme{metropolis}
\defbeamertemplate{footline}{my header}{%
\vskip1pt%
\makebox[0pt][l]{\,\insertsection}%
\hspace*{\fill}\insertshorttitle\hspace*{\fill}%
\llap{\insertpagenumber\,/\,\insertpresentationendpage\,}
}
\setbeamertemplate{footline}[my header]
\setsansfont[BoldFont={Fira Sans SemiBold}]{Fira Sans Book}


\usepackage{algorithm}
\usepackage{listings}

\usepackage{caption}
\captionsetup{labelformat=empty,labelsep=none}
\captionsetup[subfigure]{labelformat=empty,labelsep=none}
\usepackage[style=authoryear,autocite=footnote,backend=bibtex,language=english]
{biblatex}
\addbibresource{/home/nbecker/spread-ascma/ascma.bib}
\usepackage{pgfpages}
\setbeameroption{show notes}
\setbeameroption{show notes on second screen=right}
\usepackage{siunitx}
\usepackage{scrextend}
\changefontsizes{9.5pt}
\usepackage{appendixnumberbeamer}

Thanks for all your great work on LyX!




Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Oliver Margraf
Am 08.12.2016 um 15:15 schrieb Jürgen Spitzmüller:
> Am Donnerstag, den 08.12.2016, 14:58 +0100 schrieb Oliver Margraf:
>> Sure - see attachment (exported for XeTeX).
> 
> Strange. I don't get the comma with this file either.

Strange indeed...

> Does it help if you modify/remove this definition from your preamble?
> 
> \DefineBibliographyStrings{german}{andothers = {{et\,al\adddot}},}%et
> al statt u.a.

No. It's just u.a. instead of et al - with the comma at the same place...

Oliver


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 14:58 +0100 schrieb Oliver Margraf:
> Sure - see attachment (exported for XeTeX).

Strange. I don't get the comma with this file either.

Does it help if you modify/remove this definition from your preamble?

\DefineBibliographyStrings{german}{andothers = {{et\,al\adddot}},}%et
al statt u.a.

Jürgen

> 
> Oliver

signature.asc
Description: This is a digitally signed message part


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Oliver Margraf


Am 08.12.2016 um 14:38 schrieb Jürgen Spitzmüller:
> Am Donnerstag, den 08.12.2016, 14:17 +0100 schrieb Oliver Margraf:
>> That is interesting - could this be related to a certain version of
>> biblatex 
> 
> Don't think so.
> 
>> or what would be a good place to start investigation?
> 
> Could you post the LaTeX export of your file?

Sure - see attachment (exported for XeTeX).

Oliver
%% LyX 2.1.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\RequirePackage{fixltx2e}
\documentclass[12pt,oneside,german,ngerman,index=totoc,table,obeyspaces,hyphens,oneside]{scrbook}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{TeX Gyre Termes}
\setsansfont[Mapping=tex-text]{TeX Gyre Termes}
\setmonofont[Scale=0.85]{Source Code Pro}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=4cm,rmargin=2cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{verbatim}
\usepackage{float}
\usepackage{setspace}
\onehalfspacing

\makeatletter
\@ifundefined{date}{}{\date{}}
%% User specified LaTeX commands.
% Wird für die Seitenränderunterschiede zwischen Titelseite und Dokument verwendet
\usepackage{geometry}
%Hurenkind und Schusterjungenvermeidung
\widowpenalty=1
\clubpenalty=1

%\usepackage[scaled]{helvet}
%\renewcommand\familydefault{\sfdefault} 
%Für XeTeX Verwendung
%\usepackage{fontspec}
%\setmainfont[Ligatures=TeX]{Candara}
%\setsansfont{Candara}
\usepackage{xunicode}
\usepackage{xltxtra}
 
%bibliografie in toc ===
\usepackage[nottoc,chapter]{tocbibind}
%\renewcommand\bibname{Literaturverzeichnis}
%für deutsche BibTeX-Einstellungen
\usepackage{bibgerm}
%\usepackage [chapter]{tocbibind}
%bei Verwendung von XeTeX muß das vor dem biber Eintrag kommen!
\usepackage{polyglossia}
\setdefaultlanguage{german}

%\usepackage[style=authoryear,backend=biber]{biblatex}
\usepackage[style=authoryear,autocite=footnote, citestyle=authoryear-icomp,natbib=true,backend=biber,maxnames=1,maxbibnames=99,dashed=false]{biblatex}
%Formatierung der Darstellung nach Autor (Jahr), S. xx
\renewbibmacro*{textcite:postnote}{%
  \ifbool{cbx:parens}
   {\bibcloseparen}
   {}
  \iffieldundef{postnote}
{}
{\ifbool{cbx:parens}
   {\setunit{\postnotedelim}}
   {\setunit{\extpostnotedelim\bibopenparen}}%
 \printfield{postnote}}}
%\setcitestyle{aysep={ }}
%\bibpunct{(}{)}{a}{,}{,}

\addbibresource{~/Schreibtisch/hevner.bib}
%Mit Anzeige von "et al." nach dem ersten Autor und aller Autoren im Literaturverzeichnis
\DefineBibliographyStrings{german}{andothers = {{et\,al\adddot}},}%et al statt u.a.



%Unterschrift===
%\usepackage[signature=default_signature, nojob]{mysignature}
%\usepackage[mmdd]{datetime}
%\renewcommand{\dateseparator}{--}

%Manipulation der Caption
\usepackage{caption}
%Änderund der Bezeichnung
\renewcaptionname{german}{\figurename}{Abb.}
%Manipulation der Ausrichtung
\captionsetup{justification = raggedright,
   singlelinecheck = false}
%Möglichkeit, Quellenangabe unter Bild zu setzen
\newcommand{\source}[1]{\vspace{-8pt} \caption*{Quelle: {#1}} }



%Anhang richtig sichtbar machen ==
\usepackage[toc,page]{appendix}
\renewcommand\appendixname{Anhang}
\renewcommand\appendixpagename{Anhang}
\renewcommand\appendixtocname{Anhang}

%Blindtext=
%\usepackage{lipsum}
%\usepackage[margin=4.4cm,headheight=35pt,showframe]{geometry}
%\usepackage{showframe}

%Paket für PDF Einbettung
\usepackage{pdfpages}

\usepackage{subfig}

% Verwendung von PSTricks (graphische Besonderheiten erzeugen)
\usepackage{pstricks}
% PostScript Font für Symole nutzen
\usepackage{pifont,color}
 
%Verbesserung Randausgleich
\usepackage{microtype}
 


%Glossar ===
\usepackage{nomencl}
\def\nompreamble{\addcontentsline{toc}{chapter}{\nomname}\markboth{\nomname}{\nomname}}
\renewcommand\nomname{Glossar}
%\makenomenclature -> verhindert die Namensänderung ab LyX 2.0.3 und erzeugt den Standardnamen "Symbolverzeichnis"
 
%\usepackage{pxfonts}
%\usepackage{abstract} -> nur wenn ein Abstract verwendet wird. Wirft sonst Fehler.

%Fußnoten ohne Einrückung 
\usepackage[flushmargin]{footmisc}

%Fußnoten durchnummerieren (ganzes Dokument) =
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}

%\usepackage{europs}
\usepackage{eurosym}
%\usepackage[latin9]{inputenc}
%\let € = \euro

%Farben
%Farbe definieren (für Schrifteinfärbungen)
\usepackage{color}
\definecolor{4cgreen}{cmyk}{1.0,0,0.6,0.72}

Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 14:17 +0100 schrieb Oliver Margraf:
> That is interesting - could this be related to a certain version of
> biblatex 

Don't think so.

> or what would be a good place to start investigation?

Could you post the LaTeX export of your file?

Jürgen

> 
> Oliver

signature.asc
Description: This is a digitally signed message part


Re: Trojan in LyX ?!

2016-12-08 Thread Max Peterson
I have tried to check it. Result:

[image: Inline-Bild 1]




2016-12-06 23:40 GMT+01:00 Richard Heck :

> On 12/06/2016 02:41 PM, Cris Fuhrman wrote:
>
> It's good to be paranoid. I suspected a virus, too, weeks ago when 2.2.2
> was released (my Microsoft anti-virus even deleted the download before I
> could run it!). However, VirusTotal shows that a minority of the virus
> detectors see a Trojan in the installer exes distributed for LyX, but most
> do not:
>
> https://www.virustotal.com/en/file/f6a843b13bcbbcf7e7ae6cba3842f5
> 5b73d0327834e55fd47ec2a7314975ebd0/analysis/
>
> Also, when I check the signatures with "gpg" (using a git bash in Windows
> 10), I see "Good signature" (my emphasis below):
>
>
> Just to emphasize a point made earlier: This verifies that the file is the
> same as the one that *I* uploaded. Uwe does not sign the binaries he
> sends me, so I have no way to verify that they are the same as the ones he
> produced.
>
> If you know how to set up signing, etc, on Windows, perhaps you could help
> Uwe get that set up on his machine? If so, perhaps you could email him at
> uwesto...@lyx.org and cc me and we can try to sort this out?
>
> Richard
>
>


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Oliver Margraf


Am 08.12.2016 um 14:10 schrieb Jürgen Spitzmüller:
> Am Donnerstag, den 08.12.2016, 14:05 +0100 schrieb Oliver Margraf:
>> When I compile it, I get it with a comma - please see attachment.
> 
> I don't.

That is interesting - could this be related to a certain version of
biblatex or what would be a good place to start investigation?

Oliver


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 14:05 +0100 schrieb Oliver Margraf:
> When I compile it, I get it with a comma - please see attachment.

I don't.

Jürgen

signature.asc
Description: This is a digitally signed message part


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Oliver Margraf


Am 08.12.2016 um 13:13 schrieb Jürgen Spitzmüller:
> Am Donnerstag, den 08.12.2016, 11:14 +0100 schrieb Oliver Margraf:
>> Thank you, that almost solves my problem, yet it still puts a comma
>> after the author (basically the initial problem I tried to circumvent
>> with bibpunct). Is there a way to get rid of that as well?
> 
> I don't see that in your testfile (I get "Hevner et al. (2004), S.
> 801")
> 

When I compile it, I get it with a comma - please see attachment.

Oliver


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 11:14 +0100 schrieb Oliver Margraf:
> Thank you, that almost solves my problem, yet it still puts a comma
> after the author (basically the initial problem I tried to circumvent
> with bibpunct). Is there a way to get rid of that as well?

I don't see that in your testfile (I get "Hevner et al. (2004), S.
801")

Jürgen

> 
> Oliver

signature.asc
Description: This is a digitally signed message part


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 11:03 +0100 schrieb Jürgen Spitzmüller:
> Am Donnerstag, den 08.12.2016, 10:42 +0100 schrieb Oliver Margraf:
> > Thanks, but these commands are already in the document - that's why
> > I'm
> > not getting it, where the problem is. You can check in the example
> > -
> > has
> > the same settings as my original doc.
> 
> I see, I misread. Try
> 
> \renewbibmacro*{textcite:postnote}{%
> \ifbool{cbx:parens}
>    {\bibcloseparen}
>    {}
> {\ifbool{cbx:parens}
>    {\setunit{\postnotedelim}}
>    {\setunit{\extpostnotedelim\bibopenparen}}%
>  \printfield{postnote}}}

Use this instead:

\renewbibmacro*{textcite:postnote}{%
  \ifbool{cbx:parens}
   {\bibcloseparen}
   {}
  \iffieldundef{postnote}
{}
{\ifbool{cbx:parens}
   {\setunit{\postnotedelim}}
   {\setunit{\extpostnotedelim\bibopenparen}}%
 \printfield{postnote}}}

Jürgen

> 
> Jürgen

signature.asc
Description: This is a digitally signed message part


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 10:42 +0100 schrieb Oliver Margraf:
> Thanks, but these commands are already in the document - that's why
> I'm
> not getting it, where the problem is. You can check in the example -
> has
> the same settings as my original doc.

I see, I misread. Try

\renewbibmacro*{textcite:postnote}{%
\ifbool{cbx:parens}
   {\bibcloseparen}
   {}
{\ifbool{cbx:parens}
   {\setunit{\postnotedelim}}
   {\setunit{\extpostnotedelim\bibopenparen}}%
 \printfield{postnote}}}

Jürgen

signature.asc
Description: This is a digitally signed message part


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Oliver Margraf


Am 08.12.2016 um 10:36 schrieb Jürgen Spitzmüller:
> Am Donnerstag, den 08.12.2016, 10:24 +0100 schrieb Oliver Margraf:
>> Dear LyXers,
>>
>> after using LyX now for over a decade (thanks to the developers,
>> great
>> job!), I recently ran into a slight problem where I haven't been able
>> yet to figure out what the cause could be.
>> I'm currently writing an assignment and need to cite literature. For
>> doing so I use biblatex and biber as backend - works fine. However
>> when
>> I want to adjust the form of the citation (as it can be achieved when
>> selecting the style pre-defined in the bib entry mask), the form I
>> need
>> is not available. In general this is no problem, since once can
>> adjust
>> this with either of the following commands:
>>
>> \bibpunct{(}{)}{,}{a}{ }{,}
>>
>> \setcitestyle{aysep={ }}
> 
> These are natbib commands, but you use biblatex, not natbib. That's wyh
> you get the errors.
> 
> Put the following into Document > Settings > Local Layout:
> 
> Provides natbib   1
> 
> Then you can use all natbib citations styles with biblatex (provided
> that you use biblatex's natbib=true option).
> 
> Jürgen
> 
Thanks, but these commands are already in the document - that's why I'm
not getting it, where the problem is. You can check in the example - has
the same settings as my original doc.

Oliver


Re: [BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Jürgen Spitzmüller
Am Donnerstag, den 08.12.2016, 10:24 +0100 schrieb Oliver Margraf:
> Dear LyXers,
> 
> after using LyX now for over a decade (thanks to the developers,
> great
> job!), I recently ran into a slight problem where I haven't been able
> yet to figure out what the cause could be.
> I'm currently writing an assignment and need to cite literature. For
> doing so I use biblatex and biber as backend - works fine. However
> when
> I want to adjust the form of the citation (as it can be achieved when
> selecting the style pre-defined in the bib entry mask), the form I
> need
> is not available. In general this is no problem, since once can
> adjust
> this with either of the following commands:
> 
> \bibpunct{(}{)}{,}{a}{ }{,}
> 
> \setcitestyle{aysep={ }}

These are natbib commands, but you use biblatex, not natbib. That's wyh
you get the errors.

Put the following into Document > Settings > Local Layout:

Provides natbib 1

Then you can use all natbib citations styles with biblatex (provided
that you use biblatex's natbib=true option).

Jürgen


signature.asc
Description: This is a digitally signed message part


[BIBLATEX] LyX 2.1.4, citation issue

2016-12-08 Thread Oliver Margraf
Dear LyXers,

after using LyX now for over a decade (thanks to the developers, great
job!), I recently ran into a slight problem where I haven't been able
yet to figure out what the cause could be.
I'm currently writing an assignment and need to cite literature. For
doing so I use biblatex and biber as backend - works fine. However when
I want to adjust the form of the citation (as it can be achieved when
selecting the style pre-defined in the bib entry mask), the form I need
is not available. In general this is no problem, since once can adjust
this with either of the following commands:

\bibpunct{(}{)}{,}{a}{ }{,}

\setcitestyle{aysep={ }}

The style I need is without a comma after the author and the year in
brackets, e.g. Miller (2013), S. 145
In the PDF with the selected style from the bib entry menu (which I
think should use this style), it is displayed as Miller, (2013, S. 145)

After looking through the web, the solutions I found suggest, that you
just put one of the two mentioned commands in your preamble. However by
doing so, I get an error when I try to compile the doc. It says: " \bibpunct
  {(}{)}{a}{,}{,}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined."

So, what could this be? When I try to use the \usepackage{natbib} in the
preamble, I get also an error, that natbib is already in use - which is
logical, since it is activated in the settings.

I'm using XeTeX for compiling, LyX 2.1.4 and TeXlive 2015 - running on
Linux Mint

Attached is a small example with my current settings.
Would be great if someone could point me on something I'm missing.

Oliver


biblatex_style_ex.lyx
Description: application/lyx
@Article{Hevner2004,
  author = {Alan R. Hevner and March, Salvatore T. and Park, Jinsoo and Ram, Sudha},
  title  = {Design science in information systems research},
  journal= {MIS quarterly},
  year   = {2004},
  ranking= {rank4},
  volume = {28},
  pages  = {75--105},
  number = {1},
  file   = {:Hevner2004.pdf:PDF},
  keywords   = {Forschungsdesign},
  publisher  = {Springer},
  qualityassured = {qualityAssured},
  timestamp  = {2016-11-01},
}


Re: TODO notes (double entries) in LyX 2.2.2 on Windows 10

2016-12-08 Thread Jürgen Spitzmüller
Am Mittwoch, den 07.12.2016, 22:14 -0500 schrieb Richard Heck:
> So it looks as if this is a bug in the LaTeX package, then, not in
> LyX?

Yes, the following code in the preamble fixes it:

\renewcommand{\@todonotes@drawMarginNote}{%
\if@todonotes@dviStyle%
\begin{tikzpicture}[remember picture]%
\draw node[notestyle] {};%
\end{tikzpicture}\\%
\begin{minipage}{\@todonotes@textwidth}%
\if@todonotes@authorgiven%
  \@todonotes@sizecommand \@todonotes@author \@todonotes@text%
\else%
  \@todonotes@sizecommand \@todonotes@text%
\fi%
\end{minipage}\\%
\begin{tikzpicture}[remember picture]%
\draw node[notestyle] (inNote) {};%
\end{tikzpicture}%
\else%
\let\originalHbadness\hbadness%
\hbadness 10%
\begin{tikzpicture}[remember picture,baseline=(X.base)]%
% Fix 1: consider \@todonotes@sizecommand here!
\node(X){\vphantom{\@todonotes@sizecommand X}};%
\draw node[notestyle,font=\@todonotes@sizecommand,anchor=north]
(inNote) at (X.north)%
% Fix 2: don't output \@todonotes@text twice
{};%{\@todonotes@text};%
\if@todonotes@authorgiven%
\draw node[notestyle,font=\@todonotes@sizecommand,anchor=no
rth] (inNote) at (X.north)%
{\@todonotes@sizecommand\@todonotes@author};%
\node(Y)[below=of X]{};%
\draw node[notestyle,font=\@todonotes@sizecommand,anchor=no
rth] (inNote) at (X.south)%
{\@todonotes@text};%
\else%
\draw node[notestyle,font=\@todonotes@sizecommand,anchor=no
rth] (inNote) at (X.north)%
{\@todonotes@text};%
\fi%
\end{tikzpicture}%
\hbadness \originalHbadness%
\fi}%

I'll do a bug report.

Jürgen

signature.asc
Description: This is a digitally signed message part