"default" bibliography style in custom layout

2017-09-03 Thread John K. Parejko
Hello,

I’m working with a custom LaTeX class[1], based off of article, and I’ve made a 
LyX layout for it (attached below, modified from article.layout) that works 
well so far, except for the bibliography. The latex class specifies the 
bibliography style:

\bibliographystyle{lsst_aa}

and there is no option in LyX’s BibTeX Bibliography window to use the “default” 
style, nor can I figure out a way to modify the custom layout file to not 
insert \bibliographystyle. Thus, the document cannot be built because there 
will be two styles.

Is there a command to add to the layout file to prevent LyX from adding the 
bibliography style? Based on looking at other existing layouts, I tried adding 
either

```
Style Bibliography
End
```

or

```
NoStyle Bibliography
```

but neither prevented `\bibliographystyle{…}` from being included in the 
produced LaTeX. I can add an ERT box with `\bibliography{…}` at the end of the 
LyX doc, but it’d be nice to remove that ERT.

Any suggestions on how to modify my LyX layout, or otherwise tell the 
bibliography to not specify style in the output?

Thank you,
John

1: 
https://github.com/lsst/lsst-texmf/blob/master/texmf/tex/latex/lsst/lsstdoc.cls

2: lsstdoc.layout

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[lsstdoc, article]{LSST doc (Standard Class based on 
article)}
#  \DeclareCategory{Articles}
# Article textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich 
# Transposed by Pascal André 
# Heavily modifed and enhanced by serveral developers.
# Modified by John Parejko for LSST doc

# NOTE: To use this with your LyX doc, you can select it as a "Local Layout"
# NOTE: in Document->Settings->Document Class.

Format 60
Input stdclass.inc

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoCounter chapter
NoStyle Chapter*

# lsstdoc loads a number of packages itself
Provides hyperref 1
Provides geometry 1
Provides color 1
Provides babel 1
Provides natbib 1

# Provide the Insert->Short Title option
Style Title
Argument 1
  LabelString   "Short Title|S"
  Tooltip   "Short title which will appear in the running header"
  InsertCotext  1
EndArgument
End

Style Part
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End


Style Part*
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End



Re: Strange compile error

2017-09-03 Thread Paul A. Rubin

On 09/03/2017 04:10 PM, Steve Hnizdur wrote:

Hi

Thanks for replying. Ctrl-R  does pdflatex. Attached is the tex file 
produced by exporting from lyx, and I get the same error by running 
pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto 
date.


By the way the error still happens if the superscripts are removed, it 
seems to be the \dots that are causing the problem.


Cheers
To facilitate others following the thread, it's preferred that we 
bottom-post.


I just ran pdflatex against your TeX, and again it compiled for me with 
no errors. I'm running Linux Mint 18.2 (based on Ubuntu 16.04), with LyX 
2.2.3 and TeXLive 2017. I've attached the pdflatex log file; maybe you 
can look for differences with yours and find out where yours deviates. 
It seems to be something on your system, not a LyX error.


Paul

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2017.8.2)  3 SEP 2017 16:14
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**test_error.tex
(./test_error.tex
LaTeX2e <2017-04-15>
Babel <3.12> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2017/04/05 v2.0i Standard LaTeX package

(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 48.
))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2015/03/17 v1.2c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15

(/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def
File: latin9.def 2015/03/17 v1.2c Input encoding file
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2016/11/05 v2.16a AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16
\ex@=\dimen103
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count87
LaTeX Info: Redefining \frac on input line 213.
\uproot@=\count88
\leftroot@=\count89
LaTeX Info: Redefining \overline on input line 375.
\classnum@=\count90
\DOTSCASE@=\count91
LaTeX Info: Redefining \ldots on input line 472.
LaTeX Info: Redefining \dots on input line 475.
LaTeX Info: Redefining \cdots on input line 596.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info:Redeclaring font encoding OML on input line 712.
LaTeX Font Info:Redeclaring font encoding OMS on input line 713.
\macc@depth=\count92
\c@MaxMatrixCols=\count93
\dotsspace@=\muskip10
\c@parentequation=\count94
\dspbrk@lvl=\count95
\tag@help=\toks17
\row@=\count96
\column@=\count97
\maxfields@=\count98
\andhelp@=\toks18
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks19
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks20
LaTeX Info: Redefining \[ on input line 2817.
LaTeX Info: Redefining \] on input line 2818.
)
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2017/06/29 3.12 The Babel package

(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2017/06/29 3.12 Babel switching mechanism
)
(/usr/share/texlive/texmf-dist/tex/generic/babel-english/british.ldf
Language: british 2017/06/06 v3.3r English support from the babel system

(/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf
Language: english 2017/06/06 v3.3r English support from the babel system

(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2017/06/29 3.12 Babel common definitions

(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2017/06/29 3.12 Babel switching mechanism
)
\babel@savecnt=\count99
\U@D=\dimen112
)
\l@british = a dialect from \language\l@english 
\l@UKenglish = a dialect from \language\l@english 
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a 

Re: Strange compile error

2017-09-03 Thread Steve Hnizdur

Hi

Thanks for replying. Ctrl-R  does pdflatex. Attached is the tex file 
produced by exporting from lyx, and I get the same error by running 
pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto date.


By the way the error still happens if the superscripts are removed, it 
seems to be the \dots that are causing the problem.


Cheers

On 03/09/17 21:00, Paul A. Rubin wrote:

On 09/03/2017 01:06 PM, Steve Hnizdur wrote:

Hi

Attached is a lyx file which when complied with ctrl-R gives the error 
below copied from the error log. It also fails if I try to compile it 
as a native .tex file.


The error goes away if the \dots is removed and it also goes away if 
the "Number Equations by Section" Module is removed.


Any thoughts.
What format does ctrl-R use in your configuration? In mine, it's 
pdflatex, and the document compiles just fine.


Paul



--

Steve Hnizdur
%% LyX 2.2.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}

\makeatletter
%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}

\makeatother

\usepackage{babel}
\begin{document}
aaa
\[
\left\Vert P_{1}\right\Vert ^{m_{1}}\dots\left\Vert P_{r}\right\Vert ^{m_{r}}
\]

xxx
\end{document}


Re: Strange compile error

2017-09-03 Thread Paul A. Rubin

On 09/03/2017 01:06 PM, Steve Hnizdur wrote:

Hi

Attached is a lyx file which when complied with ctrl-R gives the error 
below copied from the error log. It also fails if I try to compile it 
as a native .tex file.


The error goes away if the \dots is removed and it also goes away if 
the "Number Equations by Section" Module is removed.


Any thoughts.
What format does ctrl-R use in your configuration? In mine, it's 
pdflatex, and the document compiles just fine.


Paul



Strange compile error

2017-09-03 Thread Steve Hnizdur

Hi

Attached is a lyx file which when complied with ctrl-R gives the error 
below copied from the error log. It also fails if I try to compile it as 
a native .tex file.


The error goes away if the \dots is removed and it also goes away if the 
"Number Equations by Section" Module is removed.


Any thoughts.


Error
**

! Argument of \zap@to@space has an extra }.

\par
l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left
  \Vert 
P_{r}\right\Vert ^{m...

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
\left..
! Paragraph ended before \zap@to@space was complete.

   \par
l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left
  \Vert 
P_{r}\right\Vert ^{m...

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

Runaway argument?
! Paragraph ended before \macro@ was complete.

   \par
l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left
  \Vert 
P_{r}\right\Vert ^{m...

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Missing $ inserted.

$
l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left
  \Vert 
P_{r}\right\Vert ^{m...

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

! Display math should end with $$.

   \par
l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left
  \Vert 
P_{r}\right\Vert ^{m...

The `$' that I just saw supposedly matches a previous `$$'.
So I shall assume that you typed `$$' both times.

Runaway argument?
\meaning@ \not@ \ifgtest@ \gdef \thedots@ {\dotsb@ }\else \@xp \DOTS@ \ETC.
! Paragraph ended before \macro@ was complete.

   \par
l.22

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.


! LaTeX Error: \begin{equation*} on input line 19 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
 ...

l.24 \end{document}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.

[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test_error.aux) )
(\end occurred inside a group at level 1)

### semi simple group (level 1) entered at line 19 (\begingroup)
### bottom level
(\end occurred when \iffalse on line 20 was incomplete)
(\end occurred when \iffalse on line 20 was incomplete)
(\end occurred when \iffalse on line 20 was incomplete)
(\end occurred when \ifx on line 20 was incomplete)
(\end occurred when \ifx on line 20 was incomplete)
(\end occurred when \ifx on line 20 was incomplete)
Here is how much of TeX's memory you used:

--

Steve Hnizdur


test_error.lyx
Description: application/lyx


Re: Little Problem

2017-09-03 Thread Dr Eberhard W Lisse
???

-- 
Sent from Dr Lisse's iPad mini 4

> On 3 Sep 2017, at 12:16, John Kane  wrote:
> 
> Not strictly on topic did you want "
> Carlos Fernando Knauer - aluno externo do PPGFA UTFPR" formatted as Date? I 
> would have thought Author would be more appropriate.
> 
>> On 1 September 2017 at 05:35, Dr Eberhard Lisse  wrote:
>> Send a Minimal Working Example,
>> 
>> in other words, remove everything which does not produce the error
>> until you are left with what does.
>> 
>> Often that will make the error obvious :-)-O
>> 
>> el
>> 
>> On 31/08/2017 18:23, Carlos Knauer wrote:
>> > Good Afternon
>> >
>> > How can I erase númber 6 in front of mqtrix at page 9 ? I am sending
>> > the file.
>> >
>> > Thanks.
>> >
>> > Carlos F. Knauer - Brazil
>> >
>> 
>> 
> 
> 
> 
> -- 
> John Kane
> Kingston ON Canada


installation error: MiKTeX209-core.dll is missing

2017-09-03 Thread Xinchen Dai
Dear lyx-users:

I tried to install LyX several times but kept getting error that
pdflatex.exe stops running and then MiKTeX209-core.dll missing error when I
try to start the program after installation.

I tried both LyX-223-Bundle-1.exe and LyX-223-Installer-1.exe. During the
installation, I updated the MiKTeX according to the instruction. My
computer is Win 8.1. I use CTEX (Chinese TEX which includes MiKTeX) and
TeXStudio. Can someone help me?

Best regards,

Xinchen



Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: Little Problem

2017-09-03 Thread John Kane
Not strictly on topic did you want "
Carlos Fernando Knauer - aluno externo do PPGFA UTFPR" formatted as Date? I
would have thought Author would be more appropriate.

On 1 September 2017 at 05:35, Dr Eberhard Lisse  wrote:

> Send a Minimal Working Example,
>
> in other words, remove everything which does not produce the error
> until you are left with what does.
>
> Often that will make the error obvious :-)-O
>
> el
>
> On 31/08/2017 18:23, Carlos Knauer wrote:
> > Good Afternon
> >
> > How can I erase númber 6 in front of mqtrix at page 9 ? I am sending
> > the file.
> >
> > Thanks.
> >
> > Carlos F. Knauer - Brazil
> >
>
>
>


-- 
John Kane
Kingston ON Canada